Skip to content

Commit 44b6133

Browse files
committed
README: Document updates
1 parent 55dce04 commit 44b6133

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<h1 align="center"><a href="https://github.com/alexmercerind/dart_vlc">dart_vlc</a></h1>
22

3-
[![pub package](https://img.shields.io/pub/v/dart_vlc.svg)](https://pub.dartlang.org/packages/dart_vlc)
4-
![CI/CD](https://github.com/alexmercerind/dart_vlc/actions/workflows/ci.yml/badge.svg?branch=master)
5-
6-
<h4 align="center">Flutter media playback, broadcast, recording & chromecast library for Windows, Linux, macOS & iOS.</h4>
3+
[![pub package](https://img.shields.io/pub/v/dart_vlc.svg)](https://pub.dartlang.org/packages/dart_vlc) ![CI/CD](https://github.com/alexmercerind/dart_vlc/actions/workflows/ci.yml/badge.svg?branch=master) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/alexmercerind) ![https://twitter.com/alexmercerind](https://img.shields.io/twitter/follow/alexmercerind)
4+
5+
6+
<h4 align="center">Flutter media playback, broadcast, recording & chromecast library for Windows, Linux & macOS.</h4>
77
<h5 align="center">Written in C++ using libVLC & libVLC++.</h5>
88

99
![](https://github.com/alexmercerind/dart_vlc/blob/assets/dart_vlc_windows_11_1.PNG?raw=true)
@@ -36,7 +36,8 @@ Feel free to open a [new issue](https://github.com/alexmercerind/dart_vlc/issues
3636
3737
Consider supporting the project by starring the repository or buying me a coffee.
3838
39-
<a href="https://www.buymeacoffee.com/alexmercerind"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=alexmercerind&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff"></a>
39+
[![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/alexmercerind)
40+
[![Donate](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow)](https://buymeacoffee.com/alexmercerind)
4041
4142
Thanks a lot for your support. Android support is on its way.
4243
@@ -80,6 +81,13 @@ Media media1 = Media.asset(
8081
Media media2 = Media.network(
8182
'https://www.example.com/music.aac'
8283
);
84+
85+
// Clip the media.
86+
Media media2 = Media.network(
87+
'https://www.example.com/music.aac',
88+
startTime: Duration(seconds: 20), // Start media from 20 seconds from the beginning.
89+
stopTime: Duration(seconds: 60), // End media at 60 seconds from the beginning.
90+
);
8391
```
8492

8593
#### Create a list of medias using playlist.
@@ -170,6 +178,12 @@ player.setDevice(
170178
);
171179
```
172180

181+
#### Save the video snapshot
182+
183+
```dart
184+
player.takeSnapshot(file, 1920, 1080);
185+
```
186+
173187
#### Show the video inside widget tree.
174188

175189
Show `Video` in the `Widget` tree.
@@ -375,15 +389,16 @@ sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install
375389

376390
For using this plugin on Linux, you must have [VLC](https://www.videolan.org) & [libVLC](https://www.videolan.org/vlc/libvlc.html) installed.
377391

378-
On debian based distros:
392+
**On Ubuntu/Debian:**
379393

380394
```bash
381395
sudo apt-get install vlc
382396
```
383397
```bash
384398
sudo apt-get install libvlc-dev
385399
```
386-
On Fedora:
400+
401+
**On Fedora:**
387402

388403
```bash
389404
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
@@ -396,7 +411,7 @@ sudo dnf install vlc
396411
sudo dnf install vlc-devel
397412
```
398413

399-
### iOS
414+
### iOS [WIP]
400415

401416
Disable bitcode generation for the whole project for MobileVLC to work.
402417
Add the following to the `post_install` function living in the `Podfile` of your iOS Flutter project. For reference look at the `Podfile` in the example project.
@@ -469,6 +484,7 @@ Done
469484
- Adding headers for `Media.network` (Not possible, added user agent).
470485
- Switching to FFI for more cross platform freedom.
471486
- Changing `Video`'s frame size according to video.
487+
- Saving snapshot.
472488

473489
Under progress or planned features (irrespective of order)...
474490

0 commit comments

Comments
 (0)