flet-video 0.2.0.dev505__tar.gz → 0.70.0.dev6293__tar.gz

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-video might be problematic. Click here for more details.

Files changed (28) hide show
  1. {flet_video-0.2.0.dev505/src/flet_video.egg-info → flet_video-0.70.0.dev6293}/PKG-INFO +12 -24
  2. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/README.md +6 -18
  3. flet_video-0.70.0.dev6293/pyproject.toml +24 -0
  4. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video/__init__.py +4 -0
  5. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video/types.py +47 -0
  6. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video/video.py +9 -6
  7. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293/src/flet_video.egg-info}/PKG-INFO +12 -24
  8. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video.egg-info/SOURCES.txt +0 -3
  9. flet_video-0.70.0.dev6293/src/flet_video.egg-info/requires.txt +1 -0
  10. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/LICENSE +1 -1
  11. flet_video-0.70.0.dev6293/src/flutter/flet_video/pubspec.yaml +25 -0
  12. flet_video-0.2.0.dev505/pyproject.toml +0 -99
  13. flet_video-0.2.0.dev505/src/flet_video.egg-info/requires.txt +0 -1
  14. flet_video-0.2.0.dev505/src/flutter/flet_video/CHANGELOG.md +0 -7
  15. flet_video-0.2.0.dev505/src/flutter/flet_video/README.md +0 -3
  16. flet_video-0.2.0.dev505/src/flutter/flet_video/pubspec.lock +0 -984
  17. flet_video-0.2.0.dev505/src/flutter/flet_video/pubspec.yaml +0 -25
  18. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/LICENSE +0 -0
  19. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/setup.cfg +0 -0
  20. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video.egg-info/dependency_links.txt +0 -0
  21. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flet_video.egg-info/top_level.txt +0 -0
  22. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/analysis_options.yaml +0 -0
  23. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/flet_video.dart +0 -0
  24. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/src/extension.dart +0 -0
  25. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/src/utils/file_utils_io.dart +0 -0
  26. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/src/utils/file_utils_web.dart +0 -0
  27. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/src/utils/video.dart +0 -0
  28. {flet_video-0.2.0.dev505 → flet_video-0.70.0.dev6293}/src/flutter/flet_video/lib/src/video.dart +0 -0
@@ -1,24 +1,24 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-video
3
- Version: 0.2.0.dev505
4
- Summary: A cross-platform video player for Flet apps.
3
+ Version: 0.70.0.dev6293
4
+ Summary: Cross-platform video playback for Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://flet.dev
8
- Project-URL: Documentation, https://flet-dev.github.io/flet-video
9
- Project-URL: Repository, https://github.com/flet-dev/flet-video
10
- Project-URL: Issues, https://github.com/flet-dev/flet-video/issues
8
+ Project-URL: Documentation, https://docs.flet.dev/video
9
+ Project-URL: Repository, https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-video
10
+ 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.dev0
14
+ Requires-Dist: flet==0.70.0.dev6293
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-video
18
18
 
19
19
  [![pypi](https://img.shields.io/pypi/v/flet-video.svg)](https://pypi.python.org/pypi/flet-video)
20
20
  [![downloads](https://static.pepy.tech/badge/flet-video/month)](https://pepy.tech/project/flet-video)
21
- [![license](https://img.shields.io/github/license/flet-dev/flet-video.svg)](https://github.com/flet-dev/flet-video/blob/main/LICENSE)
21
+ [![license](https://img.shields.io/github/license/flet-dev/flet.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-video/LICENSE)
22
22
 
23
23
  A cross-platform video player for [Flet](https://flet.dev) apps.
24
24
 
@@ -26,20 +26,13 @@ It is based on the [media_kit](https://pub.dev/packages/media_kit) Flutter packa
26
26
 
27
27
  ## Documentation
28
28
 
29
- Detailed documentation to this package can be found [here](https://flet-dev.github.io/flet-video/).
29
+ Detailed documentation to this package can be found [here](https://docs.flet.dev/video/).
30
30
 
31
31
  ## Platform Support
32
32
 
33
- This package supports the following platforms:
34
-
35
- | Platform | Supported |
36
- |----------|:---------:|
37
- | Windows | ✅ |
38
- | macOS | ✅ |
39
- | Linux | ✅ |
40
- | iOS | ✅ |
41
- | Android | ✅ |
42
- | Web | ✅ |
33
+ | Platform | Windows | macOS | Linux | iOS | Android | Web |
34
+ |----------|---------|-------|-------|-----|---------|-----|
35
+ | Supported| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
43
36
 
44
37
  ## Usage
45
38
 
@@ -58,11 +51,6 @@ To install the `flet-video` package and add it to your project dependencies:
58
51
  ```
59
52
  After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
60
53
 
61
- - Using `poetry`:
62
- ```bash
63
- poetry add flet-video
64
- ```
65
-
66
54
  ### Examples
67
55
 
68
- For examples, see [these](./examples).
56
+ For examples, see [these](https://github.com/flet-dev/flet/tree/main/sdk/python/examples/controls/video).
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![pypi](https://img.shields.io/pypi/v/flet-video.svg)](https://pypi.python.org/pypi/flet-video)
4
4
  [![downloads](https://static.pepy.tech/badge/flet-video/month)](https://pepy.tech/project/flet-video)
5
- [![license](https://img.shields.io/github/license/flet-dev/flet-video.svg)](https://github.com/flet-dev/flet-video/blob/main/LICENSE)
5
+ [![license](https://img.shields.io/github/license/flet-dev/flet.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-video/LICENSE)
6
6
 
7
7
  A cross-platform video player for [Flet](https://flet.dev) apps.
8
8
 
@@ -10,20 +10,13 @@ It is based on the [media_kit](https://pub.dev/packages/media_kit) Flutter packa
10
10
 
11
11
  ## Documentation
12
12
 
13
- Detailed documentation to this package can be found [here](https://flet-dev.github.io/flet-video/).
13
+ Detailed documentation to this package can be found [here](https://docs.flet.dev/video/).
14
14
 
15
15
  ## Platform Support
16
16
 
17
- This package supports the following platforms:
18
-
19
- | Platform | Supported |
20
- |----------|:---------:|
21
- | Windows | ✅ |
22
- | macOS | ✅ |
23
- | Linux | ✅ |
24
- | iOS | ✅ |
25
- | Android | ✅ |
26
- | Web | ✅ |
17
+ | Platform | Windows | macOS | Linux | iOS | Android | Web |
18
+ |----------|---------|-------|-------|-----|---------|-----|
19
+ | Supported| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
27
20
 
28
21
  ## Usage
29
22
 
@@ -42,11 +35,6 @@ To install the `flet-video` package and add it to your project dependencies:
42
35
  ```
43
36
  After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
44
37
 
45
- - Using `poetry`:
46
- ```bash
47
- poetry add flet-video
48
- ```
49
-
50
38
  ### Examples
51
39
 
52
- For examples, see [these](./examples).
40
+ For examples, see [these](https://github.com/flet-dev/flet/tree/main/sdk/python/examples/controls/video).
@@ -0,0 +1,24 @@
1
+ [project]
2
+ name = "flet-video"
3
+ version = "0.70.0.dev6293"
4
+ description = "Cross-platform video playback for Flet apps."
5
+ readme = "README.md"
6
+ authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
7
+ license = "Apache-2.0"
8
+ requires-python = ">=3.10"
9
+ dependencies = [
10
+ "flet==0.70.0.dev6293",
11
+ ]
12
+
13
+ [project.urls]
14
+ Homepage = "https://flet.dev"
15
+ Documentation = "https://docs.flet.dev/video"
16
+ Repository = "https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-video"
17
+ Issues = "https://github.com/flet-dev/flet/issues"
18
+
19
+ [tool.setuptools.package-data]
20
+ "flutter.flet_video" = ["**/*"]
21
+
22
+ [build-system]
23
+ requires = ["setuptools"]
24
+ build-backend = "setuptools.build_meta"
@@ -1,3 +1,7 @@
1
+ """
2
+ Public exports for the flet-video package.
3
+ """
4
+
1
5
  from flet_video.types import (
2
6
  PlaylistMode,
3
7
  VideoConfiguration,
@@ -1,3 +1,7 @@
1
+ """
2
+ Type definitions and configuration objects for flet-video.
3
+ """
4
+
1
5
  from dataclasses import dataclass, field
2
6
  from enum import Enum
3
7
  from typing import Optional
@@ -108,16 +112,59 @@ class VideoSubtitleTrack:
108
112
  """The language of the subtitle track, e.g. 'en'."""
109
113
 
110
114
  channels_count: Optional[int] = None
115
+ """
116
+ The number of audio channels detected in the media.
117
+ """
118
+
111
119
  channels: Optional[str] = None
120
+ """
121
+ Channel layout string describing the spatial arrangement of channels.
122
+ """
123
+
112
124
  sample_rate: Optional[int] = None
125
+ """
126
+ Audio sampling rate in hertz.
127
+ """
128
+
113
129
  fps: Optional[ft.Number] = None
130
+ """
131
+ Video frames per second.
132
+ """
133
+
114
134
  bitrate: Optional[int] = None
135
+ """
136
+ Overall media bitrate in bits per second.
137
+ """
138
+
115
139
  rotate: Optional[int] = None
140
+ """
141
+ Rotation metadata in degrees to apply when rendering the video.
142
+ """
143
+
116
144
  par: Optional[ft.Number] = None
145
+ """
146
+ Pixel aspect ratio value.
147
+ """
148
+
117
149
  audio_channels: Optional[int] = None
150
+ """
151
+ Explicit audio channel count override.
152
+ """
153
+
118
154
  album_art: Optional[bool] = None
155
+ """
156
+ Whether the track represents album art rather than timed media.
157
+ """
158
+
119
159
  codec: Optional[str] = None
160
+ """
161
+ Codec identifier for the media stream.
162
+ """
163
+
120
164
  decoder: Optional[str] = None
165
+ """
166
+ Decoder name used to process the media stream.
167
+ """
121
168
 
122
169
  @classmethod
123
170
  def none(cls) -> "VideoSubtitleTrack":
@@ -1,8 +1,11 @@
1
+ """
2
+ Video control definition for the flet-video package.
3
+ """
4
+
1
5
  from dataclasses import field
2
6
  from typing import Optional
3
7
 
4
8
  import flet as ft
5
-
6
9
  from flet_video.types import (
7
10
  PlaylistMode,
8
11
  VideoConfiguration,
@@ -15,13 +18,9 @@ __all__ = ["Video"]
15
18
 
16
19
 
17
20
  @ft.control("Video")
18
- class Video(ft.ConstrainedControl):
21
+ class Video(ft.LayoutControl):
19
22
  """
20
23
  A control that displays a video from a playlist.
21
-
22
- Raises:
23
- AssertionError: If the [`volume`][(c).] is not between
24
- `0.0` and `100.0` (inclusive).
25
24
  """
26
25
 
27
26
  playlist: list[VideoMedia] = field(default_factory=list)
@@ -85,6 +84,10 @@ class Video(ft.ConstrainedControl):
85
84
  It's value ranges between `0.0` to `100.0` (inclusive), where `0.0`
86
85
  is muted and `100.0` is the maximum volume.
87
86
  An exception will be raised if the value is outside this range.
87
+
88
+ Raises:
89
+ AssertionError: If the [`volume`][(c).] is not between
90
+ `0.0` and `100.0` (inclusive).
88
91
  """
89
92
 
90
93
  playback_rate: ft.Number = 1.0
@@ -1,24 +1,24 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-video
3
- Version: 0.2.0.dev505
4
- Summary: A cross-platform video player for Flet apps.
3
+ Version: 0.70.0.dev6293
4
+ Summary: Cross-platform video playback for Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://flet.dev
8
- Project-URL: Documentation, https://flet-dev.github.io/flet-video
9
- Project-URL: Repository, https://github.com/flet-dev/flet-video
10
- Project-URL: Issues, https://github.com/flet-dev/flet-video/issues
8
+ Project-URL: Documentation, https://docs.flet.dev/video
9
+ Project-URL: Repository, https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-video
10
+ 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.dev0
14
+ Requires-Dist: flet==0.70.0.dev6293
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-video
18
18
 
19
19
  [![pypi](https://img.shields.io/pypi/v/flet-video.svg)](https://pypi.python.org/pypi/flet-video)
20
20
  [![downloads](https://static.pepy.tech/badge/flet-video/month)](https://pepy.tech/project/flet-video)
21
- [![license](https://img.shields.io/github/license/flet-dev/flet-video.svg)](https://github.com/flet-dev/flet-video/blob/main/LICENSE)
21
+ [![license](https://img.shields.io/github/license/flet-dev/flet.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-video/LICENSE)
22
22
 
23
23
  A cross-platform video player for [Flet](https://flet.dev) apps.
24
24
 
@@ -26,20 +26,13 @@ It is based on the [media_kit](https://pub.dev/packages/media_kit) Flutter packa
26
26
 
27
27
  ## Documentation
28
28
 
29
- Detailed documentation to this package can be found [here](https://flet-dev.github.io/flet-video/).
29
+ Detailed documentation to this package can be found [here](https://docs.flet.dev/video/).
30
30
 
31
31
  ## Platform Support
32
32
 
33
- This package supports the following platforms:
34
-
35
- | Platform | Supported |
36
- |----------|:---------:|
37
- | Windows | ✅ |
38
- | macOS | ✅ |
39
- | Linux | ✅ |
40
- | iOS | ✅ |
41
- | Android | ✅ |
42
- | Web | ✅ |
33
+ | Platform | Windows | macOS | Linux | iOS | Android | Web |
34
+ |----------|---------|-------|-------|-----|---------|-----|
35
+ | Supported| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
43
36
 
44
37
  ## Usage
45
38
 
@@ -58,11 +51,6 @@ To install the `flet-video` package and add it to your project dependencies:
58
51
  ```
59
52
  After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
60
53
 
61
- - Using `poetry`:
62
- ```bash
63
- poetry add flet-video
64
- ```
65
-
66
54
  ### Examples
67
55
 
68
- For examples, see [these](./examples).
56
+ For examples, see [these](https://github.com/flet-dev/flet/tree/main/sdk/python/examples/controls/video).
@@ -9,11 +9,8 @@ src/flet_video.egg-info/SOURCES.txt
9
9
  src/flet_video.egg-info/dependency_links.txt
10
10
  src/flet_video.egg-info/requires.txt
11
11
  src/flet_video.egg-info/top_level.txt
12
- src/flutter/flet_video/CHANGELOG.md
13
12
  src/flutter/flet_video/LICENSE
14
- src/flutter/flet_video/README.md
15
13
  src/flutter/flet_video/analysis_options.yaml
16
- src/flutter/flet_video/pubspec.lock
17
14
  src/flutter/flet_video/pubspec.yaml
18
15
  src/flutter/flet_video/lib/flet_video.dart
19
16
  src/flutter/flet_video/lib/src/extension.dart
@@ -0,0 +1 @@
1
+ flet==0.70.0.dev6293
@@ -198,4 +198,4 @@
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
- limitations under the License.
201
+ limitations under the License.
@@ -0,0 +1,25 @@
1
+ name: flet_video
2
+ description: Flet Video control
3
+ version: 0.1.0
4
+ publish_to: none
5
+
6
+ environment:
7
+ sdk: '>=3.2.3 <4.0.0'
8
+ flutter: ">=1.17.0"
9
+
10
+ dependencies:
11
+ flutter:
12
+ sdk: flutter
13
+
14
+ collection: ^1.16.0
15
+ media_kit: 1.2.1
16
+ media_kit_video: 1.3.1
17
+ media_kit_libs_video: 1.0.7
18
+
19
+ flet:
20
+ path: ../../../../../../../packages/flet
21
+
22
+ dev_dependencies:
23
+ flutter_test:
24
+ sdk: flutter
25
+ flutter_lints: ^3.0.0
@@ -1,99 +0,0 @@
1
- [project]
2
- name = "flet-video"
3
- version = "0.2.0.dev505"
4
- description = "A cross-platform video player for Flet apps."
5
- readme = "README.md"
6
- authors = [
7
- { name = "Flet contributors", email = "hello@flet.dev" }
8
- ]
9
- license = "Apache-2.0"
10
- requires-python = ">=3.10"
11
- dependencies = [
12
- "flet >=0.70.0.dev0",
13
- ]
14
-
15
- [project.urls]
16
- Homepage = "https://flet.dev"
17
- Documentation = "https://flet-dev.github.io/flet-video"
18
- Repository = "https://github.com/flet-dev/flet-video"
19
- Issues = "https://github.com/flet-dev/flet-video/issues"
20
-
21
- [tool.setuptools.package-data]
22
- "flutter.flet_video" = ["**/*"]
23
-
24
- [dependency-groups]
25
- test = [
26
- "pytest >=7.2.0",
27
- ]
28
- lint = [
29
- "ruff >=0.13.1",
30
- ]
31
- dev = [
32
- "pre-commit >=4.2.0",
33
- { include-group = 'lint' },
34
- { include-group = 'test' },
35
- ]
36
- docs-coverage = [
37
- "docstr-coverage >=2.3.2",
38
- ]
39
- docs = [
40
- "mkdocs >=1.6.1",
41
- "mkdocs-material >=9.6.20",
42
- "mkdocstrings-python >=1.18.2",
43
- "mkdocstrings-python-xref >=1.16.4",
44
- "mike >=2.1.3",
45
- "markdown >=3.9",
46
- "pymdown-extensions >=10.16.1",
47
- "mkdocs-exclude >=1.0.2",
48
- "mkdocs-glightbox >=0.5.1",
49
- "mkdocs-open-in-new-tab >=1.0.8",
50
- "mkdocs-section-index >=0.3.10",
51
- "griffe-modernized-annotations >=1.0.8",
52
- "griffe-warnings-deprecated >=1.1.0",
53
- "pygments >=2.16",
54
- "markdown-exec[ansi] >=1.11.0",
55
- "pydocstyle >=6.3.0",
56
- "linkcheckmd >=1.4.0",
57
- "mkdocs-external-images",
58
- { include-group = 'docs-coverage' },
59
- ]
60
- all = [
61
- { include-group = 'dev' },
62
- { include-group = 'docs' },
63
- ]
64
-
65
- [tool.uv.sources]
66
- mkdocs-external-images = { git = "https://github.com/flet-dev/mkdocs-external-images", tag = "v0.2.0" }
67
-
68
- [build-system]
69
- requires = ["setuptools"]
70
- build-backend = "setuptools.build_meta"
71
-
72
- [tool.ruff]
73
- line-length = 88
74
- target-version = "py39"
75
- fix = true
76
- show-fixes = true
77
-
78
- [tool.ruff.lint]
79
- select = [
80
- # pycodestyle
81
- "E",
82
- # Pyflakes
83
- "F",
84
- # pyupgrade
85
- "UP",
86
- # flake8-bugbear
87
- "B",
88
- # flake8-simplify
89
- "SIM",
90
- # isort
91
- "I"
92
- ]
93
- preview = true
94
- pydocstyle = { convention = 'google' }
95
-
96
- [tool.ruff.format]
97
- quote-style = "double"
98
- indent-style = "space"
99
- line-ending = "auto"
@@ -1 +0,0 @@
1
- flet>=0.70.0.dev0
@@ -1,7 +0,0 @@
1
- # 0.2.0
2
-
3
- TBA
4
-
5
- # 0.1.0
6
-
7
- Initial release of the package.
@@ -1,3 +0,0 @@
1
- # Flet `Video` control
2
-
3
- `Video` control to use in Flet apps.