Hi, I need to split android binary when video files are big, but the video playback doesn't work with video files from expansion pack (obb).
Any solution please?
I think, the solution is to use a "file descriptor" in android MediaPlayer to open files from obb file.
Android Mediaplayer documentation:
public void setDataSource (FileDescriptor fd)
Added in API level 1
Sets the data source (FileDescriptor) to use. It is the caller's responsibility to close the file descriptor. It is safe to do so as soon as this call returns.
the FileDescriptor for the file you want to play
if it is called in an invalid state
we are not releasing the source code for the videop plugin part; so, I don't see many easy options other than following the workaround I described below, although this may consume some extra space on the external storage of the device.
But I also invite you to post this request (releasing Java source code for videoplayback) in out Forum wish list:
Thank you Alessandro but, my video size is 360MB and if i extract from obb file, my app size grows to more than 700MB!!
I know the android mediaplayer can read directly from obb, but with a filedescriptor. Unfortunately, this native code of vuforia video playback is compiled (i don't have the source code.
Hi, typically what you need to do to handle OBB content is to:
Once your video file is stored on your SD card as per step 3 above, then you can make your code to load the video from that path.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?