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
video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in
9
10
your app.
10
11
11
-
# Table of contents
12
+
##Table of contents
12
13
13
14
-[Table of contents](#table-of-contents)
14
15
-[Project description](#project-description)
15
16
-[Getting started](#getting-started)
16
-
-[Installation](#installation)
17
-
- [Web usage](#web-usage)
17
+
-[Installation](#installation)
18
+
-[Web usage](#web-usage)
18
19
-[Documentation](#documentation)
19
-
-[Instantiation](#instantiation)
20
-
- [1. The ApiVideoPlayerController](#1-the-apivideoplayercontroller)
21
-
- [2. The ApiVideoPlayer](#2-the-apivideoplayer)
22
-
-[Methods](#methods)
23
-
-[Properties](#properties)
24
-
-[Events listener](#events-listener)
25
-
-[Add a new event listener: Method 1](#add-a-new-event-listener-method-1)
26
-
-[Add a new event listener: Method 2](#add-a-new-event-listener-method-2)
27
-
-[Remove an event listener](#remove-an-event-listener)
20
+
-[Instantiation](#instantiation)
21
+
-[1. The ApiVideoPlayerController](#1-the-apivideoplayercontroller)
22
+
-[2. The ApiVideoPlayer](#2-the-apivideoplayer)
23
+
-[Methods](#methods)
24
+
-[Properties](#properties)
25
+
-[Events listener](#events-listener)
26
+
-[Add a new event listener: Method 1](#add-a-new-event-listener-method-1)
27
+
-[Add a new event listener: Method 2](#add-a-new-event-listener-method-2)
28
+
-[Remove an event listener](#remove-an-event-listener)
28
29
-[Sample application](#sample-application)
29
30
-[Dependencies](#dependencies)
30
31
-[FAQ](#faq)
31
32
32
-
# Project description
33
+
<!--</documentation_excluded>-->
34
+
<!--<documentation_only>
35
+
---
36
+
title: api.video Flutter Player
37
+
meta:
38
+
description: The official api.video Flutter Player component for api.video. [api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
39
+
---
40
+
41
+
# api.video Flutter Player
42
+
43
+
[api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
44
+
45
+
</documentation_only>-->
46
+
## Project description
33
47
34
48
Easily integrate a video player for videos from api.video in your Flutter application for iOS,
35
49
Android and Web.
36
50
37
-
# Getting started
51
+
##Getting started
38
52
39
-
## Installation
53
+
###Installation
40
54
41
55
Run the following command at the root of your project.
42
56
43
57
```shell
44
58
flutter pub add apivideo_player
45
59
```
46
60
47
-
### Web usage
61
+
####Web usage
48
62
49
-
If you want to use your application as a web app, you need to add
50
-
the [api.video player SDK](https://github.com/apivideo/api.video-player-sdk) script
51
-
in `web/index.html` from the root of your project.
63
+
If you want to use your application as a web app, you need to add the [api.video player SDK](https://github.com/apivideo/api.video-player-sdk) script in `web/index.html` from the root of your project.
52
64
53
65
```html
54
66
<!DOCTYPE html>
55
67
<html>
56
-
<head>
68
+
<head>
57
69
...
58
70
<!-- Add the following line inside of the head tag -->
the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart)
135
-
has been instantiated, you can control the player it has been assigned to with its methods:
142
+
Once the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart) has been instantiated, you can control the player it has been assigned to with its methods:
the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart)
166
-
has been instantiated, you can access the video player's properties:
171
+
Once the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart) has been instantiated, you can access the video player's properties:
new [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart),
200
-
you can bind callbacks to some events:
203
+
When you instantiate a new [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart), you can bind callbacks to some events:
201
204
202
205
```dart
203
206
@@ -208,11 +211,9 @@ final ApiVideoPlayerController controller = ApiVideoPlayerController(
208
211
);
209
212
```
210
213
211
-
### Add a new event listener: Method 2
214
+
####Add a new event listener: Method 2
212
215
213
-
Once
214
-
the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart)
215
-
has been instantiated, you can bind callbacks to some events:
216
+
Once the [ApiVideoPlayerController](https://github.com/apivideo/api.video-flutter-player/blob/main/lib/src/apivideo_player_controller.dart) has been instantiated, you can bind callbacks to some events:
0 commit comments