Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
don't show button when no cast available
Browse files Browse the repository at this point in the history
  • Loading branch information
benjipott committed Apr 4, 2016
1 parent 8fc039b commit b0c794f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/videojs-chromecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var ChromeCastButton = (function (_Button) {
_videoJs2['default'].log('Cast APIs not available. Max reconnect attempt');
return;
}
this.show();

_videoJs2['default'].log('Cast APIs are available');
appId = this.options_.appId || chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID;
sessionRequest = new chrome.cast.SessionRequest(appId);
Expand Down
2 changes: 1 addition & 1 deletion dist/videojs-chromecast.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion es5/js/component/control-bar/chromecast-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var ChromeCastButton = (function (_Button) {
_videoJs2['default'].log('Cast APIs not available. Max reconnect attempt');
return;
}
this.show();

_videoJs2['default'].log('Cast APIs are available');
appId = this.options_.appId || chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID;
sessionRequest = new chrome.cast.SessionRequest(appId);
Expand Down
2 changes: 1 addition & 1 deletion src/js/component/control-bar/chromecast-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ChromeCastButton extends Button {
videojs.log('Cast APIs not available. Max reconnect attempt');
return;
}
this.show();

videojs.log('Cast APIs are available');
appId = this.options_.appId || chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID;
sessionRequest = new chrome.cast.SessionRequest(appId);
Expand Down

0 comments on commit b0c794f

Please sign in to comment.