Coder Social home page Coder Social logo

Comments (4)

wseemann avatar wseemann commented on July 17, 2024

Added in latest revision.

from ffmpegmediaplayer.

mingfai avatar mingfai commented on July 17, 2024

I tried with the latest prebuilt-libs.tar.gz and it doesn't throw exception anymore. But the parameters do not seem to pass into FFmpeg. My app uses a RTSP source stream that use two AVOptions as follows :

 headers.put("allowed_media_types", "2");//or "audio"
 headers.put("rtsp_transport", "http");

Vitamio pass the two parameters correctly and works fine.

Do you have any idea what else need to be done to enable FMP to support these parameters?

from ffmpegmediaplayer.

wseemann avatar wseemann commented on July 17, 2024

The method signature you asked me to implement is for HTTP headers, not FFmpeg parameters.

from ffmpegmediaplayer.

mingfai avatar mingfai commented on July 17, 2024

The platform MediaPlayer use the parameter to support "Cookie" http header afaik.

The doc describes [headers](http://developer.android.com/reference/android/media/MediaPlayer.html#setDataSource%28android.content.Context, android.net.Uri, java.util.Map<java.lang.String, java.lang.String>%29) parameter as:

the headers to be sent together with the request for the data

Media Player doesn't necessary play media that use HTTP protocol obviously. Vitamio use it creatively to solve a valid problem.

from ffmpegmediaplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.