mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-20 21:52:42 +05:30
Compare commits
4 Commits
2ae3b3e2e4
...
4bb9a618be
Author | SHA1 | Date | |
---|---|---|---|
|
4bb9a618be | ||
|
024246d1b3 | ||
|
e9faeb793b | ||
|
bfba48af81 |
@ -78,14 +78,10 @@ function return_message(message,target_window){
|
||||
additional_info['value'] = add_value;
|
||||
}
|
||||
if(message.eventname==='error'){
|
||||
let add_value = {geterrorcode:player.error().code};
|
||||
additional_info['value'] = add_value;
|
||||
additional_info['value'] = {geterrorcode:player.error().code};
|
||||
}
|
||||
message = Object.assign(additional_info,message);
|
||||
let target_origin = url_params.get('origin');
|
||||
if(target_origin===null){
|
||||
target_origin = '*';
|
||||
}
|
||||
let target_origin = url_params.get('origin') || '*';
|
||||
target_window.postMessage(message,target_origin);
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class invidious_embed{
|
||||
this.eventobject = {ready:[],ended:[],error:[],ratechange:[],volumechange:[],waiting:[],timeupdate:[],loadedmetadata:[],play:[],seeking:[],seeked:[],playerresize:[],pause:[],statechange:[]};
|
||||
var replace_elemnt;
|
||||
if(element===undefined||element===null){
|
||||
throw 'please set element id or HTMLElement';
|
||||
throw 'Please, pass element id or HTMLElement as first argument';
|
||||
}
|
||||
else if(typeof element==='string'){
|
||||
replace_elemnt = document.getElementById(element);
|
||||
@ -346,7 +346,7 @@ class invidious_embed{
|
||||
cueVideoById(option,startSeconds){
|
||||
this.playOtherVideoById(option,false,startSeconds);
|
||||
}
|
||||
cuevVideoByUrl(option,startSeconds){
|
||||
cueVideoByUrl(option,startSeconds){
|
||||
this.playOtherVideoById(option,false,startSeconds);
|
||||
}
|
||||
loadVideoByUrl(option,startSeconds){
|
||||
|
Loading…
x
Reference in New Issue
Block a user