Video stream sideways on some browser/device combinations Video stream sideways on some browser/device combinations windows windows

Video stream sideways on some browser/device combinations


As far as I know,

Orientation is in the field of screen not stream.

The Screen Orientation API provides the ability to read the screen orientation type and angle, to be informed when the screen orientation state changes, and be able to lock the screen orientation to a specific state.

In my view, one great method for managing orientation is using media query like below:

/*   ##Device = Tablets, Ipads (portrait)  ##Screen = B/w 768px to 1024px*/@media (min-width: 768px) and (max-width: 1024px) {  //CSS}

For using other methods like JavaScript or manifest please see this article.

Edit

You mentioned in title of question to Windows Tablet and also you mentioned you are looking for a way for setting orientation options without a human looking at it.The your second condition contradicts the former.

How we do detect device is Windows Tablet without a human looking at video??

It's not possible to answer this question. I think your view about stream is wrong.

You can choose one of them at a time:

  1. If you need to detect some devices like Windows Tablet, you canuse some thing like media query or JavaScript method to detectdevice.
  2. If you need to set option without a human looking at it, you canuse some method like MediaStreamTrack.applyConstraints().


You can get the orientation info via javascript with screen.orientation.See on the MDN Docs