Skip to content

MediaExtractor doesnt work for an HTTP url  #9

Description

@rahulrj

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions