I'm having a similar issue, but I'm wondering, where did you get sourcePath
from?
johnHolmes wrote
> I've found a solution to this. I'll post here just in case anyone is
> interested
>
> var expansion =
> ApkExpansionSupport.GetApkExpansionZipFile(this
> , 1, 1);
> var entry = expansion.GetEntry("videos/myvideo.mp4");
>
> var pfd = ParcelFileDescriptor.Open(new
> Java.IO.File(sourcePath)
> , ParcelFileMode.ReadOnly);
> var fd = new AssetFileDescriptor(pfd, entry.FileOffset, entry.
> FileSize);
>
>
> On Sat, May 11, 2013 at 4:18 PM, Francesco Colombo <
> francesco.colombo@
>> wrote:
>
>> Hi to all,
>>
>> In my app I need to play a video file (.mp4) The source file is stored
>> inside an Android Expansion Packs files (.obb). How can I read it ?
>>
>> An example done in Android
>>
>> http://stackoverflow.com/questions/11300137/playing-sound-files-from-expansion-file
>>
>> What I'm missing is how to get the FileDescriptor instance from the
>> expansion file.
>>
>>
>>
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Video-in-Expansion-Pack-tp5713300p5713664.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid