We are pleased to say that “Yendif Video Share” could be added to your Article pages. To use this option, first, you need to enable the plugin from “System → Manage → Plugins → Player – Yendif Video Share“. Then using {yendifplayer} syntax inside the content area of your article page will replace the syntax with the Yendif Video Share Player.
Write the shortcode on a single line and separate each option with a single space. Only the options you need have to be included — everything else falls back to your Player Profile Settings.
Playing video through DIRECT URL
{yendifplayer mp4=http://mysite.com/video.mp4 image=http://mysite.com/poster.jpg captions=http://mysite.com/subtitle.vtt}
| Option | Description | Example |
|---|---|---|
| mp4 | Path or URL of the MP4 (H.264) video file. | http://mysite.com/video.mp4 |
| mp4_hd | Optional HD source, offered as a quality option inside the player. | http://mysite.com/video-hd.mp4 |
| webm | Optional WebM source of the same video. | http://mysite.com/video.webm |
| ogv | Optional Ogg Video source of the same video. | http://mysite.com/video.ogv |
| image | Poster image displayed before and after the video playback. | http://mysite.com/poster.jpg |
| captions | WebVTT subtitle file for the video. | http://mysite.com/subtitle.vtt |
Configure YouTube / Vimeo video
{yendifplayer youtube=https://www.youtube.com/watch?v=mzPxo7Y6JyA ratio=56.25}
| Option | Description | Example |
|---|---|---|
| youtube | YouTube watch URL. The thumbnail is fetched automatically when no image is given. | https://www.youtube.com/watch?v=mzPxo7Y6JyA |
| vimeo | Vimeo video URL. The thumbnail is fetched automatically when no image is given. | https://vimeo.com/76979871 |
Configure live stream (HLS / DASH)
{yendifplayer hls=http://mysite.com/stream/playlist.m3u8 image=http://mysite.com/poster.jpg}
| Option | Description | Example |
|---|---|---|
| hls | URL of an HLS playlist (.m3u8) for HTTP Live Streaming. | http://mysite.com/stream/playlist.m3u8 |
| dash | URL of an MPEG-DASH manifest (.mpd). | http://mysite.com/stream/manifest.mpd |
Note : RTMP streams are configured on the Video itself. Add the Video to your library with the RTMP source type, then embed it using the videoid option shown below.
Adding single video through ID
{yendifplayer videoid=X ratio=56.25}
| Option | Description | Example |
|---|---|---|
| videoid | ID of a Video already added to your Video library. All of its own settings — source type, poster, captions — are used. | 1 |
Note : X – refer to the VIDEO ID.
Adding video playlist
{yendifplayer catid=X orderby=latest filterby=none limit=10}
| Option | Description | Example |
|---|---|---|
| catid | Category ID whose videos build the playlist. | 3 |
| orderby | Order of the videos in the playlist: latest, date_added, most_viewed, most_rated, a_z, z_a, random or ordering. | latest |
| filterby | Limit the playlist to Featured videos, or apply no filter: featured or none. | none |
| limit | Maximum number of videos in the playlist. | 10 |
| playlist_position | Where the playlist sits next to the player: right or bottom. | right |
| playlist_width | Width of the playlist in pixels, used when the position is right. | 250 |
| playlist_height | Height of the playlist in pixels, used when the position is bottom. | 125 |
| autoplaylist | Play the next video automatically when the current one ends: 0 or 1. | 1 |
Note : X – refer to the CATEGORY ID.
Configuring Player
The options below can be added to any of the shortcodes above to override your Player Profile Settings for that one player.
{yendifplayer videoid=1 width=640 ratio=56.25 autoplay=1 volume=50 share=0}
Size & playback
| Option | Description | Example |
|---|---|---|
| width | Maximum width of the player in pixels. Leave it out for a player that fills the available width. | 640 |
| ratio | Height of the player as a percentage of its width — 56.25 for 16:9, 75 for 4:3. | 56.25 |
| autoplay | Start playing as soon as the page loads: 0 or 1. | 0 |
| loop | Replay the video when it ends: 0 or 1. | 0 |
| volume | Volume the player starts at, from 0 to 100. | 50 |
Player controls
Each of these takes 0 to hide the control or 1 to show it.
| Option | Description | Example |
|---|---|---|
| playbtn | Large play button in the centre of the player. | 1 |
| controlbar | The whole control bar along the bottom of the player. | 1 |
| playpause | Play / pause button. | 1 |
| currenttime | Elapsed time display. | 1 |
| progress | Progress bar. | 1 |
| duration | Total duration display. | 1 |
| volumebtn | Volume button and slider. | 1 |
| fullscreen | Fullscreen button. | 1 |
| embed | Embed code option. | 1 |
| share | Social share option. | 1 |
Still stuck on something? We’re just an email away. Reach out to us here, and you should receive a reply within 24 hours, except on Sundays.