From 372243cdc602fb44fea5950969b2b2349d40fa21 Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 28 Aug 2026 10:32:51 +0800 Subject: [PATCH] Update getVideoFit method to specify return type and clarify supported values --- programming/javascript/api-reference/cameraview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programming/javascript/api-reference/cameraview.md b/programming/javascript/api-reference/cameraview.md index 72d25b4d..8f38c60f 100644 --- a/programming/javascript/api-reference/cameraview.md +++ b/programming/javascript/api-reference/cameraview.md @@ -378,7 +378,7 @@ cameraView.setVideoFit("cover"); Retrieves the current value of the `object-fit` CSS property from the `HTMLVideoElement` used by this `CameraView` instance. ```typescript -getVideoFit(): string; +getVideoFit(): 'contain' | 'cover' | 'fill'; ``` **Parameters** @@ -387,7 +387,7 @@ None. **Return value** -The current value of the `object-fit` property applied to the video element. At present, the value is limited to "cover" and "contain". Check out more on [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit). +The current value of the `object-fit` property applied to the video element. Check out more on [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit). **Code Snippet**