Play MP4 video in VisualNeo Windows - Forum

Forum Navigation
You need to log in to create posts and topics.

Play MP4 video in VisualNeo Windows

Can't find what types of videos the Media Player works with.  Or.....How to play an MP4 video in VisualNeo?

 

thanks

Don

 

 

There isn't exactly a direct way to do this with a media player object.  I am pretty sure you can only use .avi and .mpeg with the Media Player object. However its easy to accomplish.

Add a WebBrowser Object and a Button to your project. You can leave the web browser objects url blank. In the button use the BrowserLoadFromStr action and use something like this

<video width="400" height="240" controls>
  <source src="C:\Users\mazzu\Videos\4K Video Downloader\test.mp4" type="video/mp4">
</video>

Should work. Of course when you compile your application and distribute it, you will have to package any used videos manually (unless you just upload them to YouTube and use that url instead of the file location in the example above, which is what I would do).

To use a YouTube video you would do the same as above but in the BrowserLoadFromStr code put the code youtube gives you (which you can get from the YouTube page of the video with Share / Embed)

The WebBrowser Object can accomplish a lot of your multimedia needs with some simple html like above.

Hope that helps

If you desire more control over the video in your project you can easily incorporate some script like this

<video id="myvid" width="400" height="240">
  <source src="C:\Users\mazzu\Videos\4K Video Downloader\test.mp4" type="video/mp4">
</video>
<script>
var vid = document.getElementById("myvid");
vid.autoplay = true;
vid.load();
</script>

There is an excellent resource for this here

https://www.w3schools.com/tags/ref_av_dom.asp

@donbwalker

The zmVLC plugin works well with mp4:

zmVLC 0.1b (Пётр Павлов)

Download from the link (Together with the necessary libraries): http://pc.cd/VDn7

Thank you @vadim for english version of very good and useful plug.in:-)

 

Cheers!

@vadim Possible to post the zmVLC English version your previous link doesn't work

Disregard :)

Would be nice if one of the current plugin developers made a VLC and a WMP plugin for VNW.  This would be a nice addition

I use PowerPoint to create some animations and save as a mp4 and be nice to play within an object.

I have a very functional VLC plugin in my project folder for Neobook. It would need a few touches, a few. If there was greater interest, I could launch.

rcohen has reacted to this post.
rcohen

VLC and WMP are 2 things I am very much interested in and wanting. Surprised nobody has done a plugin for that as mp4's are very common place today.

rcohen has reacted to this post.
rcohen
Quote from Krakerman on November 22, 2021, 7:55 pm

VLC and WMP are 2 things I am very much interested in and wanting. Surprised nobody has done a plugin for that as mp4's are very common place today.

VLC

WMP

Last version of the VLC plugin shown 2014. It is very old. Does he play videos straight from YouTube too?

NeoDX

Krakerman has reacted to this post.
Krakerman

@albertomeyer

Does he play videos straight from YouTube too?

Used to play, now I don't know. Haven't used it in a while.

Last version of the VLC plugin shown 2014. It is very old.

I hope it still works in 30 years. :)

I totally forgot about NeoDX. Yes that plugin plays MP4's just tested it :)

luishp has reacted to this post.
luishp

NeoMediaPlayer Plugin

Uploaded files:
  • You need to login to have access to uploads.
Quote from DaviddeArgentina on November 23, 2021, 12:13 am

NeoMediaPlayer Plugin

I forgot about yours. :)

Now with this database can be found any plugin.

 

luishp and Vadim have reacted to this post.
luishpVadim

I bet a good LightBox plugin with HTML ability could be put to good work with both, local and remote media.   I hear rumors of one coming down the pike ;-)

VLC is okay but it is a rather large file and slow to open (it has playlists etc.,)

I discovered that the new open source mpv player will embed in a rectangle and it will play any media file without crashing..

mpv.io

 

luishp and noyzen have reacted to this post.
luishpnoyzen