Skip to content

Commit

Permalink
docs: update README, Linux: replace with symlink, update Requirements (
Browse files Browse the repository at this point in the history
…#1190)

* docs: update README, Linux: replace with symlink, update Requirements

* docs: show linux requirements in getting_started.md (closes #1178)

Co-authored-by: Luan Nico <luanpotter27@gmail.com>
  • Loading branch information
Gustl22 and luanpotter authored Jul 7, 2022
1 parent 1d1600b commit 72e3d50
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A Flutter plugin to play multiple simultaneously audio files, works for Android,

<img src="https://raw.githubusercontent.com/bluefireteam/audioplayers/main/images/screenshot1.png" width="250" /> <img src="https://raw.githubusercontent.com/bluefireteam/audioplayers/main/images/screenshot2.png" width="250" /> <img src="https://raw.githubusercontent.com/bluefireteam/audioplayers/main/images/screenshot3.png" width="250" />

**Note**: all the docs have been update to reflect the content for the v1 release (currently `1.0.0-rc.4`). If you are looking for v0 specific information and guidance, please checkout [the version of this repo before the first v0 change](https://github.com/bluefireteam/audioplayers/tree/46816bf55859c9c88b204e3828cce6190ff87483).
**Note**: all the docs have been update to reflect the content for the v1 release. If you are looking for v0 specific information and guidance, please checkout [the version of this repo before the first v0 change](https://github.com/bluefireteam/audioplayers/tree/46816bf55859c9c88b204e3828cce6190ff87483).

If you are interest in migrating to v1, please check [our migration guide](migration_guide.md).

Expand Down Expand Up @@ -38,7 +38,7 @@ We tried to make audioplayers as simple to use as possible.

Please follow our [Getting Started tutorial](getting_started.md) for all high-level information you need to know.

Then, if you want to dig deeper, our code is very well documented with dartdocs, so check [our API reference](https://pub.dev/documentation/audioplayers/1.0.0-rc.1/) or the codebase itself on your IDE (or on GitHub).
Then, if you want to dig deeper, our code is very well documented with dartdocs, so check [our API reference](https://pub.dev/documentation/audioplayers/latest/) or the codebase itself on your IDE (or on GitHub).

If something is not clear on our docs, please send a PR to help us improve.

Expand Down
6 changes: 5 additions & 1 deletion getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This tutorial should help you get started with the audioplayers library, coverin

In order to install this package, add the [latest version](pub.dev/packages/audioplayers) of `audioplayers` to your `pubspec.yaml` file. This packages uses [the Federated Plugin](https://docs.flutter.dev/development/packages-and-plugins/developing-packages) guidelines to support multiple platforms, so it should just work on all supported platforms your app is built for without any extra configuration. You should not need to add the `audioplayers_*` packages directly.

## Build Requirements

Audioplayers for Linux (`audioplayers_linux`) is the only platform implementation which relies on additional dependencies. You need to fulfill [these requirements](packages/audioplayers_linux/requirements.md).

## AudioPlayer

An `AudioPlayer` instance can play a single audio at a time (think of it as a single boombox). To create it, simply call the constructor:
Expand Down Expand Up @@ -272,4 +276,4 @@ By default, each time you initialize a new instance of AudioPlayer, a unique pla
final player = AudioPlayer(playerId: 'my_unique_playerId');
```

Two players with the same id will point to the same media player on the native side.
Two players with the same id will point to the same media player on the native side.
1 change: 0 additions & 1 deletion packages/audioplayers_linux/README.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/audioplayers_linux/README.md
12 changes: 9 additions & 3 deletions packages/audioplayers_linux/requirements.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Requirements for Linux

## Debian

### Dev Dependencies

[Flutter](https://docs.flutter.dev/get-started/install/linux#additional-linux-requirements) dependencies:

```bash
Expand All @@ -12,10 +16,12 @@ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
```

Optional GStreamer Bad Plugins (e.g. for `.m3u8`):
### App Dependencies

Optional GStreamer Plugins (e.g. for `.m3u8`):

```bash
sudo apt-get install gstreamer1.0-plugins-bad
sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
```

## ArchLinux
Expand All @@ -26,4 +32,4 @@ For Arch, simply install gstreamer and its plugins via `pacman`:
sudo pacman -S gstreamer gst-libav gst-plugins-base gst-plugins-good
```

You can install additional plugins as needed following [the Wiki](https://wiki.archlinux.org/title/GStreamer).
You can install additional plugins as needed following [the Wiki](https://wiki.archlinux.org/title/GStreamer).

0 comments on commit 72e3d50

Please sign in to comment.