omni_player 2.1.0
omni_player: ^2.1.0 copied to clipboard
Flutter媒体播放器插件,在Android/iOS上支持视频和音频播放和后台播放。支持MKV、MP4、HLS等.
We analyzed this package 4 days ago, and awarded it 110 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.
Homepage URL doesn't exist.
At the time of the analysis https://gitee.com/sirli369/omni_player was unreachable. Make sure that the website is reachable via HEAD requests.
0/5 points: Provide a valid README.md
`README.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
74 out of 122 API elements (60.7 %) have documentation comments.
Some symbols that are missing documentation: omni_player, omni_player.CacheConfig.CacheConfig.new, omni_player.CacheConfig.copyWith, omni_player.CacheManager.CacheManager.new, omni_player.CacheManager.config.
10/10 points: Package has an example
10/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:omni_player/omni_player.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:omni_player/omni_player.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:omni_player/omni_player.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:omni_player/omni_player.dartthat declares support for platforms:Android,iOS.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:omni_player/omni_player.dartthat imports:package:omni_player/src/video_widget.dartthat imports:package:omni_player/src/omni_player.dartthat imports:package:media_kit_video/media_kit_video.dartthat imports:package:media_kit_video/src/video/video.dartthat imports:package:media_kit_video/src/video/video_texture.dartthat imports:package:media_kit_video/src/utils/wakelock.dartthat imports:package:wakelock_plus/wakelock_plus.dartthat imports:package:wakelock_plus/src/wakelock_plus_io_plugin.dartthat imports:package:wakelock_plus/src/wakelock_plus_windows_plugin.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:omni_player/omni_player.dartthat imports:package:omni_player/src/video_widget.dartthat imports:package:omni_player/src/omni_player.dartthat imports:package:media_kit_video/media_kit_video.dartthat imports:package:media_kit_video/src/video/video.dartthat imports:package:media_kit_video/src/video/video_texture.dartthat imports:package:media_kit_video/src/utils/wakelock.dartthat imports:package:wakelock_plus/wakelock_plus.dartthat imports:package:wakelock_plus/src/wakelock_plus_io_plugin.dartthat imports:package:wakelock_plus/src/wakelock_plus_windows_plugin.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Swift Package Manager support:
Package does not support the Swift Package Manager on iOS
The package does not contain ios/omni_player/Package.swift.
Note: This iOS or macOS plugin does not support the Swift Package Manager, resulting in a partial score. See https://docs.flutter.dev/to/spm for details.
Built-in Kotlin support:
Legacy Kotlin configuration detected in `android/build.gradle`.
This plugin applies the Kotlin Gradle Plugin (KGP) or uses the android.kotlinOptions{} block.
Note: This Android plugin does not support built-in Kotlin. In the future, this might affect scoring. See https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: Statements in an if should be enclosed in a block.
lib/src/omni_player.dart:361:46
╷
361 │ _status == PlaybackStatus.completed) return;
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/omni_player.dart
INFO: Angle brackets will be interpreted as HTML.
lib/src/proxy/streaming_proxy.dart:31:41
╷
31 │ /// libmpv → http://127.0.0.1:PORT/?u=<url>[&h_Header=value...]
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/proxy/streaming_proxy.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
crypto |
^3.0.0 |
3.0.7 | 3.0.7 | |
media_kit |
^1.2.6 |
1.2.6 | 1.2.6 | |
media_kit_video |
^1.2.4 |
1.3.1 | 2.0.1 | |
path_provider |
^2.1.0 |
2.1.6 | 2.1.6 | |
plugin_platform_interface |
^2.1.0 |
2.1.8 | 2.1.8 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 4.2.0 | 4.2.0 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
code_assets |
- | 2.0.0 | 2.0.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
dbus |
- | 0.7.15 | 0.7.15 | |
ffi |
- | 2.2.0 | 2.2.0 | |
ffi_leak_tracker |
- | 0.1.2 | 0.1.2 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
hooks |
- | 2.2.0 | 2.2.0 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
image |
- | 4.9.2 | 4.9.2 | |
jni |
- | 1.0.3 | 1.0.3 | |
jni_flutter |
- | 1.0.2 | 1.0.2 | |
jni_util |
- | 1.0.0 | 1.0.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
objective_c |
- | 9.6.0 | 9.6.0 | |
package_config |
- | 3.0.0 | 3.0.0 | |
package_info_plus |
- | 10.2.1 | 10.2.1 | |
package_info_plus_platform_interface |
- | 4.1.0 | 4.1.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_android |
- | 2.3.1 | 2.3.1 | |
path_provider_foundation |
- | 2.6.0 | 2.6.0 | |
path_provider_linux |
- | 2.2.2 | 2.2.2 | |
path_provider_platform_interface |
- | 2.1.3 | 2.1.3 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
petitparser |
- | 7.0.2 | 7.0.2 | |
platform |
- | 3.1.6 | 3.1.6 | |
posix |
- | 6.5.2 | 6.5.2 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
record_use |
- | 1.1.1 | 1.1.1 | |
safe_local_storage |
- | 2.0.6 | 2.0.6 | |
screen_brightness_android |
- | 2.1.6 | 2.1.6 | |
screen_brightness_platform_interface |
- | 2.1.2 | 2.1.2 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.1+2 | 3.4.1+2 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
universal_platform |
- | 1.1.0 | 1.1.0 | |
uri_parser |
- | 3.0.2 | 3.0.2 | |
uuid |
- | 4.6.0 | 4.6.0 | |
vector_math |
- | 2.4.2 | 2.4.2 | |
volume_controller |
- | 3.6.1 | 3.6.1 | |
wakelock_plus |
- | 1.7.0 | 1.7.0 | |
wakelock_plus_platform_interface |
- | 1.6.0 | 1.6.0 | |
web |
- | 1.1.1 | 1.1.1 | |
win32 |
- | 6.4.0 | 6.4.0 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 7.0.1 | 7.0.1 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^1.2.4` on media_kit_video does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions media_kit_video to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.18, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.