Video.js - Theater Mode


Theater mode switch for Video js player

Nuevo plugin v.3 features new Theater Mode button to show in controlbar optionally. Button action is synchronized with videojs mode event fired on click. Mode event has 2 parameters: 'small' and 'large'. Depending on parameter you can order to maximize videojs parent element to desired size and back.
Check player code setup how to enable Mode button and what javascript code can be on mode event fired.

var player = videojs('example_video_1');
	logo: '//',
	logoposition: 'RT',
	logourl: '//',
	theaterButton: true
player.on('mode',function(event,mode) {
	var width = "80%";
	if(mode=='large') width="100%";