Skip to content

Commit

Permalink
minor fix for the ptz example app
Browse files Browse the repository at this point in the history
  • Loading branch information
steveseguin committed Feb 8, 2024
1 parent 35ad883 commit baa5d78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/ptz.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
border:0;
margin-top:min(10px, 1vh);
padding:min(10px, 1vh);
cursor:pointer;
}

span {
Expand Down Expand Up @@ -89,12 +90,12 @@ <h2>PTZ Remote Control interface</h2>
function panleft(){
if (iframe){
console.log("PAN 1");
iframe.contentWindow.postMessage({"sendRequest":{pan:1}}, '*');
iframe.contentWindow.postMessage({"sendRequest":{pan:-1}}, '*');
}
}
function panright(){
if (iframe){
iframe.contentWindow.postMessage({"sendRequest":{pan:-1}}, '*');
iframe.contentWindow.postMessage({"sendRequest":{pan:1}}, '*');
}
}
function tiltup(){
Expand Down

0 comments on commit baa5d78

Please sign in to comment.