Пример #1
0
Playback.prototype.toggleFullscreen = function(e){
  e.stopPropagation();
  if (this.video) {
    if (this.video.webkitEnterFullscreen) this.video.webkitEnterFullscreen();
    else fullscreen(this.video);
  }
};
Пример #2
0
 pointer.on('fullscreen', function() {
   var fs = fullscreen(element)
   fs.once('attain', function() {
     pointer.request()
   }).request()
 })
Пример #3
0
module.exports = function fullscreenOnce(ele) {
	var f = fullscreen(ele)
	f.on('error', console.error.bind(console, 'Could not full screen!'))
	return onetime(f.request)
}