mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-04 06:31:55 +00:00 
			
		
		
		
	Set range parameter like official client.
This commit is contained in:
		@@ -122,6 +122,14 @@ export default {
 | 
			
		||||
                            url.host = new URL(component.video.proxyUrl).host;
 | 
			
		||||
                            request.uris[0] = url.toString();
 | 
			
		||||
                        }
 | 
			
		||||
                        if (url.pathname === "/videoplayback") {
 | 
			
		||||
                            const headers = request.headers;
 | 
			
		||||
                            if (headers.Range) {
 | 
			
		||||
                                url.searchParams.set("range", headers.Range.split("=")[1]);
 | 
			
		||||
                                request.headers = {};
 | 
			
		||||
                                request.uris[0] = url.toString();
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    });
 | 
			
		||||
 | 
			
		||||
                    localPlayer.configure(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user