NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) UbuStream, Web Radio and Universe v
« Previous 1 4 5 6 7 8
UbuStream Dynamic Source "mini-plugin" architecture for on-demand streams

 
  • 0 Vote(s) - 0 Average
UbuStream Dynamic Source "mini-plugin" architecture for on-demand streams
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#31
2006-11-20, 11:30 AM
stefan Wrote:I did some research, and my approach was to override your Read_HTML_Page and create a CookieContainer and attach to the webrequest. Then, before I start parsing stuff, I go to the webpage "Byt ljudformat" with the appropriate parameters for choosing realplayer. But I have no idea if this would work...
Exciting stuff! Best of luck! I took a quick look at the Cookie and CookieContainer and they looked like they might help (especially if sr.se cookies conform to the "official" cookie standards that .Net supports).

Quote:When you say "Cookies directory", which directory are you talking about, exactly?
Good question. I mainly use Firefox and I still don't know where it stores cookies. You can "browse" them but it doesn't tell you where they are. So I tried it with IE and found it does actually put them where they are supposed to be: C:\Documents and Settings\ubu\Cookies (if "ubu" was the current user logged on).
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#32
2006-11-20, 11:53 AM
Yep... lunch break is over now, so I'll have to go back to my ordinary programming. Will continue at a later time, though Smile Thank's for the input Smile
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
Remco
Offline

Member

Posts: 152
Threads: 12
Joined: Sep 2004
#33
2006-11-20, 05:56 PM
For "my" DynSource Uitzendinggemist I also had to use cookies. I first wanted to clan up my code, before posting the source Smile ; but i don't want to let you struggle if i can help you easily. I attached the source of my UitzendingGemistDynSource in which you can see how to use cookies (proxy.cs). I hope this helps

[ATTACHMENT NOT FOUND]
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#34
2006-11-20, 07:51 PM
Thank's Smile I'll look at it in the morning. I think I got the idea right; my problem right now is to figure out the correct parameters to send to the correct url in order to set the cookie right Smile
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#35
2006-11-24, 02:55 PM
Update: I finally got it working. Stupid webserver demanded that I choose player by POST, not GET, that's why I couldn't get my cookies to stay in the CookieContainer Smile Now I just need some time to clean up my code, and then after that we have Swedish National Radio running Smile

Ubu: you said somewhere that I could use a schedule page, but that should be set for the entire dynSource, right? SR's schedule pages are one per siteItem... am I thinking wrong here?
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#36
2006-11-24, 06:43 PM (This post was last modified: 2006-11-24, 06:55 PM by ubu.)
stefan Wrote:Update: I finally got it working. Stupid webserver demanded that I choose player by POST, not GET, that's why I couldn't get my cookies to stay in the CookieContainer Smile Now I just need some time to clean up my code, and then after that we have Swedish National Radio running Smile
Hey, that's great news. Look forward to trying it out. I'm working on the new wiki page(s) for v2.0 (here, if you want a preview), and I'm thinking we need a separate page for downloading DynSource apps. We've already got apps from HTPCGB, Remco and, soon, from you, plus my three "sample" apps. This thing is gaining critical mass. Smile

Quote:Ubu: you said somewhere that I could use a schedule page, but that should be set for the entire dynSource, right? SR's schedule pages are one per siteItem... am I thinking wrong here?
Each station can have a schedule page url (it's called Web Site URL on the station panel in the config app). So you can include the line:

Website1=<(optional) url of a web page containing schedule info>

for each item in your PLX file. (I forgot to update the spec in post#1 of this stream. Fixed now). I think this is a really useful feature now UbuStream displays the page using the new built-in web browser. Being able to use your remote butttons to scroll through the schedule makes it much more user-friendly than the way its used to work. I use it for a lot of my stations.

While you're at it, don't forget (if it's easy to do) to add the line:

Description1=<(optional) item description text>

Now that the Details button on the UbuStream menu is working, I'm getting so used to being able to scroll through the description in the pop-up Details box that I get kinda disappointed when the description is empty. It's especially useful for Dynamic Source stations where the user doesn't know what the heck got downloaded. It's nice to be able to read a description before you hit Play.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#37
2006-11-27, 07:20 AM (This post was last modified: 2006-11-27, 08:02 AM by stefan.)
Ok... I haven't done anything since Friday (go figure), but I'd like to upload anyway (consider this a pre-beta Wink ) No schedule page, no description as of yet. Plus, I have hardcoded a few strings that shouldn't be hardcoded, but as a proof of concept, this works. When I have cleaned things up I'll publish the source code, too.
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#38
2006-11-27, 07:54 AM
stefan Wrote:Ok... I haven't done anything since Friday (go figure), but I'd like to upload anyway (consider this a pre-beta Wink ) No schedule page, no description as of yet. Plus, I have hardcoded a few strings that shouldn't be hardcoded, but as a proof of concept, this works. When I have cleaned things up I'll publish the source code, too.
The zip contains a dll (SR.dll), whereas it needs to be an exe so UbuStream can execute it. Also, for UbuStream to recognise it as a mini-plugin, it needs to follow the naming standards, so I would expect something like SRDynSource.exe (or, since the first part gets used as the Dynamic Source's name, a more descriptive name might be SverigesRadioDynSource.exe).
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#39
2006-11-27, 07:55 AM
Will fix Smile
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#40
2006-11-27, 08:00 AM
New zip attached.
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Universe or Network Tuner plugin for PIP greg in kansas 8 11,164 2016-03-13, 02:20 AM
Last Post: greg in kansas
  Universe plugin update mvallevand 0 4,875 2015-10-02, 11:55 PM
Last Post: mvallevand
  universe and live streams from PlayOn johnsonx42 2 6,512 2012-08-11, 03:51 AM
Last Post: johnsonx42
  Universe Plugin Setup mvallevand 4 12,170 2011-01-25, 01:41 AM
Last Post: mvallevand
  Universe Plugin on NMT Azimuth 3 6,265 2011-01-22, 08:40 PM
Last Post: mvallevand
  Some challenges with Universe Plugin cooper43 7 5,691 2010-12-27, 01:50 PM
Last Post: cooper43
  Some challenges with Universe Plugin cooper43 0 2,324 2010-12-26, 06:37 PM
Last Post: cooper43
  Why doesn't this plugin work!?!? haarvik 18 9,964 2009-05-28, 01:14 AM
Last Post: cc1091
  Ubustream not working preview neither timeshitf play Toni 2 3,219 2009-05-27, 07:59 PM
Last Post: Toni
  Imposible to start ubustream Toni 3 3,306 2009-05-27, 12:02 PM
Last Post: Toni

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode