dsc-uob / subtitle

Subtitle decoder package, enables you to handle translation data smoothly.
MIT License
6 stars 17 forks source link

Using URL Notworking #5

Closed PhuCG closed 1 year ago

PhuCG commented 1 year ago

var url = Uri.parse( 'https://brenopolanski.github.io/html5-video-webvtt-example/MIB2-subtitles-pt-BR.vtt'); var controller = SubtitleController( provider: NetworkSubtitle( url, type: SubtitleType.vtt, ), );

I cant get subtitles in this link??? how fix that ! plse help

PhuCG commented 1 year ago

I found the problem! The problem is in the path, I'm not sure because of the way to convert the path when concatenating by "-" characters When I created a path for myself it worked.

before: https://brenopolanski.github.io/html5-video-webvtt-example/MIB2-subtitles-pt-BR.vtt after: https://docdn.giainhanh.io/media/listening/test/test_en.vtt I work !

PhuCG commented 1 year ago

I found the problem! The problem is in the path, I'm not sure because of the way to convert the path when concatenating by "-" characters When I created a path for myself it worked.

Before: https://brenopolanski.github.io/html5-video-webvtt-example/MIB2-subtitles-pt-BR.vtt After: My URL: https://docdn.giainhanh.io/media/listening/test/test_en.vtt Its work !

MuhmdHsn313 commented 1 year ago

Dear @PhuCoderrga Could you create a pull request for it?

MuhmdHsn313 commented 1 year ago

Solved in #8