Play MP4 - Forum

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

Play MP4

I have this problem using VisualNeo Win

folder: c:\work\test
Inside folder "test" are present

test1.pub
xxx.html
and a folder "MyVideo" with inside one file movie.mp4

file xxx.html is used to play mp4 file

<video width="720" height="720" autoplay>
<source src="MyVideo/movie.mp4" type="video/mp4">
</video>

If I execute xxx.html inside object "Web Browser" have no problem, and I can see file movie.mp4
If I use function "BrowserLoadFromStr" with inside the same lines present in xxx.html, inside object "Web Browser" I don't see nothing

BrowserLoadFromStr "WebVideoPlay" "<video width=[#34]720[#34] height=[#34]720[#34] autoplay>| <source src=[#34]MyVideo/movie.mp4[#34] type=[#34]video/mp4[#34]>|</video>"

Where in my error?
I think that could be an error on path where my file is, but I don't have idea how resolve it.

Thanks for help me

 

@naglieri

You can try plugins to play the video (they will show the video in a rectangle, no browser required):

zmWMP (Peter Pavlov)

zmVLC (Peter Pavlov)

luishp has reacted to this post.
luishp

@naglieri it's a path problem. This will work:

BrowserLoadFromStr "WebBrowser1" "<video width=[#34]720[#34] height=[#34]720[#34] autoplay> <source src=[#34]http://techslides.com/demos/sample-videos/small.mp4[#34] type=[#34]video/mp4[#34]> </video>"

Note that in my sample I'm giving the exact path to the .mp4 video file.
When you load xxx.html there is a default path to start looking at, but not when you just inject the code into the web browser.
So, try this:

BrowserLoadFromStr "WebVideoPlay" "<video width=[#34]720[#34] height=[#34]720[#34] autoplay>| <source src=[#34][PubDir]MyVideo/movie.mp4[#34] type=[#34]video/mp4[#34]>|</video>"

Just prepend [PubDir] to your video path.

Regards

Thanks to both of you for the solution.

 

luishp has reacted to this post.
luishp
Quote from Vadim on March 18, 2021, 6:03 pm

@naglieri

You can try plugins to play the video (they will show the video in a rectangle, no browser required):

zmWMP (Peter Pavlov)

zmVLC (Peter Pavlov)

Unfortunately they are both in Russian, and even from the examples it is not easy to use them.

@naglieri

The zmVLC plugin has a localization file (ENG.lng), try experimenting with it. Help is easily translated by Google.

Here's a little demo file I made for a neighboring thread.

Uploaded files:
  • You need to login to have access to uploads.

Resolved.

Inside the neobooker.ru site (thanks to google translator) I found zmVLC_en.zip.

English plugins and demos (much better)
What are Peter Pavlov's plugins (besides ZmFunctions) and where I can find them?.

Thank you

@naglieri

You can attach the English version of the plugin to your post so that others can download it.
Those plugins that I have can be downloaded on my course page in the Resources section (the course is free for everyone). The link is called "Library of plugins for NeoBook \ VisualNEO Win". (There is a password to the archive next to the link). The archive had to be closed with a password so that antiviruses skipped the download of the archive, because they often give false positives on plugins. Use Google Chrome, it translates pages on the fly. I update the plugin library periodically.
Link to the course: https://distant.orgpsiholog.ru/course/view.php?id=20

In attach file with plugin and example in english.

This link https://strongfiles.net/YkgyS

is file VLC208.zip ( 10 mb ) important for plugin.

About https://distant.orgpsiholog.ru/course/view.php?id=20 Malwarebites find it as Troian( see file Cattura.JPG)

The only solution is use your web on a windows on my VMware .... and google traslator for english :-)

 

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

@naglieri

Probably because of some DLL in the archive with plugins. I will check in April what is suspicious to anti-viruses there (just no time now).

I could not find the the link called "Library of plugins for NeoBook \ VisualNEO Win".
Despite having used chrome for the translation of the site.

Could you send some indications to find it easily?

I currently have 434 free / registered and developed plugins for me.
It might be interesting to make them available to all developers.

@naglieri

I attach a screenshot in two languages. This is how the link to the archive looks like in Russian and in English.

I give the address of the page, but not a direct link to the archive, because the link may change, but the page will always be there. The course is free, but requires authorization, as I track my students' activity. To sign up for the course you need to register at https://distant.orgpsiholog.ru/, then follow the link to the course https://distant.orgpsiholog.ru/course/view.php?id=20 and click the "Enroll in Course" button (it's under the course description). After that, the course will always be available.

My library has just over 170 plugins, you have many more. I would be very happy if you could share a link to your library. Of course, I ask not to post registered plugins. I'm only interested in free ones, so I can put them for all my students in this library, for free access.

Uploaded files:
  • You need to login to have access to uploads.