Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't play video on Api 17 and below #124

Open
BuilovAlexey opened this issue Mar 13, 2018 · 0 comments
Open

Don't play video on Api 17 and below #124

BuilovAlexey opened this issue Mar 13, 2018 · 0 comments

Comments

@BuilovAlexey
Copy link

BuilovAlexey commented Mar 13, 2018

Hello.

Player work fine on api 18 and high (audio and video, support large set of formats).
But on api 17 and low (i test on api 16 and 17, emulators and real devices) player don't show video (audio work fine).
But vlc-android-sdk project in "build.gradle" file have line:

minSdkVersion 9

And i hoped that library will work from Android 2.3 and high.

In my project I use version 2.1.12

compile 'de.mrmaffen:libvlc-android:2.1.12@aar'

logcat:

D/VLC: connmgr stream: outgoing request:
___________GET /....../resources/mp4 HTTP/1.1
___________Host: ........:8081
___________Accept: /
___________Accept-Language: en_US
___________User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
___________Range: bytes=0-
D/memalloc: ion: Unmapping buffer base:0x5e239000 size:1781760
D/memalloc: ion: Unmapping buffer base:0x5e3ec000 size:4096
D/memalloc: ion: Mapped buffer base:0x5e239000 size:696320 offset:0 fd:130
D/memalloc: ion: Mapped buffer base:0x5c354000 size:4096 offset:0 fd:132
D/memalloc: ion: Mapped buffer base:0x5e2e3000 size:696320 offset:0 fd:134
D/memalloc: ion: Mapped buffer base:0x5c357000 size:4096 offset:0 fd:136
D/memalloc: ion: Mapped buffer base:0x5e4f6000 size:696320 offset:0 fd:138
D/memalloc: ion: Mapped buffer base:0x5c35d000 size:4096 offset:0 fd:140
D/memalloc: ion: Mapped buffer base:0x5e5a0000 size:696320 offset:0 fd:142
D/memalloc: ion: Mapped buffer base:0x5c35e000 size:4096 offset:0 fd:144
D/VLC: [5e4ee280/261c] connmgr stream: incoming response:
___________HTTP/1.1 206 Partial Content
___________Server: nginx/1.12.1
___________Date: Tue, 13 Mar 2018 10:26:50 GMT
___________Content-Type: video/mp4
___________Content-Length: 9639227
___________Connection: keep-alive
___________Last-Modified: Tue, 05 Dec 2017 07:45:57 GMT
___________Set-Cookie: JSESSIONID=A3DE9D9636FD8CC1B9D93739CF348BA6; Path=/; HttpOnly
___________ETag: "5a264eb5-93153b"
___________Cache-Control: max-age=2629000
___________expires: 1d
___________Access-Control-Allow-Origin: *
___________Content-Range: bytes 0-9639226/9639227
D/VLC: core stream: using access module "access"
D/VLC: core stream: looking for stream_filter module matching "prefetch,cache_block": 25 candidates
D/VLC: prefetch stream: using 9639227 bytes buffer, 16384 bytes read
D/VLC: core stream: using stream_filter module "prefetch"
D/VLC: core stream: looking for stream_filter module matching "any": 25 candidates
D/VLC: lua stream: Trying Lua scripts in /data/data/ /app_vlc/.share/lua/playlist
D/VLC: lua stream: Trying Lua scripts in /system/usr/share/lua/playlist
D/VLC: core stream: no stream_filter modules matched
D/VLC: core stream_directory: looking for stream_directory module matching "any": 1 candidates
D/VLC: core stream_directory: no stream_directory modules matched
D/VLC: core input source: attachment of directory-extractor failed for http://.........:8081/........../resources/mp4
D/VLC: core stream: looking for stream_filter module matching "record": 25 candidates
D/VLC: core stream: using stream_filter module "record"
D/VLC: core input source: creating demux: access='http' demux='any' location='.........:8081/........./resources/mp4' file='(null)'
D/VLC: core demux: looking for demux module matching "any": 45 candidates
W/VLC: mp4 stream: unknown box type cTIM (incompletely loaded)
W/VLC: mp4 stream: unknown box type cTSC (incompletely loaded)
W/VLC: mp4 stream: unknown box type cTSZ (incompletely loaded)
W/VLC: mp4 stream: Unknown uuid type box
D/VLC: mp4 stream: dumping root Box "root"
D/VLC: [5e4f5da8/261c] mp4 stream: | + ftyp size 24 offset 0
D/VLC: [5e4f5da8/261c] mp4 stream: | + moov size 7148 offset 24
D/VLC: [5e4f5da8/261c] mp4 stream: | | + mvhd size 108 offset 32
D/VLC: [5e4f5da8/261c] mp4 stream: | | + trak size 4067 offset 140
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + tkhd size 92 offset 148
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + edts size 36 offset 240
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + elst size 28 offset 248
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + mdia size 3931 offset 276
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + mdhd size 32 offset 284
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + hdlr size 64 offset 316
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + minf size 3827 offset 380
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + vmhd size 20 offset 388
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + hdlr size 51 offset 408
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + dinf size 36 offset 459
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + dref size 28 offset 467
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | + url size 12 offset 483
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + stbl size 3712 offset 495
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsd size 177 offset 503
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | + avc1 size 161 offset 519
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | | + avcC size 75 offset 605
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stts size 24 offset 680
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stss size 44 offset 704
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + sdtp size 323 offset 748
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsc size 40 offset 1071
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsz size 1264 offset 1111
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stco size 144 offset 2375
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + ctts size 1688 offset 2519
D/VLC: [5e4f5da8/261c] mp4 stream: | | + trak size 2907 offset 4207
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + tkhd size 92 offset 4215
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + edts size 36 offset 4307
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + elst size 28 offset 4315
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + mdia size 2771 offset 4343
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + mdhd size 32 offset 4351
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + hdlr size 68 offset 4383
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | + minf size 2663 offset 4451
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + smhd size 16 offset 4459
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + hdlr size 51 offset 4475
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + dinf size 36 offset 4526
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + dref size 28 offset 4534
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | + url size 12 offset 4550
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | + stbl size 2552 offset 4562
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsd size 100 offset 4570
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | + mp4a size 84 offset 4586
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | | | + esds size 48 offset 4622
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stts size 24 offset 4670
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsc size 304 offset 4694
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stsz size 1972 offset 4998
D/VLC: [5e4f5da8/261c] mp4 stream: | | | | | | + stco size 144 offset 6970
D/VLC: [5e4f5da8/261c] mp4 stream: | | + udta size 58 offset 7114
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + cTIM size 23 offset 7122 (????)
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + cTSC size 14 offset 7145 (????)
D/VLC: [5e4f5da8/261c] mp4 stream: | | | + cTSZ size 13 offset 7159 (????)
D/VLC: [5e4f5da8/261c] mp4 stream: | + uuid size 4502 offset 7172
D/VLC: [5e4f5da8/261c] mp4 stream: | + free size 5688 offset 11674
D/VLC: [5e4f5da8/261c] mp4 stream: | + mdat size 9621865 offset 17362
D/VLC: [5e4f5e78/261c] mp4 demux: unrecognized major media specification (mp42).
D/VLC: [5e4f5e78/261c] mp4 demux: found 2 tracks
W/VLC: [5e4f5e78/261c] mp4 demux: elst box found
D/VLC: [5e4f5e78/261c] mp4 demux: - [0] duration=10366ms media time=33ms) rate=1.0
D/VLC: [5e4f5e78/261c] mp4 demux: track[Id 0x1] read 32 chunk
W/VLC: [5e4f5e78/261c] mp4 demux: STTS table of 1 entries
W/VLC: [5e4f5e78/261c] mp4 demux: CTTS table of 209 entries
D/VLC: [5e4f5e78/261c] mp4 demux: track[Id 0x1] read 311 samples length:10s
D/VLC: [5e106970/261c] core input: selecting program id=0
D/VLC: [5e4f5e78/261c] mp4 demux: adding track[Id 0x1] video (enable) language eng
W/VLC: [5e4f5e78/261c] mp4 demux: elst box found
D/VLC: [5e4f5e78/261c] mp4 demux: - [0] duration=10366ms media time=0ms) rate=1.0
D/VLC: [5e4f5e78/261c] mp4 demux: track[Id 0x2] read 32 chunk
W/VLC: [5e4f5e78/261c] mp4 demux: STTS table of 1 entries
D/VLC: [5e4f5e78/261c] mp4 demux: track[Id 0x2] read 488 samples length:10s
D/VLC: [5e4f5e78/261c] mp4 demux: adding track[Id 0x2] audio (enable) language eng
D/VLC: [5e4f5e78/261c] core demux: using demux module "mp4"
D/VLC: core decoder: looking for video decoder module matching "mediacodec_jni,all": 11 candidates
W/VLC: mediacodec decoder: Unable to find the member isFeatureSupported in android/media/MediaCodecInfo$CodecCapabilities
W/VLC: mediacodec decoder: Unable to find the member getInputBuffer in android/media/MediaCodec
W/VLC: mediacodec decoder: Unable to find the member getOutputBuffer in android/media/MediaCodec
D/VLC: connmgr stream: resolving ......ru ...
D/libc: [NET] getaddrinfo hn 17, servname 8081, ai_family 0+
D/libc: [NET] ht 0x64656d6f342e6e
D/libc: [NET] android_getaddrinfo_proxy+
D/libc: [NET]android_getaddrinfo_proxy+
W/OMXCodec: Failed to set standard component role 'video_decoder.avc'.
D/libc: [NET]android_getaddrinfo_proxy-,1
D/libc: [NET] getaddrinfo-exit 1
D/VLC: connmgr stream: outgoing request:
___________GET /...../resources/mp4 HTTP/1.1
___________Host: ......:8081
___________Accept: /
___________Accept-Language: en_US
___________User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git
___________If-Match: "5a264eb5-93153b"
___________Range: bytes=9639226-
D/VLC: connmgr stream: incoming response:
___________HTTP/1.1 206 Partial Content
___________Server: nginx/1.12.1
___________Date: Tue, 13 Mar 2018 10:26:51 GMT
___________Content-Type: video/mp4
___________Content-Length: 1
___________Connection: keep-alive
___________Last-Modified: Tue, 05 Dec 2017 07:45:57 GMT
___________Set-Cookie: JSESSIONID=F53689E582614BFD0E3D54D18A5631DC;Path=/; HttpOnly
___________ ETag: "5a264eb5-93153b"
___________Cache-Control: max-age=2629000
___________expires: 1d
___________Access-Control-Allow-Origin: *
___________Content-Range: bytes 9639226-9639226/9639227
D/VLC: prefetch stream: end of stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant