File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/pages/Video/components Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ export const ObservationTooltip = ({
5959 size = "large"
6060 color = { color }
6161 onClick = { ( ) => {
62- seekPlayer ?.( start ) ;
6362 setOpenAccordion ( { id : observationId } ) ;
63+ seekPlayer ?.( start ) ;
6464 } }
6565 isSelecting = { isSelecting }
6666 >
Original file line number Diff line number Diff line change @@ -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 } ) ) ,
You can’t perform that action at this time.
0 commit comments