File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -775,6 +775,8 @@ import Events from './events/Events';
775
775
* Defines the delay in milliseconds between two consecutive checks for events to be fired.
776
776
* @property {boolean } [seekWithoutReadyStateCheck=false]
777
777
* This allows a seek by setting currentTime regardless of the loadedmetadata event being emitted
778
+ * @property {boolean } [enableDashPlaybackEnded = false]
779
+ * This enables the synthetic ended behaviour in PlaybackController that seeks and pauses the media element
778
780
* @property {boolean } [parseInbandPrft=false]
779
781
* Set to true if dash.js should parse inband prft boxes (ProducerReferenceTime) and trigger events.
780
782
* @property {module:Settings~Metrics } metrics Metric settings
@@ -901,6 +903,7 @@ function Settings() {
901
903
parseInbandPrft : false ,
902
904
enableManifestTimescaleMismatchFix : false ,
903
905
seekWithoutReadyStateCheck : false ,
906
+ enableDashPlaybackEnded : false ,
904
907
capabilities : {
905
908
filterUnsupportedEssentialProperties : true ,
906
909
useMediaCapabilitiesApi : false
Original file line number Diff line number Diff line change @@ -699,7 +699,7 @@ function PlaybackController() {
699
699
700
700
// Handle DASH PLAYBACK_ENDED event
701
701
function _onPlaybackEnded ( e ) {
702
- if ( wallclockTimeIntervalId && e . isLast ) {
702
+ if ( settings . get ( ) . streaming . enableDashPlaybackEnded && wallclockTimeIntervalId && e . isLast ) {
703
703
// PLAYBACK_ENDED was triggered elsewhere, react.
704
704
logger . info ( 'onPlaybackEnded -- PLAYBACK_ENDED but native video element didn\'t fire ended' ) ;
705
705
const seekTime = e . seekTime ? e . seekTime : getStreamEndTime ( ) ;
You can’t perform that action at this time.
0 commit comments