Skip to content

Commit

Permalink
various fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pupunzi committed Oct 10, 2018
1 parent c532d16 commit cda15c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/demo_ext_methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ <h2 style="color:white">Available controls methods</h2>
</a>

<!--7SnmCUwOsts-->
<a id="bgndVideo" class="player" data-property="{videoURL:'r1xohS2u69E',containment:'body', showControls:true, autoPlay:true, loop:true, vol:50, mute:false, startAt:40, stopAt:150, opacity:1, addRaster:true, quality:'hd720'}">My video</a>
<a id="bgndVideo" class="player" data-property="{videoURL:'r1xohS2u69E',containment:'body', showControls:true, autoPlay:true, loop:true, vol:50, mute:true, startAt:40, stopAt:150, opacity:1, addRaster:true, quality:'hd720'}">My video</a>
<!--BsekcY04xvQ-->

</div>
Expand Down
9 changes: 2 additions & 7 deletions src/jquery.mb.YTPlayer.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function iOSversion() {
showControls: true,

/**
showControls (string)
anchor (string)
center,top,bottom,left,right combined in pair
*/
anchor: "center,center",
Expand Down Expand Up @@ -408,12 +408,6 @@ function iOSversion() {
if (jQuery.mbBrowser.msie && jQuery.mbBrowser.version < 9)
YTPlayer.opt.opacity = 1;

/**
Manage Fade Time
*/
if (jQuery.mbBrowser.os.name == "mac" && jQuery.mbBrowser.safari )
YTPlayer.opt.fadeOnStartTime = YTPlayer.opt.fadeOnStartTime;

YTPlayer.opt.containment = YTPlayer.opt.containment === "self" ? $YTPlayer : jQuery(YTPlayer.opt.containment);
YTPlayer.isRetina = (window.retina || window.devicePixelRatio > 1);

Expand Down Expand Up @@ -2363,6 +2357,7 @@ function iOSversion() {
ga('send', 'event', 'YTPlayer', 'play', (YTPlayer.hasData ? YTPlayer.videoData.title : YTPlayer.videoID.toString()));

if (YTPlayer.opt.autoPlay) {

var YTPStart = jQuery.Event("YTPStart");
YTPStart.time = YTPlayer.currentTime;
jQuery(YTPlayer).trigger(YTPStart);
Expand Down

0 comments on commit cda15c9

Please sign in to comment.