befovy / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support. Backend for https://github.com/befovy/fijkplayer, fijkplayer 的播放内核
GNU General Public License v2.0
155 stars 92 forks source link

使用ijkio:cache:ffio:协议Android上会出现Error (-1,0,Operation not permitted)。有时候正常。 #87

Open excelyaobin opened 1 year ago

excelyaobin commented 1 year ago

D/IJKMEDIA(27558): IjkMediaPlayer_setOptionLong D/IJKMEDIA(27558): IjkMediaPlayer_prepareAsync D/IJKMEDIA(27558): ijkmp_prepare_async() I/IJKMEDIA(27558): ===== versions ===== I/IJKMEDIA(27558): ijkplayer : I/IJKMEDIA(27558): FFmpeg : ff4.0--ijk0.8.8--20211030--926 I/IJKMEDIA(27558): libavutil : 56.14.100 I/IJKMEDIA(27558): libavcodec : 58.18.100 I/IJKMEDIA(27558): libavformat : 58.12.100 I/IJKMEDIA(27558): libswscale : 5.1.100 I/IJKMEDIA(27558): libswresample: 3.1.100 I/IJKMEDIA(27558): ===== options ===== I/IJKMEDIA(27558): player-opts : enable-position-notify = 1 I/IJKMEDIA(27558): player-opts : start-on-prepared = 1 I/IJKMEDIA(27558): format-opts : ijkapplication = -5476376642297976624 I/IJKMEDIA(27558): format-opts : ijkiomanager = -5476376640595185024 I/IJKMEDIA(27558): format-opts : cache_map_path = /data/user/0/com.xxxxx.xxxxx/cache/fdVideoCache/mapCache/xxx.MP4 I/IJKMEDIA(27558): SDL_RunThread: [4820] ff_msg_loop I/IJKMEDIA(27558): format-opts : cache_file_path = /data/user/0/com.xxxxx.xxxxx/cache/xxxxx/pathCache/xxx.MP4 I/IJKMEDIA(27558): format-opts : parse_cache_map = 1 I/IJKMEDIA(27558): format-opts : auto_save_map = 1 I/IJKMEDIA(27558): =================== D/IJKMEDIA(27558): message_loop D/IJKMEDIA(27558): FFP_MSG_FLUSH: I/IJKMEDIA(27558): SDL_RunThread: [4821] ff_vout D/IJKMEDIA(27558): ijkmp_prepare_async()=0 I/IJKMEDIA(27558): SDL_RunThread: [4822] ff_read E/IJKMEDIA(27558): ijkio:cache:ffio:http://image.xxxxxxx.com/xxx.MP4: Operation not permitted I/IJKMEDIA(27558): SDL_JNI_DetachThreadEnv: [4822] D/IJKMEDIA(27558): FFP_MSG_ERROR: -1 E/tv.danmaku.ijk.media.player.IjkMediaPlayer(27558): Error (-1,0,Operation not permitted) I/flutter (27558): [inf] 2023-08-15 16:41:03.808550 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized I/flutter (27558): [inf] 2023-08-15 16:41:03.810238 [fijk] FijkPlayer{id:2} invoke prepareAsync and start #1 -> done I/flutter (27558): [inf] 2023-08-15 16:41:03.811810 [fijk] FijkPlayer{id:2} state changed to FijkState.initialized <= FijkState.idle I/flutter (27558): [inf] 2023-08-15 16:41:03.813158 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized I/flutter (27558): [err] 2023-08-15 16:41:03.816506 [fijk] FijkPlayer{id:2} errorListener: FijkException(-1, Operation not permitted) I/flutter (27558): [inf] 2023-08-15 16:41:03.819444 [fijk] FijkPlayer{id:2} state changed to FijkState.error <= FijkState.asyncPreparing