1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-10 11:10:19 +02:00
video.js/test
Gary Katsevman 46d8b37385
fix(sourceset): set evt.src to empty string or src attr from load (#5016)
If .load() is called, we don't know what the new source will be because of the asynchronous nature of the resource selection algorithm. However, we can know if the src attribute is set on the video element because that's what will be chosen. So, set the src property on the event object to be the src attribute or be the empty string. This matches how currentSrc works where it is an empty string when no source is set. So, when sourceset is triggered and src is "" in the event object, it means that the source is changing.
In addition, we're going to be releasing sourceset as an experimental feature so we could improve the API and make changes in minor releases.
2018-03-15 15:05:41 -04:00
..
api feat: playerresize event in all cases (#4864) 2018-01-30 13:26:21 -05:00
require @gkatsev added tests for webpack and browserify bundling and node.js requiring. closes #3558 2016-08-24 16:32:05 -04:00
unit fix(sourceset): set evt.src to empty string or src attr from load (#5016) 2018-03-15 15:05:41 -04:00
globals-shim.js test: fix tests (#3953) 2017-01-19 11:17:46 -05:00
index.html test: fix tests (#3953) 2017-01-19 11:17:46 -05:00
karma.conf.js fix(sourceset): set evt.src to empty string or src attr from load (#5016) 2018-03-15 15:05:41 -04:00