![]() ![]() languagesĬustomize which languages are available in a player. This sets the initial language for a player, but it can always be changed. Type: string, Default: browser default or 'en'Ī language code matching one of the available languages in the player. A value of 0 indicates that there is no inactivityTimeout and the user will never be considered inactive. The inactivityTimeout determines how many milliseconds of inactivity is required before declaring the user inactive. Video.js indicates that the user is interacting with the player by way of the "vjs-user-active" and "vjs-user-inactive" classes and the "useractive" event. If provided, and the element does not already have an id, this value is used as the id of the player element. See The Fullscreen API Spec for more details. At some point, it will be augmented with element and handler for more functionality. Var player = videojs ( 'my-video', įullscreen.options can be set to pass in specific fullscreen options. a string value of 'any': will call play() on loadstart and if the promise is rejected it will mute the video element then call play().a string value of 'play': will call play() on loadstart, similar to browsers autoplay.a string value of 'muted': will mute the video element and then manually call play() on loadstart.a boolean value of true: the same as having attribute on the video element, will use browsers autoplay.a boolean value of false: the same as having no attribute on the video element, won't autoplay.Instead of using the autoplay attribute you should pass an autoplay option to the videojs function. NOTE3: You cannot pass a string value in the attribute, you must pass it in the videojs options NOTE2: If there is an attribute on the media element the option will be ignored. NOTE: At this point, the autoplay attribute and option are NOT a guarantee that your video will autoplay. Typically, defaults are not listed as this is left to browser vendors. Standard Element OptionsĮach of these options is also available as a standard element attribute so, they can be defined in all three manners outlined in the setup guide. To learn about passing options to Video.js, see the setup guide. ![]() ![]() Note: This document is only a reference for available options. More info on autoplay support and changes:. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |