Skip to content

Commit

Permalink
Release v3.0.13 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
pupunzi committed Apr 10, 2017
1 parent 9f74b18 commit 9a077a5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 26 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.mb.ytplayer",
"version": "3.0.12",
"version": "3.0.13",
"homepage": "http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-ytplayer",
"authors": [
"pupunzi <[email protected]>"
Expand All @@ -22,5 +22,5 @@
"test",
"tests"
],
"buildnum": "6166"
"buildnum": "6169"
}
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<meta charset="UTF-8">
<title>youtube Chromeless Player - mb.YTPlayer</title>
<link href='http://fonts.googleapis.com/css?family=Lekton|Lobster' rel='stylesheet' type='text/css'>
<link href="css/jquery.mb.YTPlayer.min.css?_bn=6166" media="all" rel="stylesheet" type="text/css">
<link href="css/jquery.mb.YTPlayer.min.css?_bn=6169" media="all" rel="stylesheet" type="text/css">
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script src="jquery.mb.YTPlayer.js?_bn=6166"></script>
<script src="jquery.mb.YTPlayer.js?_bn=6169"></script>
<script src="../examples/assets/apikey.js"></script>
<style>
*:focus {
Expand Down
14 changes: 4 additions & 10 deletions dist/jquery.mb.YTPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ var getYTPVideoID = function( url ) {

jQuery.mbYTPlayer = {
name: "jquery.mb.YTPlayer",
version: "3.0.12",
build: "6166",
version: "3.0.13",
build: "6169",
author: "Matteo Bicocchi (pupunzi)",
apiKey: "",
defaults: {
Expand All @@ -80,7 +80,7 @@ var getYTPVideoID = function( url ) {
mobileFallbackImage: null,
gaTrack: true,
optimizeDisplay: true,
remember_last_time: false,
remember_last_time: true,
anchor: "center,center", // top,bottom,left,right combined in pair
onReady: function( player ) {},
onError: function( player, err ) {}
Expand Down Expand Up @@ -192,13 +192,7 @@ var getYTPVideoID = function( url ) {

var start_from_last = parseFloat( jQuery.mbCookie.get( "YTPlayer_" + YTPlayer.videoID ) );

/*
console.debug( "LOAD" );
console.debug( "YTPlayer.videoID:: ", YTPlayer.videoID );
console.debug( "coockie:: ", jQuery.mbCookie.get( "YTPlayer_" + YTPlayer.videoID ) );
*/

if( start_from_last )
if( YTPlayer.opt.remember_last_time && start_from_last )
YTPlayer.opt.startAt = start_from_last;

var playerVars = {
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.mb.YTPlayer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"player",
"custom"
],
"version": "3.0.12",
"version": "3.0.13",
"author": "Pupunzi <[email protected]> (Matteo Bicocchi)",
"maintainers": [
"Pupunzi <[email protected]> (Matteo Bicocchi)"
Expand Down Expand Up @@ -50,5 +50,5 @@
"directories": {
"example": "examples"
},
"buildnum": "6166"
"buildnum": "6169"
}
10 changes: 2 additions & 8 deletions src/jquery.mb.YTPlayer.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var getYTPVideoID = function( url ) {
mobileFallbackImage: null,
gaTrack: true,
optimizeDisplay: true,
remember_last_time: false,
remember_last_time: true,
anchor: "center,center", // top,bottom,left,right combined in pair
onReady: function( player ) {},
onError: function( player, err ) {}
Expand Down Expand Up @@ -192,13 +192,7 @@ var getYTPVideoID = function( url ) {

var start_from_last = parseFloat( jQuery.mbCookie.get( "YTPlayer_" + YTPlayer.videoID ) );

/*
console.debug( "LOAD" );
console.debug( "YTPlayer.videoID:: ", YTPlayer.videoID );
console.debug( "coockie:: ", jQuery.mbCookie.get( "YTPlayer_" + YTPlayer.videoID ) );
*/

if( start_from_last )
if( YTPlayer.opt.remember_last_time && start_from_last )
YTPlayer.opt.startAt = start_from_last;

var playerVars = {
Expand Down

0 comments on commit 9a077a5

Please sign in to comment.