The code works fine for a video loaded from sd-card, but it fails with the following error when i try to load a video from a URL. One of the URLs i tried is this
http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
I am running the code on Android M.
14646-14765/io.vec.demo.mediacodec I/MediaHTTPConnection: proxyName: 0.0.0.0 0
E/NuCachedSource2: source returned error -1, 0 retries left
14646-14752/io.vec.demo.mediacodec E/QComExtractorFactory: Sniff FAIL :: coundn't pull enough data for sniffing
14646-14752/io.vec.demo.mediacodec W/System.err: java.io.IOException: Failed to instantiate extractor.
14646-14752/io.vec.demo.mediacodec W/System.err: at android.media.MediaExtractor.nativeSetDataSource(Native Method)
14646-14752/io.vec.demo.mediacodec W/System.err: at android.media.MediaExtractor.setDataSource(MediaExtractor.java:182)
14646-14752/io.vec.demo.mediacodec W/System.err: at io.vec.demo.mediacodec.DecodeActivity$PlayerThread.run(DecodeActivity.java:65)
The code works fine for a video loaded from sd-card, but it fails with the following error when i try to load a video from a URL. One of the URLs i tried is this
http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
I am running the code on Android M.