File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,16 @@ export function VideoEntry({ video }: Props) {
316316
317317 < ul >
318318 { video . sequences . map ( ( sequence ) => {
319- const [ firstCamera ] = sequence . playerCameras ;
319+ const [ firstPlayerCamera ] = sequence . playerCameras ;
320+ const [ firstCustomCamera ] = sequence . cameras ;
321+ const firstCameras = [ firstPlayerCamera , firstCustomCamera ] . filter ( Boolean ) . sort ( ( cameraA , cameraB ) => {
322+ return cameraA . tick - cameraB . tick ;
323+ } ) ;
324+ let firstCameraName = '' ;
325+ const [ firstCamera ] = firstCameras ;
326+ if ( firstCamera ) {
327+ firstCameraName = 'playerName' in firstCamera ? firstCamera . playerName : firstCamera . name ;
328+ }
320329
321330 return (
322331 < li
@@ -331,7 +340,7 @@ export function VideoEntry({ video }: Props) {
331340 < p > { sequence . recordAudio ? < Trans > Yes</ Trans > : < Trans > No</ Trans > } </ p >
332341 < p > { sequence . playerVoicesEnabled ? < Trans > Yes</ Trans > : < Trans > No</ Trans > } </ p >
333342 < p > { sequence . playerCameras . length } </ p >
334- < p > { firstCamera ?. playerName ? firstCamera . playerName : < Trans > None</ Trans > } </ p >
343+ < p > { firstCameraName ? firstCameraName : < Trans > None</ Trans > } </ p >
335344 </ li >
336345 ) ;
337346 } ) }
You can’t perform that action at this time.
0 commit comments