I'm trying to play an online video in my windows forms application. I can successfully play the video but i'd like to make it fullScreen.
The url is this:
http://www.mitele.es/msplayer/popup/?editorialId=231609
I've been inspecting the site and I found that the code for the expand button is this:
<button ng-if="fullScreenBtIf" class="fullscreen-bt msplayer-icon-fullscreen ng-scope" title="Pantalla completa" ng-click="toggleFullscreen()" ms-skin-button="" style="color: rgb(5, 187, 237); opacity: 1;"><span class="screen-reader-text">Ir a pantalla completa</span>
</button>
CEFsharp is working fine as I have tested it with an alert:
myBrowser.ExecuteScriptAsync("alert('test');");
I've tried to expand the video player by doing:
myBrowser.ExecuteScriptAsync("toggleFullscreen();");
But i get that toggleFullScreen is undefined. Do you have any idea in order to achieve this?