'origin' target='_blank' href='https://trustseal.enamad.ir/?id=444303&Code=yim5isR4TzMbGP0n1meM9UPJ38TfEVzi'> {
const players = {};
//Array.from(document.querySelectorAll('video')).forEach(video => {
Array.from(document.getElementsByClassName('myplyr')).forEach(video => {
const mycontrols = [
"play-large", // The large play button in the center
"restart", // Restart playback
"rewind", // Rewind by the seek time (default 10 seconds)
"play", // Play/pause playback
"fast-forward", // Fast forward by the seek time (default 10 seconds)
"progress", // The progress bar and scrubber for playback and buffering
"current-time", // The current time of playback
"duration", // The full duration of the media
"mute", // Toggle mute
"volume", // Volume control
"settings", // Settings menu
"pip", // Picture-in-picture (currently Safari only)
"airplay", // Airplay (currently Safari only)
"download", // Show a download button with a link to either the current source or a custom URL you specify in your options
"fullscreen" // Toggle fullscreen
];
const controls = ["play-large","","","play","","progress","current-time","duration","mute","volume","settings","pip","airplay","download","fullscreen"];
players[video.id] = new Plyr(video, {
loadSprite: false,
iconUrl: '/templates/yootheme_jorjani/builder/video-plyr/plyr.svg',
speed: {
selected: 1,
options: [0.5, 0.75, 1, 2, 3]
},
controls: controls
});
});
});