mail-archives/monodroid/2014-February/014069.html

117 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] Video in Expansion Pack
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20Video%20in%20Expansion%20Pack&In-Reply-To=%3C1391550543983-5713664.post%40n5.nabble.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="014068.html">
<LINK REL="Next" HREF="014070.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] Video in Expansion Pack</H1>
<B>ChaseFlorell</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=Re%3A%20%5Bmono-android%5D%20Video%20in%20Expansion%20Pack&In-Reply-To=%3C1391550543983-5713664.post%40n5.nabble.com%3E"
TITLE="[mono-android] Video in Expansion Pack">chase.florell at gmail.com
</A><BR>
<I>Tue Feb 4 21:49:04 UTC 2014</I>
<P><UL>
<LI>Previous message: <A HREF="014068.html">[mono-android] Web Service in Visual Studio
</A></li>
<LI>Next message: <A HREF="014070.html">[mono-android] Package APK with shared runtime (version 4.10.02)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#14069">[ date ]</a>
<a href="thread.html#14069">[ thread ]</a>
<a href="subject.html#14069">[ subject ]</a>
<a href="author.html#14069">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I'm having a similar issue, but I'm wondering, where did you get sourcePath
from?
johnHolmes wrote
&gt;<i> I've found a solution to this. I'll post here just in case anyone is
</I>&gt;<i> interested
</I>&gt;<i>
</I>&gt;<i> var expansion =
</I>&gt;<i> ApkExpansionSupport.GetApkExpansionZipFile(this
</I>&gt;<i> , 1, 1);
</I>&gt;<i> var entry = expansion.GetEntry(&quot;videos/myvideo.mp4&quot;);
</I>&gt;<i>
</I>&gt;<i> var pfd = ParcelFileDescriptor.Open(new
</I>&gt;<i> Java.IO.File(sourcePath)
</I>&gt;<i> , ParcelFileMode.ReadOnly);
</I>&gt;<i> var fd = new AssetFileDescriptor(pfd, entry.FileOffset, entry.
</I>&gt;<i> FileSize);
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> On Sat, May 11, 2013 at 4:18 PM, Francesco Colombo &lt;
</I>
&gt;<i> francesco.colombo@
</I>
&gt;&gt;<i> wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Hi to all,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> In my app I need to play a video file (.mp4) The source file is stored
</I>&gt;&gt;<i> inside an Android Expansion Packs files (.obb). How can I read it ?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> An example done in Android
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> <A HREF="http://stackoverflow.com/questions/11300137/playing-sound-files-from-expansion-file">http://stackoverflow.com/questions/11300137/playing-sound-files-from-expansion-file</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> What I'm missing is how to get the FileDescriptor instance from the
</I>&gt;&gt;<i> expansion file.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Monodroid mailing list
</I>
&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at .ximian</A>
</I>
&gt;<i>
</I>&gt;<i> UNSUBSCRIBE INFORMATION:
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
</I>
--
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/Video-in-Expansion-Pack-tp5713300p5713664.html">http://mono-for-android.1047100.n5.nabble.com/Video-in-Expansion-Pack-tp5713300p5713664.html</A>
Sent from the Mono for Android mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="014068.html">[mono-android] Web Service in Visual Studio
</A></li>
<LI>Next message: <A HREF="014070.html">[mono-android] Package APK with shared runtime (version 4.10.02)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#14069">[ date ]</a>
<a href="thread.html#14069">[ thread ]</a>
<a href="subject.html#14069">[ subject ]</a>
<a href="author.html#14069">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>