Rectangle 27 0

<preference name="orientation" value="portrait"/>
video.addEventListener('playing', function() {
     var so = cordova.plugins.screenorientation;
     so.setOrientation(so.Orientation.LANDSCAPE);
}, false);

@Tejas Bharambe is it working or not for you

i have added alert in the "addEventListener" function to see whether this is function is invoking or not. but this function is not invoking.

How to play HTML5

android html5 cordova cordova-plugins
Rectangle 27 0

cordova.require('cordova/plugin/screenorientation').set("landscape");

i have not using plugin to play video. i am using simple HTML5 video tag fro that. So there is no file like ScreenOrientaion.java in my project.

How to play HTML5

android html5 cordova cordova-plugins
Rectangle 27 0

<video id="video1"><source src="url" type="video/mp4" /></video>
video#video1 {
position:fixed;
margin-top:32%;
margin-left:-39%;
-moz-transform:scale(1) rotate(90deg);
  -webkit-transform:scale(1) rotate(90deg);
  -o-transform:scale(1) rotate(90deg);
  -ms-transform:scale(1) rotate(90deg);
  transform:scale(1) rotate(90deg); }

How to play HTML5

android html5 cordova cordova-plugins