コード例 #1
0
    public void PlayVideo(string _url)
    {
        InitWebView(webView);
        //string _url = "C:/Users/Raytine/Desktop/620x252_search.mp4";
        string html = "<html>" +
                      "<body>" +
                      "<div style=\"position:absolute;width:100%;height:100%;\">" +
                      "<video controls=\"controls\"><source src=" + _url + ">" +
                      "</video>" +
                      "</div></body>" +
                      "<script type=\"application/javascript\">" +
                      "window.onload=function(){alert('script use');}</script>" +
                      "</html>";

        webView.NavigateString(html);
    }
コード例 #2
0
 public void LoadHTML()
 {
     webView.NavigateString(html);
     Show();
 }