forked from video-dev/hls.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/audio-track-fallback
- Loading branch information
Showing
15 changed files
with
390 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- Demo: Log all the errors | ||
|
||
- Buffering-progress | ||
|
||
- Fallback to right group ID: https://apiproxy.akamaized.net/hlsjs/zdf/check_primfail5.m3u8 | ||
|
||
- Better internal Tracks API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const package = require('../package.json'); | ||
|
||
try { | ||
if (versionPublished()) { | ||
console.log('published'); | ||
} else { | ||
console.log('not published'); | ||
} | ||
} catch(e) { | ||
console.error(e); | ||
process.exit(1); | ||
} | ||
process.exit(0); | ||
|
||
function versionPublished() { | ||
// npm view returns empty string if package doesn't exist | ||
return !!require('child_process').execSync('npm view ' + package.name + '@' + package.version + ' --json').toString().trim(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const fs = require('fs'); | ||
const package = require('../package.json'); | ||
|
||
try { | ||
// bump patch | ||
let matched = false; | ||
let newVersion = package.version.replace(/^(\d+)\.(\d+)\.(\d+).*$/, function(_, major, minor, patch) { | ||
matched = true; | ||
return major + '.' + minor + '.' + (parseInt(patch, 10) + 1); | ||
}); | ||
if (!matched) { | ||
throw new Error('Error calculating version.'); | ||
} | ||
newVersion += '-canary.' + getCommitNum(); | ||
|
||
package.version = newVersion; | ||
fs.writeFileSync('./package.json', JSON.stringify(package)); | ||
console.log('Set canary version: ' + newVersion); | ||
} catch(e) { | ||
console.error(e); | ||
process.exit(1); | ||
} | ||
process.exit(0); | ||
|
||
|
||
function getCommitNum() { | ||
return parseInt(require('child_process').execSync('git rev-list --count HEAD').toString(), 10); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.