Update main plugin to use hosted platform interface.
This commit is contained in:
parent
5fdf3856d6
commit
8a7d583672
|
@ -232,6 +232,19 @@ If you wish to connect to non-HTTPS URLS, add the following to your `Info.plist`
|
|||
</dict>
|
||||
```
|
||||
|
||||
### Web
|
||||
|
||||
Add the package [just_audio_web](https://github.com/ryanheise/just_audio/tree/master/just_audio_web) to the `dependencies` of your `pubspec.yaml` in addition to just_audio:
|
||||
|
||||
```yaml
|
||||
...
|
||||
dependencies:
|
||||
...
|
||||
just_audio: ...
|
||||
just_audio_web: ...
|
||||
...
|
||||
```
|
||||
|
||||
## Related plugins
|
||||
|
||||
* [audio_service](https://pub.dev/packages/audio_service): play any audio in the background and control playback from the lock screen, Android notifications, the iOS Control Center, and headset buttons.
|
||||
|
|
|
@ -117,10 +117,10 @@ packages:
|
|||
just_audio_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
path: "../../just_audio_platform_interface"
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
name: just_audio_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
just_audio_web:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
|
|
@ -89,7 +89,7 @@ packages:
|
|||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_web_plugins:
|
||||
dependency: "direct main"
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
|
@ -103,10 +103,10 @@ packages:
|
|||
just_audio_platform_interface:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "../just_audio_platform_interface"
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
name: just_audio_platform_interface
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.0"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -8,8 +8,7 @@ environment:
|
|||
flutter: ">=1.12.13+hotfix.5"
|
||||
|
||||
dependencies:
|
||||
just_audio_platform_interface:
|
||||
path: ../just_audio_platform_interface
|
||||
just_audio_platform_interface: ^1.0.0
|
||||
audio_session: ^0.0.7
|
||||
rxdart: ^0.24.1
|
||||
path: ^1.6.4
|
||||
|
@ -18,8 +17,6 @@ dependencies:
|
|||
uuid: ^2.2.0
|
||||
flutter:
|
||||
sdk: flutter
|
||||
flutter_web_plugins:
|
||||
sdk: flutter
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
@ -35,8 +32,5 @@ flutter:
|
|||
pluginClass: JustAudioPlugin
|
||||
macos:
|
||||
pluginClass: JustAudioPlugin
|
||||
# web:
|
||||
# default_package: just_audio_web
|
||||
# web:
|
||||
# pluginClass: JustAudioPlugin
|
||||
# fileName: just_audio_web.dart
|
||||
web:
|
||||
default_package: just_audio_web
|
||||
|
|
Loading…
Reference in New Issue