So I have encountered a situation like this
The video displayed does not fully expand to the width of its containing element.
This is what my HTML structure looks like -
<div class="webcam"/>
<div class="control-container">
</div>
The video element is generated using a JavaScript webcam library -
https://github.com/jhuckaby/webcamjs
var that = this;
Webcam.set({
width: this.options.width,
height: that.options.height,
image_format: 'jpeg',
jpeg_quality: 100,
force_flash: false
});
Webcam.attach('.webcam');
This is how the video element appears
Currently, the width and height are set to 562 and 344 respectively, matching the dimensions of the container. I have attempted to increase these values, but it only results in more white space around the actual live viewer rather than enlarging the video itself.
Any suggestions on how to address this issue?