Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB Using Media Player to play .mp4

So i have the windows media player component already in there. I want button 1 to play a .mp4 from a website, not a file path.

i have this:

AxWindowsMediaPlayer1.URL = "www.website.com/movie.mp4"

But it doesn't seem to work.

Any suggestions?
[Image: rVdyS6y.png]
if anything, download the file from the website into a temp directory using a WebClient and play it from that temporary directory you've just placed it in.

If you're trying to make something like Pandora or something, this will be inefficient, but if you just need one or two files, this should work.
(Jul 27, 2015 04:51 PM)Sleeping With Sirens Wrote:  if anything, download the file from the website into a temp directory using a WebClient and play it from that temporary directory you've just placed it in.

If you're trying to make something like Pandora or something, this will be inefficient, but if you just need one or two files, this should work.

That's actually what i want to avoid. Downloading anything. I just want it to stream.
[Image: rVdyS6y.png]
(Jul 27, 2015 04:53 PM)Wide Awake Wrote:  That's actually what i want to avoid. Downloading anything. I just want it to stream.

Mind posting your entire method for accomplishing this? (the code for the method / void, whatever you want to call it).
(Jul 27, 2015 04:55 PM)Sleeping With Sirens Wrote:  Mind posting your entire method for accomplishing this? (the code for the method / void, whatever you want to call it).

It's not much. Just a play button that will autoplay a link.

Lets say the link is this

http://www.jpl.nasa.gov/videos/wise/2012...8-1280.m4v

edit: Hmm it seems to work well with the .m4v link above. But a .mp4 wont work. I wonder because if the component is old and outdated? Perhaps using VLC component would do the trick? If so.. would that person need to have vlc installed to actually play the video file?
[Image: rVdyS6y.png]
(Jul 27, 2015 05:41 PM)Wide Awake Wrote:  edit: Hmm it seems to work well with the .m4v link above. But a .mp4 wont work. I wonder because if the component is old and outdated? Perhaps using VLC component would do the trick? If so.. would that person need to have vlc installed to actually play the video file?

If you include the .dll with your application, it should be fine. Try it on a VM just to make sure.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by darkdoctorMay 10, 2018 01:34 PM 8 313 May 10, 2018 01:34 PM
Last Post: darkdoctor
[C#] by FryPanDec 28, 2017 07:39 AM 10 521 Dec 28, 2017 07:39 AM
Last Post: FryPan
[Python] by muroseuSep 16, 2016 08:35 AM 9 313 Sep 16, 2016 08:35 AM
Last Post: Sleeky