gradio/js/video
pngwn f9406b46e3
chore: update versions (#8482)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-06 08:15:46 -07:00
..
shared Client node fix (#8252) 2024-05-09 12:06:28 +01:00
CHANGELOG.md chore: update versions (#8482) 2024-06-06 08:15:46 -07:00
Example.svelte Refactors get_fetchable_url_or_file() to remove it from the frontend (#7528) 2024-02-26 13:01:00 -08:00
Index.svelte Client node fix (#8252) 2024-05-09 12:06:28 +01:00
index.ts
package.json chore: update versions (#8482) 2024-06-06 08:15:46 -07:00
README.md
Video.stories.svelte Migrate to Storybook 8 (#7743) 2024-03-19 11:22:21 -07: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}
/>