mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
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:
1 parent
a8f924a583
commit
9287f91fc1
3 files changed
+28
-3
No files matched your search
+14
@@ -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 () => {
|
||||
|
||||
Reference in new issue
Block a user