gradio/js/video
pngwn 874005938d
fix ci (#6235)
* fix ci

* format

* add changeset

* ignore generated files

* delete changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-01 19:37:36 +00:00
..
shared fix ci (#6235) 2023-11-01 19:37:36 +00:00
CHANGELOG.md chore: update versions (#6188) 2023-10-31 08:25:11 -07:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
index.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6188) 2023-10-31 08:25:11 -07:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Video.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Video.test.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +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}
/>