Friday, February 22, 2013

Re: [android-developers] Re: why can't MediaPlayer access data via AssetFileDescriptor created by ContentProvider?

Latimerius wrote:
> On Fri, Feb 22, 2013 at 5:02 PM, skink <pskink@gmail.com> wrote:
>
> >
> > as I can see your data source is some asset.
> >
> > in this case you don't have to use a pipe: my code I sent a link to is
> > enough to play with MediaPlayer
> >
>
> Excellent, you're right, this works! Sorry I missed this while reading
> your code the first time around.
>
> Is the code you posted your production code? I mean, will it work across
> Android versions? I hope sending an AssetFileDescriptor across process
> boundaries is OK - I guess it should if sending a ParcelFileDescriptor is.

I tested only 1.6 & 2.2, have no idea about 4.0+ but would be
surprised if it didn't work

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


Real Estate