D
D
denispalchuk2014-01-30 17:54:09
Qt
denispalchuk, 2014-01-30 17:54:09

Connecting QT subtitles

During the creation of the player, it became necessary to connect subtitles. Having looked through all the documentation, I did not find anything in Qt Multimedia. There was an idea of ​​the usual sequential reading of lines from a subtitle file, but many different problems immediately arise, for example, when opening subtitles in the middle of a movie. Thanks in advance for your reply

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2014-01-30
@peleron

You just need to display the QLabel on top of the video playing widget.
During video playback, you can connect to the positionChanged signal of the QMediaPlayer class - thus. You can synchronize video and display subtitles.
When opening in the middle of the movie, the main thing is to scroll the subtitles to the desired position, and then everything is as described above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question