mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Updated options docs.
Full URL to flash SWF.
This commit is contained in:
parent
d80e3e328a
commit
a83433f655
@ -8,3 +8,23 @@ body_class: docs subpage
|
||||
|
||||
Options
|
||||
=======
|
||||
|
||||
The Video.js emebed code is simply an HTML5 video tag with the video.js classes. So for many of the options you can use the standard tag attributes to set video.js options.
|
||||
|
||||
{% highlight html %}
|
||||
<video controls autoplay preload="auto" ...>
|
||||
{% endhighlight %}
|
||||
|
||||
Alternatively, you can use the data-setup attribute to provide options in the JSON format. This is also how you would set options that aren't standard to the video tag.
|
||||
|
||||
{% highlight html %}
|
||||
<video data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'...>
|
||||
{% endhighlight %}
|
||||
|
||||
Finally, if you're not using the data-setup attribute to trigger the player setup, you can pass in an object with the player options as the second argument in the setup function.
|
||||
|
||||
{% highlight javascript %}
|
||||
_V_("myVideoID", { "controls": true, "autoplay": false, "preload": "auto" });
|
||||
{% endhighlight %}
|
||||
|
||||
(More options documentation coming soon.)
|
@ -50,7 +50,7 @@ VideoJS.options = {
|
||||
|
||||
html5: {},
|
||||
flash: {
|
||||
swf: "flash/video-js.swf"
|
||||
swf: "http://vjs.zencdn.net/c/video-js.swf"
|
||||
// swf: "https://s3.amazonaws.com/video-js/3.0b/video-js.swf"
|
||||
// swf: "http://video-js.zencoder.com/3.0b/video-js.swf"
|
||||
// swf: "http://video-js.com/test/video-js.swf"
|
||||
|
Loading…
Reference in New Issue
Block a user