I need to embed a player that can play video files and use subtitles (.srt).
Which players (with good documentation) are available for this task? And how do I set the file and subtitle to it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Workaround
Add a Windows Media Player COM object.
Add a Timer
Handle StatusChange to know when it starts to play
Activate timer when playing
Get current seconds from
player.Ctlcontrols.currentPosition, if a subtitle is found make the label visible, set the text and center horizontally. If there aren’t any subtitles, hide the label.