android获取服务器mp4资源抛出412错误

BaymaxCssy 发布于 2017/11/07 16:09
阅读 228
收藏 0

产品的ios端和android同时获取同一个mp4视频资源,android会报出412错误,IOS端正常播放,andorid端播放wmv视频正常

android日志信息如下:

/VLC/PlaybackService: Loading position 0 in org.videolan.vlc.media.MediaWrapper@5f9726
D/VLC: [a2271fc0/6cc8] core input: Creating an input for 'b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4'
D/VLC: [a2271fc0/6ed5] core input: using timeshift granularity of 50 MiB
D/VLC: [a2271fc0/6ed5] core input: using default timeshift path
D/VLC: [a2271fc0/6ed5] core input: `http://mapp.nudt.edu.cn/uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4' gives access `http' demux `' path `mapp.nudt.edu.cn/uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4'
D/VLC: [a20ff518/6ed5] core input source: specified demux: any
D/VLC: [a20ff518/6ed5] core input source: creating demux: access='http' demux='any' location='mapp.nudt.edu.cn/uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4' file='(null)'
D/VLC: [a20ff938/6ed5] core demux: looking for access_demux module matching "http": 6 candidates
D/VLC: [a20ff938/6ed5] core demux: no access_demux modules matched
D/VLC: [a20ff938/6ed5] core access: creating access: http://mapp.nudt.edu.cn/uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4
D/VLC: [a20ff938/6ed5] core access: looking for access module matching "http": 23 candidates
D/VLC: [a20ff938/6ed6] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6ed6] transport access: connecting to mapp.nudt.edu.cn port 80 ...
D/dc: firstVisibleItem::1:visibleItemCount:2:totalItemCount:13
I/VLC/PlaybackService: Media.Event.MetaChanged: 12
I/VLC/PlaybackService: Media.Event.MetaChanged: 12
D/redPlayer: opening
D/dc: firstVisibleItem::1:visibleItemCount:2:totalItemCount:13
D/VLC: [a20ff938/6ed5] h1conn access: outgoing request:
       GET /uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4 HTTP/1.1
       Host: mapp.nudt.edu.cn
       Accept: */*
       Accept-Language: en_US
       User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
       Range: bytes=0-
D/VLC: [a20ff938/6ed5] h1conn access: incoming response:
       HTTP/1.1 206 Partial Content
       Server: nginx/1.8.0
       Date: Fri, 03 Nov 2017 06:27:20 GMT
       Content-Type: video/mp4;charset=UTF-8
       Content-Length: 13264855
       Connection: keep-alive
       Accept-Ranges: bytes
       ETag: W/"13264855-1492499101000"
       Last-Modified: Tue, 18 Apr 2017 07:05:01 GMT
       Content-Range: bytes 0-13264854/13264855
D/VLC: [a20ff938/6ed5] core access: using access module "access"
D/VLC: [a3f377c0/6ed5] core stream: looking for stream_filter module matching "cache_block": 12 candidates
D/VLC: [a3f377c0/6ed5] cache_block stream: Using block method for AStream*
D/VLC: [a3f377c0/6ed5] cache_block stream: starting pre-buffering
D/VLC: [a3f377c0/6ed5] cache_block stream: received first data after 0 ms
D/VLC: [a3f377c0/6ed5] cache_block stream: prebuffering done 2048 bytes in 0s - 16393 KiB/s
D/VLC: [a3f377c0/6ed5] core stream: using stream_filter module "cache_block"
D/VLC: [a13eaf88/6ed5] core stream: looking for stream_filter module matching "any": 12 candidates
D/VLC: [a13eaf88/6ed5] core stream: no stream_filter modules matched
D/VLC: [a20f32a0/6ed5] core stream: looking for stream_filter module matching "record": 12 candidates
D/VLC: [a20f32a0/6ed5] core stream: using stream_filter module "record"
D/VLC: [a20ff518/6ed5] core input source: creating demux: access='http' demux='any' location='mapp.nudt.edu.cn/uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4' file='(null)'
D/VLC: [a13eaf88/6ed5] core demux: looking for demux module matching "any": 61 candidates
D/VLC: [a3f377c0/6ed5] cache_block stream: b_seek=1 th*avg=10240 skip=12921948
D/VLC: [a20ff938/6eda] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6eda] transport access: connecting to mapp.nudt.edu.cn port 80 ...
D/VLC: [a20ff938/6ed5] h1conn access: outgoing request:
       GET /uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4 HTTP/1.1
       Host: mapp.nudt.edu.cn
       Accept: */*
       Accept-Language: en_US
       User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
       If-Match: "13264855-1492499101000"
       Range: bytes=12923996-
D/VLC: [a20ff938/6ed5] H1CONN ACCESS: connection failed
D/VLC: [a3f377c0/6ed5] cache_block stream: b_seek=1 th*avg=10240 skip=12921949
D/VLC: [a20ff938/6edc] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6edc] transport access: connecting to mapp.nudt.edu.cn port 80 ...
D/VLC: [a20ff938/6ed5] h1conn access: outgoing request:
       GET /uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4 HTTP/1.1
       Host: mapp.nudt.edu.cn
       Accept: */*
       Accept-Language: en_US
       User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
       If-Match: "13264855-1492499101000"
       Range: bytes=12923997-
D/VLC: [a20ff938/6ed5] h1conn access: connection failed
D/VLC: [a3f377c0/6ed5] cache_block stream: b_seek=1 th*avg=10240 skip=12921948
D/VLC: [a20ff938/6ede] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6ede] transport access: connecting to mapp.nudt.edu.cn port 80 ...
D/VLC: [a20ff938/6ed5] h1conn access: outgoing request:
       GET /uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4 HTTP/1.1
       Host: mapp.nudt.edu.cn
       Accept: */*
       Accept-Language: en_US
       User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
       If-Match: "13264855-1492499101000"
       Range: bytes=12923996-
D/VLC: [a20ff938/6ed5] h1conn access: connection failed
D/VLC: [a3f377c0/6ed5] cache_block stream: b_seek=1 th*avg=10240 skip=12921949
D/VLC: [a20ff938/6ee0] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6ee0] transport access: connecting to mapp.nudt.edu.cn port 80 ...
D/VLC: [a20ff938/6ed5] h1conn access: outgoing request:
       GET /uploads/p/20170418/mp4/b523a7a4-dc7f-4428-b3e9-8d429ba85192.mp4 HTTP/1.1
       Host: mapp.nudt.edu.cn
       Accept: */*
       Accept-Language: en_US
       User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
       If-Match: "13264855-1492499101000"
       Range: bytes=12923997-
D/VLC: [a20ff938/6ed5] h1conn access: connection failed
D/VLC: [a3f377c0/6ed5] cache_block stream: b_seek=1 th*avg=10240 skip=12921948
D/VLC: [a20ff938/6ee2] transport access: resolving mapp.nudt.edu.cn ...
D/VLC: [a20ff938/6ee2] transport access: conne

加载中
返回顶部
顶部