mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
Fix basic tutorial WRT support testing.
Issue #399 Issue #402 Change-Id: I930377252a5e7fbce84db76c40a6f3607e3f24a5
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user