player icon indicating copy to clipboard operation
player copied to clipboard

SRT Subtitles: End of line and some special syntax not supported

Open Viiprogrammer opened this issue 1 year ago • 0 comments

Current Behavior:

\N is not supported {\pos(317,366)} is not supported

image image

Expected Behavior:

\N is supported {\pos(317,366)} is supported

Steps To Reproduce:

Example subs: https://reference.opengram.dev/Trigun.rus.srt Trigun.rus.zip

Code which I use to load srt subs:

const track = new TextTrack({
  src: 'https://reference.opengram.dev/Trigun.rus.srt',
  kind: 'subtitles',
  label: 'Russian',
  language: 'ru-RU',
  type: 'srt',
  default: true
})

$player.value.textTracks.add(track)

https://stackblitz.com/edit/vidstack-examples-b8rzsk?file=src%2FPlayer.vue

Environment:

  • Framework: Vue

  • Node: 20.12.2

  • Device: Desktop PC

  • OS: Ubuntu 22.04.4 LTS x86_64

  • Browser: Electron 28

Viiprogrammer avatar May 01 '24 13:05 Viiprogrammer