Android mediaplayer Couldn't open file on client side, trying server side

D/MediaPlayer( 2886): Couldn‘t open file on client side, trying server side
D/ActivityManager( 2624): checkComponentPermission() adjusting {pid,uid} to {2132,1013}
E/MediaPlayerService( 2132): Couldn‘t open fd for content://media/external/audio/media/23
E/MediaPlayer( 2886): Unable to to create media player
I/AudioService( 2624):  AudioFocus  requestAudioFocus() from [email protected][email protected]
I/AudioService( 2624):   Remote Control   registerMediaButtonIntent() for PendingIntent{41cc36e0: PendingIntentRecord{41e8db58 com.android.music broadcastIntent}}
I/ActivityManager( 2624): START u0 {act=com.android.music.PLAYBACK_VIEWER flg=0x4000000 cmp=com.android.music/.MediaPlaybackActivity} from pid 2886
E/BufferQueue( 2624): [ScreenshotClient] dequeueBuffer: can‘t dequeue multiple buffers without setting the buffer count
D/dalvikvm( 2624): GC_FOR_ALLOC freed 62K, 22% free 6081K/7700K, paused 38ms, total 38ms
I/dalvikvm-heap( 2624): Grow heap (frag case) to 6.259MB for 196368-byte allocation
D/dalvikvm( 2624): GC_FOR_ALLOC freed 1K, 21% free 6271K/7892K, paused 35ms, total 35ms
D/dalvikvm( 2624): GC_FOR_ALLOC freed 5K, 21% free 6266K/7892K, paused 35ms, total 35ms
I/dalvikvm-heap( 2624): Grow heap (frag case) to 6.440MB for 196368-byte allocation
D/dalvikvm( 2624): GC_FOR_ALLOC freed 0K, 21% free 6458K/8084K, paused 36ms, total 36ms
D/dalvikvm( 2624): GC_FOR_ALLOC freed 383K, 25% free 6074K/8084K, paused 34ms, total 35ms
D/dalvikvm( 2886): GC_FOR_ALLOC freed 295K, 16% free 4061K/4812K, paused 23ms, total 24ms
E/StrictMode( 2886): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 2886): java.lang.Throwable: Explicit termination method ‘close‘ not called
E/StrictMode( 2886):     at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 2886):     at android.content.ContentResolver$CursorWrapperInner.<init>(ContentResolver.java:1903)
E/StrictMode( 2886):     at android.content.ContentResolver.query(ContentResolver.java:438)
E/StrictMode( 2886):     at android.content.ContentResolver.query(ContentResolver.java:357)
E/StrictMode( 2886):     at com.android.music.MusicUtils.query(MusicUtils.java:604)
E/StrictMode( 2886):     at com.android.music.MusicUtils.query(MusicUtils.java:612)
E/StrictMode( 2886):     at com.android.music.TrackBrowserActivity.setTitle(TrackBrowserActivity.java:487)
E/StrictMode( 2886):     at com.android.music.TrackBrowserActivity.init(TrackBrowserActivity.java:377)
E/StrictMode( 2886):     at com.android.music.TrackBrowserActivity$TrackListAdapter$TrackQueryHandler.onQueryComplete(TrackBrowserActivity.java:1397)
E/StrictMode( 2886):     at android.content.AsyncQueryHandler.handleMessage(AsyncQueryHandler.java:344)
E/StrictMode( 2886):     at android.os.Handler.dispatchMessage(Handler.java:99)
E/StrictMode( 2886):     at android.os.Looper.loop(Looper.java:137)
E/StrictMode( 2886):     at android.app.ActivityThread.main(ActivityThread.java:5103)
E/StrictMode( 2886):     at java.lang.reflect.Method.invokeNative(Native Method)
E/StrictMode( 2886):     at java.lang.reflect.Method.invoke(Method.java:525)
E/StrictMode( 2886):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/StrictMode( 2886):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/StrictMode( 2886):     at dalvik.system.NativeStart.main(Native Method)
W/CursorWrapperInner( 2886): Cursor finalized without prior close()
D/dalvikvm( 2886): GC_FOR_ALLOC freed 67K, 11% free 4300K/4812K, paused 20ms, total 20ms
I/dalvikvm-heap( 2886): Grow heap (frag case) to 4.552MB for 234272-byte allocation
D/dalvikvm( 2886): GC_FOR_ALLOC freed 0K, 11% free 4529K/5044K, paused 26ms, total 26ms
E/BufferQueue( 2624): [ScreenshotClient] dequeueBuffer: can‘t dequeue multiple buffers without setting the buffer count
D/dalvikvm( 2624): GC_FOR_ALLOC freed 271K, 22% free 6305K/8084K, paused 43ms, total 43ms
I/WindowManager( 2624): Screenshot Window{41dca298 u0 Starting com.android.music} was all black! mSurfaceLayer=22025 minLayer=21000 maxLayer=22025
D/dalvikvm( 2624): GC_FOR_ALLOC freed 391K, 25% free 6111K/8084K, paused 38ms, total 38ms
I/ActivityManager( 2624): START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=com.android.music/.MusicBrowserActivity} from pid 2886
W/ActivityManager( 2624): Duplicate finish request for ActivityRecord{41cfee98 u0 com.android.music/.MediaPlaybackActivity}
W/ActivityManager( 2624): Duplicate finish request for ActivityRecord{41cfee98 u0 com.android.music/.MediaPlaybackActivity}
I/ActivityManager( 2624): Displayed com.android.music/.MediaPlaybackActivity: +548ms
I/ActivityManager( 2624): START u0 {act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/playlist flg=0x4000000 cmp=com.android.music/.PlaylistBrowserActivity (has extras)} from pid 2886
W/ActivityManager( 2624): Duplicate finish request for ActivityRecord{41dda148 u0 com.android.music/.MusicBrowserActivity}
D/dalvikvm( 2886): GC_CONCURRENT freed 570K, 14% free 4569K/5276K, paused 3ms+17ms, total 79ms
V/PhoneStatusBar( 2706): setLightsOn(true)
I/ActivityManager( 2624): Displayed com.android.music/.PlaylistBrowserActivity: +283ms
I/tetra   ( 4126): Modem Restart 2434 -rw------- root root 0 1970-01-02 01:10 console.log

Android mediaplayer Couldn't open file on client side, trying server side

时间: 2024-10-27 05:57:59

Android mediaplayer Couldn't open file on client side, trying server side的相关文章

Couldn&#39;t open file on client side, trying server side 错误解决

09-09 09:43:21.651: D/MediaPlayer(3340): Couldn't open file on client side, trying server side09-09 09:43:21.661: E/MediaPlayer(3340): attachNewPlayer called in state 128 使用MediaPlayer播放时第二次播放就遇到这个问题,看了下文档最简单的解决办法就是在每次调用播放之前,先reset一下player,就ok了 Could

android binder 机制二(client和普通server)

在讲它们之间的通信之前,我们先以MediaServer为例看看普通Server进程都在干些什么. int main() { -- // 获得ProcessState实例 sp<ProcessState> proc(ProcessState::self()); // 得到ServiceManager的Binder客户端实例 sp<IServiceManager> sm = defaultServiceManager(); -- // 通过ServiceManager的Binder客户

Android -- MediaPlayer内部实现简析

Android -- MediaPlayer内部实现简析 在之前的博客中,已经介绍了使用MediaPlayer时要注意的内容.现在,这里就通过一个MediaPlayer代码实例,来进一步分析MediaPlayer内部是如何运作.实现的:当然这里的分析只截止到底层调用播放器之前,因为播放器这块实在是没搞懂. 我们使用的例子来源于之前MediaPlayer Playback译文中的官方实例: String url = "http://........"; // your URL here

Android MediaPlayer Error -1004

之前用Android自带的VideoView播放在线视频一直没问题的,今天突然碰到无法播放. MediaPalyer返回的错误代码是-1004,API文档上写的是:Bitstream is not conforming to the related coding standard or file spec. 最后查明是因为我用了Mac下的Charles,然后没有开代理服务导致的... 进入系统关闭代理即可.... Android MediaPlayer Error -1004

Android MediaPlayer Error/Info Code

1. 常见错误 error(-38, 0) 我觉得-38表示在当前的MediaPlayer状态下,不能运行你的操作. 详细怎样做请參考:Android MediaPlayer 另外我在其它资料中.发现有人觉得-38定义在:pvmf_return_codes.h文件里: -38: DRM clock is not available or cannot be read 0: Return code for pending completion /* * DRM clock is not avail

Android MediaPlayer 框架UML图

Android开发交流群:50342056 目的 本文用一个UML类图,讲解mp3文件播放的框架流程.内容以下几个方面: 1.UML类图 2.stagefrightPlayer是如何创建的: 3.mp3文件的解析和解码的简单介绍 4.播放mp3文件过程中,生产者和消费者的关系: 5.openmax和stagefright框架的消息机制 UML类图 stagefrightPlayer是如何创建的 对照着UML图,看下StagefrightPlayer创建的过程. 故事的开始是Java层的Media

Android MediaPlayer 播放音频

本文链接: Android MediaPlayer 播放音频 主要介绍使用MediaPlayer播放音频的方式.关于MediaPlayer的基础知识,比如状态,可以参考Android MediaPlayer 基础简介. 为了方便表达,定义变量名为mediaPlayer. MediaPlayer的使用方式 创建MediaPlayer 可以直接 new MediaPlayer,也可以用MediaPlayer提供的create方法创建. mediaPlayer = new MediaPlayer();

android MediaPlayer

Playback control of audio/video files and streams is managed as a state machine. The following diagram shows the life cycle and the states of a MediaPlayer object driven by the supported playback control operations. The ovals represent the states a M

Android项目部署时,发生AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class错误

这个错误也是让我纠结了一天,当时写的项目在安卓虚拟机上运行都很正常,于是当我部署到安卓手机上时,点击登陆按钮跳转到用户主界面的时候直接结束运行返回登陆界面.    当时,我仔细检查了一下自己的代码,并没有发现什么问题,在logcat上显示的报错如下:AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class(这是其中报错的最主要的一行信息).  于是我在百度上几乎查看