feat: add showUserAvatar option to video player and embed UI

- Added 'showUserAvatar' parameter to control author avatar visibility in embed info overlay
- Implemented UI toggle in MediaShareEmbed for the 'showUserAvatar' option
- Propagated 'showUserAvatar' through EmbedPage, VideoViewer, and VideoJSEmbed
- Updated test iframe index with all 8 combinations of showTitle, showRelated, and showUserAvatar
This commit is contained in:
Yiannis Christodoulou
2026-01-07 12:54:43 +02:00
parent 946304b46c
commit 694d80445c
9 changed files with 191 additions and 148 deletions

View File

@@ -63,6 +63,7 @@ export const EmbedPage: React.FC = () => {
const urlParams = new URLSearchParams(window.location.search);
const showTitle = urlParams.get('showTitle') !== '0';
const showRelated = urlParams.get('showRelated') !== '0';
const showUserAvatar = urlParams.get('showUserAvatar') !== '0';
return (
<VideoViewer
data={MediaPageStore.get('media-data')}
@@ -70,6 +71,7 @@ export const EmbedPage: React.FC = () => {
containerStyles={containerStyles}
showTitle={showTitle}
showRelated={showRelated}
showUserAvatar={showUserAvatar}
/>
);
}}