WowzaPlayerView break the aspect ratio of the video when using HLS

When I use HLS to play live stream with WowzaPlayerview, it seem like the video ratio is broken. It doesn’t keep ratio to the same as we stream from obs

It will only support the ratio supported by the actual iOS device. They vary actually so you need to check what the device supports. We have seen this come up a few times before with all the new Apple devices being released all the time. They all have their own settings they support and it’s not the same across the platform unfortunately.

You’ll need to check the common ratios most devices support and match it up in OBS.

Thanks for your answer. But actually It also happened in android devices.

Ok that’s good feedback and helps actually to look somewhere else. Are you changing the orientation of the camera at all during the stream from portrait to landscape for example?

The reason I ask is the stream metadata such as aspectRatio is usually sent during the initial connection with the streaming server. The problem with mobile device encoders though is that the aspectRatio can change mid-stream (such as when a user switches from portrait to landscape).

Are you streaming vertical or horizontal through entire stream? Its very difficult to debug these things in a forum so we need you to share more info on the workflow and what is happening. Thanks.

Are you seeing the black bars on the side during video playback @Ly Finik?

OK. Let me recap. Now my issue is when I use Gocoder WowzaPlayerview to play live stream with wowza cloud (https://cdn3.wowza.com/1/SVV5MjRXYXhUQ1ZF/UnRaMzAv/hls/live/playlist.m3u8), I face with a problem that aspect ratio in Gocoder WowzaPlayerview is different from OBS. OBS configuration: Base (Canvas) Resolution: 1920x1080 Output (Scaled) Resolution: 1920x1080 In addition, I don’t switches from portrait to landscape during initial connection and I also see the black bars at both left and right side of the screen.

Ok, did you try setting it to FILL_VIEW yet or making any of the adjustments you see here with aspect ratios?

Android SDK aspect ratio settings:

https://www.wowza.com/resources/gocodersdk/docs/1.0/api-docs-android/com/wowza/gocoder/sdk/api/configuration/WZMediaConfig.html

I’m not sure which SDK you are using so maybe here if you’re using the iOS SDK.

iOS SDK aspect ratio settings: (under WowzCameraPreviewGravity )

https://www.wowza.com/resources/gocodersdk/docs/api-reference-ios/

OK. Actually when I set FILL_VIEW it just make the video full width but the issue of aspect ratio is still happened. You can see the attachment below:

Portrait:

https://drive.google.com/open?id=1eQ5K8QQw20zqpljIsphw7BL6sBLGAB2X

Landscape:

https://drive.google.com/open?id=1ce6NMs58zlVKjn3Hz-JvmBdoQh6qUA97

In addition, I would to know that if I set hlsEnabled to true and add hls url so do I have to add host in WowzaConfig?