Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows 10 HTML video playback error
#1
Windows 10, an error occurs during video playback.
However, there was no problem with the playback on Windows 7,8.
there is can play a video in Windows 10?

Function popup
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3"
str ax3SHD.expandpath("$desktop$\tumblr.html")
,ax3SHD.findreplace("\" "/")
,ax3SHD.format("file:///%s" ax3SHD)
out ax3SHD

int x(88) y(1029)
if(!ShowDialog("Torrent_Search_Preview_popup" &Torrent_Search_Preview_popup &controls 0 0 0 0 x y)) ret
;BEGIN DIALOG
;0 "" 0x90CC0AC8 0x0 0 0 444 446 "보기"
;3 ActiveX 0x54030000 0x0 0 0 444 428 "SHDocVw.WebBrowser"
;4 Static 0x54000000 0x0 4 432 170 12 "ESC키 또는 닫기를 클릭하시면 창이 닫힙니다."
;2 Button 0x54030000 0x0 396 432 48 14 "닫기"
;END DIALOG
;DIALOG EDITOR: "" 0x2040108 "" "" "" ""

ret
;messages
DT_AutoSizeControls hDlg message "2m 3s 4mv"

sel message
,case WM_INITDIALOG
,SHDocVw.WebBrowser we3
,we3._getcontrol(id(3 hDlg))
,we3.Silent=TRUE
,we3.Refresh2
,we3.Navigate(ax3SHD)
,
,;subclass web browser
,;int hctrl=child("" "Internet Explorer_Server" id(3 hDlg)); if(!hctrl) out "Warning: Web browser control not initialized. Assign an url or ''about:blank'' to the control variable before ShowDialog."; ret

,case WM_DESTROY
,case WM_COMMAND goto messages2
,case WM_SETCURSOR

ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1

Code:
Copy      Help
<!doctype html>
<html lang="ko">
<head>
  <meta charset="euc-kr">
  <title>Document</title>
  <script src="http://code.jquery.com/jquery-1.11.0.js"></script>
  <script type="text/javascript">
    
    $(document).ready(function(){        
        
        //우클릭 방지
        /*
        $(document).on("contextmenu",function(e){
            console.log("c"+e);
            return false;
        });

        //드래그 방지
        $(document).on("dragstart",function(e){
            console.log("d"+e);
            return false;
        });
        
        //선택 방지
        $(document).on("selectstart",function(e){
            console.log("s"+e);
            return false;
        });        
        */        

        //다음과 같이 이벤트를 한번에 등록가능
        $(document).on("contextmenu dragstart selectstart",function(e){
            return false;
        });
        //참고. IE에서는 텍스트컨트롤박스의 내용을 드래그해서 선택할수없었음
        //      또한 파이어폭스에서는 selectstart 시 이벤트가 발생되지 않았음.


        //disableSelection($("body")[0])
    });
    
    //선택 방지. (파이어폭스도 적용됨)
    function disableSelection(target)
    {
        //For IE This code will work
        if (typeof target.onselectstart!="undefined")
        target.onselectstart=function(){return false}
        
        //For Firefox This code will work
        else if (typeof target.style.MozUserSelect!="undefined")
        target.style.MozUserSelect="none"
        
        //All other  (ie: Opera) This code will work
        else
        target.onmousedown=function(){return false}
        target.style.cursor = "default";
    }
  </script>
</head>
<style> BODY { border: 0px; margin: 0px 0px 0px 0px; overflow: auto; background-color: #%02x%02x%02x; } </style>
<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">


<iframe width="714" height="420" src="https://vine.co/v/eHbLUxBq7VK/embed/simple" frameborder="0" marginheight="0" scrolling="no" style="font-family: dotum; line-height: 20.3999996185303px"></iframe>    


</body>
</html>
#2
we3.Navigate(ax3SHD)
Here ax3SHD is empty. Delete this line.
#3
Gintaras Wrote:we3.Navigate(ax3SHD)
Here ax3SHD is empty. Delete this line.

Dear Gintaras.
Still the same error occurs.
#4
SHDocVw.WebBrowser versioning..
#5
Dear Gintaras.
Thank you very much for the help.
I fixed the cause.Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)