���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/okanime.top/layout/default/node_modules/hls.js/src/utils/ |
import type { Level } from '../types/level'; import type { MediaAttributes, MediaPlaylist } from '../types/media-playlist'; export function subtitleOptionsIdentical( trackList1: MediaPlaylist[] | Level[], trackList2: MediaPlaylist[] ): boolean { if (trackList1.length !== trackList2.length) { return false; } for (let i = 0; i < trackList1.length; i++) { if ( !subtitleAttributesIdentical( trackList1[i].attrs as MediaAttributes, trackList2[i].attrs ) ) { return false; } } return true; } export function subtitleAttributesIdentical( attrs1: MediaAttributes, attrs2: MediaAttributes ): boolean { // Media options with the same rendition ID must be bit identical const stableRenditionId = attrs1['STABLE-RENDITION-ID']; if (stableRenditionId) { return stableRenditionId === attrs2['STABLE-RENDITION-ID']; } // When rendition ID is not present, compare attributes return ![ 'LANGUAGE', 'NAME', 'CHARACTERISTICS', 'AUTOSELECT', 'DEFAULT', 'FORCED', ].some( (subtitleAttribute) => attrs1[subtitleAttribute] !== attrs2[subtitleAttribute] ); }