PageSourceSearch

https://js.xcar.com.cn/source/danhong/xplayer_detail.js?v=202304101444

js xcar.com.cn collected 2026-10-02 02:40:44 UTC 1,315 bytes, 49 lines download raw bytes

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.