Thursday, September 22, 2011

[android-developers] Re: Eject sdcard when playing video on internal storage cause “media server died”

without using your app just yet, if you remove the external sdcard,
and go to your application, can you still play the video that is in
the internal storage?

usually when you eject storages or connect to USB storage the OS goes
an checks which packages have in their manifest the use for sdcard and
who is using...if the apps dont handle the eject event at time, the os
manager will go and kill all apps.


On Sep 22, 6:53 am, androidNoob <colaboy2...@gmail.com> wrote:
> Hi !
> I  am developing android applications and firmware for a hardware device,
> the device have internal storage at /mnt/sdcard. When insert external
> sdcard, it is mounted at /mnt/sdcard/extsd, and /mnt/sdcard/udisk for
> external usb disk(thumb drive).
>
> Now the problem is, when I am playing a video on internal storage using
> "VideoView" and I eject the external sdcard, then there is a popup saying
> that "Sorry, cannot play video".
>
> I looked at the logcat and found something like this
>
> WARN/AudioSystem(92): AudioFlinger server died!
> WARN/AudioSystem(92): AudioPolicyService server died!
> INFO/ServiceManager(53): service 'media.audio_flinger' died
> INFO/ServiceManager(53): service 'media.player' died
> INFO/ServiceManager(53): service 'media.camera' died
> INFO/ServiceManager(53): service 'media.audio_policy' died
> WARN/IMediaDeathNotifier(912): media server died
> WARN/IMediaDeathNotifier(912): media server died
> ERROR/MediaPlayer(912): error (100, 0)
>
> I am playing a file on internal storage and why removing sdcard cause error
> to "media server"? or Will the so call "media server" died when ejecting
> sdcard and is not related to playing video? or the problem is actually not
> related to "media server"?
>
> The android version I am working on is 2.3.3
>
> Please help, thanks!

--
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

No comments:

Post a Comment