- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I use the webrtc 3.4 version of the SDK, how can I force the camera output data are vertical screen, thank you.I found that I'll direction of equipment modification videoOrientation don't take effect
// AVCaptureVideoOrientation orientation = av.videoOrientation;
// switch (orientation) {
// case UIInterfaceOrientationPortraitUpsideDown:
// if(av.videoOrientation != AVCaptureVideoOrientationPortraitUpsideDown) {
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
// [session beginConfiguration];
// av.videoOrientation = AVCaptureVideoOrientationPortraitUpsideDown;
// [session commitConfiguration];
// });
// }
// break;
// case UIInterfaceOrientationLandscapeRight:
// if(av.videoOrientation != AVCaptureVideoOrientationLandscapeRight) {
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
// [session beginConfiguration];
// av.videoOrientation = AVCaptureVideoOrientationLandscapeRight;
// [session commitConfiguration];
// });
// }
// break;
// case UIInterfaceOrientationLandscapeLeft:
// if(av.videoOrientation != AVCaptureVideoOrientationLandscapeLeft) {
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
// [session beginConfiguration];
// av.videoOrientation = AVCaptureVideoOrientationLandscapeLeft;
// [session commitConfiguration];
// });
// }
// break;
// case UIInterfaceOrientationPortrait:
// if(av.videoOrientation != AVCaptureVideoOrientationPortrait) {
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
// [session beginConfiguration];
// av.videoOrientation = AVCaptureVideoOrientationPortrait;
// [session commitConfiguration];
// });
// }
// break;
// default:
// break;
// }
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi zhao,
Did you try locking orientation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page