Giter Club home page Giter Club logo

Comments (5)

etianen avatar etianen commented on July 20, 2024

Yes indeed! There's a pretty powerful set of customisations available to html5media that are currently undocumented. The settings you need to use are:

html5media.flowplayerSwf = "/path/to/flowplayer.swf"
html5media.flowplayerControlsSwf = "/path/to/flowplayer.controls.swf"

Just create a separate <script> tag underneath the html5media script, add these settings, and you're good to go.

from html5media.

yahreen avatar yahreen commented on July 20, 2024

Will this also extend to setting flowplayer variables such as autobuffer?

autoPlay: false,
autoBuffering: true;

from html5media.

etianen avatar etianen commented on July 20, 2024

Yes, however, you can already specify those using the preload and autoplay attributes on the video tag itself.

from html5media.

yahreen avatar yahreen commented on July 20, 2024

Hi,

I have preload set in the video tag, that works great. But setting the autoplay attribute on the video tag does not work for FlowPlayer. I verified using Charles Web Proxy that FlowPlayer does not start downloading the video file until the user presses "Play".

How could one go about setting autoBuffering for FlowPlayer?

from html5media.

etianen avatar etianen commented on July 20, 2024

Using the following code:

<video src="foo.mp4" autoplay preload></video>

...will result in autoplay and autobuffering working in both the native player and flowplayer. If you're experiencing differently then that's a bug.

In any case, you can completely control the flowplayer configuration with the following callback:

html5media.configureFlowplayer = function(tag, element, config) {
    return config;
}

from html5media.

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.