mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Merge pull request #2847 from iv-org/hls-to-vhs
rename hls to vhs in the player
This commit is contained in:
		| @@ -23,7 +23,7 @@ var options = { | ||||
|     }, | ||||
|     html5: { | ||||
|         preloadTextTracks: false, | ||||
|         hls: { | ||||
|         vhs: { | ||||
|             overrideNative: true | ||||
|         } | ||||
|     } | ||||
| @@ -50,7 +50,7 @@ var shareOptions = { | ||||
|     embedCode: "<iframe id='ivplayer' width='640' height='360' src='" + embed_url + "' style='border:none;'></iframe>" | ||||
| } | ||||
|  | ||||
| videojs.Hls.xhr.beforeRequest = function(options) { | ||||
| videojs.Vhs.xhr.beforeRequest = function(options) { | ||||
|     if (options.uri.indexOf('videoplayback') === -1 && options.uri.indexOf('local=true') === -1) { | ||||
|         options.uri = options.uri + '?local=true'; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Samantaz Fox
					Samantaz Fox