Re: [android-developers] Re: why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?
Latimerius wrote:
> Thanks for your reply, I appreciate it. I know and have implemented the
> basic approach to sharing assets between separate applications. It works
> just fine for PNGs, XMLs etc.
>
> However, a specific problem comes up if you want to use the
> AssetFileDescriptor returned by openAssetFile() as a data source for
> MediaPlayer. There's a speculation that it might be caused by the fact
> that openAssetFile() returns a (read side of a) pipe which is not seekable
> (contents are of unknown size), whereas MediaPlayer supposedly insists on a
> seekable descriptor. The idea of my post was that MediaPlayer won't play
> the data even if you set the correct length to the AssetFileDescriptor.
> Please refer to the link I mentioned in my previous post for a lot more
> details about the issue.
>
>
aha, I got it now, sorry for misunderstanding
pskink
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home