Skip to content

Commit

Permalink
[Docs] Remove forcing resolution for the WebCamTexture - for Androi…
Browse files Browse the repository at this point in the history
…d only the 16x16 multiple will work (webRTC limitation) so it's better to either use the default one or set it accordingly to a target platform
  • Loading branch information
sierpinskid committed Nov 27, 2023
1 parent 30fa76f commit 2bd1cf7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docusaurus/docs/Unity/03-guides/04-camera-and-microphone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ They way you start streaming video from a camera device is by creating a `WebCam
// Obtain a camera device
var cameraDevice = WebCamTexture.devices.First();

var width = 1920;
var height = 1080;
var fps = 30;

// Use device name to create a new WebCamTexture instance
var activeCamera = new WebCamTexture(cameraDevice.name, width, height, fps);
var activeCamera = new WebCamTexture(cameraDevice.name);

// Call Play() in order to start capturing the video
activeCamera.Play();
Expand Down

0 comments on commit 2bd1cf7

Please sign in to comment.