# Streaming is rotated when screen is off

**URL:** <https://community.wowza.com/t/streaming-is-rotated-when-screen-is-off/48537>\
**Category:** Wowza GoCoder SDK\
**Created:** [April 14, 2017, 8:58pm UTC](https://community.wowza.com/t/streaming-is-rotated-when-screen-is-off/48537 "2017-04-14T20:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaehong\_Choi](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jaehong\_Choi](https://community.wowza.com/u/Jaehong_Choi)\
**Post date:** [April 14, 2017, 8:58pm UTC](https://community.wowza.com/t/streaming-is-rotated-when-screen-is-off/48537/1 "2017-04-14T20:58:41Z")

</div>

While streaming in landscape mode, when the screen off button (on the phone) is pressed, it goes into portrait mode.

How do I keep it in landscape mode?

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [May 6, 2017, 2:28am UTC](https://community.wowza.com/t/streaming-is-rotated-when-screen-is-off/48537/2 "2017-05-06T02:28:02Z")

</div>

Hi,

You can set it to stream in landscape mode by setting

```auto
broadcastVideoOrientation = WZBroadcastOrientation.AlwaysLandscape
videoPreviewRotates = false
capturedVideoRotates = false

```

Michelle
