videojs / videojs-errors

A video.js plugin that displays error messages to video viewers.
Other
87 stars 29 forks source link

feat: Add config to ignore play start monitor. #134

Closed daveferrara1 closed 3 years ago

daveferrara1 commented 6 years ago

Description

Please describe the change as necessary. If it's a feature or enhancement please be as detailed as possible.

Specific Changes proposed

Adds a config to return early inside the onPlayStartMonitor function.

My exact use case: When we cast with chromecast, the videojs player is no longer the player. Its a remote player, so calls inside this function to player.currentTime() return 0. The video timeout will occur at 45 seconds. This is the case for LIVE HLS video.

This simple config allows the ability to return early while we are casting, and resume later from other custom plugins.

Requirements Checklist