Skip to content

Commit

Permalink
Rename demo "Autoplay" to "LoadOnRefresh"
Browse files Browse the repository at this point in the history
This is to disambiguate with video.autoplay and to more clearly state
what this checkbox does.

Closes #1114

Change-Id: I23138957bda1fe6159b42bd4ae3327a426d379f9
  • Loading branch information
joeyparrish committed Nov 10, 2017
1 parent af73139 commit 7e7a58d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions demo/configuration_section.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ shakaDemo.setupConfiguration_ = function() {
'change', shakaDemo.onAdaptationChange_);
document.getElementById('logLevelList').addEventListener(
'change', shakaDemo.onLogLevelChange_);
document.getElementById('enableAutoplay').addEventListener(
'change', shakaDemo.onAutoplayChange_);
document.getElementById('enableLoadOnRefresh').addEventListener(
'change', shakaDemo.onLoadOnRefreshChange_);
document.getElementById('drmSettingsVideoRobustness').addEventListener(
'input', shakaDemo.onDrmSettingsChange_);
document.getElementById('drmSettingsAudioRobustness').addEventListener(
Expand All @@ -68,7 +68,7 @@ shakaDemo.setupConfiguration_ = function() {


/** @private */
shakaDemo.onAutoplayChange_ = function() {
shakaDemo.onLoadOnRefreshChange_ = function() {
// Change the hash, to mirror this.
shakaDemo.hashShouldChange_();
};
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ <h1>Shaka Player <span id="version"></span></h1>
<input id="enableAdaptation" type="checkbox" checked>
</div>
<div>
<label for="enableAutoplay">Autoplay:</label>
<input id="enableAutoplay" type="checkbox">
<label for="enableLoadOnRefresh">Auto-load on page refresh:</label>
<input id="enableLoadOnRefresh" type="checkbox">
</div>
<div>
<label for="logToScreen">Log to the screen:</label>
Expand Down
4 changes: 2 additions & 2 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ shakaDemo.preBrowserCheckParams_ = function(params) {
document.body.className = 'noinput';
}
if ('play' in params) {
document.getElementById('enableAutoplay').checked = true;
document.getElementById('enableLoadOnRefresh').checked = true;
}
// shaka.log is not set if logging isn't enabled.
// I.E. if using the compiled version of shaka.
Expand Down Expand Up @@ -512,7 +512,7 @@ shakaDemo.hashShouldChange_ = function() {
params.push(logLevel);
}
}
if (document.getElementById('enableAutoplay').checked) {
if (document.getElementById('enableLoadOnRefresh').checked) {
params.push('play');
}

Expand Down

0 comments on commit 7e7a58d

Please sign in to comment.