flet-audio 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6619__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.
Potentially problematic release.
This version of flet-audio might be problematic. Click here for more details.
- flet_audio/audio.py +4 -3
- {flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/METADATA +2 -2
- {flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/RECORD +7 -7
- flutter/flet_audio/pubspec.lock +8 -16
- {flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/WHEEL +0 -0
- {flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/licenses/LICENSE +0 -0
- {flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/top_level.txt +0 -0
flet_audio/audio.py
CHANGED
|
@@ -27,7 +27,7 @@ class Audio(ft.Service):
|
|
|
27
27
|
is a list of supported audio formats.
|
|
28
28
|
|
|
29
29
|
Raises:
|
|
30
|
-
|
|
30
|
+
ValueError: If both `src` and [`src_base64`][(c).] are `None`.
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
33
|
src_base64: Optional[str] = None
|
|
@@ -41,7 +41,7 @@ class Audio(ft.Service):
|
|
|
41
41
|
is a list of supported audio formats.
|
|
42
42
|
|
|
43
43
|
Raises:
|
|
44
|
-
|
|
44
|
+
ValueError: If both `src_base64` and [`src`][(c).] are `None`.
|
|
45
45
|
"""
|
|
46
46
|
|
|
47
47
|
autoplay: bool = False
|
|
@@ -118,7 +118,8 @@ class Audio(ft.Service):
|
|
|
118
118
|
|
|
119
119
|
def before_update(self):
|
|
120
120
|
super().before_update()
|
|
121
|
-
|
|
121
|
+
if not (self.src or self.src_base64):
|
|
122
|
+
raise ValueError("either src or src_base64 must be provided")
|
|
122
123
|
|
|
123
124
|
async def play(self, position: ft.DurationValue = 0):
|
|
124
125
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-audio
|
|
3
|
-
Version: 0.70.0.
|
|
3
|
+
Version: 0.70.0.dev6619
|
|
4
4
|
Summary: Provides audio integration and playback in Flet apps.
|
|
5
5
|
Author-email: Flet contributors <hello@flet.dev>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -11,7 +11,7 @@ Project-URL: Issues, https://github.com/flet-dev/flet/issues
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: flet==0.70.0.
|
|
14
|
+
Requires-Dist: flet==0.70.0.dev6619
|
|
15
15
|
Dynamic: license-file
|
|
16
16
|
|
|
17
17
|
# flet-audio
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
flet_audio/__init__.py,sha256=w1U2RdGkcYl_V-bGG1oKQExQ80axXqOyOZL4D6bJAcE,346
|
|
2
|
-
flet_audio/audio.py,sha256=
|
|
2
|
+
flet_audio/audio.py,sha256=GEoa5qUCJrgcUmfvWf5sv2Waoa6x32vWYwNaHw9HL-Q,5806
|
|
3
3
|
flet_audio/types.py,sha256=jhmP0-kowX5MzYezBvzDHmj7YQ7uxdY5FtNGX2qEWlk,2340
|
|
4
|
-
flet_audio-0.70.0.
|
|
4
|
+
flet_audio-0.70.0.dev6619.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
5
|
flutter/flet_audio/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
6
|
-
flutter/flet_audio/pubspec.lock,sha256=
|
|
6
|
+
flutter/flet_audio/pubspec.lock,sha256=K3Oe7sbpGzixJo-jiU2LD_gn06AHeD6VeYIkMXr0JPU,25614
|
|
7
7
|
flutter/flet_audio/pubspec.yaml,sha256=KTuaPDPr1Nnh6yAGddLMsZAUizj_kqlROyCy9_fG2TI,359
|
|
8
8
|
flutter/flet_audio/lib/flet_audio.dart,sha256=JsHEW9Gic_011jhKpnn278pi1kiWjp9gUjfNF5rWmXs,65
|
|
9
9
|
flutter/flet_audio/lib/src/audio.dart,sha256=ExGoAU9pIlR5z6ptVDXRMhD5NktkBljN9OgRy5InfIw,5108
|
|
10
10
|
flutter/flet_audio/lib/src/extension.dart,sha256=okI-bxwSUB9FwgJ7TmiiHcE5yi5z66Yp1ri--V1wVnw,299
|
|
11
11
|
flutter/flet_audio/lib/src/utils/audio.dart,sha256=Rpbf7xJkNB3xtwrfmXru1t2k3_TgPEnh3Ws6i_2J0EQ,346
|
|
12
|
-
flet_audio-0.70.0.
|
|
13
|
-
flet_audio-0.70.0.
|
|
14
|
-
flet_audio-0.70.0.
|
|
15
|
-
flet_audio-0.70.0.
|
|
12
|
+
flet_audio-0.70.0.dev6619.dist-info/METADATA,sha256=zL5S3roY_FSq4Ckq86PvEhdw-VVvfULiYkUoP1rhs-8,2403
|
|
13
|
+
flet_audio-0.70.0.dev6619.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
flet_audio-0.70.0.dev6619.dist-info/top_level.txt,sha256=hZbGOXppSiKRUWJf1ZRlBKMyfijq6Y-8DffGOh10Wq4,19
|
|
15
|
+
flet_audio-0.70.0.dev6619.dist-info/RECORD,,
|
flutter/flet_audio/pubspec.lock
CHANGED
|
@@ -109,18 +109,18 @@ packages:
|
|
|
109
109
|
dependency: transitive
|
|
110
110
|
description:
|
|
111
111
|
name: cross_file
|
|
112
|
-
sha256: "
|
|
112
|
+
sha256: "942a4791cd385a68ccb3b32c71c427aba508a1bb949b86dff2adbe4049f16239"
|
|
113
113
|
url: "https://pub.dev"
|
|
114
114
|
source: hosted
|
|
115
|
-
version: "0.3.
|
|
115
|
+
version: "0.3.5"
|
|
116
116
|
crypto:
|
|
117
117
|
dependency: transitive
|
|
118
118
|
description:
|
|
119
119
|
name: crypto
|
|
120
|
-
sha256:
|
|
120
|
+
sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
|
|
121
121
|
url: "https://pub.dev"
|
|
122
122
|
source: hosted
|
|
123
|
-
version: "3.0.
|
|
123
|
+
version: "3.0.7"
|
|
124
124
|
dbus:
|
|
125
125
|
dependency: transitive
|
|
126
126
|
description:
|
|
@@ -133,10 +133,10 @@ packages:
|
|
|
133
133
|
dependency: transitive
|
|
134
134
|
description:
|
|
135
135
|
name: device_info_plus
|
|
136
|
-
sha256:
|
|
136
|
+
sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
|
|
137
137
|
url: "https://pub.dev"
|
|
138
138
|
source: hosted
|
|
139
|
-
version: "12.
|
|
139
|
+
version: "12.2.0"
|
|
140
140
|
device_info_plus_platform_interface:
|
|
141
141
|
dependency: transitive
|
|
142
142
|
description:
|
|
@@ -617,14 +617,6 @@ packages:
|
|
|
617
617
|
url: "https://pub.dev"
|
|
618
618
|
source: hosted
|
|
619
619
|
version: "1.10.1"
|
|
620
|
-
sprintf:
|
|
621
|
-
dependency: transitive
|
|
622
|
-
description:
|
|
623
|
-
name: sprintf
|
|
624
|
-
sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
|
|
625
|
-
url: "https://pub.dev"
|
|
626
|
-
source: hosted
|
|
627
|
-
version: "7.0.0"
|
|
628
620
|
stack_trace:
|
|
629
621
|
dependency: transitive
|
|
630
622
|
description:
|
|
@@ -749,10 +741,10 @@ packages:
|
|
|
749
741
|
dependency: transitive
|
|
750
742
|
description:
|
|
751
743
|
name: uuid
|
|
752
|
-
sha256:
|
|
744
|
+
sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8
|
|
753
745
|
url: "https://pub.dev"
|
|
754
746
|
source: hosted
|
|
755
|
-
version: "4.5.
|
|
747
|
+
version: "4.5.2"
|
|
756
748
|
vector_graphics:
|
|
757
749
|
dependency: transitive
|
|
758
750
|
description:
|
|
File without changes
|
{flet_audio-0.70.0.dev6365.dist-info → flet_audio-0.70.0.dev6619.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|