3 Commits
Author SHA1 Message Date
dtourolle 4b3b64bd7e json copying
🏗️ Build Plugin / build (push) Successful in 22s
Latest Release / latest-release (push) Successful in 28s
🧪 Test Plugin / test (push) Successful in 17s
🚀 Release Plugin / build-and-release (push) Successful in 27s
debugging overlay
2026-06-12 20:09:36 +02:00
Gitea Actions abad55788d Update manifest.json for version 0.0.0 2026-06-12 17:05:10 +00:00
Gitea Actions dea172d990 Update manifest.json for latest build (51a7365) 2026-06-12 17:04:27 +00:00
4 changed files with 37 additions and 13 deletions
@@ -37,5 +37,6 @@ public class TruthActor
/// Gets the list of [start_sec, end_sec] windows during which the actor is on screen. /// Gets the list of [start_sec, end_sec] windows during which the actor is on screen.
/// </summary> /// </summary>
[JsonPropertyName("scenes")] [JsonPropertyName("scenes")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public Collection<double[]> Scenes { get; } = new(); public Collection<double[]> Scenes { get; } = new();
} }
+1
View File
@@ -37,5 +37,6 @@ public class TruthFile
/// Gets the list of actors detected in the film, each with their on-screen scene windows. /// Gets the list of actors detected in the film, each with their on-screen scene windows.
/// </summary> /// </summary>
[JsonPropertyName("actors")] [JsonPropertyName("actors")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public Collection<TruthActor> Actors { get; } = new(); public Collection<TruthActor> Actors { get; } = new();
} }
+24 -10
View File
@@ -4,9 +4,23 @@
var POLL_INTERVAL_MS = 1000; var POLL_INTERVAL_MS = 1000;
var overlayEl = null; var overlayEl = null;
function getItemIdFromHash() { function getNowPlaying() {
var match = window.location.hash.match(/[?&]id=([0-9a-fA-F-]+)/); if (!window.ApiClient) {
return match ? match[1] : null; return Promise.reject(new Error('no ApiClient'));
}
var url = window.ApiClient.getUrl('Sessions', { DeviceId: window.ApiClient.deviceId() });
return window.ApiClient.ajax({ url: url, type: 'GET', dataType: 'json' }).then(function (sessions) {
var session = sessions && sessions[0];
if (!session || !session.NowPlayingItem || !session.PlayState) {
return null;
}
return {
itemId: session.NowPlayingItem.Id,
positionSeconds: (session.PlayState.PositionTicks || 0) / 10000000
};
});
} }
function removeOverlay() { function removeOverlay() {
@@ -72,14 +86,14 @@
}); });
} }
function onPause(event) { function onPause() {
var video = event.target; getNowPlaying().then(function (info) {
var itemId = getItemIdFromHash(); if (info) {
if (!itemId) { fetchContext(info.itemId, info.positionSeconds);
return;
} }
}, function () {
fetchContext(itemId, video.currentTime); // ApiClient unavailable or request error - fail silently, never break playback.
});
} }
function onPlay() { function onPlay() {
+10 -2
View File
@@ -7,13 +7,21 @@
"owner": "dtourolle", "owner": "dtourolle",
"category": "General", "category": "General",
"versions": [ "versions": [
{
"version": "0.0.0",
"changelog": "Release 0.0.0",
"targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/v0.0.0/jray_0.0.0.0.zip",
"checksum": "fd92458f741b8f7aa0b77da04cbc6a43",
"timestamp": "2026-06-12T17:05:10Z"
},
{ {
"version": "0.0.0.0", "version": "0.0.0.0",
"changelog": "Latest Build", "changelog": "Latest Build",
"targetAbi": "10.9.0.0", "targetAbi": "10.9.0.0",
"sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip", "sourceUrl": "https://gitea.tourolle.paris/dtourolle/jRay/releases/download/latest/jray_0.0.0.0.zip",
"checksum": "d6f05de428a51573f020c06651245e69", "checksum": "3650af90fd163042af65cc702d618506",
"timestamp": "2026-06-12T16:53:59Z" "timestamp": "2026-06-12T17:04:26Z"
} }
] ]
} }