gradio/js/video
Abubakar Abid a3d23b43e7
Add loop parameters to gr.Audio and gr.Video (#8806)
* add loop

* changes

* add changeset

* audio player

* fix tests

* test audio

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 22:05:59 -07:00
..
shared Add loop parameters to gr.Audio and gr.Video (#8806) 2024-07-16 22:05:59 -07:00
CHANGELOG.md chore: update versions (#8663) 2024-07-12 11:54:28 -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
package.json chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
README.md
Video.stories.svelte
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}
/>