Skip to content

Commit

Permalink
Corrigindo distorção no video
Browse files Browse the repository at this point in the history
  • Loading branch information
SonanFarr committed Nov 15, 2023
1 parent 779799e commit a8ebe8c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,18 @@ <h1>Sons</h1>
var width = video.width;
var height = video.height;

screen.orientation.addEventListener("change", function(e) {
//screen.orientation.addEventListener("change", function(e) {
// video.width = height;
// video.height = width;
$( "#video" ).load(window.location.href + " #video" );
$( "#output" ).load(window.location.href + " #output" );
$( "#cvn" ).load(window.location.href + " #cvn" );
// $( "#video" ).load(window.location.href + " #video" );
// $( "#output" ).load(window.location.href + " #output" );
// $( "#cvn" ).load(window.location.href + " #cvn" );
// output.width = height;
// output.height = width;
//});
window.addEventListener("orientationchange", function(event) {
document.getElementById('video').innerHTML = "Reloaded";
document.getElementById('output').innerHTML = "Reloaded";
});
</script>
</body>
Expand Down

0 comments on commit a8ebe8c

Please sign in to comment.