-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
VideoJS 7+
videojs-resolution-switcher - 2015-7-26
Modified by Pierre Kraft and Derk-Jan Hartman
Error after switching quality
VIDEOJS: ERROR: TypeError: player.play(...).handleTechSeeked_ is not a function
at Player. (videojs-resolution-switcher.js:184)
This is probably due to the exclusion of the flash from the kernel.
https://blog.videojs.com/video-js-removes-flash-from-core-player/
My fix
Find strings
player
.setSourcesSanitized(sources, label, customSourcePicker || settings.customSourcePicker)
.one(handleSeekEvent, function() {
player.currentTime(currentTime);
player.handleTechSeeked_();
if(!isPaused){
// Start playing and hide loadingSpinner (flash issue ?)
player.play().handleTechSeeked_();
}
player.trigger('resolutionchange');
});
And replace with if you do NOT need FLASH support
player
.setSourcesSanitized(sources, label, customSourcePicker || settings.customSourcePicker)
.one(handleSeekEvent, function() {
player.currentTime(currentTime);
if(!isPaused){
player.play();
}
player.trigger('resolutionchange');
});
Or replace if you need FLASH support
player
.setSourcesSanitized(sources, label, customSourcePicker || settings.customSourcePicker)
.one(handleSeekEvent, function() {
player.currentTime(currentTime);
if(player.handleTechSeeked_()){
player.handleTechSeeked_();
if(!isPaused){
// Start playing and hide loadingSpinner (flash issue ?)
player.play().handleTechSeeked_();
}
}else{
if(!isPaused){
player.play();
}
}
player.trigger('resolutionchange');
});
Metadata
Metadata
Assignees
Labels
No labels