gradio/js/video
Gradio PR Bot b400706fb6
chore: update versions (#9970)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 18:10:49 -05:00
..
shared 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
CHANGELOG.md chore: update versions (#9970) 2024-11-27 18:10:49 -05:00
Example.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
Index.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
index.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#9970) 2024-11-27 18:10:49 -05:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Video.stories.svelte Migrate to Storybook 8 (#7743) 2024-03-19 11:22:21 -07:00
Video.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00

@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}
/>