# VideoChat example question

**URL:** <https://community.wowza.com/t/videochat-example-question/37631>\
**Category:** Wowza Streaming Engine\
**Created:** [October 20, 2014, 9:21pm UTC](https://community.wowza.com/t/videochat-example-question/37631 "2014-10-20T21:21:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [October 20, 2014, 9:21pm UTC](https://community.wowza.com/t/videochat-example-question/37631/1 "2014-10-20T21:21:55Z")

</div>

in /examples/VideoChat example, how can we change the video source? or can we config an option to switch source?

Thanks

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [October 21, 2014, 12:40pm UTC](https://community.wowza.com/t/videochat-example-question/37631/2 "2014-10-21T12:40:21Z")

</div>

Hello,

The VideoChat example has the source code available. You can modify it according to your needs.

The VideoChat player is a Flash based application. If you right-click your mouse while the mouse pointer is on top of the player, you can select the Settings option. In the Flash pop-up screen you should be able to select the input source for both video and audio.

I hope this helps.

Zoran

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [October 22, 2014, 1:31pm UTC](https://community.wowza.com/t/videochat-example-question/37631/3 "2014-10-22T13:31:40Z")

</div>

Thank you for the question. How do I set the output sie to 16:9 . This is my code

camera.setMode(660, 371, 12, false);

camera.setQuality(0, 100);

camera.setKeyFrameInterval(30);

So I tried to setup 660 width and 371 height to have 16:9, but it always output 3:2 ratio in the flash player.

Thanks

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [October 22, 2014, 6:22pm UTC](https://community.wowza.com/t/videochat-example-question/37631/4 "2014-10-22T18:22:03Z")

</div>

Now I use what you suggest

if(camera != null)

{

camera.setMode(640, 320, 12, false);

camera.setQuality(0, 89);

camera.setKeyFrameInterval(30);

}

It still output 3:2 on the flash player

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [October 23, 2014, 5:47pm UTC](https://community.wowza.com/t/videochat-example-question/37631/5 "2014-10-23T17:47:15Z")

</div>

Does anyone have any experience in setting VideoChat to output to 16:9 widescreen?

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [October 23, 2014, 12:34am UTC](https://community.wowza.com/t/videochat-example-question/37631/6 "2014-10-23T00:34:31Z")

</div>

Have you tried using 640x320?

Zoran
