Permalink
Browse files

Remove console.logs from samsungtv video player

  • Loading branch information...
1 parent 8d476e8 commit 96e95186d7f7ba8d3ddf63d5708e0a8e25669975 @tbassetto tbassetto committed Nov 12, 2012
Showing with 17 additions and 17 deletions.
  1. +17 −17 lib/adapters/samsungtv/ui/videoplayer.js
@@ -47,7 +47,7 @@ function(VideoPlayer, $, _) {
* @param [Object] a hash of options
*/
initialize:function(options) {
- console.log('videoplayer: initialize');
+ // console.log('videoplayer: initialize');
VideoPlayer.prototype.initialize.call(this, options);
@@ -76,7 +76,7 @@ function(VideoPlayer, $, _) {
* @param [Function] a callback ex: function(err, html) {...}
*/
generate: function(cb) {
- console.log('videoplayer: generate');
+ // console.log('videoplayer: generate');
var html = template(this.context);
@@ -92,7 +92,7 @@ function(VideoPlayer, $, _) {
}
cb && cb(null, html);
- console.log('videoplayer: generated');
+ // console.log('videoplayer: generated');
},
/**
@@ -101,7 +101,7 @@ function(VideoPlayer, $, _) {
* @function
*/
enhance: function() {
- console.log('videoplayer: enhance');
+ // console.log('videoplayer: enhance');
if(this.isWebkit()) {
this.object = this.$('object').get(0);
@@ -157,7 +157,7 @@ function(VideoPlayer, $, _) {
this.object.SetScreenRect(-1, 0, 0, 0);
}*/
- console.log('Removing video');
+ // console.log('Removing video');
if(this.object) {
this.object.OnCurrentPlayTime = null;
@@ -194,8 +194,8 @@ function(VideoPlayer, $, _) {
//var screenHeight = parseInt(windowPlugin.GetScreenRect().split('/')[3], 10);
//var windowPlugin = document.getElementById('window-plugin');
- console.log('videoplayer: resize');
- console.log('videoplayer: window.innerHeight: ' + window.innerHeight);
+ // console.log('videoplayer: resize');
+ // console.log('videoplayer: window.innerHeight: ' + window.innerHeight);
var getOffset = function(el) {
var _x = 0;
@@ -261,7 +261,7 @@ function(VideoPlayer, $, _) {
}
try {
- console.log(offset.left, offset.top, width, height);
+ // console.log(offset.left, offset.top, width, height);
this.object && this.object.SetDisplayArea(
Math.round(scale * offset.left),
Math.round(scale * offset.top),
@@ -494,8 +494,8 @@ function(VideoPlayer, $, _) {
* @private
*/
onStreamInfoReady: function() {
- console.log('stream info ready');
- console.log(this.object.GetDuration());
+ // console.log('stream info ready');
+ // console.log(this.object.GetDuration());
this.length = this.object.GetDuration();
},
@@ -513,7 +513,7 @@ function(VideoPlayer, $, _) {
!this.hasPlayed && this.$image && this.$image.hide();
- console.log('onBufferingStart');
+ // console.log('onBufferingStart');
},
/**
@@ -540,7 +540,7 @@ function(VideoPlayer, $, _) {
this.object && this.object.Pause();
}
- console.log('onBufferingProgress');
+ // console.log('onBufferingProgress');
},
/**
@@ -561,7 +561,7 @@ function(VideoPlayer, $, _) {
this.trigger('finished');
this.trigger('stateChange', 'finished');
- console.log('onRenderingComplete');
+ // console.log('onRenderingComplete');
/*this.$image && this.$image.show();
@@ -586,7 +586,7 @@ function(VideoPlayer, $, _) {
this.$image && this.$image.show();
- console.log('onRenderError ' + err);
+ // console.log('onRenderError ' + err);
},
/**
@@ -599,7 +599,7 @@ function(VideoPlayer, $, _) {
this.$image && this.$image.show();
- console.log('onStreamNotFound');
+ // console.log('onStreamNotFound');
},
/**
@@ -612,7 +612,7 @@ function(VideoPlayer, $, _) {
this.$image && this.$image.show();
- console.log('onConnectionFailed ' + err);
+ // console.log('onConnectionFailed ' + err);
},
/**
@@ -625,7 +625,7 @@ function(VideoPlayer, $, _) {
this.$image && this.$image.show();
- console.log('onNetworkDisconnected');
+ // console.log('onNetworkDisconnected');
},
isWebkit: function() {

0 comments on commit 96e9518

Please sign in to comment.