flet-video 0.2.0.dev47__py3-none-any.whl → 0.2.0.dev65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flet_video/__init__.py +3 -2
- flet_video/types.py +168 -0
- flet_video/video.py +263 -514
- flet_video-0.2.0.dev65.dist-info/METADATA +66 -0
- flet_video-0.2.0.dev65.dist-info/RECORD +20 -0
- flet_video-0.2.0.dev65.dist-info/licenses/LICENSE +201 -0
- flutter/flet_video/CHANGELOG.md +4 -0
- flutter/flet_video/lib/flet_video.dart +1 -1
- flutter/flet_video/lib/src/extension.dart +22 -0
- flutter/flet_video/lib/src/utils/file_utils_io.dart +9 -0
- flutter/flet_video/lib/src/utils/file_utils_web.dart +4 -0
- flutter/flet_video/lib/src/utils/video.dart +100 -86
- flutter/flet_video/lib/src/video.dart +166 -239
- flutter/flet_video/pubspec.lock +76 -51
- flutter/flet_video/pubspec.yaml +9 -4
- flet_video-0.2.0.dev47.dist-info/METADATA +0 -170
- flet_video-0.2.0.dev47.dist-info/RECORD +0 -16
- flutter/flet_video/lib/src/create_control.dart +0 -18
- {flet_video-0.2.0.dev47.dist-info → flet_video-0.2.0.dev65.dist-info}/WHEEL +0 -0
- {flet_video-0.2.0.dev47.dist-info → flet_video-0.2.0.dev65.dist-info}/top_level.txt +0 -0
flutter/flet_video/pubspec.lock
CHANGED
|
@@ -145,22 +145,15 @@ packages:
|
|
|
145
145
|
url: "https://pub.dev"
|
|
146
146
|
source: hosted
|
|
147
147
|
version: "1.1.1"
|
|
148
|
-
fl_chart:
|
|
149
|
-
dependency: transitive
|
|
150
|
-
description:
|
|
151
|
-
name: fl_chart
|
|
152
|
-
sha256: "74959b99b92b9eebeed1a4049426fd67c4abc3c5a0f4d12e2877097d6a11ae08"
|
|
153
|
-
url: "https://pub.dev"
|
|
154
|
-
source: hosted
|
|
155
|
-
version: "0.69.2"
|
|
156
148
|
flet:
|
|
157
149
|
dependency: "direct main"
|
|
158
150
|
description:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
151
|
+
path: "packages/flet"
|
|
152
|
+
ref: v1
|
|
153
|
+
resolved-ref: f76d1c5dd805ec81a5a5d63300d61413a5bf27ae
|
|
154
|
+
url: "https://github.com/flet-dev/flet.git"
|
|
155
|
+
source: git
|
|
156
|
+
version: "0.70.0"
|
|
164
157
|
flutter:
|
|
165
158
|
dependency: "direct main"
|
|
166
159
|
description: flutter
|
|
@@ -191,10 +184,10 @@ packages:
|
|
|
191
184
|
dependency: transitive
|
|
192
185
|
description:
|
|
193
186
|
name: flutter_markdown
|
|
194
|
-
sha256:
|
|
187
|
+
sha256: e7bbc718adc9476aa14cfddc1ef048d2e21e4e8f18311aaac723266db9f9e7b5
|
|
195
188
|
url: "https://pub.dev"
|
|
196
189
|
source: hosted
|
|
197
|
-
version: "0.7.
|
|
190
|
+
version: "0.7.6+2"
|
|
198
191
|
flutter_plugin_android_lifecycle:
|
|
199
192
|
dependency: transitive
|
|
200
193
|
description:
|
|
@@ -203,22 +196,14 @@ packages:
|
|
|
203
196
|
url: "https://pub.dev"
|
|
204
197
|
source: hosted
|
|
205
198
|
version: "2.0.28"
|
|
206
|
-
flutter_redux:
|
|
207
|
-
dependency: transitive
|
|
208
|
-
description:
|
|
209
|
-
name: flutter_redux
|
|
210
|
-
sha256: "3b20be9e08d0038e1452fbfa1fdb1ea0a7c3738c997734530b3c6d0bb5fcdbdc"
|
|
211
|
-
url: "https://pub.dev"
|
|
212
|
-
source: hosted
|
|
213
|
-
version: "0.10.0"
|
|
214
199
|
flutter_svg:
|
|
215
200
|
dependency: transitive
|
|
216
201
|
description:
|
|
217
202
|
name: flutter_svg
|
|
218
|
-
sha256:
|
|
203
|
+
sha256: d44bf546b13025ec7353091516f6881f1d4c633993cb109c3916c3a0159dadf1
|
|
219
204
|
url: "https://pub.dev"
|
|
220
205
|
source: hosted
|
|
221
|
-
version: "2.
|
|
206
|
+
version: "2.1.0"
|
|
222
207
|
flutter_test:
|
|
223
208
|
dependency: "direct dev"
|
|
224
209
|
description: flutter
|
|
@@ -241,10 +226,10 @@ packages:
|
|
|
241
226
|
dependency: transitive
|
|
242
227
|
description:
|
|
243
228
|
name: http
|
|
244
|
-
sha256:
|
|
229
|
+
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
|
|
245
230
|
url: "https://pub.dev"
|
|
246
231
|
source: hosted
|
|
247
|
-
version: "1.
|
|
232
|
+
version: "1.3.0"
|
|
248
233
|
http_parser:
|
|
249
234
|
dependency: transitive
|
|
250
235
|
description:
|
|
@@ -269,14 +254,6 @@ packages:
|
|
|
269
254
|
url: "https://pub.dev"
|
|
270
255
|
source: hosted
|
|
271
256
|
version: "0.19.0"
|
|
272
|
-
js:
|
|
273
|
-
dependency: transitive
|
|
274
|
-
description:
|
|
275
|
-
name: js
|
|
276
|
-
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
|
|
277
|
-
url: "https://pub.dev"
|
|
278
|
-
source: hosted
|
|
279
|
-
version: "0.6.7"
|
|
280
257
|
json_annotation:
|
|
281
258
|
dependency: transitive
|
|
282
259
|
description:
|
|
@@ -421,6 +398,22 @@ packages:
|
|
|
421
398
|
url: "https://pub.dev"
|
|
422
399
|
source: hosted
|
|
423
400
|
version: "1.16.0"
|
|
401
|
+
msgpack_dart:
|
|
402
|
+
dependency: transitive
|
|
403
|
+
description:
|
|
404
|
+
name: msgpack_dart
|
|
405
|
+
sha256: c2d235ed01f364719b5296aecf43ac330f0d7bc865fa134d0d7910a40454dffb
|
|
406
|
+
url: "https://pub.dev"
|
|
407
|
+
source: hosted
|
|
408
|
+
version: "1.0.1"
|
|
409
|
+
nested:
|
|
410
|
+
dependency: transitive
|
|
411
|
+
description:
|
|
412
|
+
name: nested
|
|
413
|
+
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
|
|
414
|
+
url: "https://pub.dev"
|
|
415
|
+
source: hosted
|
|
416
|
+
version: "1.0.0"
|
|
424
417
|
package_info_plus:
|
|
425
418
|
dependency: transitive
|
|
426
419
|
description:
|
|
@@ -453,6 +446,30 @@ packages:
|
|
|
453
446
|
url: "https://pub.dev"
|
|
454
447
|
source: hosted
|
|
455
448
|
version: "1.1.0"
|
|
449
|
+
path_provider:
|
|
450
|
+
dependency: transitive
|
|
451
|
+
description:
|
|
452
|
+
name: path_provider
|
|
453
|
+
sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
|
|
454
|
+
url: "https://pub.dev"
|
|
455
|
+
source: hosted
|
|
456
|
+
version: "2.1.5"
|
|
457
|
+
path_provider_android:
|
|
458
|
+
dependency: transitive
|
|
459
|
+
description:
|
|
460
|
+
name: path_provider_android
|
|
461
|
+
sha256: d0d310befe2c8ab9e7f393288ccbb11b60c019c6b5afc21973eeee4dda2b35e9
|
|
462
|
+
url: "https://pub.dev"
|
|
463
|
+
source: hosted
|
|
464
|
+
version: "2.2.17"
|
|
465
|
+
path_provider_foundation:
|
|
466
|
+
dependency: transitive
|
|
467
|
+
description:
|
|
468
|
+
name: path_provider_foundation
|
|
469
|
+
sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
|
|
470
|
+
url: "https://pub.dev"
|
|
471
|
+
source: hosted
|
|
472
|
+
version: "2.4.1"
|
|
456
473
|
path_provider_linux:
|
|
457
474
|
dependency: transitive
|
|
458
475
|
description:
|
|
@@ -509,14 +526,14 @@ packages:
|
|
|
509
526
|
url: "https://pub.dev"
|
|
510
527
|
source: hosted
|
|
511
528
|
version: "6.0.2"
|
|
512
|
-
|
|
529
|
+
provider:
|
|
513
530
|
dependency: transitive
|
|
514
531
|
description:
|
|
515
|
-
name:
|
|
516
|
-
sha256: "
|
|
532
|
+
name: provider
|
|
533
|
+
sha256: "4abbd070a04e9ddc287673bf5a030c7ca8b685ff70218720abab8b092f53dd84"
|
|
517
534
|
url: "https://pub.dev"
|
|
518
535
|
source: hosted
|
|
519
|
-
version: "
|
|
536
|
+
version: "6.1.5"
|
|
520
537
|
safe_local_storage:
|
|
521
538
|
dependency: transitive
|
|
522
539
|
description:
|
|
@@ -529,10 +546,10 @@ packages:
|
|
|
529
546
|
dependency: transitive
|
|
530
547
|
description:
|
|
531
548
|
name: screen_brightness_android
|
|
532
|
-
sha256:
|
|
549
|
+
sha256: fb5fa43cb89d0c9b8534556c427db1e97e46594ac5d66ebdcf16063b773d54ed
|
|
533
550
|
url: "https://pub.dev"
|
|
534
551
|
source: hosted
|
|
535
|
-
version: "2.1.
|
|
552
|
+
version: "2.1.2"
|
|
536
553
|
screen_brightness_platform_interface:
|
|
537
554
|
dependency: transitive
|
|
538
555
|
description:
|
|
@@ -585,26 +602,26 @@ packages:
|
|
|
585
602
|
dependency: transitive
|
|
586
603
|
description:
|
|
587
604
|
name: sensors_plus
|
|
588
|
-
sha256: "
|
|
605
|
+
sha256: "905282c917c6bb731c242f928665c2ea15445aa491249dea9d98d7c79dc8fd39"
|
|
589
606
|
url: "https://pub.dev"
|
|
590
607
|
source: hosted
|
|
591
|
-
version: "
|
|
608
|
+
version: "6.1.1"
|
|
592
609
|
sensors_plus_platform_interface:
|
|
593
610
|
dependency: transitive
|
|
594
611
|
description:
|
|
595
612
|
name: sensors_plus_platform_interface
|
|
596
|
-
sha256:
|
|
613
|
+
sha256: "58815d2f5e46c0c41c40fb39375d3f127306f7742efe3b891c0b1c87e2b5cd5d"
|
|
597
614
|
url: "https://pub.dev"
|
|
598
615
|
source: hosted
|
|
599
|
-
version: "
|
|
616
|
+
version: "2.0.1"
|
|
600
617
|
shared_preferences:
|
|
601
618
|
dependency: transitive
|
|
602
619
|
description:
|
|
603
620
|
name: shared_preferences
|
|
604
|
-
sha256: "
|
|
621
|
+
sha256: "846849e3e9b68f3ef4b60c60cf4b3e02e9321bc7f4d8c4692cf87ffa82fc8a3a"
|
|
605
622
|
url: "https://pub.dev"
|
|
606
623
|
source: hosted
|
|
607
|
-
version: "2.5.
|
|
624
|
+
version: "2.5.2"
|
|
608
625
|
shared_preferences_android:
|
|
609
626
|
dependency: transitive
|
|
610
627
|
description:
|
|
@@ -890,14 +907,22 @@ packages:
|
|
|
890
907
|
url: "https://pub.dev"
|
|
891
908
|
source: hosted
|
|
892
909
|
version: "1.1.1"
|
|
910
|
+
web_socket:
|
|
911
|
+
dependency: transitive
|
|
912
|
+
description:
|
|
913
|
+
name: web_socket
|
|
914
|
+
sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c"
|
|
915
|
+
url: "https://pub.dev"
|
|
916
|
+
source: hosted
|
|
917
|
+
version: "1.0.1"
|
|
893
918
|
web_socket_channel:
|
|
894
919
|
dependency: transitive
|
|
895
920
|
description:
|
|
896
921
|
name: web_socket_channel
|
|
897
|
-
sha256:
|
|
922
|
+
sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8
|
|
898
923
|
url: "https://pub.dev"
|
|
899
924
|
source: hosted
|
|
900
|
-
version: "
|
|
925
|
+
version: "3.0.3"
|
|
901
926
|
win32:
|
|
902
927
|
dependency: transitive
|
|
903
928
|
description:
|
|
@@ -918,10 +943,10 @@ packages:
|
|
|
918
943
|
dependency: transitive
|
|
919
944
|
description:
|
|
920
945
|
name: window_manager
|
|
921
|
-
sha256: "
|
|
946
|
+
sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16"
|
|
922
947
|
url: "https://pub.dev"
|
|
923
948
|
source: hosted
|
|
924
|
-
version: "0.
|
|
949
|
+
version: "0.5.0"
|
|
925
950
|
window_to_front:
|
|
926
951
|
dependency: transitive
|
|
927
952
|
description:
|
flutter/flet_video/pubspec.yaml
CHANGED
|
@@ -3,6 +3,7 @@ description: Flet Video control
|
|
|
3
3
|
homepage: https://flet.dev
|
|
4
4
|
repository: https://github.com/flet-dev/flet-video/src/flutter/flet_video
|
|
5
5
|
version: 0.2.0
|
|
6
|
+
publish_to: none
|
|
6
7
|
environment:
|
|
7
8
|
sdk: '>=3.2.3 <4.0.0'
|
|
8
9
|
flutter: '>=1.17.0'
|
|
@@ -10,10 +11,14 @@ dependencies:
|
|
|
10
11
|
flutter:
|
|
11
12
|
sdk: flutter
|
|
12
13
|
collection: ^1.16.0
|
|
13
|
-
media_kit: ^1.
|
|
14
|
-
media_kit_video: ^1.
|
|
15
|
-
media_kit_libs_video: ^1.0.
|
|
16
|
-
flet:
|
|
14
|
+
media_kit: ^1.2.0
|
|
15
|
+
media_kit_video: ^1.3.0
|
|
16
|
+
media_kit_libs_video: ^1.0.6
|
|
17
|
+
flet:
|
|
18
|
+
git:
|
|
19
|
+
path: packages/flet
|
|
20
|
+
ref: v1
|
|
21
|
+
url: https://github.com/flet-dev/flet.git
|
|
17
22
|
dev_dependencies:
|
|
18
23
|
flutter_test:
|
|
19
24
|
sdk: flutter
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: flet-video
|
|
3
|
-
Version: 0.2.0.dev47
|
|
4
|
-
Summary: Video control for Flet
|
|
5
|
-
Author-email: Flet contributors <hello@flet.dev>
|
|
6
|
-
Project-URL: Homepage, https://flet.dev
|
|
7
|
-
Project-URL: Documentation, https://flet.dev/docs/controls/video
|
|
8
|
-
Project-URL: Repository, https://github.com/flet-dev/flet-video
|
|
9
|
-
Project-URL: Issues, https://github.com/flet-dev/flet-video/issues
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Requires-Python: >=3.8
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: flet>=0.25.1
|
|
14
|
-
|
|
15
|
-
# Flet Video control
|
|
16
|
-
|
|
17
|
-
`Video` control for Flet.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Add `flet-video` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project.
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```py
|
|
26
|
-
import random
|
|
27
|
-
|
|
28
|
-
import flet as ft
|
|
29
|
-
|
|
30
|
-
import flet_video as ftv
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def main(page: ft.Page):
|
|
34
|
-
page.theme_mode = ft.ThemeMode.LIGHT
|
|
35
|
-
page.title = "TheEthicalVideo"
|
|
36
|
-
page.window.always_on_top = True
|
|
37
|
-
page.spacing = 20
|
|
38
|
-
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
|
|
39
|
-
|
|
40
|
-
def handle_pause(e):
|
|
41
|
-
video.pause()
|
|
42
|
-
print("Video.pause()")
|
|
43
|
-
|
|
44
|
-
def handle_play_or_pause(e):
|
|
45
|
-
video.play_or_pause()
|
|
46
|
-
print("Video.play_or_pause()")
|
|
47
|
-
|
|
48
|
-
def handle_play(e):
|
|
49
|
-
video.play()
|
|
50
|
-
print("Video.play()")
|
|
51
|
-
|
|
52
|
-
def handle_stop(e):
|
|
53
|
-
video.stop()
|
|
54
|
-
print("Video.stop()")
|
|
55
|
-
|
|
56
|
-
def handle_next(e):
|
|
57
|
-
video.next()
|
|
58
|
-
print("Video.next()")
|
|
59
|
-
|
|
60
|
-
def handle_previous(e):
|
|
61
|
-
video.previous()
|
|
62
|
-
print("Video.previous()")
|
|
63
|
-
|
|
64
|
-
def handle_volume_change(e):
|
|
65
|
-
video.volume = e.control.value
|
|
66
|
-
page.update()
|
|
67
|
-
print(f"Video.volume = {e.control.value}")
|
|
68
|
-
|
|
69
|
-
def handle_playback_rate_change(e):
|
|
70
|
-
video.playback_rate = e.control.value
|
|
71
|
-
page.update()
|
|
72
|
-
print(f"Video.playback_rate = {e.control.value}")
|
|
73
|
-
|
|
74
|
-
def handle_seek(e):
|
|
75
|
-
video.seek(10000)
|
|
76
|
-
print(f"Video.seek(10000)")
|
|
77
|
-
|
|
78
|
-
def handle_add_media(e):
|
|
79
|
-
video.playlist_add(random.choice(sample_media))
|
|
80
|
-
print(f"Video.playlist_add(random.choice(sample_media))")
|
|
81
|
-
|
|
82
|
-
def handle_remove_media(e):
|
|
83
|
-
r = random.randint(0, len(video.playlist) - 1)
|
|
84
|
-
video.playlist_remove(r)
|
|
85
|
-
print(f"Popped Item at index: {r} (position {r+1})")
|
|
86
|
-
|
|
87
|
-
def handle_jump(e):
|
|
88
|
-
print(f"Video.jump_to(0)")
|
|
89
|
-
video.jump_to(0)
|
|
90
|
-
|
|
91
|
-
sample_media = [
|
|
92
|
-
ftv.VideoMedia(
|
|
93
|
-
"https://user-images.githubusercontent.com/28951144/229373720-14d69157-1a56-4a78-a2f4-d7a134d7c3e9.mp4"
|
|
94
|
-
),
|
|
95
|
-
ftv.VideoMedia(
|
|
96
|
-
"https://user-images.githubusercontent.com/28951144/229373718-86ce5e1d-d195-45d5-baa6-ef94041d0b90.mp4"
|
|
97
|
-
),
|
|
98
|
-
ftv.VideoMedia(
|
|
99
|
-
"https://user-images.githubusercontent.com/28951144/229373716-76da0a4e-225a-44e4-9ee7-3e9006dbc3e3.mp4"
|
|
100
|
-
),
|
|
101
|
-
ftv.VideoMedia(
|
|
102
|
-
"https://user-images.githubusercontent.com/28951144/229373695-22f88f13-d18f-4288-9bf1-c3e078d83722.mp4"
|
|
103
|
-
),
|
|
104
|
-
ftv.VideoMedia(
|
|
105
|
-
"https://user-images.githubusercontent.com/28951144/229373709-603a7a89-2105-4e1b-a5a5-a6c3567c9a59.mp4",
|
|
106
|
-
extras={
|
|
107
|
-
"artist": "Thousand Foot Krutch",
|
|
108
|
-
"album": "The End Is Where We Begin",
|
|
109
|
-
},
|
|
110
|
-
http_headers={
|
|
111
|
-
"Foo": "Bar",
|
|
112
|
-
"Accept": "*/*",
|
|
113
|
-
},
|
|
114
|
-
),
|
|
115
|
-
]
|
|
116
|
-
|
|
117
|
-
page.add(
|
|
118
|
-
video := ftv.Video(
|
|
119
|
-
expand=True,
|
|
120
|
-
playlist=sample_media[0:2],
|
|
121
|
-
playlist_mode=ftv.PlaylistMode.LOOP,
|
|
122
|
-
fill_color=ft.Colors.BLUE_400,
|
|
123
|
-
aspect_ratio=16 / 9,
|
|
124
|
-
volume=100,
|
|
125
|
-
autoplay=False,
|
|
126
|
-
filter_quality=ft.FilterQuality.HIGH,
|
|
127
|
-
muted=False,
|
|
128
|
-
on_loaded=lambda e: print("Video loaded successfully!"),
|
|
129
|
-
on_enter_fullscreen=lambda e: print("Video entered fullscreen!"),
|
|
130
|
-
on_exit_fullscreen=lambda e: print("Video exited fullscreen!"),
|
|
131
|
-
),
|
|
132
|
-
ft.Row(
|
|
133
|
-
wrap=True,
|
|
134
|
-
alignment=ft.MainAxisAlignment.CENTER,
|
|
135
|
-
controls=[
|
|
136
|
-
ft.ElevatedButton("Play", on_click=handle_play),
|
|
137
|
-
ft.ElevatedButton("Pause", on_click=handle_pause),
|
|
138
|
-
ft.ElevatedButton("Play Or Pause", on_click=handle_play_or_pause),
|
|
139
|
-
ft.ElevatedButton("Stop", on_click=handle_stop),
|
|
140
|
-
ft.ElevatedButton("Next", on_click=handle_next),
|
|
141
|
-
ft.ElevatedButton("Previous", on_click=handle_previous),
|
|
142
|
-
ft.ElevatedButton("Seek s=10", on_click=handle_seek),
|
|
143
|
-
ft.ElevatedButton("Jump to first Media", on_click=handle_jump),
|
|
144
|
-
ft.ElevatedButton("Add Random Media", on_click=handle_add_media),
|
|
145
|
-
ft.ElevatedButton("Remove Random Media", on_click=handle_remove_media),
|
|
146
|
-
],
|
|
147
|
-
),
|
|
148
|
-
ft.Slider(
|
|
149
|
-
min=0,
|
|
150
|
-
value=100,
|
|
151
|
-
max=100,
|
|
152
|
-
label="Volume = {value}%",
|
|
153
|
-
divisions=10,
|
|
154
|
-
width=400,
|
|
155
|
-
on_change=handle_volume_change,
|
|
156
|
-
),
|
|
157
|
-
ft.Slider(
|
|
158
|
-
min=1,
|
|
159
|
-
value=1,
|
|
160
|
-
max=3,
|
|
161
|
-
label="PlaybackRate = {value}X",
|
|
162
|
-
divisions=6,
|
|
163
|
-
width=400,
|
|
164
|
-
on_change=handle_playback_rate_change,
|
|
165
|
-
),
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
ft.app(main)
|
|
170
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
flet_video/__init__.py,sha256=0W2zG6-bGE_iK9zssfMDeKXDb_aOXqu5oYWymG5I-zA,134
|
|
2
|
-
flet_video/video.py,sha256=9PEtvi54DDjkcDybSQHrcbKqrY3gvqesSTz_cUg9jhU,18618
|
|
3
|
-
flutter/flet_video/CHANGELOG.md,sha256=66sWepPaeTc9_lzcYIGU55AlxSU5Z1XVtknXpzd_-p8,40
|
|
4
|
-
flutter/flet_video/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
5
|
-
flutter/flet_video/README.md,sha256=BNJ7_bUq43JAu1VTnjdOnUaV-vDjKDc_QbUvGYbnfbQ,60
|
|
6
|
-
flutter/flet_video/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
7
|
-
flutter/flet_video/pubspec.lock,sha256=Em12vSbBS3y_Mmikp3yuIBfwvYWI3Sk7Ci7Z_dtnU3U,28395
|
|
8
|
-
flutter/flet_video/pubspec.yaml,sha256=rur39V-ukojcVttPIFEhm7DpfDjUsOnl9oTMaTymqMU,457
|
|
9
|
-
flutter/flet_video/lib/flet_video.dart,sha256=G7PZrFNGuF-Q5HNgslMt3GQINx7tMqs5uXg6tcJ50Xw,93
|
|
10
|
-
flutter/flet_video/lib/src/create_control.dart,sha256=O2Xy4KuFuVzcSKMLvWKz4gguI6Ou01GLWvUzPrwF-AQ,418
|
|
11
|
-
flutter/flet_video/lib/src/video.dart,sha256=cfGagxeY95du4JgufozYDZCvxwhyXlrOyAqCwt_q88Q,11046
|
|
12
|
-
flutter/flet_video/lib/src/utils/video.dart,sha256=Ib789E1iGll08wMViRSBtvd54nwQ5iBoEZYHGU7j7sM,3606
|
|
13
|
-
flet_video-0.2.0.dev47.dist-info/METADATA,sha256=Br3wAeGtGKil3X4ZfVxaQSgj5BzRWieHbVA6tDPY-Qc,5286
|
|
14
|
-
flet_video-0.2.0.dev47.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
-
flet_video-0.2.0.dev47.dist-info/top_level.txt,sha256=7omjcyZHBn3gldah0wrmAlkR9Vc1vmtSlhUVZcPg2o0,19
|
|
16
|
-
flet_video-0.2.0.dev47.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import 'package:flet/flet.dart';
|
|
2
|
-
import 'package:media_kit/media_kit.dart';
|
|
3
|
-
|
|
4
|
-
import 'video.dart';
|
|
5
|
-
|
|
6
|
-
CreateControlFactory createControl = (CreateControlArgs args) {
|
|
7
|
-
switch (args.control.type) {
|
|
8
|
-
case "video":
|
|
9
|
-
return VideoControl(
|
|
10
|
-
parent: args.parent, control: args.control, backend: args.backend);
|
|
11
|
-
default:
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
void ensureInitialized() {
|
|
17
|
-
MediaKit.ensureInitialized();
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|