Playing multiple videos in succession via a plugin
#1
Hi,
I have a plugin that gets videos from the Internet, however I've got a problem in that all the videos are split into multiple parts.

How can I in python tell xbmc to play all the videos one after the other?

I'm currently using this code to play a single video ok, but I don't know how to do multiple in succession:
Code:
import xmbc, xmbcgui
url = "rtmp://server/vod/video_part1.flv"
item = xbmcgui.ListItem("testvideo")
xbmc.Player(xbmc.PLAYER_CORE_AUTO).play(url, item)
Reply
#2
One thing you could try is forming a stack:// URL. I believe the syntax is:

stack://<urlencoded first part>/<urlencoded second part>/ ...

Cheers,
Jonathan
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.


Image
Reply
#3
Jonathan, is there any more documentation on this url scheme?

I've tried to make that but in the XBMC logs I see only errors:
Code:
15:28:11 T:5744 M:603127808   ERROR: XFILE::CDirectory::GetDirectory - Error getting rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg6_300.flv/
15:28:11 T:5744 M:603353088   ERROR: XFILE::CDirectory::GetDirectory - Error getting rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg6_300.flv/
15:28:24 T:5568 M:606609408   ERROR: Previous line repeats 3 times.
15:28:24 T:5568 M:606609408   ERROR: Playlist Player: skipping unplayable item: 0, path [stack://rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg6_300.flv/]
15:28:24 T:1764 M:606584832   ERROR: XFILE::CDirectory::GetDirectory - Error getting rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-121-240610-sg6_300.flv/
15:28:24 T:1764 M:606580736   ERROR: XFILE::CDirectory::GetDirectory - Error getting rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg6_300.flv/

The url I used was:
Code:
stack://rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg1_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg2_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg3_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg4_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg5_300.flv/rtmpe%3A%2F%2Ften-flashope-e.vx.kitd.com%2Fondemand%2F19056%2F1395%2Fgeo%2Fausonly%2F2010%2FQ1%2Ffox-glee-122-080710-sg6_300.flv/

I've checked and these urls all work individually (when urldecoded), but in the stack they don't play at all.

Thanks,
Reply
#4
Apologies - it's actually:

stack://<file1> , <file2> , <file3>

where each file URL is separated with space comma space, and any comma's within the files are replaced with a double comma.

Cheers,
Jonathan
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.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Playing multiple videos in succession via a plugin0