Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Rebuild fixing Safari audio bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie0 committed Dec 24, 2017
1 parent 9db1e84 commit 82fc2cc
Show file tree
Hide file tree
Showing 12 changed files with 210 additions and 732 deletions.
43 changes: 13 additions & 30 deletions platforms/android/assets/www/app.bundle.js

Large diffs are not rendered by default.

53 changes: 12 additions & 41 deletions platforms/android/assets/www/polyfills.bundle.js

Large diffs are not rendered by default.

214 changes: 43 additions & 171 deletions platforms/android/assets/www/vendor.bundle.js

Large diffs are not rendered by default.

43 changes: 13 additions & 30 deletions platforms/browser/www/app.bundle.js

Large diffs are not rendered by default.

53 changes: 12 additions & 41 deletions platforms/browser/www/polyfills.bundle.js

Large diffs are not rendered by default.

214 changes: 43 additions & 171 deletions platforms/browser/www/vendor.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion platforms/ios/ios.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"CFBundleLocalizations": [
{
"xml": "<array><string>en</string></array>",
"count": 15
"count": 18
}
]
}
Expand Down
43 changes: 13 additions & 30 deletions platforms/ios/www/app.bundle.js

Large diffs are not rendered by default.

53 changes: 12 additions & 41 deletions platforms/ios/www/polyfills.bundle.js

Large diffs are not rendered by default.

214 changes: 43 additions & 171 deletions platforms/ios/www/vendor.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/app/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ export module Radio {

// Firefox doesn't support HE-AAC on Mac for some reason. Bug 1387127
// It plays it as a AAC-LC which sounds worse than DAB.
// Safari has a similar effect at the start of every chunk. So fall back to Icecast!
let navi = navigator.userAgent.toLowerCase();
if (navi.indexOf('firefox') > -1 && navi.indexOf('macintosh') > -1) {
throw new Error('HLS with audio does not work on Firefox on macOS');
if ((navi.indexOf('firefox') > -1 && navi.indexOf('macintosh') > -1) ||
(navi.indexOf('safari') > -1 && navi.indexOf('chrome') == -1)) {
throw new Error('HLS with audio does not work on Firefox on macOS, or Safari.');
}

}
Expand Down Expand Up @@ -335,9 +337,7 @@ export module Radio {
}

playIfWaiting () {
console.log('erm')
if (this.waiting) {
console.log('about to play')
this.play();
}
}
Expand Down
2 changes: 1 addition & 1 deletion www/app.bundle.js

Large diffs are not rendered by default.

0 comments on commit 82fc2cc

Please sign in to comment.