fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

WOWZA video stream rotated #108

Open Amlana opened 9 years ago

Amlana commented 9 years ago

I am creating the session with these configuration. mSession = SessionBuilder.getInstance() .setCallback(this) .setSurfaceView(mSurfaceView) .setPreviewOrientation(90) .setContext(getApplicationContext()) .setAudioEncoder(SessionBuilder.AUDIO_NONE) .setAudioQuality(new AudioQuality(16000, 32000)) .setVideoEncoder(SessionBuilder.VIDEO_H264) .setVideoQuality(new VideoQuality(640,480,30,500000)) .build(); I can see the preview properly but in the browser its rotated. How can set the proper orientation

kmlx commented 9 years ago

Depends on the device. For example nexus 6 with 5.1 has a known issue on the front cam being upside down: http://forum.xda-developers.com/nexus-6/help/facing-camera-upside-inverted-t2953530

Krishan14sharma commented 9 years ago

I am also getting the rotated stream on wowza .I have adjusted the orientation by detecting the display rotation on the device ,preview is correct on device but its giving rotated wowza stream.Any one having any clue?

kmlx commented 9 years ago

Most devices that I tested against (30+) do not present this issue. For anyone that has this issue, please post device name and android OS so that others can plan around faulty devices.

Krishan14sharma commented 9 years ago

Moto G with Lolipop OS is one of such device.