hls.jsのcanary版が利用できるようになった
2489 ワード
hls.jsのリリースタイミングはMilestones - video-dev/hls.jsでも管理していますが、リリースはいくつかの修正を行った後にしています。
そのためPRはマージされたけど修正版のリリースがされてないという状況が発生するという問題があったため、slackで話し合った結果、コミット毎にcanaryビルドをリリースするようになりました。
いわゆるNightlyビルドのようなものです。
次のPRでcanaryビルドのpublishが実装されています。
Canary版のインストール
通常のstableバージョンは@タグ
を付けずにnpm install
すればインストールできます。
$ npm install hls.js
Canary版は@canary
をつけてnpm install
するとインストールできます。
$ npm install hls.js@canary
次のようにnpm info
で確認するとcanary
タグのついたビルドが公開されていることが分かります。
$ npm info hls.js@canary
[email protected] | Apache-2.0 | deps: 2 | versions: 117
JavaScript HLS client using MediaSourceExtension
https://github.com/video-dev/hls.js
...
dist-tags:
beta: 0.5.47 canary: 0.9.2-canary.3828 latest: 0.9.1
ブラウザからCDNで直接読み込みたい場合はcdn.jsdelivr.netを使うことで読み込めます。
<!-- stable -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<!-- canary -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@canary"></script>
Author And Source
この問題について(hls.jsのcanary版が利用できるようになった), 我々は、より多くの情報をここで見つけました https://qiita.com/azu/items/0c431491f8f4c9f523da著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .