Skip to content

4.0.0

Compare
Choose a tag to compare
@thelevicole thelevicole released this 19 Jan 14:45
· 7 commits to main since this release

Breaking changes:

  • parseYoutubeMeta() method now returns an array (previously an object). This will break any filter hooks attached to 'video.stream'

New:

  • Added a new withAudio option, when set to true only streams with audio channels will be returned.
  • Added _raw property to returned stream object containing the raw stream data from the YouTube api.
  • Added itag property to returned stream object (used to be object key).
  • Added hasAudio property to returned stream object true if stream has audio channel, false if not.
  • Added browserSupport property to returned stream object. Includes values "probably", "maybe", "no", "unknown" based on: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType