You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/video.md
+67-4
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ sidebar_label: Video
5
5
slug: /video
6
6
---
7
7
8
-
React Native Skia provides a way to load video frames as images, enabling rich multimedia experiences within your applications.
9
-
A video frame can be used anywhere a Skia image is accepted: `Image`, `ImageShader`, and `Atlas`.
8
+
React Native Skia provides a way to load video frames as images, enabling rich multimedia experiences within your applications. A video frame can be used anywhere a Skia image is accepted: `Image`, `ImageShader`, and `Atlas`.
10
9
11
10
## Requirements
12
11
@@ -35,7 +34,7 @@ interface VideoExampleProps {
35
34
localVideoFile:string;
36
35
}
37
36
38
-
// The URL needs to be a local path, we usually use expo-asset for that.
37
+
// The URL needs to be a local path; we usually use expo-asset for that.
You can seek a video via the `seek` playback option. By default, the seek option is null. If you set a value in milliseconds, it will seek to that point in the video and then set the option value to null again.
100
+
101
+
There is also the `currentTime` option, which is a Reanimated value that contains the current playback time of the video.
102
+
103
+
`looping` indicates whether the video should be looped or not.
104
+
105
+
`playbackSpeed` indicates the playback speed of the video (default is 1).
106
+
107
+
In the example below, every time we tap on the video, we set the video to 2 seconds.
0 commit comments