CefSharp Browser Video Won't Play
Asked Answered
L

2

5

I'm using CefSharp Winforms x86 build. I want to play a video from this link :

http://developers.canal-plus.com/rx-player/

In google chrome it's working but my CefSharp WinForm Browser can't play any of these. I checked javascript is enabled. Am i missing something ? This page doesn't require any flash player. It's HTML5 player.

Lupita answered 6/3, 2018 at 23:41 Comment(2)
CEF, which is the base for CefSharp, does not support proprietary video formats (#29536137). Which video format is used at the site you linked in your question?Rage
@Rage My video is mp4 so i guess i need h264 support but cef don't have that which i learned just now. Do you know any other way ? Extension for cef maybe ? I will search that now. Thanks!Lupita
R
8

CefSharp is based on CEF which is based on Chromium. Chromium does not support proprietary audio and video formats only Google Chrome does (see Chromium documentation).

If you need proprietary codec support you need to build CEF/Chromium on your own. There are no plugins/extensions which enable this functionality.

See also previous SO questions related to this topic 1 2 etc.

Rage answered 7/3, 2018 at 3:55 Comment(0)
S
0

I faced the same issue and found a walk around it!

I convert mp4 to gif using this link (you can disable the gif looping) and i extracted the audio out of the video and i played it synchronically using C#

Sherbet answered 25/10, 2021 at 13:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.