Skip to content

Releases: thelevicole/youtube-to-html5-loader

5.0.0

21 Jul 16:59
Compare
Choose a tag to compare

This updated includes breaking changes!

  • Full rewrite.
  • Added ability to self host man-in-the-middle API.
  • jQuery support.

4.0.1

25 May 14:03
Compare
Choose a tag to compare

Updated API endpoint to fix CORS errors. API response is already decoded.

4.0.0

19 Jan 14:45
Compare
Choose a tag to compare

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

3.1.1

09 Dec 19:20
Compare
Choose a tag to compare

Improved hook inheritance.

Added the ability to set global hooks that apply to all instances or local hooks that apply to the current instance only.

Global hook example:

var player = new YouTubeToHtml5();
var myCallback = function() { console.log('example'); };
var hookPriority = 10;
var isGlobal = true;
player.addAction('api.end', myCallback, hookPriority, isGlobal);

3.0.1

09 Dec 18:44
Compare
Choose a tag to compare

Fixed issue when with option inheritance when having multiple instances with different options.

3.0.0

09 Dec 16:28
Compare
Choose a tag to compare

Breaking changes:

  • Renamed youtube.api.endpoint filter to api.endpoint.
  • Renamed youtube.meta filter to api.response.
  • Added new argument to video.source filter, breaking previous argument order.

New:

  • Added new filter api.results for the extracted video source from the api response.
  • Added new filter video.stream for modifying the default stream object.

2.0.0

10 Nov 16:15
Compare
Choose a tag to compare
  1. The selector option now accepts either of the following:
  • NodeList
  • HTMLCollection
  • string
  • Or a single DOM element.
  1. A breaking change has been made to the api.end action which has now been renamed to api.after.

  2. A new method loadSingle() has been added. This takes two parameters, the first being a single DOM element and the second being an optional attribute name for reading the YouTube data from the element.

1.1.1

05 Nov 15:53
Compare
Choose a tag to compare

YouTube URLs now accepted aswell as YouTube ID values.

For example:

<video data-yt2html5="https://www.youtube.com/embed/ScMzIvxBSi4" controls></video>

And:

<video data-yt2html5="ScMzIvxBSi4" controls></video>

1.0.0

26 Oct 16:41
Compare
Choose a tag to compare
gitignore update