dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Problem: video mp4 is not working on linux

Open leejw51 opened this issue 2 years ago • 3 comments

i tried to display mp4 file , windows, mac ok

but linux, not working installed all codec, in linux ( ubuntu )

would it be possible to support mp4 or webm?

some document for how to control video, such as play, stop etc. also would be useful

leejw51 avatar Aug 06 '22 02:08 leejw51

can I see the code pls

rMazeiks avatar Aug 06 '22 07:08 rMazeiks

i copied mp4 file to assets, and include inside rsx

            
            div {
                video { src: "assets/640.mp4",autoplay:"true" },
            }

mac, windows working fine. (mp4, webm both working fine)

leejw51 avatar Aug 06 '22 16:08 leejw51

Just my two cents: mp4 is a container format, so you need to know the codecs inside (normally h264 + aac). Playback depends on having the right codecs, and Ubuntu normally needs to have ubuntu-restricted-extras installed to play proprietary things like mp3 and h264 (both patented). You could try to play the same video in a chromium browser and see if it plays to discard a codec issue

ghostnumber7 avatar Aug 22 '22 21:08 ghostnumber7