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 13, 2017
1 parent 147ae67 commit 35890ac
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 @@ -146,8 +146,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 @@ -256,7 +256,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 @@ -486,7 +486,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 35890ac

Please sign in to comment.