Index - Search - Usergroups - Register - Private Message - Log in
Live TV from HDHR in embedded media player?

 
Post new topic   Reply to topic    Silicondust Forum Index -> Development - HDHomeRun
View previous topic :: View next topic  
Author Message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Fri Dec 18, 2009 8:11 pm    Post subject: Live TV from HDHR in embedded media player? Reply with quote

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
View user's profile Send private message
jasonl
Silicondust


Joined: 29 Oct 2007
Posts: 2838

PostPosted: Fri Dec 18, 2009 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Fri Dec 18, 2009 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
jasonl
Silicondust


Joined: 29 Oct 2007
Posts: 2838

PostPosted: Fri Dec 18, 2009 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Fri Dec 18, 2009 9:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
jasonl
Silicondust


Joined: 29 Oct 2007
Posts: 2838

PostPosted: Fri Dec 18, 2009 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Fri Dec 18, 2009 11:06 pm    Post subject: Reply with quote

That makes sense. I'll give it a try on Monday and see.

Thanks again for all your trouble.
Back to top
View user's profile Send private message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Mon Dec 28, 2009 2:54 pm    Post subject: Reply with quote

Sorry for the delay; those pesky holidays and all. Embarassed

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
View user's profile Send private message
jasonl
Silicondust


Joined: 29 Oct 2007
Posts: 2838

PostPosted: Mon Dec 28, 2009 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
digital_archivist



Joined: 18 Dec 2009
Posts: 6

PostPosted: Tue Dec 29, 2009 3:28 pm    Post subject: Reply with quote

I'll take a look. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Silicondust Forum Index -> Development - HDHomeRun All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB