diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 8535cf4f16..8ac320d190 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -3760,9 +3760,9 @@ declare namespace videojs { * * @return The current value of autoplay when getting */ - autoplay(value?: boolean): void; + autoplay(value?: boolean | string): void; - autoplay(): boolean; + autoplay(): boolean | string; /** * Create a remote {@link TextTrack} and an {@link HTMLTrackElement}. It will @@ -4559,7 +4559,7 @@ declare namespace videojs { interface PlayerOptions extends ComponentOptions { aspectRatio?: string; - autoplay?: boolean; + autoplay?: boolean | string; controlBar?: ControlBarOptions | false; textTrackSettings?: TextTrackSettingsOptions; controls?: boolean;