Authored by OF1706

video http

@@ -11,7 +11,7 @@ module.exports = (url, width, height) => { @@ -11,7 +11,7 @@ module.exports = (url, width, height) => {
11 <a href="javascript:;" class="video-close-btn"></a> 11 <a href="javascript:;" class="video-close-btn"></a>
12 <object id="video_0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" 12 <object id="video_0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"
13 classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> 13 classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
14 - <param value="http://rescdn.yohoboys.com/res/new/boys/swf/util/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;language=1&amp;sharepic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg?imageMogr2/thumbnail/738x424|watermark/1/image/aHR0cDovL3Jlc2Nkbi55b2hvYm95cy5jb20vcmVzL25ldy9ib3lzL2ltYWdlcy9iYW5uZXJwbGF5LnBuZw==/dissolve/100/gravity/Center/dx/10/dy/10&amp;title1=Meet...Cody Sanderson &amp;shareurl=http://www.yohoboys.com/channel/detail/index/id/10657/time/1478052894&amp;coverpic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg" 14 + <param value="//cdn.yoho.cn/tool/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;language=1&amp;sharepic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg?imageMogr2/thumbnail/738x424|watermark/1/image/aHR0cDovL3Jlc2Nkbi55b2hvYm95cy5jb20vcmVzL25ldy9ib3lzL2ltYWdlcy9iYW5uZXJwbGF5LnBuZw==/dissolve/100/gravity/Center/dx/10/dy/10&amp;title1=Meet...Cody Sanderson &amp;shareurl=http://www.yohoboys.com/channel/detail/index/id/10657/time/1478052894&amp;coverpic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg"
15 name="movie"> 15 name="movie">
16 <param value="high" name="quality"> 16 <param value="high" name="quality">
17 <param value="#ffffff" name="bgcolor"> 17 <param value="#ffffff" name="bgcolor">
@@ -21,7 +21,7 @@ module.exports = (url, width, height) => { @@ -21,7 +21,7 @@ module.exports = (url, width, height) => {
21 <embed style="width: ${width}px;height: ${height}px; display:block; margin:0 auto;" id="flash" align="absbottom" pluginspage="http://www.macromedia.com/go/getflashplayer" 21 <embed style="width: ${width}px;height: ${height}px; display:block; margin:0 auto;" id="flash" align="absbottom" pluginspage="http://www.macromedia.com/go/getflashplayer"
22 type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" loop="false" 22 type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" loop="false"
23 play="true" bgcolor="#ffffff" quality="high" wmode="transparent" name="vMessage" 23 play="true" bgcolor="#ffffff" quality="high" wmode="transparent" name="vMessage"
24 - src="http://rescdn.yohoboys.com/res/new/boys/swf/util/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;language=1&amp;sharepic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg?imageMogr2/thumbnail/738x424|watermark/1/image/aHR0cDovL3Jlc2Nkbi55b2hvYm95cy5jb20vcmVzL25ldy9ib3lzL2ltYWdlcy9iYW5uZXJwbGF5LnBuZw==/dissolve/100/gravity/Center/dx/10/dy/10&amp;title1=Meet...Cody Sanderson &amp;shareurl=http://www.yohoboys.com/channel/detail/index/id/10657/time/1478052894&amp;coverpic=${url}?vframe/jpg/offset/0"> 24 + src="//cdn.yoho.cn/tool/VideoPlayerNew.swf?id=video_0&amp;url=${url}&amp;language=1&amp;sharepic=http://img01.yohoboys.com/contentimg/2016/06/12/14/0183fabea5332c5902cdd1d0d7fb63df04.jpg?imageMogr2/thumbnail/738x424|watermark/1/image/aHR0cDovL3Jlc2Nkbi55b2hvYm95cy5jb20vcmVzL25ldy9ib3lzL2ltYWdlcy9iYW5uZXJwbGF5LnBuZw==/dissolve/100/gravity/Center/dx/10/dy/10&amp;title1=Meet...Cody Sanderson &amp;shareurl=http://www.yohoboys.com/channel/detail/index/id/10657/time/1478052894&amp;coverpic=${url}?vframe/jpg/offset/0">
25 </object> 25 </object>
26 </div> `; 26 </div> `;
27 }; 27 };
@@ -779,7 +779,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -779,7 +779,7 @@ module.exports = class extends global.yoho.BaseModel {
779 video: [] 779 video: []
780 }; 780 };
781 781
782 - result.video.push(videoPlayerTpl(data.src, 640, 350)); 782 + result.video.push(videoPlayerTpl((data.src).replace(/http:/g, ' '), 640, 350));
783 783
784 return result; 784 return result;
785 }, 785 },