diff --git a/src/screens/Playbacks/Playbacks.js b/src/screens/Playbacks/Playbacks.js index e887da8..3a148a5 100644 --- a/src/screens/Playbacks/Playbacks.js +++ b/src/screens/Playbacks/Playbacks.js @@ -111,6 +111,10 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => { setIsLiked(currentUID ? lb.includes(currentUID) : false); }, [item?.likedBy, currentUID]); + const projectTitle = typeof item?.title === "string" ? item.title.trim() : ""; + + const creatorName = item?.userName; + const audioPlayer = useAudioPlayer(audioSource || undefined); const videoPlayer = useVideoPlayer(videoUrl || null, (p) => { p.loop = false; @@ -206,6 +210,57 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => { backgroundColor: "black", }} > + {(projectTitle || creatorName) && ( + + + {projectTitle ? ( + + {projectTitle} + + ) : null} + {creatorName ? ( + + {creatorName} + + ) : null} + + + )} {!!videoUrl ? ( { @@ -25,6 +33,12 @@ const Playbacks = () => { const activePlayback = playbacks?.[activeIndex] || null; const activeVideoUrl = activePlayback?.playbackUrl || null; + const activeTitle = + typeof activePlayback?.title === "string" + ? activePlayback.title.trim() + : ""; + + const activeCreatorName = activePlayback?.userName; const backgroundVideoRef = useRef(null); const lastActiveIndexRef = useRef(0); const backgroundSeekPendingRef = useRef(false); @@ -207,6 +221,22 @@ const Playbacks = () => { return ( + {(activeTitle || activeCreatorName) && ( + + + {activeTitle ? ( + + {activeTitle} + + ) : null} + {activeCreatorName ? ( + + {activeCreatorName} + + ) : null} + + + )} {activeVideoUrl ? (