|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Online Radio plugin for Extender
Anyone out there with an extender wants to try out my new Web Radio plugin?
SageTV 6.3 contains support for mms streams, which gave me the chance to create a web radio plugin fuelled by the native MediaPlayer. I myself do not own an extender, so if anyone of you is willing to have a go with it on an extender please let me know. - Chris |
#2
|
|||
|
|||
If it is for the default stv, I will try.
B |
#3
|
|||
|
|||
I've attached a zip file with the plugin code and stvi.
Extract it to the install folder .../sagetv/sagetv and restart server. (do you need to do something special for extenders?) import onlineradio-1.0.stvi, which should add an Online Radio menu item to the online services menu, giving you access a menu with a list of online radio stations. Please have a try and hopefully after some 10..20 seconds stream playback will start. thanks, - Chris Last edited by koelec; 12-24-2007 at 01:12 AM. |
#4
|
|||
|
|||
Can you tell me if you require a certain version of Java? I am running 1.5.13.
Quote:
Quote:
B |
#5
|
|||
|
|||
Quote:
Quote:
Quote:
|
#6
|
|||
|
|||
Success, partly
I found the problem... I noticed in your zipfile, you have a log4j.properties, but didn't include the log4j library, it's not part of a standard SageTV installation. I took one of my log4j jars (bcjenkins, you can find this at logging.apache.org), and dropped it into the JARs directory, and about 7 stations showed up.
Now the next problem when I select a station, it gives an error trying to access the filesystem for playback. Are you by chance using Windows filesystem path separators (ie. \\) anywhere in your code? If so, you might want to replace those with File.separator instead for portability (I'm also on Linux) Eric |
#7
|
|||
|
|||
Eric, good detective work! Thanks for helping.
You was right 'bout the missing log4j jar. I updated the zip file in my original post. About the playback error: this is from SageTV V6.3.0 Beta 11/2/2007 release notes: Studio Updates 1. Added support for 'mms://' URLs to the Watch API call on Windows And that's probably the reason it doesn't work on Linux. Why the hell would they implement this only for windows I'm gonna submit a bug report for this. Maybe it would help if you guys did they same. But first I'd like to see if anyone with:
Anyone? - Chris |
#8
|
|||
|
|||
I will file a bug report to enable mms:// in OS X and Linux. You may want to redo the button in the online services to match the other buttons though.
Thanks! B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#9
|
||||
|
||||
I'll give this a shot tonight both on the MVP and HD Extender.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#10
|
|||
|
|||
Quote:
Quote:
Last edited by ecoolman; 12-26-2007 at 12:06 PM. |
#11
|
||||
|
||||
I enabled debug logging in Sage. Hope this tells you something:
Code:
Wed 12/26 18:23:12.417 MiniPlayer established for 00085c53a27d Wed 12/26 18:23:12.576 getEstimatedBW=18738285 estimatedBWBytes=16396 estimatedBWTime=7 Wed 12/26 18:23:12.576 MiniPlayer got an estimate from the UI on bandwidth of 18738Kbps Wed 12/26 18:23:12.576 MiniPlayer is using Push mode playback Wed 12/26 18:23:12.577 MiniPlayer is using the MPEG2 pusher Wed 12/26 18:23:12.597 Error initing MPEG2 stream:java.net.UnknownHostException: mms://wm10.luckysevenradio.com/lucky777_uptempojazz_hi Wed 12/26 18:23:12.600 Built:sage.PlaybackException: ERROR (-3,0x0): There was a problem accessing the filesystem for playback. Wed 12/26 18:23:12.601 VideFrame had an error loading the file. It must abort the file load. Wed 12/26 18:23:12.602 processOptionsMenu optionsMenu=default:null|OptionsMenu:ErrorMessage Wed 12/26 18:23:12.602 Closing down MiniPlayer Wed 12/26 18:23:12.602 closeDriver0() Wed 12/26 18:23:12.603 VF processing job null nPlayin=false Wed 12/26 18:23:12.604 VF thread is now waiting for 0:00:00.000 Wed 12/26 18:23:12.645 MiniUI got connection from Socket[addr=/192.168.0.107,port=1177,localport=31099] Wed 12/26 18:23:12.650 MiniPlayer is adding to its map:00085c53a27d Wed 12/26 18:23:20.191 VideoFrame.watch(A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523]) Wed 12/26 18:23:20.192 watchThisFile=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] Wed 12/26 18:23:20.192 Watch airing is a file & over, do that instead dvd=false Wed 12/26 18:23:20.193 Seeker.finishWatch(UIManager:localhost@@00085c53a27d-16ea337) Wed 12/26 18:23:20.193 Seeker awoken Wed 12/26 18:23:20.193 VF.submitJob(VFJob[WatchMF r=0.0 t=0 file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] ifn=null]) Wed 12/26 18:23:20.194 VF processing job VFJob[WatchMF r=0.0 t=0 file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] ifn=null] nPlayin=false Wed 12/26 18:23:20.194 VF processing on UI Thread VFJob[WatchMF r=0.0 t=0 file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] ifn=null] Wed 12/26 18:23:20.195 VideoFrame creating new media player for file:MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] Wed 12/26 18:23:20.196 VF processing job VFJob[LoadMF r=0.0 t=0 file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] ifn=null] nPlayin=false Wed 12/26 18:23:20.196 VF processing on UI Thread VFJob[LoadMF r=0.0 t=0 file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] ifn=null] Wed 12/26 18:23:20.196 VF file=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] targetTime = Wed 12/31 18:59:59.999 Wed 12/26 18:23:20.197 VideoFrame.timeSelected(Wed 12/31 18:59:59.999, true) currFile=MediaFile[id=0 A[5206830,3369449,"KFOG_FM",0@1231.18:59,19978523] host=mms://uni6.susq.streamaudio.com/KFOG_FM encodedBy= format=null KFOG_FM, Seg0[Wed 12/31 18:59:59.999-Wed 12/31 19:00:00.000]] Wed 12/26 18:23:20.197 initDriver0() Wed 12/26 18:23:20.199 Scheduler awoken Wed 12/26 18:23:20.201 MiniPlayer established for 00085c53a27d Wed 12/26 18:23:20.647 MARK 1 currRecord=null enc=NVIDIA DualTV Capture clients=[] ir=false This is what I got out of the logj4 log: Code:
2007-12-26 18:22:57,371 INFO [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:159) - getInstance() 2007-12-26 18:22:57,371 INFO [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:159) - getInstance() 2007-12-26 18:22:57,386 INFO [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:170) - StationList() 2007-12-26 18:22:57,386 INFO [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:170) - StationList() 2007-12-26 18:22:57,386 DEBUG [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames 2007-12-26 18:22:57,386 DEBUG [EventRouter-00085c53a27d] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames 2007-12-26 18:23:00,699 DEBUG [AsyncWatch] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames 2007-12-26 18:23:00,699 DEBUG [AsyncWatch] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames 2007-12-26 18:23:20,199 DEBUG [AsyncWatch] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames 2007-12-26 18:23:20,199 DEBUG [AsyncWatch] nl.cmkprojects.sage.radio.StationList (StationList.java:35) - getStationNames Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#12
|
|||
|
|||
How well does it work?
I'd like to try this with my extender and http://radiotime.com
How well does it work? Last edited by jc8367; 01-02-2008 at 03:23 PM. |
#13
|
|||
|
|||
All the categories appear through my Hauppauge extender except Online Radio.
They all appear on the PC fine. Any thoughts? I'm running, XP Pro, Sage 6.3.5 with extender noted above. I know, shame on me not having the HD extender. Last edited by jc8367; 01-03-2008 at 12:29 PM. |
#14
|
||||
|
||||
It's suppose to work on either extender. It works on neither. He has some more work to do on this plugin. (You need to go your extender and import the plugin on there.)
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#15
|
|||
|
|||
you need to go your extender and import the plugin on there?
|
#16
|
||||
|
||||
Or choose the STV that already has it imported if you did it on your server. On your extender you would choose SageTV3-3.xml if that is the same one that your server is using and has the plugin imported. That number will vary depending on how many different plugins you have instaled. The Extender is another client and can have different STVs and different plugins running than what you have running on the server.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#17
|
|||
|
|||
Online Radio does appear via the extender but I do get the error "There was a problem accessing the filesystem for playback". I don't get this from the pc and I'm able to stream music fine.
On another note I've attached a link to URL Snooper: http://all-streaming-media.com/find-...e-download.htm Run it while your listening to an audio stream and it will tell you the mms:, that's sometimes difficult to get. Makes it easy to populated the radiostations.txt with the correct url's, works great. |
#18
|
||||
|
||||
Yes the plugin works fine with a PC. In the 6.3.5 upgrade extenders should be able to play mms streams. He rewrote his plugin without an extender to see if he can get it to work. Hopefully he figures it out and posts again so we can test.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#19
|
|||
|
|||
Seems it was my naive understanding of how extenders work with sagetv.
I figured that if the native SageTV mediaplayer could play a radio url (from 6.3.5 it does, but only mms urls and windows version only), this would automatically extend to the extenders. Guess it does not. thanks for testing and maybe ... Chris |
#20
|
|||
|
|||
Not sure myself but I'd love for this to work. The FM signal in my area stinks.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
XM Satellite Radio Plugin? | Xiggy | SageTV Customizations | 2 | 07-05-2007 11:21 PM |
NVidia DualTV Tuner and FM Radio PlugIn | mike1961 | Hardware Support | 0 | 05-08-2007 10:31 AM |
NVidia DualTV and FM Radio Plugin | mike1961 | Hardware Support | 0 | 05-23-2006 12:54 AM |
Has anyone created an XM Radio Online plugin? | CanadianEh | SageTV Customizations | 3 | 12-10-2005 06:37 PM |