gradio/js/video
Abubakar Abid 9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933)
* image-editor-examples

* add changeset

* add changeset

* delete changeset

* change to process_example()

* add changeset

* changes for all components until dataset.py

* rename

* fix checkboxgroup

* format

* changes

* add changeset

* changes

* add changeset

* radio

* add changeset

* changes

* add changeset

* changes

* examples

* remove print

* fix

* clean

* add changeset

* fix tests

* fix tests

* fix test

* fix

* add changeset

* fix video example

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
..
shared Fix issue with Webcam Recording (#6885) 2024-01-05 19:18:59 -05:00
CHANGELOG.md chore: update versions (#6960) 2024-01-11 01:42:25 +04:00
Example.svelte Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933) 2024-01-10 16:35:25 -08:00
Index.svelte Improve source selection UX (#6766) 2023-12-19 19:24:08 +00:00
index.ts
package.json chore: update versions (#6960) 2024-01-11 01:42:25 +04:00
README.md
Video.stories.svelte Fit video media within Video component (#6698) 2023-12-07 18:19:09 +01: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}
/>