Hack Forums
[.NET] VB2010 wont run a stream - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] VB2010 wont run a stream (/showthread.php?tid=4086834)



VB2010 wont run a stream - Djokovic - Feb 27, 2014

hi all coding a system to stream and when i click the play button it says connecting then connected but doesnt play.

the code ive used is

Code
axwindowsmediaplayer1.url = "www.youtube.com/455453"


^^Youtube example


any ideas people?


* - shebang - Feb 27, 2014

I hope that's not the actual link you're using.
Try this:
Code
https://youtube.googleapis.com/v/{ID}



* - Djokovic - Feb 27, 2014

didnt understand that 1 bit link doesnt work?


* - Ingenuity - Feb 27, 2014

(Feb 27, 2014 04:02 PM)Djokovic Wrote:  hi all coding a system to stream and when i click the play button it says connecting then connected but doesnt play.

the code ive used is

Code
axwindowsmediaplayer1.url = "www.youtube.com/455453"

^^Youtube example

any ideas people?

That's because you need the absolute URI of the mp4 or flv file associated with the youtube clip. Try a WebBrowser component, and make it navigate to a link like this:

https://www.youtube.com/watch?v=hkDD03yeLnU

Replace /watch?v= with /v/, so like this:

https://www.youtube.com/v/hkDD03yeLnU


* - Djokovic - Feb 27, 2014

okay mate thanks i have found a video i want to stream but its in the format of this

www.xxxxxx.com/54435

how would i stream something like that?

ive tried using the /v/ but nothing


* - shebang - Feb 28, 2014

(Feb 27, 2014 07:12 PM)Djokovic Wrote:  okay mate thanks i have found a video i want to stream but its in the format of this

www.xxxxxx.com/54435

how would i stream something like that?

ive tried using the /v/ but nothing

No YouTube video is in that format..


* - Djokovic - Feb 28, 2014

noo i dont mean has xxxxx.com

basically like this www.youtube.com/43634

im talkin about the numbers at the end are they encoded in any way?


* - Aeonhack Archivist - Feb 28, 2014

(Feb 28, 2014 02:14 PM)Djokovic Wrote:  noo i dont mean has xxxxx.com

basically like this www.youtube.com/43634

im talkin about the numbers at the end are they encoded in any way?

So you are trying to stream a Flash object into a Windows Media Player....?? 😧


* - Ingenuity - Feb 28, 2014

(Feb 28, 2014 02:15 PM)alecn1519 Wrote:  So you are trying to stream a Flash object into a Windows Media Player....?? 😧

Yes, that's exactly what he's trying to do - in short, twit.