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:
- If you need to detect some devices like Windows Tablet, you can
use some thing like media query or JavaScript method to detect
device.
- If you need to set option without a human looking at it, you can
use some method like MediaStreamTrack.applyConstraints().