LOCAL_CFLAGS =
LOCAL_SRC_FILES = MPlayer.cpp MPlayerRenderer.cpp
LOCAL_SHARED_LIBRARIES := libz libasound libc libdl libutils libcutils \
- libbinder libmedia libui libandroid_runtime liblog
+ libbinder libmedia libui libandroid_runtime liblog libsurfaceflinger_client
LOCAL_STATIC_LIBRARIES := libmplayer $(FFMPEGPARTS) libft2
include $(BUILD_SHARED_LIBRARY)
release();
}
- status_t MPlayer::setDataSource(const char* path)
+ status_t MPlayer::setDataSource(
+ const char *uri, const KeyedVector<String8, String8> * headers)
{
- return setdatasource(path, -1, 0, 0x78ffffLL);
+ return setdatasource(uri, -1, 0, 0x78ffffLL);
}
status_t MPlayer::setDataSource(int fd, int64_t offset, int64_t length)
return NO_ERROR;
}
-
sendEvent (MEDIA_PREPARED); /* todo : should be moved to main loop */
return NO_ERROR;
}
#include <media/MediaPlayerInterface.h>
#include <media/AudioTrack.h>
+#include <surfaceflinger/ISurface.h>
#include "mplayer_lib.h"
virtual void onFirstRef();
virtual status_t initCheck();
- virtual status_t setDataSource(const char* path);
+ virtual status_t setDataSource(
+ const char *uri, const KeyedVector<String8, String8>*headers);
virtual status_t setDataSource(int fd, int64_t offset, int64_t length);
virtual status_t setVideoSurface(const sp<ISurface>& surface);
virtual status_t prepare();
#include <utils/Log.h>
#include <binder/MemoryHeapBase.h>
-#include <ui/ISurface.h>
+#include <surfaceflinger/ISurface.h>
#include "MPDebug.h"
#include "MPlayerRenderer.h"