video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Opening subtitle files on-the-fly

Open DannyZB opened this issue 12 years ago • 8 comments

Right now there is no way in the player to load subtitle files after the video starts playing .. only as part of the player load

I saw some examples online of using textTracks , but the player object has no such attribute !

How is that done ?

Plus - files encoded using ANSI ( for example windows-1255 for hebrew ), even when I set their encoding to windows-1255 in the track tag still appear as a bunch of question marks in an UTF-8 page

DannyZB avatar Jan 19 '14 13:01 DannyZB

Ok so we're dealing with 2 separate issues in this ticket. For the special characters, let's consolidate around #951 for tracking.

For the ability to add text tracks, there's addTextTrack(), but it isn't exported in the production version right now. Is that what you're looking to do?

mmcc avatar Jan 21 '14 01:01 mmcc

the addTextTrack thing is true .. but you have to add it to the minified version !

About UTF8-encoding : i get the subtitles from a third party , I have to be able to handle ANSI enoded files

browsers support it , why doesn't VideoJS?

DannyZB avatar Jan 24 '14 21:01 DannyZB

@DannyZB have you referred to the answer at #951 ?

akitrav avatar Jan 25 '14 02:01 akitrav

addTextTrack and addTextTracks have no effect

I see the tracks added to the tracks list , yet they do not appear in the GUI and don't immediately start even if I set 'default':'default'

How do I make them start?

DannyZB avatar Jan 29 '14 14:01 DannyZB

Two things need to happen here:

  • The text track functions need to be exported
  • We need to test and fix any issues with adding text tracks after loading the player

heff avatar Apr 04 '14 23:04 heff

Successfully made that work with some code hacks , but unfortunately ended up migrating to JWPlayer as I have a product to make , and little time for debugging. ( you guys have no idea how expensive the corporate license is -_- )

Do you guys have commercial backing ? it would really help push the player forward

DannyZB avatar Jul 10 '14 14:07 DannyZB

@DannyZB Brightcove's backing the project now which has made a big difference, but it's still free for everyone and still relies on the community a lot for help. The community's growing so feel free to jump back in any time. :)

heff avatar Jul 11 '14 05:07 heff

Videojs 4.12 received a huge update to how text tracks work. Based on the comments above, I think that the issues raised here have been addressed (see new API methods and also the fact that we use the browser's native functionality when available). Going to close this as fixed but please let us know if there are issues.

gkatsev avatar Mar 09 '15 22:03 gkatsev