Seeking help to include subtitles

Developers forum for Univeral Media Server-related development (only for programmers)
Post Reply
taconaut
Posts: 38
Joined: Fri Nov 21, 2014 9:00 pm

Seeking help to include subtitles

Post by taconaut »

I've started a while back implementing a plugin for ums-mlx which will retrieve subtitles from OpenSubtitles.org; it's similar to the live subtitle folder. I got stuck at the part where I have to configure the DlnaResource in order to play the retrieved subtitle.

I'd like it to behave like this:
- Choose the audio track according to the ums logic
- Play the retrieved subtitle

Trying to figure out how to do this, I've ended up in the Player.setSubtitleOutputParameters(...) method (including the comment: 'TODO: Rewrite this crazy method to be more concise and logical.') where I got lost.

Now the question: Can someone point me in the right direction to do the above mentioned? Is this even possible without touching the ums base code?

Here's the current implementation of the OpenSubtitlesDlnaResource where I've got all the required parameters but haven't implemented most methods.
taconaut
Posts: 38
Joined: Fri Nov 21, 2014 9:00 pm

Re: Seeking help to include subtitles

Post by taconaut »

Anyone has a hint if this is possible without touching UMS base code?
Post Reply