Page 1 of 1

Media Player on HTML5 Plugin

PostPosted: Sat Jan 16, 2016 4:32 am
by anton
Image
Plug-in Media Player in HTML5 adds Neo AppBuilder opportunity to work with audio and video files.

Actions Plugin (Google Translate):

bakCreateVideoPlayer - Create a container object in the video player. Supported video formats - MP4.
bakCreateAudioPlayer - Create a container object in the audio player. Supported audio format - MP3.
bakNewMediaFile - Upload to an existing video/audio player is a new file for playback.
bakPlayMediaFile - Start playback of audio/video content
bakPauseMediaFile - pause playback of audio/video content
bakStopMediaFile - Stop playback of audio/video content
bakSpeedMediaFile - Change the playback speed of audio/video content. It is advisable to use a range of speeds from 50 to 200.
bakVolumeMediaFile - Change the playback volume of audio/video content. Use the volume range of values ​​from 0 to 100.
bakDurationMediaFile - Get the total duration of the playback of audio/video content in seconds and preserve the value of a variable.
bakBufferMediaFile - Get the value of the playback of audio/video content in seconds and placed in a buffer to maintain the value of a variable.
bakCTMediaFile - Get the current time playback of audio/video content in seconds and preserve the value of the variable.
bakRewCTMediaFile - Rewind the playback audio/video content at a specific time. The value must be specified in seconds and does not exceed the total duration of the video.
bakVideoPlayerFullScreen - Expand the video player to full screen.
bakRemoveMediaFile - delete the object of audio/video. Undocumented features of HTML5, does not work in all browsers.

Demo Download Plugin

Re: Media Player on HTML5 Plugin

PostPosted: Sat Jan 16, 2016 3:07 pm
by Neosoft Support
Very nice! Thanks Anton.

Re: Media Player on HTML5 Plugin

PostPosted: Sun Jan 17, 2016 1:20 am
by anton
Neosoft Support wrote:Very nice! Thanks Anton.

Thank you. I'm a little touched up code plug and added another in the plug-in effect:
bakScreenVideoPlayer - Creates screenshot video player and places it in the container object. It can be saved as an image, using the context menu Right-click.

Re: Media Player on HTML5 Plugin

PostPosted: Mon Jan 18, 2016 5:14 am
by luishp
Thank you very much Anton! :-)

Re: Media Player on HTML5 Plugin

PostPosted: Sat Jan 30, 2016 4:22 am
by DELCO
Thank you Anton !

Re: Media Player on HTML5 Plugin

PostPosted: Thu Oct 26, 2017 5:53 am
by anton
At the request of TinTin added a video looping command:
Code: Select all
bakLoopMediaFile "Container1" true

Download

Re: Media Player on HTML5 Plugin

PostPosted: Wed Nov 01, 2017 12:32 am
by anton
At the request of "TinTin" added the command to create a video player after the full download of the video on the site. Very dubious desire, especially for large files.

After executing the command, the global variable [bakVideoLoad] will be created, which will contain the percentage of the current movie upload with possible values from 0 to 100

Code: Select all
bakCreateVideoPlayerPreload "Container1" "http://localhost/mpleertest/12345.mp4" true


Important:
The path to the video clip must necessarily be a URL (http: \\, https: \\, data: \\)
If the video clip is downloaded from another domain, then on the server where the video materials lie there should be appropriate permissions for cross domain requests (CORS).
The easiest way to implement this is to create a file named .htaccess on the web server with video clips and write in it:

Code: Select all
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>


Download