Plugin / Bradmax Player
kostalskiDescription
Description
Bradmax Player is a plugin, which supports video streams playback on desktops and mobile devices. If you have access to video streaming in formats:
– HLS
– MPEG-DASH
– MS Smooth Streaming
or simple mp4, webM, ogg files, then you can watch them on your site with Bradmax Player. It is even supporting HLS or MS Smooth Streaming playback on platforms / devices, which
usually not support them. In such cases video is “transconded” on-fly in your browser during playback.
Player support also:
- poster image – Custom image from video, which is displayed on player before playback.
- subtitles – Embedded in HLS, MPEG-DASH, MS Smooth Streaming video stream or from external files in SRT, VTT file formats.
- basic video statistics for Google Analytics – Just paste your Google Analytics tracker id into player settings for collecting information about video views and watched time.
Requirements
- A self-hosted website running on WordPress CRM.
Bradmax Player Features
- Embed video streams into a post/page or anywhere on your WordPress site (supported streaming formats HLS, MPEG-DASH, MS Smooth Streaming).
- Embed video files (MP4, WebM, Ogg) into your page.
- Embed responsive videos for a better user experience while viewing from a mobile device.
- Embed videos with poster images.
- Automatically play a video when the page is rendered.
- Embed videos uploaded to your WordPress media library using direct links in the shortcode.
- No setup required, simply install and start embedding videos.
- Lightweight and compatible with the latest version of WordPress
- Clean and sleek player with no watermark.
- Player customisation is available (change skin, colors, logo, etc.). It requires only sign-up on https://bradmax.com/site/en/signup . It’s free and basic version of player is also free.
- Embed video with subtitles (subtitles loaded from stream or from SRT, VTT files).
- Collect basic statistics about video playback in your Google Analytics account.
Bradmax Player Plugin Usage
In order to embed a video create a new post/page and use the following shortcode:
[bradmax_video url="https://bradmax.com/static/video/tos/big_buck_bunny.m3u8" duration="596" poster="https://bradmax.com/static/images/startsplash.jpg"]
- “url” is the location of your streaming. You need to replace the sample URL with the actual URL of the video stream.
- “duration” contain length in seconds of video, so it can be displayed on player before staring playback.
- “poster” is location of poster image, which should be displayed on player. Replace sample URL with link of your image.
Video playback statistics with Google Analytics
Player can collect basic statistics for video playback. You just need to copy your “Tracking ID” from Google Analytics page into player settings.
For finding “Tracking ID” please open: Google Analytics > Admin > Tracking Info > Tracking Code .
“Tracker ID” is code having form “UA-XXXXXXXX-X”, where X is 0-9 digit and you have to copy it into ga_tracker_id video shortcode option (see section below).
Player collects video playback details as “Events” in your Google Analytics account. There are available in sections:
- Google Analytics panel > Real-Time > Events
- Google Analytics panel > Behaviour > Events
Player is sending events:
- event category: view , event action: started (send on starting video playback)
- event category: player event, event action: playing/paused (send on play/pause video)
- event category: progress seconds, event action: progress seconds (send every 10 sec of playback)
For each media distinction in statistics you have to specify in video shortcode option “media_id”. Then each event got additionaly “Event Label” with data provided from media_id parameter. media_id can be any text, which you want to define, but it is recomended to keep it short.
Video Shortcode Options
The following options are supported in the shortcode.
Autoplay
Causes the video file to automatically play when the page loads.
Note: Currenlty this option is working only on desktop devices with muted sound (see “Mute” shortcode). On mobile devices (phones, tablets, etc.) this option is not working.
It is platform limitation and clicking on video is required for starting playback.
[bradmax_video url="http://example.com/hls_stream.m3u8" autoplay="true"]
Mute
Causes the video starts with muted sound. This option is usefull for starting video automatically with “autoplay” option.
[bradmax_video url="http://example.com/hls_stream.m3u8" autoplay="true" mute="true"]
Duration
Defines length of video stream in seconds. Can contain fraction of second. It is required for displaying duration of video before staring playback.
[bradmax_video url="http://example.com/hls_stream.m3u8" duration="100.1"]
Poster
Defines image to show as placeholder before the video plays.
[bradmax_video url="http://example.com/hls_stream.m3u8" poster="http://example.com/wp-content/uploads/poster.jpg"]
Class
Defines CSS class, which should be added into player box on page (customizing view on WordPress page).
[bradmax_video url="http://example.com/hls_stream.m3u8" class="my-custom-player-css-class"]
Style
Defines CSS style string, which should be added into player for on page (customizing view on WordPress page).
[bradmax_video url="http://example.com/hls_stream.m3u8" style="width:400px;height:200px;border:solid 1px gray"]
Subtitles
Defines list of subtitles files (one file per language) for video. Subtitles files has to be in SRT or VTT format (file extension *.srt or *.vtt). Format for subtitles list subtitles=”LANG_CODE=FILE_LINK LANG_CODE=FILE_LINK …”, where LANG_CODE is two letter language code (ISO 639-1 standard – https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for defining subtitles language. FILE_LINK is link to file stored on some HTTP server, which player will be able to download during playback.
Working example (subtitles in Czech language):
[bradmax_video url="https://bradmax.com/static/video/tos/tesla/tesla.m3u8" subtitles="cz=https://bradmax.com/static/video/tos/tesla/tesla_cz.srt"]
Example with multiple languages for video:
[bradmax_video url="http://example.com/hls_stream.m3u8" subtitles="en=https://example.com/subtitles_en.srt cz=https://example.com/subtitles_cz.srt sk=https://example.com/subtitles_sk.srt"]
ga_tracker_id
Defines Google Analytics tracker id. When defined video playback is tracked in your Google Analytics account in “Events” sections.
“Tracker ID” is code having form “UA-XXXXXXXX-X”, where X is 0-9 digit and is located in Google Analytics > Admin > Tracking Info > Tracking Code.
Example:
[bradmax_video url="http://example.com/hls_stream.m3u8" ga_tracker_id="UA-XXXXXXXX-X" media_id="my example stream"]
media_id
This parameter is used, when Google Analytics plugin is active (see ga_tracker_id video shortcode). It is used for each media distinction, so for each different video diferent value should be provided. It can be any text, but it is recomended to keep it short.
Ratings
Rating breakdown
Details Information
Version
First Released
Total Downloads
Wordpress Version
Tested up to:
Require PHP Version:
Tags
Contributors
Languages
The plugin hasn't been transalated in any language other than English.
DIRECTORY DISCLAIMER
The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.
The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.
Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.
While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.
wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.