PageSourceSearch

https://1024cg.com/usr/plugins/DPlayer/assets/player.min.v.1.0.4.js?v=3

js 1024cg.com collected 2026-10-05 04:46:20 UTC 30,565 bytes, 552 lines download raw bytes

1window['DPLAYER_PREROLL_AD'] = (function () {
2    var _0x112536 = 0x5, _0x21659e = 0x5, _0x22fc38 = ![];
3    function _0x5e801d(_0x344129) {
4        return typeof _0x344129 === 'string' && /^\s*https?:\/\//i['test'](_0x344129);
5    }
6    function _0x321875(_0x3d1859) {
7        if (typeof _0x3d1859 !== 'string')
8            return ![];
9        if (/\.(gif|png|jpe?g|webp|bmp|svg|avif)(\?|#|$)/i['test'](_0x3d1859))
10            return !![];
11        if (/^\s*data:image\/(gif|png|jpe?g|webp|bmp|svg\+xml|avif);base64,/i['test'](_0x3d1859))
12            return !![];
13        return ![];
14    }
15    function _0x59914a(_0x13a933) {
16        if (!_0x13a933 || !_0x13a933['setAttribute'])
17            return;
18        _0x13a933['setAttribute']('playsinline', 'true'), _0x13a933['setAttribute']('webkit-playsinline', 'true'), _0x13a933['setAttribute']('x5-playsinline', 'true'), _0x13a933['setAttribute']('x5-video-player-type', 'h5-page'), _0x13a933['setAttribute']('x5-video-player-fullscreen', 'false'), _0x13a933['setAttribute']('x5-video-orientation', 'portraint'), _0x13a933['setAttribute']('t7-video-player-type', 'inline');
19    }
20    function _0x39c807(_0x570cd0) {
21        if (!_0x570cd0)
22            return null;
23        if (_0x570cd0['ads_skip'] === 0x1 || _0x570cd0['ads_skip'] === '1')
24            return null;
25        if (!Array['isArray'](_0x570cd0['video_player_ads']) || _0x570cd0['video_player_ads']['length'] === 0x0)
26            return null;
27        var _0x39e247 = [];
28        for (var _0x24bdcf = 0x0; _0x24bdcf < _0x570cd0['video_player_ads']['length']; _0x24bdcf++) {
29            var _0x16900e = _0x570cd0['video_player_ads'][_0x24bdcf];
30            if (_0x16900e && _0x321875(_0x16900e['src']))
31                _0x39e247['push'](_0x16900e);
32        }
33        if (_0x39e247['length'] === 0x0)
34            return null;
35        var _0x4b1e99 = _0x39e247[Math['floor'](Math['random']() * _0x39e247['length'])], _0x3143bf = +_0x570cd0['ads_duration'] > 0x0 ? +_0x570cd0['ads_duration'] : _0x21659e;
36        return {
37            'src': _0x4b1e99['src'],
38            'url': _0x5e801d(_0x4b1e99['link']) ? _0x4b1e99['link'] : '',
39            'totalDuration': _0x3143bf,
40            'data-page_key': _0x4b1e99['data-page_key'] || '',
41            'data-page_name': _0x4b1e99['data-page_name'] || '',
42            'data-ad_slot_key': _0x4b1e99['data-ad_slot_key'] || '',
43            'data-ad_slot_name': _0x4b1e99['data-ad_slot_name'] || '',
44            'data-ad_id': _0x4b1e99['data-ad_id'] || '',
45            'data-creative_id': _0x4b1e99['data-creative_id'] || ''
46        };
47    }
48    var _0x49b1b4 = function (_0x44e478, _0x1d08ef, _0x470cbc) {
49        if (!_0x44e478 || !_0x44e478['video'] || !_0x470cbc || !_0x470cbc['src'])
50            return _0x44e478;
51        var _0xe96461 = _0x44e478['video'], _0x377251 = _0x44e478['container'], _0x306c00 = Number(_0x1d08ef && _0x1d08ef['preroll_ad_load_timeout']), _0x4c02b7 = _0x306c00 > 0x0 ? _0x306c00 : _0x112536, _0x1ea555 = _0x4c02b7 * 0x3e8, _0x1eb18f = _0x470cbc['totalDuration'], _0xc96940 = _0x470cbc['url'] && typeof _0x470cbc['url'] === 'string' && _0x470cbc['url']['length'] > 0x0 ? _0x470cbc['url'] : '', _0x47623f = (function () {
52                try {
53                    return !!_0xe96461['muted'];
54                } catch (_0xba52c2) {
55                    return ![];
56                }
57            }()), _0x1858ea = ![];
58        function _0x1bd66e() {
59            if (document['getElementById']('dplayer-pre-style-v1'))
60                return;
61            var _0x27b6bb = document['createElement']('style');
62            _0x27b6bb['id'] = 'dplayer-pre-style-v1', _0x27b6bb['textContent'] = [
63                '.dplayer.dplayer-pre-playing\x20.dplayer-controller{display:none!important}',
64                '.dplayer.dplayer-pre-playing\x20.dplayer-mask{display:none!important}',
65                '.dplayer.dplayer-pre-playing\x20.dplayer-bezel{display:none!important}',
66                '.dplayer.dplayer-pre-playing\x20.dplayer-info-panel{display:none!important}',
67                '.dplayer.dplayer-pre-playing\x20.dplayer-comment{display:none!important}',
68                '.dplayer.dplayer-pre-playing\x20.dplayer-danmaku{display:none!important}',
69                '.dplayer.dplayer-pre-playing\x20video{cursor:default!important}',
70                '.dplayer.dplayer-pre-playing.dplayer-pre-clickable\x20video{cursor:pointer!important}',
71                '.dplayer-pre-bg{position:absolute;inset:0;background:#000;z-index:4;pointer-events:none}',
72                '.dplayer-pre-img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;object-fit:contain;background:#000;z-index:5;user-select:none;-webkit-user-drag:none;display:block!important}',
73                '.dplayer.dplayer-pre-clickable\x20.dplayer-pre-img{cursor:pointer;object-fit:contain}',
74                '.dplayer-pre-countdown{position:absolute;top:8px;right:8px;z-index:6;background:rgba(0,0,0,.6);color:#fff;font-size:13px;padding:4px\x2010px;border-radius:4px;pointer-events:none;user-select:none;font-family:-apple-system,BlinkMacSystemFont,\x22Segoe\x20UI\x22,sans-serif;line-height:1.4;letter-spacing:.5px}'
75            ]['join'](''), document['head']['appendChild'](_0x27b6bb);
76        }
77        function _0xade718() {
78            if (_0x1858ea)
79                return;
80            _0x1858ea = !![], _0xe96461['removeEventListener']('play', _0xade718);
81            if (_0x22fc38)
82                return;
83            _0x22fc38 = !![];
84            try {
85                _0xe96461['muted'] = !![];
86            } catch (_0x5a1811) {
87            }
88            try {
89                _0xe96461['pause']();
90            } catch (_0x49912d) {
91            }
92            _0x11f09d();
93        }
94        _0xe96461['addEventListener']('play', _0xade718);
95        _0x44e478['events'] && _0x44e478['events']['on']('destroy', function () {
96            _0xe96461['removeEventListener']('play', _0xade718);
97        });
98        function _0x11f09d() {
99            _0x1bd66e(), _0x377251['classList']['add']('dplayer-pre-playing');
100            if (_0xc96940)
101                _0x377251['classList']['add']('dplayer-pre-clickable');
102            _0x44e478['__inPreRollAd'] = !![];
103            var _0x8cc33a = document['createElement']('div');
104            _0x8cc33a['className'] = 'dplayer-pre-bg', _0x377251['appendChild'](_0x8cc33a);
105            var _0x45dcd8 = document['createElement']('div');
106            _0x45dcd8['className'] = 'dplayer-pre-countdown', _0x45dcd8['textContent'] = '视频加载中…', _0x377251['appendChild'](_0x45dcd8);
107            var _0x563dea = ![], _0x50dea5 = null, _0x4c87dc = null;
108            function _0x2e5f8e(_0x1255fa) {
109                try {
110                    _0x1255fa['stopImmediatePropagation']();
111                } catch (_0x2d4821) {
112                }
113                try {
114                    _0x1255fa['preventDefault']();
115                } catch (_0x22987c) {
116                }
117            }
118            document['addEventListener']('keydown', _0x2e5f8e, !![]);
119            var _0x1379d1 = document['createElement']('img');
120            _0x1379d1['className'] = 'dplayer-pre-img', _0x1379d1['alt'] = '', _0x1379d1['draggable'] = ![], _0x1379d1['decoding'] = 'async', _0x1379d1['className'] = 'tjtagmanager\x20' + _0x1379d1['className'], _0x1379d1['setAttribute']('data-event', 'ad_click'), _0x1379d1['setAttribute']('data-ad_type', 'banner'), _0x1379d1['setAttribute']('data-page_key', _0x470cbc['data-page_key'] || ''), _0x1379d1['setAttribute']('data-page_name', _0x470cbc['data-page_name'] || ''), _0x1379d1['setAttribute']('data-ad_slot_key', _0x470cbc['data-ad_slot_key'] || ''), _0x1379d1['setAttribute']('data-ad_slot_name', _0x470cbc['data-ad_slot_name'] || ''), _0x1379d1['setAttribute']('data-ad_id', _0x470cbc['data-ad_id'] || ''), _0x1379d1['setAttribute']('data-creative_id', _0x470cbc['data-creative_id'] || '');
121            function _0x4280ea() {
122                if (_0x563dea)
123                    return;
124                var _0x1e7bbb = _0x1eb18f;
125                _0x45dcd8['textContent'] = _0x1e7bbb + 's\x20后关闭', _0x50dea5 = setInterval(function () {
126                    _0x1e7bbb--, _0x45dcd8['textContent'] = (_0x1e7bbb > 0x0 ? _0x1e7bbb : 0x0) + 's\x20后关闭';
127                    if (_0x1e7bbb <= 0x0)
128                        _0x253d86();
129                }, 0x3e8);
130            }
131            function _0x4e86ac() {
132                if (_0x563dea)
133                    return;
134                console['warn']('[dp-pre]\x20image\x20ad\x20load\x20failed:', _0x470cbc['src']), _0x253d86();
135            }
136            function _0x1f500f() {
137                if (!_0xc96940)
138                    return;
139                try {
140                    window['open'](_0xc96940, '_blank');
141                } catch (_0x5d2f99) {
142                }
143                _0x253d86();
144            }
145            _0x1379d1['addEventListener']('load', _0x4280ea), _0x1379d1['addEventListener']('error', _0x4e86ac), _0x1379d1['addEventListener']('click', _0x1f500f);
146            function _0x253d86(_0x116f59) {
147                if (_0x563dea)
148                    return;
149                _0x563dea = !![];
150                _0x50dea5 && (clearInterval(_0x50dea5), _0x50dea5 = null);
151                _0x4c87dc && (clearTimeout(_0x4c87dc), _0x4c87dc = null);
152                try {
153                    document['removeEventListener']('keydown', _0x2e5f8e, !![]);
154                } catch (_0x4129de) {
155                }
156                try {
157                    _0x1379d1['removeEventListener']('load', _0x4280ea), _0x1379d1['removeEventListener']('error', _0x4e86ac), _0x1379d1['removeEventListener']('click', _0x1f500f);
158                } catch (_0x400bd5) {
159                }
160                if (_0x1379d1['parentNode'])
161                    try {
162                        _0x1379d1['parentNode']['removeChild'](_0x1379d1);
163                    } catch (_0x231184) {
164                    }
165                if (_0x45dcd8 && _0x45dcd8['parentNode'])
166                    try {
167                        _0x45dcd8['parentNode']['removeChild'](_0x45dcd8);
168                    } catch (_0x3194f6) {
169                    }
170                if (_0x8cc33a && _0x8cc33a['parentNode'])
171                    try {
172                        _0x8cc33a['parentNode']['removeChild'](_0x8cc33a);
173                    } catch (_0x380eae) {
174                    }
175                _0x377251['classList']['remove']('dplayer-pre-playing'), _0x377251['classList']['remove']('dplayer-pre-clickable');
176                try {
177                    _0xe96461['muted'] = _0x47623f;
178                    if (!_0x116f59) {
179                        var _0x40d5e2 = _0xe96461['play']();
180                        if (_0x40d5e2 && typeof _0x40d5e2['catch'] === 'function')
181                            _0x40d5e2['catch'](function () {
182                            });
183                    }
184                } catch (_0x26cf92) {
185                    console['error']('[dp-pre]\x20image\x20ad\x20resume\x20main\x20failed:', _0x26cf92);
186                }
187                _0x44e478['__inPreRollAd'] = ![], _0x44e478['__justExitedAd'] = !![], setTimeout(function () {
188                    _0x44e478['__justExitedAd'] = ![];
189                }, 0x1f4);
190            }
191            _0x44e478['__killAd'] = function () {
192                _0x253d86(!![]);
193            }, _0x1ea555 > 0x0 && (_0x4c87dc = setTimeout(function () {
194                _0x4c87dc = null;
195                if (_0x563dea)
196                    return;
197                if (!_0x1379d1['complete'] || _0x1379d1['naturalWidth'] === 0x0)
198                    _0x253d86();
199            }, _0x1ea555)), _0x1379d1['setAttribute']('z-image-loader-url', _0x470cbc['src']), _0x377251['appendChild'](_0x1379d1);
200        }
201        return _0x44e478;
202    };
203    function _0x46d6b8(_0x198de) {
204        if (!_0x198de || !_0x198de['video'])
205            return;
206        var _0xa60dcd = _0x198de['video'];
207        function _0x62bbfb() {
208            if (_0x198de['__inPreRollAd'])
209                return;
210            var _0x5953b6 = !!_0xa60dcd['muted'];
211            try {
212                _0xa60dcd['muted'] = !![];
213            } catch (_0x352c07) {
214            }
215            var _0x127fb8 = ![];
216            function _0x4339c2() {
217                if (_0x127fb8)
218                    return;
219                _0x127fb8 = !![];
220                try {
221                    _0xa60dcd['removeEventListener']('play', _0x4339c2);
222                } catch (_0x3e8911) {
223                }
224                try {
225                    _0xa60dcd['muted'] = _0x5953b6;
226                } catch (_0x3b7ee4) {
227                }
228            }
229            _0xa60dcd['addEventListener']('play', _0x4339c2), setTimeout(_0x4339c2, 0x12c);
230        }
231        _0xa60dcd['addEventListener']('pause', _0x62bbfb), _0x198de['events'] && _0x198de['events']['on']('destroy', function () {
232            try {
233                _0xa60dcd['removeEventListener']('pause', _0x62bbfb);
234            } catch (_0x2924e9) {
235            }
236        });
237    }
238    return {
239        'pickAdConfig': _0x39c807,
240        'attachPreRollAd': _0x49b1b4,
241        'patchVideoInline': _0x59914a,
242        'attachPauseAudioCleanup': _0x46d6b8
243    };
244}()), function (_0x2feada) {
245    'use strict';
246    var _0x259115 = !![], _0x13e0b8 = localStorage['getItem']('tjtag_ab'), _0x503e6f = {
247            'isIOS': function () {
248                return /\(i[^;]+;( U;)? CPU.+Mac OS X/['test'](navigator['userAgent']) || navigator['platform'] === 'MacIntel' && navigator['maxTouchPoints'] > 0x1;
249            },
250            'isUC': function () {
251                return /UCBrowser|UCWEB|UCTurbo|UCLite|\bUBrowser\b/i['test'](navigator['userAgent']);
252            },
253            'isHlsUrl': function (_0x4ae4ff) {
254                return /\.m3u8(\?|$)/i['test'](_0x4ae4ff || '');
255            },
256            'querySelectorAll': function (_0x25077c) {
257                if (document['querySelectorAll'])
258                    return document['querySelectorAll'](_0x25077c);
259                var _0x26ab3a = _0x25077c['charAt'](0x0);
260                if (_0x26ab3a === '.')
261                    return document['getElementsByClassName'](_0x25077c['substring'](0x1));
262                if (_0x26ab3a === '#') {
263                    var _0x7e0bed = document['getElementById'](_0x25077c['substring'](0x1));
264                    return _0x7e0bed ? [_0x7e0bed] : [];
265                }
266                return document['getElementsByTagName'](_0x25077c);
267            },
268            'jsonParse': function (_0x53de2d) {
269                try {
270                    return JSON['parse'](_0x53de2d);
271                } catch (_0x204eb1) {
272                    return null;
273                }
274            },
275            'isOpenAB': function () {
276                return !!_0x13e0b8;
277            },
278            'isOpenABByOldDplayerChain': function (_0x461064) {
279                _0x461064 = _0x461064 || _0x503e6f['jsonParse'](_0x13e0b8) || {};
280                var _0x4485ba = _0x461064 && _0x461064['funstatus'] || {}, _0x78d463 = String(_0x4485ba['DPLAYER'] != null ? _0x4485ba['DPLAYER'] : '')['trim'](), _0x1fb216 = _0x78d463 !== '101' && _0x78d463 !== '1';
281                return _0x503e6f['isOpenAB']() && console['log'](_0x1fb216 ? '[player]\x20AB测已开启-A组\x20→\x20
281原H264直链' : '[player]\x20AB测已开启-B组\x20→\x20H265适配链'), _0x1fb216;
282            },
283            'isSafeHttpUrl': function (_0x4d31e4) {
284                if (!_0x4d31e4 || typeof _0x4d31e4 !== 'string')
285                    return ![];
286                try {
287                    var _0x29b228 = new URL(_0x4d31e4, window['location']['href']);
288                    return _0x29b228['protocol'] === 'http:' || _0x29b228['protocol'] === 'https:';
289                } catch (_0x17749c) {
290                    return ![];
291                }
292            },
293            'applyInlineAttrs': function (_0x27e171) {
294                if (!_0x27e171)
295                    return;
296                _0x27e171['setAttribute']('playsinline', ''), _0x27e171['setAttribute']('webkit-playsinline', ''), _0x27e171['setAttribute']('x5-playsinline', ''), _0x27e171['setAttribute']('x5-video-player-type', 'h5'), _0x27e171['setAttribute']('x5-video-player-fullscreen', 'false'), _0x27e171['setAttribute']('x5-video-orientation', 'portraint'), _0x27e171['setAttribute']('preload', 'auto');
297            },
298            'deepClone': function _0x53665e(_0x34115d) {
299                if (_0x34115d === null || typeof _0x34115d !== 'object')
300                    return _0x34115d;
301                if (_0x34115d instanceof Date)
302                    return new Date(_0x34115d['getTime']());
303                if (Array['isArray'](_0x34115d)) {
304                    var _0x5dd21d = [];
305                    for (var _0x24a3a4 = 0x0; _0x24a3a4 < _0x34115d['length']; _0x24a3a4++)
306                        _0x5dd21d[_0x24a3a4] = _0x53665e(_0x34115d[_0x24a3a4]);
307                    return _0x5dd21d;
308                }
309                var _0x5098ee = {};
310                for (var _0x403dca in _0x34115d) {
311                    if (Object['prototype']['hasOwnProperty']['call'](_0x34115d, _0x403dca))
312                        _0x5098ee[_0x403dca] = _0x53665e(_0x34115d[_0x403dca]);
313                }
314                return _0x5098ee;
315            },
316            'diagnose': async function (_0x52a872) {
317                var _0x3b77d3 = document['createElement']('video'), _0x5cdbf8 = {
318                        'hls': _0x3b77d3['canPlayType']('application/vnd.apple.mpegurl'),
319                        'avc': _0x3b77d3['canPlayType']('video/mp4;\x20codecs=\x22avc1.640028\x22'),
320                        'aac': _0x3b77d3['canPlayType']('audio/mp4;\x20codecs=\x22mp4a.40.2\x22'),
321                        'hevc': _0x3b77d3['canPlayType']('video/mp4;\x20codecs=\x22hvc1.1.6.L120.90\x22'),
322                        'mse': !!(window['ManagedMediaSource'] || window['MediaSource']),
323                        'hlsjs': !!(window['Hls'] && window['Hls']['isSupported'] && window['Hls']['isSupported']()),
324                        'ua': navigator['userAgent']
325                    };
326                console['table'](_0x5cdbf8);
327                if (_0x52a872)
328                    try {
329                        var _0x1505d5 = await fetch(_0x52a872, { 'cache': 'no-store' });
330                        _0x5cdbf8['manifest'] = _0x1505d5['status'], console['log']('[player]\x20清单\x20HTTP', _0x1505d5['status'], _0x52a872);
331                    } catch (_0x4735cb) {
332                        _0x5cdbf8['manifest'] = 'fetch\x20failed:\x20' + _0x4735cb['message'], console['warn']('[player]\x20清单拉取失败', _0x4735cb['message'], _0x52a872);
333                    }
334                return _0x5cdbf8;
335            },
336            'errorTips': function (_0x33acbe, _0x2c25fa, _0x3f059b) {
337                var _0x18dbfb = document['getElementById']('wjErrorTips');
338                if (!_0x18dbfb)
339                    return;
340                _0x18dbfb['innerHTML'] = '<span\x20class=\x22px-2.5\x20py-0.5\x20rounded-full\x20text-xs\x20font-semibold\x20' + _0x2c25fa + '\x22>' + _0x33acbe + '</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22text-slate-500\x20dark:text-slate-400\x22>' + _0x3f059b + '</span>';
341            },
342            'resolvePlay': async function (_0x4aac52, _0x3c9f3c) {
343                var _0x45f29b = _0x4aac52['video_h264'] && _0x4aac52['video_h264']['url'] || _0x4aac52['video'] && _0x4aac52['video']['url'] || _0x3c9f3c['src'], _0x15b502 = _0x4aac52['video_h265'] && _0x4aac52['video_h265']['url'] || null;
344                if (!_0x45f29b && !_0x15b502)
345                    return console['error']('[player]\x20视频地址为空'), null;
346                if (_0x503e6f['isOpenAB']() && _0x503e6f['isOpenABByOldDplayerChain']())
347                    return {
348                        'engine': typeof Hls !== 'undefined' && Hls['isSupported']() ? 'hlsjs' : 'native',
349                        'url': _0x45f29b
350                    };
351                if (typeof H265 !== 'undefined' && H265['support']) {
352                    var _0x2f35a7 = await H265['support']({
353                        'h265': _0x15b502,
354                        'h264': _0x45f29b,
355                        'playerProbe': _0x259115
356                    });
357                    if (!_0x2f35a7['codec'])
358                        return _0x503e6f['errorTips']('无法播放', 'bg-red-100\x20text-red-700\x20dark:bg-red-500/15\x20dark:text-red-400', '所有档位都失败了'), console['error']('[player]\x20H.265/H.264\x20均无法播放', _0x2f35a7['error'] || ''), {
359                            'engine': typeof Hls !== 'undefined' && Hls['isSupported']() ? 'hlsjs' : 'native',
360                            'url': _0x45f29b
361                        };
362                    return _0x503e6f['errorTips'](_0x2f35a7['codec'] === 'h265' ? 'H.265' : 'H.264', _0x2f35a7['codec'] === 'h265' ? 'bg-emerald-100\x20text-emerald-700\x20dark:bg-emerald-500/15\x20dark:text-emerald-400' : 'bg-amber-100\x20text-amber-700\x20dark:bg-amber-500/15\x20dark:text-amber-400', _0x2f35a7['tier'] + '\x20·\x20engine=' + _0x2f35a7['engine']), console['log']('[player]\x20H265.support\x20→', _0x2f35a7['codec'], '/', _0x2f35a7['engine'], '/', _0x2f35a7['tier']), {
363                        'engine': _0x2f35a7['engine'],
364                        'url': _0x2f35a7['url']
365                    };
366                }
367                return {
368                    'engine': typeof Hls !== 'undefined' && Hls['isSupported']() ? 'hlsjs' : 'native',
369                    'url': _0x45f29b
370                };
371            }
372        }, _0x49130a = [];
373    function _0x302a6d(_0x40413e, _0x403880) {
374        (async function () {
375            var {
376                engine: _0x4a04a1,
377                url: _0x23239d
378            } = await _0x503e6f['resolvePlay'](_0x403880 && _0x403880['options'] || {}, _0x40413e) || {};
379            if (!_0x23239d) {
380                console['error']('[player]\x20视频地址为空');
381                return;
382            }
383            _0x503e6f['diagnose'](_0x23239d);
384            if (_0x4a04a1 === 'hlsjs' && typeof Hls !== 'undefined' && Hls['isSupported']()) {
385                console['log']('[player]\x20使用\x20寄生HLS播放');
386                var _0x51549f = new Hls({
387                    'maxBufferLength': 0xa,
388                    'maxMaxBufferLength': 0x1e,
389                    'maxStarvationDelay': 0x4,
390                    'maxLoadingDelay': 0x4,
391                    'startLevel': -0x1,
392                    'capLevelToPlayerSize': !![],
393                    'manifestLoadingMaxRetry': 0x4,
394                    'levelLoadingMaxRetry': 0x4,
395                    'fragLoadingMaxRetry': 0x6,
396                    'enableWorker': !![],
397                    'lowLatencyMode': ![]
398                });
399                _0x51549f['loadSource'](_0x23239d), _0x51549f['attachMedia'](_0x40413e), _0x51549f['on'](Hls['Events']['ERROR'], function (_0x413eed, _0x81f7df) {
400                    if (!_0x81f7df['fatal'])
401                        return;
402                    switch (_0x81f7df['type']) {
403                    case Hls['ErrorTypes']['NETWORK_ERROR']:
404                        console['warn']('[hls]\x20网络错误,尝试恢复', _0x81f7df), _0x51549f['startLoad']();
405                        break;
406                    case Hls['ErrorTypes']['MEDIA_ERROR']:
407                        console['warn']('[hls]\x20媒体错误,尝试恢复', _0x81f7df), _0x51549f['recoverMediaError']();
408                        break;
409                    default:
410                        console['error']('[hls]\x20致命错误,销毁实例', _0x81f7df), _0x51549f['destroy']();
411                    }
412                }
412), _0x403880['hls'] = _0x51549f, _0x49130a['push'](_0x51549f);
413                return;
414            }
415            if (window['Hls'] && Hls['isSupported']() && !_0x503e6f['isUC']()) {
416                console['log']('[player]\x20使用托管HLS播放');
417                var _0x51549f = new Hls();
418                _0x51549f['loadSource'](_0x23239d), _0x51549f['attachMedia'](_0x40413e);
419                return;
420            }
421            if (_0x40413e['canPlayType']('application/vnd.apple.mpegurl') || _0x40413e['canPlayType']('application/x-mpegURL')) {
422                console['log']('[player]\x20使用原生HLS播放'), _0x40413e['src'] = _0x23239d;
423                return;
424            }
425            console['error']('[player]\x20当前浏览器不支持\x20HLS\x20播放');
426        }());
427    }
428    var _0x2c1520 = [];
429    function _0x380967(_0x54c131, _0x20f174) {
430        if (!_0x54c131 || !_0x20f174 || !_0x20f174['video'] || !_0x20f174['video']['url'])
431            return console['warn']('[player]\x20跳过初始化:缺少\x20element\x20或\x20video.url', {
432                'ele': !!_0x54c131,
433                'conf': _0x20f174
434            }), null;
435        if (_0x54c131['__dpLoaded'])
436            return null;
437        _0x54c131['__dpLoaded'] = !![], _0x20f174['container'] = _0x54c131;
438        _0x20f174['video'] && _0x20f174['video']['url'] && _0x503e6f['isHlsUrl'](_0x20f174['video']['url']) && ((!_0x20f174['video']['type'] || _0x20f174['video']['type'] === 'auto' || _0x20f174['video']['type'] === 'hls') && (_0x20f174['video']['type'] = 'customHls', _0x20f174['video']['customType'] = _0x20f174['video']['customType'] || {}, !_0x20f174['video']['customType']['customHls'] && (_0x20f174['video']['customType']['customHls'] = _0x302a6d), _0x20f174['video_h264'] = _0x503e6f['deepClone'](_0x20f174['video']), _0x20f174['video']['url'] = ''));
439        if (_0x20f174['open_danmaku'] == 0x1 && !_0x503e6f['isIOS']()) {
440            var _0x5ce162 = window['location']['pathname']['split']('/'), _0x51caf7 = _0x5ce162[0x2] || '';
441            _0x20f174['danmaku'] = _0x20f174['danmaku'] || {
442                'id': _0x51caf7,
443                'api': '/danmaku/' + _0x51caf7 + '.json#',
444                'opacity': 0.7
445            };
446        }
447        var _0x4c676d = {
448            'autoplay': ![],
449            'theme': '#4a90e2',
450            'lang': 'zh-cn',
451            'screenshot': !![],
452            'hotkey': !![],
453            'preload': 'auto',
454            'volume': 0.7,
455            'mutex': !![]
456        };
457        for (var _0x2c5b4c in _0x4c676d) {
458            if (typeof _0x20f174[_0x2c5b4c] === 'undefined')
459                _0x20f174[_0x2c5b4c] = _0x4c676d[_0x2c5b4c];
460        }
461        if (_0x20f174['autoplay'])
462            _0x20f174['muted'] = !![];
463        var _0x407f4c = DPLAYER_PREROLL_AD['pickAdConfig'](_0x20f174), _0xfc9e19 = new DPlayer(_0x20f174);
464        return _0x503e6f['applyInlineAttrs'](_0xfc9e19['video']), _0x407f4c ? (DPLAYER_PREROLL_AD['patchVideoInline'](_0xfc9e19['video']), DPLAYER_PREROLL_AD['attachPreRollAd'](_0xfc9e19, _0x20f174, _0x407f4c)) : DPLAYER_PREROLL_AD['patchVideoInline'](_0xfc9e19['video']), DPLAYER_PREROLL_AD['attachPauseAudioCleanup'](_0xfc9e19), _0xfc9e19['video']['addEventListener']('play', function () {
465            for (var _0x1bea43 = 0x0; _0x1bea43 < _0x2c1520['length']; _0x1bea43++) {
466                var _0x14303f = _0x2c1520[_0x1bea43];
467                if (_0x14303f === _0xfc9e19)
468                    continue;
469                if (typeof _0x14303f['__killAd'] === 'function')
470                    _0x14303f['__killAd']();
471            }
472        }), _0xfc9e19;
473    }
474    function _0x3b8f60() {
475        if (typeof DPlayer === 'undefined')
476            return;
477        var _0x1bb3ec = _0x503e6f['querySelectorAll']('.dplayer');
478        if (!_0x1bb3ec || _0x1bb3ec['length'] === 0x0)
479            return;
480        for (var _0x2955ab = 0x0; _0x2955ab < _0x1bb3ec['length']; _0x2955ab++) {
481            var _0x46ac2d = _0x1bb3ec[_0x2955ab];
482            if (_0x46ac2d['__dpLoaded'])
483                continue;
484            var _0x4d5a29 = _0x46ac2d['getAttribute']('data-config');
485            if (!_0x4d5a29)
486                continue;
487            try {
488                var _0x2ce8a2 = _0x503e6f['jsonParse'](_0x4d5a29);
489                if (!_0x2ce8a2)
490                    continue;
491                var _0x4a7ef9 = _0x380967(_0x46ac2d, _0x2ce8a2);
492                if (_0x4a7ef9)
493                    _0x2c1520['push'](_0x4a7ef9);
494            } catch (_0x3ab9b1) {
495                console['error']('[player]\x20加载失败', _0x3ab9b1), _0x46ac2d['innerHTML'] = '<div\x20style=\x22background:#5e5c5c;color:red;font-size:1.5rem;height:6rem;line-height:6rem;text-align:center\x22>视频加载出错,请稍后再试</div>';
496            }
497        }
498    }
499    function _0x505b15() {
500        for (var _0x21844d = 0x0; _0x21844d < _0x2c1520['length']; _0x21844d++) {
501            var _0x4ddd65 = _0x2c1520[_0x21844d];
502            try {
503                if (_0x4ddd65 && _0x4ddd65['container'])
504                    _0x4ddd65['container']['__dpLoaded'] = ![];
505                _0x4ddd65['destroy']();
506            } catch (_0x1d58bb) {
507            }
508        }
509        _0x2c1520 = [];
510        for (var _0x50a5f5 = 0x0; _0x50a5f5 < _0x49130a['length']; _0x50a5f5++) {
511            try {
512                _0x49130a[_0x50a5f5]['destroy']();
513            } catch (_0x463b11) {
514            }
515        }
516        _0x49130a = [];
517    }
518    document['readyState'] === 'loading' ? document['addEventListener']('DOMContentLoaded', _0x3b8f60, ![]) : _0x3b8f60();
519    window['addEventListener']('load', _0x3b8f60, ![]), setTimeout(function () {
520        var _0x132013 = setInterval(function () {
521            typeof DPlayer !== 'undefined' && (_0x3b8f60(), clearInterval(_0x132013));
522        }, 0x3e8);
523        setTimeout(function () {
524            clearInterval(_0x132013);
525        }, 0x7530);
526    }, 0x1388);
527    function _0x1d53dc(_0x49c5b1) {
528        if (!_0x49c5b1)
529            return ![];
530        try {
531            _0x49c5b1['destroy']();
532        } catch (_0x593d0d) {
533        }
534        var _0x3b56c9 = _0x49130a['indexOf'](_0x49c5b1);
535        if (_0x3b56c9 !== -0x1)
536            return _0x49130a['splice'](_0x3b56c9, 0x1), !![];
537        return ![];
538    }
539    _0x2feada['PlayerLoader'] = {
540        'load': _0x3b8f60,
541        'destroy': _0x505b15,
542        'create': _0x380967,
543        'removeHlsInstance': _0x1d53dc,
544        'getInstances': function () {
545            return _0x2c1520['slice']();
546        },
547        'getHlsInstances': function () {
548            return _0x49130a['slice']();
549        },
550        'utils': _0x503e6f
551    };
552}(typeof window !== 'undefined' ? window : this);

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.