-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
741 changed files
with
41,414 additions
and
39,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
const iframe = new iFrame(); | ||
const iframe = new iFrame() | ||
|
||
iframe.on("UpdateData", async () => { | ||
const video = document.querySelector<HTMLVideoElement>("#p_v_player_0"), | ||
audio = document.querySelector<HTMLAudioElement>("#p_a_player_0"); | ||
iframe.on('UpdateData', async () => { | ||
const video = document.querySelector<HTMLVideoElement>('#p_v_player_0') | ||
const audio = document.querySelector<HTMLAudioElement>('#p_a_player_0') | ||
|
||
if (!isNaN(video?.duration)) { | ||
iframe.send({ | ||
video: { | ||
currentTime: video.currentTime, | ||
duration: video.duration, | ||
paused: video.paused, | ||
}, | ||
}); | ||
} else if (!isNaN(audio?.duration)) { | ||
iframe.send({ | ||
audio: { | ||
currentTime: audio.currentTime, | ||
duration: audio.duration, | ||
paused: audio.paused, | ||
title: audio.title, | ||
}, | ||
}); | ||
} | ||
}); | ||
if (video && !Number.isNaN(video.duration)) { | ||
iframe.send({ | ||
video: { | ||
currentTime: video.currentTime, | ||
duration: video.duration, | ||
paused: video.paused, | ||
}, | ||
}) | ||
} | ||
else if (audio && !Number.isNaN(audio.duration)) { | ||
iframe.send({ | ||
audio: { | ||
currentTime: audio.currentTime, | ||
duration: audio.duration, | ||
paused: audio.paused, | ||
title: audio.title, | ||
}, | ||
}) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
{ | ||
"$schema": "https://schemas.premid.app/metadata/1.12", | ||
"apiVersion": 1, | ||
"author": { | ||
"name": "Slowlife", | ||
"id": "374905512661221377" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Elon Musk", | ||
"id": "631499344863821877" | ||
}, | ||
{ | ||
"name": "Bas950", | ||
"id": "241278257335500811" | ||
} | ||
], | ||
"service": "BBC", | ||
"description": { | ||
"en": "The best of the BBC, with the latest news and sport headlines, weather, TV & radio highlights and much more from across the whole of BBC Online.", | ||
"nl": "Het beste van de BBC, met het laatste nieuws en sportkoppen, weerberichten, hoogtepunten op tv en radio en nog veel meer uit heel BBC Online.", | ||
"vi_VN": "Những tinh tuý vủa BBC, với những bài báo mới nhất và tiêu đề thể thao, thời tiết, truyền hình & radio nổi bật từ tất cả BBC Online." | ||
}, | ||
"url": [ | ||
"www.bbc.co.uk", | ||
"www.bbc.com" | ||
], | ||
"version": "2.2.5", | ||
"logo": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/logo.png", | ||
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/thumbnail.png", | ||
"color": "#000000", | ||
"category": "other", | ||
"tags": [ | ||
"bbc", | ||
"bbc-iplayer", | ||
"bbc-sounds", | ||
"series", | ||
"movie", | ||
"weather", | ||
"bbc-weather", | ||
"news" | ||
], | ||
"iframe": true, | ||
"iFrameRegExp": ".*", | ||
"settings": [ | ||
{ | ||
"multiLanguage": true, | ||
"id": "lang" | ||
}, | ||
{ | ||
"id": "usePresenceName", | ||
"title": "Show iPlayer Title as Presence", | ||
"icon": "fad fa-user-edit", | ||
"value": true | ||
}, | ||
{ | ||
"id": "cover", | ||
"title": "Show Cover", | ||
"icon": "fas fa-images", | ||
"value": true | ||
}, | ||
{ | ||
"id": "buttons", | ||
"title": "Show Buttons", | ||
"icon": "fas fa-compress-arrows-alt", | ||
"value": true | ||
} | ||
] | ||
} | ||
"$schema": "https://schemas.premid.app/metadata/1.12", | ||
"apiVersion": 1, | ||
"author": { | ||
"name": "Slowlife", | ||
"id": "374905512661221377" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Elon Musk", | ||
"id": "631499344863821877" | ||
}, | ||
{ | ||
"name": "Bas950", | ||
"id": "241278257335500811" | ||
} | ||
], | ||
"service": "BBC", | ||
"description": { | ||
"en": "The best of the BBC, with the latest news and sport headlines, weather, TV & radio highlights and much more from across the whole of BBC Online.", | ||
"nl": "Het beste van de BBC, met het laatste nieuws en sportkoppen, weerberichten, hoogtepunten op tv en radio en nog veel meer uit heel BBC Online.", | ||
"vi_VN": "Những tinh tuý vủa BBC, với những bài báo mới nhất và tiêu đề thể thao, thời tiết, truyền hình & radio nổi bật từ tất cả BBC Online." | ||
}, | ||
"url": [ | ||
"www.bbc.co.uk", | ||
"www.bbc.com" | ||
], | ||
"version": "2.2.5", | ||
"logo": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/logo.png", | ||
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/B/BBC/assets/thumbnail.png", | ||
"color": "#000000", | ||
"category": "other", | ||
"tags": [ | ||
"bbc", | ||
"bbc-iplayer", | ||
"bbc-sounds", | ||
"series", | ||
"movie", | ||
"weather", | ||
"bbc-weather", | ||
"news" | ||
], | ||
"iframe": true, | ||
"iFrameRegExp": ".*", | ||
"settings": [ | ||
{ | ||
"multiLanguage": true, | ||
"id": "lang" | ||
}, | ||
{ | ||
"id": "usePresenceName", | ||
"title": "Show iPlayer Title as Presence", | ||
"icon": "fad fa-user-edit", | ||
"value": true | ||
}, | ||
{ | ||
"id": "cover", | ||
"title": "Show Cover", | ||
"icon": "fas fa-images", | ||
"value": true | ||
}, | ||
{ | ||
"id": "buttons", | ||
"title": "Show Buttons", | ||
"icon": "fas fa-compress-arrows-alt", | ||
"value": true | ||
} | ||
] | ||
} |
Oops, something went wrong.