video-player-tpl.js 1.25 KB
/**
 * Created by TaoHuang on 2016/11/3.
 */

'use strict';

module.exports = (url, width, height) => {
    width = width || 750;
    height = height || 300;
    return `<div class="video-wrap">
        <a href="javascript:;" class="video-close-btn"></a>
        <object id="video_0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
        <param value="//cdn.yoho.cn/tool/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;tuijian=0"
    name="movie">
        <param value="high" name="quality">
        <param value="#ffffff" name="bgcolor">
        <param name="allowFullScreen" value="true">
        <param value="always" name="allowScriptAccess">
        <param value="transparent" name="wmode">
        <embed style="width: ${width}px;height: ${height}px; display:block; margin:0 auto;" id="flash" align="absbottom" pluginspage="http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" loop="false"
    play="true" bgcolor="#ffffff" quality="high" wmode="transparent" name="vMessage"
    src="//cdn.yoho.cn/tool/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;tuijian=0">
        </object>
        </div> `;
};