Video playing and ended notifications from WebView in Windows 8.1 app RRS feed

  • Question

  • Hi All,

    I have a WebView in my mainpage to allow user browse through web in a Windows 8.1 app. I need to get notified in my C# code whenever there is a Video getting played and after the video finished playing in the WebView. Is this possible through Script Injection or any other method?

    Edit: I can't get Youtube Player API to work in webview, because you cant fetch script remotely in your windows app. All the scripts need to be locally present. Do we have a way to make this work?


    • Edited by patapps Friday, January 17, 2014 7:32 AM edit
    Friday, January 17, 2014 7:26 AM


  • Can you explain more about what you mean about "all scripts need to be locally present"?  Are you referencing the correct API? 


    There's a youtube sample here:


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Anne Jing Friday, January 24, 2014 1:36 AM
    Friday, January 17, 2014 3:26 PM