slavavdovichenko / MediaLibDemos3x

MediaLibiOS & Demos 3.x
201 stars 48 forks source link

PreviewLayer orientation is wrong. #8

Open Phunk87 opened 9 years ago

Phunk87 commented 9 years ago

When my app is Landscape, I set the videoOrientation to BroadcastStreamClient. But it seems all wrong.

NewPersonal commented 9 years ago

Am having the same issue. My app is masked for Landscape right or left orientation. But preview layer doesn't seem to change orientation.

slavavdovichenko commented 9 years ago

Hi everybody,

The orientation of the publisher sets the orientation of the publishing stream, not the orientation of the preview view (which is used by AVCaptureVideoPreviewLayer, and rotates with a device rotation - this is its functionality).

You can try the different publisher orientations on the device, and check the changing of the stream orientation on the player (for example, on Wowza Flash RTMP Player - http://www.wowza.com/resources/3.5.0/examples/LiveVideoStreaming/FlashRTMPPlayer/player.html).

Harish259 commented 9 years ago

hiiiii please can anyone tell how can i save stream in document directory while live streaming