4

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.

sword1st
  • 525
  • 3
  • 7
  • 21
  • 1
    CEF, which is the base for CefSharp, does not support proprietary video formats (https://stackoverflow.com/questions/29535637/cant-play-video-mp4-in-chromium-embedded-framework). Which video format is used at the site you linked in your question? – Marius Mar 07 '18 at 00:41
  • @Marius 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! – sword1st Mar 07 '18 at 01:26

2 Answers2

7

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.

Marius
  • 1,529
  • 6
  • 21
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#