mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
If there are no sources when the player is initialized, loadTech is called with an undefined source.
It would then error on source.src
This commit is contained in:
parent
6def502496
commit
55ac829fb1
@ -199,11 +199,11 @@ _V_.Player = _V_.Component.extend({
|
||||
// Grab tech-specific options from player options and add source and parent element to use.
|
||||
var techOptions = _V_.merge({ source: source, parentEl: this.el }, this.options[techName])
|
||||
|
||||
if (source.src == this.values.src && this.values.currentTime > 0) {
|
||||
techOptions.startTime = this.values.currentTime;
|
||||
}
|
||||
|
||||
if (source) {
|
||||
if (source.src == this.values.src && this.values.currentTime > 0) {
|
||||
techOptions.startTime = this.values.currentTime;
|
||||
}
|
||||
|
||||
this.values.src = source.src;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user