Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3893cf

Browse files
committedDec 8, 2024
Chore: metadata event on Custom Media Source should just pass pure data from StreamTitle
1 parent 4f77005 commit d3893cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/player/ts/html5-audio-mse.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ export default class HTML5AudioMSE extends HTML5Audio {
107107
if ( matches && matches[ 1 ] ) {
108108

109109
const trackTitle = matches[ 1 ];
110-
this.trigger( 'metadata', { trackTitle } );
110+
this.trigger( 'metadata', trackTitle );
111111

112112
}
113113

114114
}
115115

116116
private startBufferManagement() {
117-
const BUFFER_THRESHOLD = 30; // seconds
118117

118+
const BUFFER_THRESHOLD = 30; // seconds
119119
this.bufferRemoveInterval = window.setInterval( () => {
120120
if ( !this.sourceBuffer || !this.audio ) return;
121121

@@ -153,6 +153,7 @@ export default class HTML5AudioMSE extends HTML5Audio {
153153
}
154154

155155
await this.fetchAndStream();
156+
this.startBufferManagement();
156157

157158
}
158159

0 commit comments

Comments
 (0)
Please sign in to comment.