Update main plugin to use hosted platform interface.

This commit is contained in:
Ryan Heise 2020-09-27 19:04:27 +10:00
parent 5fdf3856d6
commit 8a7d583672
4 changed files with 25 additions and 18 deletions

View File

@ -232,6 +232,19 @@ If you wish to connect to non-HTTPS URLS, add the following to your `Info.plist`
</dict> </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 ## 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. * [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.

View File

@ -117,10 +117,10 @@ packages:
just_audio_platform_interface: just_audio_platform_interface:
dependency: transitive dependency: transitive
description: description:
path: "../../just_audio_platform_interface" name: just_audio_platform_interface
relative: true url: "https://pub.dartlang.org"
source: path source: hosted
version: "0.0.1" version: "1.0.0"
just_audio_web: just_audio_web:
dependency: "direct dev" dependency: "direct dev"
description: description:

View File

@ -89,7 +89,7 @@ packages:
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
flutter_web_plugins: flutter_web_plugins:
dependency: "direct main" dependency: transitive
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
@ -103,10 +103,10 @@ packages:
just_audio_platform_interface: just_audio_platform_interface:
dependency: "direct main" dependency: "direct main"
description: description:
path: "../just_audio_platform_interface" name: just_audio_platform_interface
relative: true url: "https://pub.dartlang.org"
source: path source: hosted
version: "0.0.1" version: "1.0.0"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:

View File

@ -8,8 +8,7 @@ environment:
flutter: ">=1.12.13+hotfix.5" flutter: ">=1.12.13+hotfix.5"
dependencies: dependencies:
just_audio_platform_interface: just_audio_platform_interface: ^1.0.0
path: ../just_audio_platform_interface
audio_session: ^0.0.7 audio_session: ^0.0.7
rxdart: ^0.24.1 rxdart: ^0.24.1
path: ^1.6.4 path: ^1.6.4
@ -18,8 +17,6 @@ dependencies:
uuid: ^2.2.0 uuid: ^2.2.0
flutter: flutter:
sdk: flutter sdk: flutter
flutter_web_plugins:
sdk: flutter
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
@ -35,8 +32,5 @@ flutter:
pluginClass: JustAudioPlugin pluginClass: JustAudioPlugin
macos: macos:
pluginClass: JustAudioPlugin pluginClass: JustAudioPlugin
# web: web:
# default_package: just_audio_web default_package: just_audio_web
# web:
# pluginClass: JustAudioPlugin
# fileName: just_audio_web.dart