@@ -29,9 +29,9 @@ const PlayerContainer = styled.div<{
2929 width: 100%;
3030 height: 55vh;
3131 display: flex;
32- position: sticky ;
32+ position: relative ;
3333 top: 0;
34- z-index: 101 ;
34+ z-index: 3 ;
3535
3636 ${ ( { isFetching } ) =>
3737 isFetching &&
@@ -52,7 +52,7 @@ const CorePlayer = ({ video }: { video: GetVideosByVidApiResponse }) => {
5252 const [ postVideoByVidObservations ] = usePostVideosByVidObservationsMutation ( ) ;
5353 const [ patchObservation ] = usePatchVideosByVidObservationsAndOidMutation ( ) ;
5454 const [ start , setStart ] = useState < number | undefined > ( undefined ) ;
55- const { context, setIsPlaying } = usePlayerContext ( ) ;
55+ const { context } = usePlayerContext ( ) ;
5656 const { currentTime } = context . player || { currentTime : 0 } ;
5757 const { addToast } = useToast ( ) ;
5858
@@ -127,8 +127,6 @@ const CorePlayer = ({ video }: { video: GetVideosByVidApiResponse }) => {
127127 ( time : number ) => {
128128 if ( videoRef && videoRef . current ) {
129129 videoRef . current . currentTime = time ;
130- setIsPlaying ( true ) ;
131- videoRef . current . play ( ) ;
132130 }
133131 } ,
134132 [ videoRef ]
@@ -159,8 +157,8 @@ const CorePlayer = ({ video }: { video: GetVideosByVidApiResponse }) => {
159157 />
160158 ) ,
161159 onClick : ( ) => {
162- seekPlayer ( obs . start ) ;
163160 setOpenAccordion ( { id : obs . id } ) ;
161+ seekPlayer ( obs . start ) ;
164162 } ,
165163 tags : obs . tags ,
166164 } ) ) ,
@@ -188,6 +186,7 @@ const CorePlayer = ({ video }: { video: GetVideosByVidApiResponse }) => {
188186 < PlayerContainer isFetching = { isFetchingObservations } >
189187 < PlayerProvider . Core
190188 ref = { videoRef }
189+ pipMode = "auto"
191190 url = { video . streamUrl ?? video . url }
192191 onCutHandler = { handleCut }
193192 handleBookmarkUpdate = { handleBookmarksUpdate }
0 commit comments