mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-13 01:16:41 -04:00
Merge 95576555d18669521799289f990aeeaa7cc72220 into adcdb8cb92bbf61bac46102eff026593d0bc87b0
This commit is contained in:
commit
5da97b0c6b
@ -42,6 +42,15 @@ embed_url = location.origin + '/embed/' + video_data.id + embed_url.search;
|
||||
var save_player_pos_key = 'save_player_pos';
|
||||
|
||||
videojs.Vhs.xhr.beforeRequest = function(options) {
|
||||
if (options.uri.includes("videoplayback")) {
|
||||
if (options.headers) {
|
||||
if (options.headers.Range) {
|
||||
options.uri += `&range=${options.headers.Range.split('=')[1]}`
|
||||
delete options.headers.range
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// set local if requested not videoplayback
|
||||
if (!options.uri.includes('videoplayback')) {
|
||||
if (!options.uri.includes('local=true'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user