- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
To get the current camera from webcamPublisher , use webcamPub.camera .
There is no setMode as such, you can set the aspectRatio , the API is in StreamManager, streamManager.aspectRatio = "your aspect ratio" ;
The aspect Ratio constants are in StreamManager , I am copying them here. They are public
/**
Constant for specifying a portrait aspect ratio on a video stream.
*/
public static const AR_PORTRAIT:String = "portrait";
/**
Constant for specifying a standard aspect ratio on a video stream.
*/
public static const AR_STANDARD:String = "standard";
/**
Constant for specifying a landscape aspect ratio on a video stream.
*/
public static const AR_LANDSCAPE:String = "landscape";
Also,You need to choose a specific aspect ratio(their width and height values are in StreamManager) , so you can see what ratio you want , and depending on choose the type of aspectRatio.
And if you set the resolutionFactor value inside webcamPub, you will get multiples of width/height values. Refer to updateCameraSettings function inside player 9 source code for reference.
Hope this helps
Thanks
Hironmay Basu
Views
Replies
Total Likes