# WOWZPlayerView can not custom size when playing HLS

**URL:** <https://community.wowza.com/t/wowzplayerview-can-not-custom-size-when-playing-hls/51877>\
**Category:** Wowza GoCoder SDK\
**Created:** [September 3, 2018, 1:44am UTC](https://community.wowza.com/t/wowzplayerview-can-not-custom-size-when-playing-hls/51877 "2018-09-03T01:44:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Le\_Vinh](https://avatars.discourse-cdn.com/v4/letter/l/50afbb/32.png) [@Le\_Vinh](https://community.wowza.com/u/Le_Vinh)\
**Post date:** [September 3, 2018, 1:44am UTC](https://community.wowza.com/t/wowzplayerview-can-not-custom-size-when-playing-hls/51877/1 "2018-09-03T01:44:57Z")

</div>

On GoCoder Android, when i config WOWZPlayerView to play HLS from myStream. So, the player is not good. The player view always has size 640x480 on screen-shot-2018-09-03-at-83849-am.jpg

The player view is stretch out horizontally if the recorder phone is in vertical state.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2018, 2:42pm UTC](https://community.wowza.com/t/wowzplayerview-can-not-custom-size-when-playing-hls/51877/2 "2018-09-04T14:42:05Z")

</div>

@Le Vinh, there are settings you can use to ensure the stream is always sent in either landscape or portrait mode:

**[https://www.wowza.com/docs/how-to-use-the-camera-view-in-gocoder-sdk-for-android](https://www.wowza.com/docs/how-to-use-the-camera-view-in-gocoder-sdk-for-android)**

You can also use the WOWZCamera View class with **frameSizes** and **supportedPresetConfigs** properties to get the list of natively supported resolutions for the devices in question:

**[https://www.wowza.com/docs/how-to-use-the-camera-view-in-gocoder-sdk-for-android](https://www.wowza.com/docs/how-to-use-the-camera-view-in-gocoder-sdk-for-android)**
