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

Provide a method for Registered Flowplayer #22

Closed
yahreen opened this issue Nov 2, 2011 · 5 comments
Closed

Provide a method for Registered Flowplayer #22

yahreen opened this issue Nov 2, 2011 · 5 comments

Comments

@yahreen
Copy link

yahreen commented Nov 2, 2011

Hi, is there a way to provide a method where we can use a licensed version of Flowplayer so that the watermark is not visible on the Flash fallback?

@etianen
Copy link
Owner

etianen commented Nov 3, 2011

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.

@etianen etianen closed this as completed Nov 3, 2011
@yahreen
Copy link
Author

yahreen commented Nov 13, 2011

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

autoPlay: false,
autoBuffering: true;

@etianen
Copy link
Owner

etianen commented Nov 14, 2011

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

@yahreen
Copy link
Author

yahreen commented Nov 14, 2011

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?

@etianen
Copy link
Owner

etianen commented Nov 15, 2011

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;
}

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

2 participants