Fix basic tutorial WRT support testing.

Issue #399
Issue #402

Change-Id: I930377252a5e7fbce84db76c40a6f3607e3f24a5
This commit is contained in:
Jacob Trimble
2016-06-06 09:23:07 -07:00
parent 27ea9c27ad
commit 25dfa41b7a
+7 -11
View File
@@ -39,17 +39,13 @@ function initApp() {
shaka.polyfill.installAll();
// Check to see if the browser supports the basic APIs Shaka needs.
// This is an asynchronous check.
shaka.Player.support().then(function(support) {
// This executes when the asynchronous check is complete.
if (support.supported) {
// Everything looks good!
initPlayer();
} else {
// This browser does not have the minimum set of APIs we need.
console.error('Browser not supported!');
}
});
if (shaka.Player.isBrowserSupported()) {
// Everything looks good!
initPlayer();
} else {
// This browser does not have the minimum set of APIs we need.
console.error('Browser not supported!');
}
}
function initPlayer() {