fix: Embed player UI, stats loading, and share URL

- Remove black background from embed video to allow transparency
- Update "Watch on Bitvid" button to "Watch on" + white logo
- Fix share URL generation to point to main site instead of embed
- Ensure view counts and reactions are subscribed in embed mode
This commit is contained in:
google-labs-jules[bot] committed 2026-01-24 23:02:33 +00:00
1 parent a8f924a583
commit 9287f91fc1
3 files changed
+28 -3

No files matched your search

+14
View File
@@ -323,6 +323,20 @@ const setPointerState = ({ video, hint } = {}) => {
app.currentVideo.pointer = app.currentVideoPointer;
app.currentVideo.pointerKey = app.currentVideoPointerKey;
}
// Ensure stats subscriptions are active since we don't go through playVideoByEventId
if (app.subscribeModalViewCount) {
app.subscribeModalViewCount(
app.currentVideoPointer,
app.currentVideoPointerKey
);
}
if (app.reactionController && app.reactionController.subscribe) {
app.reactionController.subscribe(
app.currentVideoPointer,
app.currentVideoPointerKey
);
}
};
const startEmbed = async () => {