Каталог файловtilda-video-1.0.js
201 hashQueryStr = videoHash ? '&h=' + videoHash : '';202 hashQueryStr += dataVideoPlay ? '&autoplay=1' : '';203 hashQueryStr += dataVideoMute ? '&muted=1' : '';204 hashQueryStr += dataVideoJsApiEnabled ? '&api=1' : '';205 206 video.insertAdjacentHTML(207 'afterbegin',208 '<iframe src="//player.vimeo.com/video/' +209 videoId +210 '?title=0&byline=0&portrait=0&badge=0&color=ffffff' +211 hashQueryStr +212
История файла и сравнение версий
'" width="100%" height="' +
214 '" frameborder="0"' + 215 (dataVideoPlay ? ' allow="autoplay"' : '') + 216 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>' 218 } else if (dataVideoType === 'kinescope') { 219 hashQueryStr += dataVideoPlay ? '&autoplay=1' : ''; 220 hashQueryStr += dataVideoMute ? '&muted=1' : ''; 222 if (videoId.indexOf('?') === -1) hashQueryStr = hashQueryStr.replace('&', '?'); 224 var iframeId = kinescopeVideoUniqueId + blockId; 225 video.insertAdjacentHTML( 229 '" src="https://kinescope.io/embed/' + 232 '" width="100%" height="' + 234 '" frameborder="0" scrolling="no" allow="fullscreen; picture-in-picture; encrypted-media;"></iframe>' 236 } else if (dataVideoType === 'rutube') { 237 hashQueryStr += videoHash ? '&p=' + videoHash : ''; 238 hashQueryStr += dataVideoPlay ? '&autoplay=1' : ''; 239 hashQueryStr += dataVideoMute ? '&muted=1' : ''; 240 hashQueryStr = hashQueryStr.replace('&', '?'); 242 video.insertAdjacentHTML( 244 '<iframe src="https://rutube.ru/embed/' + 247 '" width="100%" height="' + 249 '" frameborder="0" scrolling="no" allow="clipboard-write; autoplay; fullscreen; picture-in-picture; encrypted-media;" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' 251 } else if (dataVideoType === 'vkvideo') { 253 /(?:video|video_ext\.php\?oid=|clip=?|)(-?\d+)_(\d+)|oid=(-?\d+)&id=(\d+)(?:.*?hash=([a-f0-9]+))?/; 254 var match = videoId.match(regExp); 259 oid = match[1] || match[3]; 260 id = match[2] || match[4]; 262 if (!videoHash && match[5]) videoHash = match[5]; 265 hashQueryStr += dataVideoPlay ? '&autoplay=1' : ''; 266 hashQueryStr += dataVideoMute ? '&muted=1' : ''; 267 hashQueryStr += videoHash ? '&hash=' + videoHash : ''; 268 hashQueryStr += dataVideoJsApiEnabled ? '&js_api=1' : ''; 270 video.insertAdjacentHTML( 272 '<iframe src="https://vkvideo.ru/video_ext.php?oid=' + 278 '" width="100%" height="' + 280 '" frameborder="0" scrolling="no" allow="autoplay; encrypted-media; fullscreen; picture-in-picture;"></iframe>' 282 } else if (dataVideoType === 'boomstream') { 283 hashQueryStr += dataVideoPlay ? '&autostart=1' : ''; 284 hashQueryStr += dataVideoMute ? '&volume=0' : ''; 285 hashQueryStr = hashQueryStr.replace('&', '?'); 287 if (videoId.includes('.mp4')) { 291 height="${videoHeight}" 293 ${dataVideoPlay ? 'autoplay' : ''} 294 ${dataVideoMute ? 'muted' : ''} 295 ${dataVideoPlayInline ? 'playsinline' : ''} 296 ${dataVideoImage ? `poster="${dataVideoImage}"` : ''} 298 <source src="${videoId}" type="video/mp4"> 299 Your browser does not support the video tag.