forked from PreMiD/Presences
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PreMiD#1724 from PreMiD/semid/qa/2020-06-10-00-19
🤖 Semi-weekly SE
- Loading branch information
Showing
21 changed files
with
404 additions
and
368 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
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
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
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,22 +1,22 @@ | ||
{ | ||
"$schema": "https://schemas.premid.app/metadata/1.0", | ||
"author": { | ||
"name": "Holfz", | ||
"id": "405397046691102740" | ||
}, | ||
"service": "AIS Play", | ||
"description": { | ||
"en": "AIS Play is a thailand streaming service offered to a series, television providers, anime, much more" | ||
}, | ||
"url": "aisplay.ais.co.th", | ||
"version": "1.0.0", | ||
"logo": "https://i.imgur.com/HQs4uPj.png", | ||
"thumbnail": "https://i.imgur.com/ZYS9jRi.png", | ||
"color": "#B0B72A", | ||
"tags": [ | ||
"video", | ||
"media" | ||
], | ||
"iframe": true, | ||
"category": "videos" | ||
} | ||
"$schema": "https://schemas.premid.app/metadata/1.0", | ||
"author": { | ||
"name": "Holfz", | ||
"id": "405397046691102740" | ||
}, | ||
"service": "AIS Play", | ||
"description": { | ||
"en": "AIS Play is a thailand streaming service offered to a series, television providers, anime, much more" | ||
}, | ||
"url": "aisplay.ais.co.th", | ||
"version": "1.0.1", | ||
"logo": "https://i.imgur.com/HQs4uPj.png", | ||
"thumbnail": "https://i.imgur.com/ZYS9jRi.png", | ||
"color": "#B0B72A", | ||
"tags": [ | ||
"video", | ||
"media" | ||
], | ||
"iframe": true, | ||
"category": "videos" | ||
} |
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,14 +1,18 @@ | ||
const iframe = new iFrame(); | ||
|
||
iframe.on("UpdateData", async () => { | ||
const video: HTMLVideoElement = document.querySelector("#vimmi_video_player_html5_api"); | ||
|
||
if (video != undefined && !isNaN(video.duration)) { | ||
iframe.send({ | ||
current: video.currentTime, | ||
duration: video.duration, | ||
paused: video.paused, | ||
isLive: !document.querySelector(".vjs-live-control").classList.contains("vjs-hidden") | ||
}); | ||
} | ||
}); | ||
const video: HTMLVideoElement = document.querySelector( | ||
"#vimmi_video_player_html5_api" | ||
); | ||
|
||
if (video != undefined && !isNaN(video.duration)) { | ||
iframe.send({ | ||
current: video.currentTime, | ||
duration: video.duration, | ||
paused: video.paused, | ||
isLive: !document | ||
.querySelector(".vjs-live-control") | ||
.classList.contains("vjs-hidden") | ||
}); | ||
} | ||
}); |
Oops, something went wrong.