зеркало из https://github.com/mono/mail-archives.git
117 строки
4.6 KiB
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
|
|
><i> I've found a solution to this. I'll post here just in case anyone is
|
|
</I>><i> interested
|
|
</I>><i>
|
|
</I>><i> var expansion =
|
|
</I>><i> ApkExpansionSupport.GetApkExpansionZipFile(this
|
|
</I>><i> , 1, 1);
|
|
</I>><i> var entry = expansion.GetEntry("videos/myvideo.mp4");
|
|
</I>><i>
|
|
</I>><i> var pfd = ParcelFileDescriptor.Open(new
|
|
</I>><i> Java.IO.File(sourcePath)
|
|
</I>><i> , ParcelFileMode.ReadOnly);
|
|
</I>><i> var fd = new AssetFileDescriptor(pfd, entry.FileOffset, entry.
|
|
</I>><i> FileSize);
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> On Sat, May 11, 2013 at 4:18 PM, Francesco Colombo <
|
|
</I>
|
|
><i> francesco.colombo@
|
|
</I>
|
|
>><i> wrote:
|
|
</I>><i>
|
|
</I>>><i> Hi to all,
|
|
</I>>><i>
|
|
</I>>><i> In my app I need to play a video file (.mp4) The source file is stored
|
|
</I>>><i> inside an Android Expansion Packs files (.obb). How can I read it ?
|
|
</I>>><i>
|
|
</I>>><i> An example done in Android
|
|
</I>>><i>
|
|
</I>>><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>>><i>
|
|
</I>>><i> What I'm missing is how to get the FileDescriptor instance from the
|
|
</I>>><i> expansion file.
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Monodroid mailing list
|
|
</I>
|
|
><i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at .ximian</A>
|
|
</I>
|
|
><i>
|
|
</I>><i> UNSUBSCRIBE INFORMATION:
|
|
</I>><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>
|