Video only playing in Safari

Hey everyone,

I am trying to include a video inside a dash app with a simple html.Video tag.

html.Video(src='assets/video.mp4#t=0.001', id='video', controls=True)

However the video is only available in Safari and not showing or listed in any folder in Chrome or Firefox when I open the console. The issue stays the same with and without the #t0.001, which just ensures that a thumbnail is shown on mobile devices.

The video is created with opencv as follows:

fourcc = cv2.VideoWriter_fourcc(*'mp4v')
writer = cv2.VideoWriter('assets/video.mp4', fourcc, fps, (width, height))

I thought it might be the codec, but when serving the video inside a flask app everything works as expected.

Any help is appreciated.

Hey @turing99 How about checking out Dash Player?

1 Like

Thanks @DaveG. Didn’t know about this and works great for my use case.

1 Like