bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

Server returned 4XX Client Error, but not one of 40{0,1,3,4} after change url #4676

Open baralgin1003 opened 5 years ago

baralgin1003 commented 5 years ago

I catch http 405 error when I want to change url from RTSP to HLS. if first start the hls and then rtsp, then both streams play well.

W/AudioManager: Use of stream types is deprecated for operations other than volume control W/AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case I/IJKMEDIA: av_version_info: ff3.4--ijk0.8.7--20180103--001 I/IJKMEDIA: ijk_version_info: k0.8.8 I/chatty: uid=10001(ru.ufanet.justplayersample) identical 3 lines I/chatty: uid=10001(ru.ufanet.justplayersample) identical 2 lines I/IJKMEDIA: ===== versions ===== I/IJKMEDIA: ijkplayer : k0.8.8 I/IJKMEDIA: FFmpeg : ff3.4--ijk0.8.7--20180103--001 I/IJKMEDIA: SDL_RunThread: [16727] ff_msg_loop I/IJKMEDIA: libavutil : 55.78.100 I/IJKMEDIA: libavcodec : 57.107.100 I/IJKMEDIA: libavformat : 57.83.100 I/IJKMEDIA: libswscale : 4.8.100 I/IJKMEDIA: libswresample: 2.9.100 I/IJKMEDIA: ===== options ===== I/IJKMEDIA: player-opts : overlay-format = 842225234 I/IJKMEDIA: player-opts : framedrop = 2 I/IJKMEDIA: player-opts : start-on-prepared = 1 I/IJKMEDIA: player-opts : packet-buffering = 0 I/IJKMEDIA: player-opts : fflags = nobuffer I/IJKMEDIA: player-opts : rtbufsize = 300 I/IJKMEDIA: player-opts : sync = ext I/IJKMEDIA: player-opts : fast = 1 I/IJKMEDIA: player-opts : mediacodec-handle-resolution-change = 1 I/IJKMEDIA: format-opts : ijkapplication = -869912016 I/IJKMEDIA: format-opts : ijkiomanager = -758150400 I/IJKMEDIA: format-opts : http-detect-range-support = 0 I/IJKMEDIA: format-opts : probesize = 32 I/IJKMEDIA: format-opts : rtsp_transport = tcp I/IJKMEDIA: format-opts : analyzedmaxduration = 100 I/IJKMEDIA: codec-opts : skip_loop_filter = 48 I/IJKMEDIA: =================== I/IJKMEDIA: SDL_RunThread: [16728] ff_vout I/IJKMEDIA: SDL_RunThread: [16729] ff_read I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 1 I/IJKMEDIA: Hit DNS cache hostname = flussonic-8.cams.ufanet.ru I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131073 I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 131074 W/IJKMEDIA: HTTP error 405 Method not allowed I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 2 E/IJKMEDIA: http://myStream.m3u8: Server returned 4XX Client Error, but not one of 40{0,1,3,4}

kkzone commented 5 years ago

问题解决了吗

momoxiaoray commented 5 years ago

同问啊,那个添加cookie的方法没用哎

heweimxcz commented 4 years ago

我也出现了这个问题,用系统播放器和EXO都可以播放,就是这个链接不能播放,返回459, 这个是视频链接 https://cn-fjqz-cmcc-v-05.bilivideo.com/upgcxcode/68/70/159697068/159697068-1-16.mp4?expires=1583501400&platform=html5&ssig=BhrSyRSzG62FAqWPqnX-sw&oi=1972961574&trid=c084e04a093649f990b36f6327632528h&nfc=1&nfb=maPYqpoel5MI3qOUX6YpRA==&mid=0

IJKMEDIA: HTTP error 459 2020-03-06 20:31:48.056 28754-29011/com.kk.taurus.avplayer I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 2 2020-03-06 20:31:48.056 28754-29011/com.kk.taurus.avplayer E/IJKMEDIA: https://cn-fjqz-cmcc-v-05.bilivideo.com/upgcxcode/68/70/159697068/159697068-1-16.mp4?expires=1583501400&platform=html5&ssig=BhrSyRSzG62FAqWPqnX-sw&oi=1972961574&trid=c084e04a093649f990b36f6327632528h&nfc=1&nfb=maPYqpoel5MI3qOUX6YpRA==&mid=0: Server returned 4XX Client Error, but not one of 40{0,1,3,4} 2020-03-06 20:31:48.056 28754-29011/com.kk.taurus.avplayer I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [29011] 2020-03-06 20:31:48.057 28754-29009/com.kk.taurus.avplayer D/IJKMEDIA: FFP_MSG_ERROR: 0

haoXu1990 commented 2 years ago

有人知道怎么解决吗