1/** 2 * [ç¹å»ææ¾æé®å¨æçæè§é¢ææ¾æ§ä»¶] 3 * @video_item {[DOM]} [è§é¢DOM容å¨] 4 * @video_id {[number]} [è§é¢id] 5 * @video_width {[number]} [è§é¢å®½åº¦] 6 * @video_height {[number]} [è§é¢é«åº¦] 7 * @xu.qiang 2017.11.05 8 */ 9$(function () { 10 if ($('.detail-video').length > 0) { 11 $('.detail-video .icon-play').on('click', function (e) { 12 e.preventDefault(); 13 var $self = $(this), 14 video_item = $self.closest('.detail-video'), 15 video_id = video_item.attr('data-id'), 16 video_width = video_item.attr('data-width'), 17 video_height = video_item.attr('data-height'); 18 19 video_item.html('<div class="rel_vedio"></div>'); 20 var isSupportVideo = XVIDEOPlAYER.checkIE() 21 if (isSupportVideo) { 22 var xp = XP.create(video_item.find('.rel_vedio')[0], { 23 id: video_id, 24 autoplay: true, 25 width: video_width, 26 height: video_height 27 }); 28 } else { 29 var opt = { 30 params: { 31 videoId: video_id, 32 url: "//xtv.xcar.com.cn/interface/get_dhplayer_structure.php", 33 type: 1, 34 }, 35 options: { 36 pic: '', 37 container: video_item.find('.rel_vedio')[0], 38 quality: [], 39 autoplay: true, 40 loop: false, 41 ended: function () {} 42 } 43 } 44 XVIDEOPlAYER.getVideoSource(opt) 45 46 } 47 }) 48 } 49});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.