<commit_before>( function( mw, $ , Hls ) {"use strict";

	//Currently use native support when available, e.g. Safari desktop and Edge
	if (Hls.isSupported() && !mw.isDesktopSafari() && !mw.isEdge() && mw.getConfig("LeadWithHLSOnJs")) {
		// Add HLS Logic player:
		//Force HLS streamer type
		mw.setConfig("streamerType", "hls");
		var config = mw.config.get("KalturaSupport.PlayerConfig");
		config.vars.streamerType = "hls";
		mw.config.set("KalturaSupport.PlayerConfig", config);
		var orig_supportsFlash = mw.supportsFlash;
		mw.supportsFlash = function () {
			return false;
		};
		$(mw).bind('EmbedPlayerUpdateMediaPlayers', function (event, mediaPlayers) {
			if (Hls.isSupported()) {
				//application/vnd.apple.mpegurl
				var hlsPlayer = new mw.MediaPlayer('hlsPlayer', ['video/h264', 'video/mp4', 'application/vnd.apple.mpegurl'], 'Native');
				mediaPlayers.addPlayer(hlsPlayer);
				mw.EmbedTypes.mediaPlayers.setMIMETypePlayers('application/vnd.apple.mpegurl', 'Native');
			}
		});

		var hlsjs = mw.KBasePlugin.extend({

			defaultConfig: {
				options: {
					//debug:true
					liveSyncDurationCount : 3,
					liveMaxLatencyDurationCount: 6
				},
				hlsLogs: false
			},

			/** @type {Number} */
			mediaErrorRecoveryCounter: 0,
			playerErrorRecoveryCounter: 0,

			debugInfoInterval: 4,
			debugInfoCounter:0,

			/** type {boolean} */
			LoadHLS: false,
			/** type {boolean} */
			loaded: false,
			/** type {boolean} */<commit_msg>FEC-5682 remove liveMaxLatencyDurationCount as it disable seek on DVR #time 2h<commit_after>( function( mw, $ , Hls ) {"use strict";

	//Currently use native support when available, e.g. Safari desktop and Edge
	if (Hls.isSupported() && !mw.isDesktopSafari() && !mw.isEdge() && mw.getConfig("LeadWithHLSOnJs")) {
		// Add HLS Logic player:
		//Force HLS streamer type
		mw.setConfig("streamerType", "hls");
		var config = mw.config.get("KalturaSupport.PlayerConfig");
		config.vars.streamerType = "hls";
		mw.config.set("KalturaSupport.PlayerConfig", config);
		var orig_supportsFlash = mw.supportsFlash;
		mw.supportsFlash = function () {
			return false;
		};
		$(mw).bind('EmbedPlayerUpdateMediaPlayers', function (event, mediaPlayers) {
			if (Hls.isSupported()) {
				//application/vnd.apple.mpegurl
				var hlsPlayer = new mw.MediaPlayer('hlsPlayer', ['video/h264', 'video/mp4', 'application/vnd.apple.mpegurl'], 'Native');
				mediaPlayers.addPlayer(hlsPlayer);
				mw.EmbedTypes.mediaPlayers.setMIMETypePlayers('application/vnd.apple.mpegurl', 'Native');
			}
		});

		var hlsjs = mw.KBasePlugin.extend({

			defaultConfig: {
				options: {
					//debug:true
					liveSyncDurationCount : 3
				},
				hlsLogs: false
			},

			/** @type {Number} */
			mediaErrorRecoveryCounter: 0,
			playerErrorRecoveryCounter: 0,

			debugInfoInterval: 4,
			debugInfoCounter:0,

			/** type {boolean} */
			LoadHLS: false,
			/** type {boolean} */
			loaded: false,
			/** type {boolean} */
{'fraction_non_alphanumeric': 0.1523809523809524, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 3.81342062193126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6179469', 'n_tokens_mistral': 1206, 'n_tokens_neox': 985, 'n_words': 198}