gradio/js/video
pngwn 9ea7b6f05c
chore: update versions (#6797)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 15:39:46 -08:00
..
shared Lite v4 (#6398) 2023-12-12 22:10:16 +00:00
CHANGELOG.md chore: update versions (#6797) 2023-12-15 15:39:46 -08:00
Example.svelte Remove the styles from the Image/Video primitive components and Fix the container styles (#6726) 2023-12-11 23:15:02 +01:00
Index.svelte Video/Audio fixes (#6234) 2023-11-02 16:25:09 -04:00
index.ts
package.json chore: update versions (#6797) 2023-12-15 15:39:46 -08:00
README.md
Video.stories.svelte Fit video media within Video component (#6698) 2023-12-07 18:19:09 +01:00
Video.test.ts

@gradio/video

<script>
	import { BaseInteractiveVideo, BaseStaticVideo, BasePlayer } from "@gradio/button";
	import type { FileData } from "@gradio/upload";
	import type { Gradio } from "@gradio/utils";
	export let _video: FileData;
</script>

<StaticVideo
	value={_video}
	{label}
	{show_label}
	{autoplay}
	{show_share_button}
	i18n={gradio.i18n}
/>

<Video
	value={_video}
	{label}
	{show_label}
	source={"upload"}
	{mirror_webcam}
	{include_audio}
	{autoplay}
	i18n={gradio.i18n}
>
	<p>Upload Video Here</p>
</Video>

<BasePlayer
	src={value.data}
	{autoplay}
	on:play
	on:pause
	on:stop
	on:end
	mirror={false}
	{label}
/>