Thread Rating:
  • 0 Vote(s) - 0 Average
Need Help: Online Radio add-on ...
#1
Hello everybody,

I was playing a bit with XBMC python API and I've made my first plugin. It basically lists an xml file (containing online radio information) and it plays every link.

I have a small issue with it: After I load the item list, xbmc retrieves all the media information about the files I've listed. Is there any possibility to avoid this ? Considering that we are talking about online radio streams, this is a bit slow.

All the best,
O.
Reply
#2
Not quite understanding what you mean by "xbmc retrieves all the media information about the files I've listed"

Are you talking about where it tries to determine the file type and etc? (Shows up in the log as Creating Demuxer)
Reply
#3
(2012-04-09, 15:08)DancingFlames Wrote: Hello everybody,

I was playing a bit with XBMC python API and I've made my first plugin. It basically lists an xml file (containing online radio information) and it plays every link.

I have a small issue with it: After I load the item list, xbmc retrieves all the media information about the files I've listed. Is there any possibility to avoid this ? Considering that we are talking about online radio streams, this is a bit slow.

All the best,
O.

XBMC tries to get the mime-type of every listitem's url you provide.
You have two choices:

1.
Do something like:
Code:
listitem.setProperty('mimetype', 'video/x-msvideo')
(of course you should set a matching mimetype!)

2.
[Trick] Faster listing of items

regards,
sphere
My GitHub. My Add-ons:
Image
Reply
#4
Sphere, this is exactly what I wanted to do. Thanks a lot.

It seems that I need to improve my forum search skills, rather than my programming ones Smile
Reply
#5
Need a better way of documenting these things in the wiki instead of on the forum
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
You should open the wiki for edit or add more members with edit rights ...

I know it could get messy (I had a bad experience already with my students), but it is the only way to survive and be up to date ...
Reply
#7
(2012-04-10, 11:21)DancingFlames Wrote: You should open the wiki for edit or add more members with edit rights ...

Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.
My GitHub. My Add-ons:
Image
Reply
#8
(2012-04-10, 11:35)sphere Wrote: Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.

I didn't knew that ... and I was making the assumption based on the fact that there were some people on the forum asking others to post on wiki
Reply
#9
(2012-04-10, 11:40)DancingFlames Wrote:
(2012-04-10, 11:35)sphere Wrote: Correct me if I'm wrong but the wiki is open for edits of registered users - and registration is open.

I didn't knew that ... and I was making the assumption based on the fact that there were some people on the forum asking others to post on wiki

Some pages are locked for some reason. Normally you can just register on the wiki page and start editing.
On the front page of the wiki is a link to the help page which lists some nice plugin for editing.

Currently the add-on/plugin section is a bit of a mess. In time will get cleaned up and re-organized.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Need Help: Online Radio add-on ...00