-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove deprecation hls options, properties, and events; add migr…
…ation guide (#1229) BREAKING CHANGE: remove deprecated options, properties, events.
- Loading branch information
Showing
11 changed files
with
46 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Migration Guide from 2.x to 3.x | ||
|
||
## All `hls-` events were removed | ||
All `hls-` prefixed events were removed. If you were listening to any of those events, you should switch the prefix from `hls-` to `vhs-`. | ||
For example, if you were listening to `hls-gap-skip`: | ||
```js | ||
player.tech().on('hls-gap-skip', () => { | ||
console.log('a gap has been skipped'); | ||
}); | ||
``` | ||
you should now listening to `vhs-gap-skip`: | ||
```js | ||
player.tech().on('vhs-gap-skip', () => { | ||
console.log('a gap has been skipped'); | ||
}); | ||
``` | ||
|
||
See [VHS Usage Events](../#vhs-usage-events) for more information on these events. | ||
|
||
## player properties for accessing VHS | ||
All player level properties to access VHS have been removed. | ||
|
||
If you were using any of the following: | ||
* `player.vhs` | ||
* `player.hls` | ||
* `player.dash` | ||
|
||
You should switch that to accessing the `vhs` property on the tech like so: | ||
```js | ||
player.tech().vhs | ||
``` |
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
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.