File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Resources/Private/JavaScript/SlubMediaPlayer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,10 @@ export default class SlubMediaPlayer extends DlfMediaPlayer {
253253 }
254254 }
255255
256- // Attempt: Parse timecode hash in URL ("#timecode=120;fileId=FILE_0000_DEFAULT_MPD,FILE_0000_DEFAULT_HLS")
257- const timecodeMatch = link . hash . match ( / t i m e c o d e = ( \d + (?: \. \d ? ) ? ) (?: ; f i l e I d s = ( [ a - z A - Z 0 - 9 _ , ] + ) ) ? / ) ;
256+ // Attempt: Parse timecode hash in URL. Accepts URLs with hashes like:
257+ // #timecode=120;fileIds=FILE_0000_DEFAULT_MPD,FILE_0000_DEFAULT_HLS
258+ // #timecode=123.456;fileIds=uuid-0aabcd1e-12a3-xxx,uuid-0aabcd1e-12a3-yyy
259+ const timecodeMatch = link . hash . match ( / # t i m e c o d e = ( \d + (?: \. \d + ) ? ) (?: ; f i l e I d s = ( [ \w , - ] + ) ) ? / ) ;
258260 if ( timecodeMatch !== null ) {
259261 const timecode = Number ( timecodeMatch [ 1 ] ) ;
260262 if ( Number . isFinite ( timecode ) ) {
You can’t perform that action at this time.
0 commit comments