Skip to content

Commit

Permalink
Release 1.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed May 15, 2015
1 parent 59dcb8c commit 1f3f563
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "videojs-youtube",
"description": "YouTube playback technology for Video.js",
"version": "1.2.10",
"version": "1.2.11",
"main": ["dist/vjs.youtube.js"],
"ignore": [
"examples",
Expand Down
1 change: 1 addition & 0 deletions dist/vjs.youtube.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "videojs-youtube",
"description": "YouTube playback technology for Video.js",
"version": "1.2.10",
"version": "1.2.11",
"author": "Benoit Tremblay",
"main": "dist/vjs.youtube.js",
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion src/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
};

videojs.Youtube.prototype.updateIframeSrc = function() {
var fullscreenControls = (
typeof this.player_.options()['ytFullScreenControls'] !== 'undefined' &&
!this.player_.options()['ytFullScreenControls']
) ? 0 : 1;

var params = {
enablejsapi: 1,
/*jshint -W106 */
Expand All @@ -218,7 +223,7 @@
disablekb: 1,
wmode: 'transparent',
controls: (this.player_.options()['ytcontrols']) ? 1 : 0,
fs: (typeof this.player_.options()['ytFullScreenControls'] !== 'undefined' && !this.player_.options()['ytFullScreenControls']) ? 0 : 1,
fs: fullscreenControls,
html5: (this.player_.options()['forceHTML5']) ? 1 : null,
playsinline: (this.player_.options()['playsInline']) ? 1 : 0,
showinfo: 0,
Expand Down

0 comments on commit 1f3f563

Please sign in to comment.