Skip to content

Commit dfeb9bd

Browse files
committed
Remove code duplicate
1 parent 584b20c commit dfeb9bd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

platform/video.html5/backend.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,21 +294,6 @@ Player.prototype.setAudioTrack = function(trackId) {
294294
audioTracks[i].enabled = i === trackId
295295
}
296296

297-
Player.prototype.setVideoTrack = function(trackId) {
298-
if (!this._videoTracks || this._videoTracks.length <= 0) {
299-
log("There is no available video track", this._videoTracks)
300-
return
301-
}
302-
if (trackId < 0 || trackId >= this._videoTracks.length) {
303-
log("Track with id", trackId, "not found")
304-
return
305-
}
306-
this.ui.waiting = true
307-
var progress = this.ui.progress
308-
log("Set video", this._videoTracks[trackId])
309-
this.element.dom.src = this._videoTracks[trackId].url
310-
this.seekTo(progress)
311-
}
312297

313298
Player.prototype.setVideoTrack = function(trackId) {
314299
if (!this._videoTracks || this._videoTracks.length <= 0) {

0 commit comments

Comments
 (0)