Setting subtitles from within plugin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
adammw Offline
Junior Member
Posts: 19
Joined: May 2010
Reputation: 0
Post: #1
Hi,
I'm trying to make a plugin which can display subtitles from the internet, however they are in the timed text format. I believe that I can transcode them to SRT on the fly, but I'm not sure how to get XBMC to find them because my media is not local (e.g. it's an RTMP url) and neither is the subtitles.

What would be the best way to do this within a plugin?

Thanks,
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #2
uhrr, yes. see the pydocs.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
BlueCop Offline
bipedal omnivore
Posts: 1,657
Joined: May 2004
Reputation: 70
Post: #3
I think it is currently limited to assigning a subtitle to a player that has already started. I don't think it it currently possible to do this for a listitem feed to adddirectoryitem or setresolveurl. I put in a feature request for this. Maybe I missed something though.
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #4
no, you're correct, the player needs to be running.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote