| View previous topic :: View next topic |
| Author |
Message |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Fri Dec 18, 2009 8:11 pm Post subject: Live TV from HDHR in embedded media player? |
|
|
Any tips or suggestions on how to stream live video to an embedded media player in an ASP.NET web page? I can embed an Active-X media player control in a winform in Visual Studio, set the URL to hdhomerun://MyNumberHere-0/ch54-3 and it works fine. But when I embed a Media Player control in an ASP.NET page, it doesn't play.
I'm sure it's a stupid mistake on my part, but I thought I'd check with you folks first. |
|
| Back to top |
|
 |
jasonl Silicondust
Joined: 29 Oct 2007 Posts: 2838
|
Posted: Fri Dec 18, 2009 8:45 pm Post subject: |
|
|
| Does the client you're trying to view with have the HDHomeRun software installed, and it is on the same network as the HDHomeRun? |
|
| Back to top |
|
 |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Fri Dec 18, 2009 8:50 pm Post subject: |
|
|
| jasonl wrote: | | Does the client you're trying to view with have the HDHomeRun software installed, and it is on the same network as the HDHomeRun? |
Yes and yes; as I said, the embedded Media Player works just fine in a Winform on the same machine; it's only when I attempt to embed it into a web page that it doesn't work.
Interestingly enough, it never actually fails; the media player says 'Playing ch54-3' and it acts like it's playing (e.g. I can pause, stop and start the 'video'). But I don't get any audio or video in the web form. |
|
| Back to top |
|
 |
jasonl Silicondust
Joined: 29 Oct 2007 Posts: 2838
|
Posted: Fri Dec 18, 2009 9:12 pm Post subject: |
|
|
Enable the sending of diagnostic data to us on the Advanced tab in HDHomeRun Setup, try to watch for 2-3 minutes, and reply back with the device ID and we'll check the logs.
What OS and browser are you using? |
|
| Back to top |
|
 |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Fri Dec 18, 2009 9:31 pm Post subject: |
|
|
Done! The ID is 10135DC6; I've tried twice on two different machines (one Win XP 32-bit, one Win 7 32-bit) both with IE 8. The webpage is hosted in Visual Studio 2008 (run in Administrator mode in Win 7). And I've once again confirmed that the Webform version plays just fine on the Win 7 machine.
Thanks for taking the time to help! |
|
| Back to top |
|
 |
jasonl Silicondust
Joined: 29 Oct 2007 Posts: 2838
|
Posted: Fri Dec 18, 2009 10:14 pm Post subject: |
|
|
| The logs show that the stream from the HDHomeRun is being blocked, either by a firewall or by IE's security. While most web-based streaming video is pull-based (the browser downloads the video), data from the HDHomeRun is pushed, requiring that the application on the PC be able to receive incoming connections. This may not be possible in newer browsers due to enhanced security features. One alternative might be to run a program like VLC on the server to receive the stream from the HDHomeRun and offer it on a pull-based service. |
|
| Back to top |
|
 |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Fri Dec 18, 2009 11:06 pm Post subject: |
|
|
That makes sense. I'll give it a try on Monday and see.
Thanks again for all your trouble. |
|
| Back to top |
|
 |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Mon Dec 28, 2009 2:54 pm Post subject: |
|
|
Sorry for the delay; those pesky holidays and all.
While I wasn't able to restream through VLC, I was able to get my embedded WMP to work on our Win 7 test bed by disabling the firewall. Interesting, as I thought I'd already opened up the necessary ports (and the Winform embedded viewer works just fine even with the firewall enabled). Do you know which ports I should be opening for an web-embedded WMP player to receive pushed content? |
|
| Back to top |
|
 |
jasonl Silicondust
Joined: 29 Oct 2007 Posts: 2838
|
Posted: Mon Dec 28, 2009 9:51 pm Post subject: |
|
|
| The stream from the HDHomeRun goes to a random high port. The source port will be 5002 or 5004 (UDP), so if configuration at the application level doesn't work, that's the best way to target the right traffic. |
|
| Back to top |
|
 |
digital_archivist
Joined: 18 Dec 2009 Posts: 6
|
Posted: Tue Dec 29, 2009 3:28 pm Post subject: |
|
|
| I'll take a look. Thanks! |
|
| Back to top |
|
 |
|