Replies: 6 comments 4 replies
-
Check the log file for errors. If the videos use proprietary codecs then they won't play due to licensing restrictions see https://github.com/cefsharp/CefSharp/wiki/General-Usage#multimedia-audiovideo Widevine is enabled by default though there are additional requirements in some cases see chromiumembedded/cef#3404 |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. I looked at debug.log and there are plenty of errors even when the video plays correctly. I'm guessing that this line:
|
Beta Was this translation helpful? Give feedback.
-
There is an issue with CEF and Youtube currently. Started around 2/6/2024. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. Here are my results. There's definitely a difference. Video that plays (in CefSharp brpwser): vp09.00.51.08.01.01.01.01.00 (247) / opus (251) Video that doesn't play (in CefSharp browser): avc1.4d401e (135) / opus (251) UPDATE: Problem is apparently solved! :-) I went here [https://apps.microsoft.com/detail/9MVZQVXJBQ9V?hl=de-de&gl=US(url) downloaded and installed codec AV1 for Windows 10 from Microsoft Store. Not sure sure why I got the German page but as it ain't broke I won't try and fix it. I'll try and do the same for Windows 11 now. Could you not find a way of including this in the browser? UPDATE 2 The link above does not appear to work. If you type 'AV1 Video Extension - Microsoft Apps' in Google you should find the page. |
Beta Was this translation helpful? Give feedback.
-
I didn't know there were EU specific versions but that may be the explanation because I live in France. I wonder where mbragg12 lives. |
Beta Was this translation helpful? Give feedback.
-
OK, sorry my solution was no use to you. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have searched for 'YouTube' but not found anything relevant. I have made a system to play YouTube videos. The browser loads a video.js player on a web server. It uses ExecuteScriptAsync and EvaluateScriptAsync to relay commands. This all works fine and I am pleased with the result. There is just one problem: most YouTube videos load and play normally but others do not not. I thought updating the browser might fix it but it didn't. I installed version 120.2.70. The videos seem to be loaded but as soon as I attempt to start them I get 'An error occurred'. Why some and not others? The problem is definitely linked to the use of CefSharp because I have an earlier, clunkier system that uses the VS webBrowser object and amazingly that still works. I'd be grateful for any enlightenment. Thanks for your time.
JR Dove
Beta Was this translation helpful? Give feedback.
All reactions