From 608ade1c86b59ea3017379222d5a2750189a0330 Mon Sep 17 00:00:00 2001 From: anna-charlotte Date: Tue, 18 Apr 2023 10:18:54 +0200 Subject: [PATCH 1/2] docs: disable autoplay for video in data types section Signed-off-by: anna-charlotte --- docs/data_types/video/video.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data_types/video/video.md b/docs/data_types/video/video.md index f619af91085..e8e3432b9bc 100644 --- a/docs/data_types/video/video.md +++ b/docs/data_types/video/video.md @@ -15,7 +15,7 @@ Moreover, you will learn about DocArray's video-specific types, to represent you In DocArray video data is represented by a video tensor, an audio tensor, and the key frame indices. -![type:video](mov_bbb.mp4){: style='width: 600px; height: 330px'} +![type:video](mov_bbb.mp4){: style='autoplay: false; width: 600px; height: 330px'} !!! tip Check out our predefined [`VideoDoc`](#getting-started-predefined-videodoc) to get started and play around with our video features. From 3552dea7e34bd7047171cec079acad23ca0ee247 Mon Sep 17 00:00:00 2001 From: anna-charlotte Date: Tue, 18 Apr 2023 12:30:35 +0200 Subject: [PATCH 2/2] fix: video Signed-off-by: anna-charlotte --- docs/data_types/video/video.md | 2 +- mkdocs.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/data_types/video/video.md b/docs/data_types/video/video.md index e8e3432b9bc..f619af91085 100644 --- a/docs/data_types/video/video.md +++ b/docs/data_types/video/video.md @@ -15,7 +15,7 @@ Moreover, you will learn about DocArray's video-specific types, to represent you In DocArray video data is represented by a video tensor, an audio tensor, and the key frame indices. -![type:video](mov_bbb.mp4){: style='autoplay: false; width: 600px; height: 330px'} +![type:video](mov_bbb.mp4){: style='width: 600px; height: 330px'} !!! tip Check out our predefined [`VideoDoc`](#getting-started-predefined-videodoc) to get started and play around with our video features. diff --git a/mkdocs.yml b/mkdocs.yml index 0d1b7c1392d..e02ebac51a1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -66,7 +66,11 @@ extra_css: plugins: - search - awesome-pages - - mkdocs-video + - mkdocs-video: + is_video: True + video_autoplay: True + video_loop: True + video_muted: True - mkdocstrings: handlers: python: