Crazelu / subtitle_player

A Flutter package for synchronizing subtitles with video and audio playback.
MIT License
21 stars 1 forks source link

Can not parse webvtt #1

Open HaloWang opened 1 month ago

HaloWang commented 1 month ago

Our.Universe.zip

There are some webvtt files downloaded from netflix video: https://www.netflix.com/watch/81320086. using https://greasyfork.org/en/scripts/26654-netflix-subtitle-downloader

this lib can not parse the webvtt files

Crazelu commented 1 month ago

Can you add a snippet of the WebVTT content as plain text in this thread? I'm unable to follow the link to the zipped file.

Also, WebVTT can take different forms especially if there's styling specific things included in it for the player. In which case, you can subclass Subtitle and write a parser that is specific to the content you're expecting. I had this in mind when designing the API and this is why SubtitleController.loadSubtitle takes a Subtitle object that you can create with your own parsers.