gradio/js/video
pngwn 008d84b042
chore: update versions (#8883)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-31 13:27:38 -07:00
..
shared Ensure all upload components have consistent upload regions. (#8803) 2024-07-17 17:37:25 +01:00
CHANGELOG.md chore: update versions (#8883) 2024-07-31 13:27:38 -07:00
Example.svelte Add loop parameters to gr.Audio and gr.Video (#8806) 2024-07-16 22:05:59 -07:00
Index.svelte Add loop parameters to gr.Audio and gr.Video (#8806) 2024-07-16 22:05:59 -07:00
index.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#8883) 2024-07-31 13:27:38 -07: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 [WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component (#7183) 2024-02-07 14:39:33 -08: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}
/>