Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/zezo357/dart_vlc into upd…
Browse files Browse the repository at this point in the history
…ated-ffi-to-2.0.1
  • Loading branch information
abdelaziz-mahdy committed Sep 7, 2022
2 parents 40db831 + 89da178 commit c7708ca
Show file tree
Hide file tree
Showing 124 changed files with 4,277 additions and 3,582 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help dart_vlc improve (fill all details correctly otherwise issue will not be answered)
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
Explain the bug.

**Media**

Upload / give URL of the audio/video files that cause the issue (if applicable).

**Minimal reproducible code**
```dart
replace this line with the code that causes bug (code should be compile-able & single-file)
```

**Flutter logs**
```
paste output of **flutter run --verbose** here (replace this line, and make sure to include --verbose flag).
```
```
paste output of **flutter doctor --verbose** here (replace this line, and make sure to include --verbose flag).
```

**Operating system:**
- Platform: e.g. Windows, Ubuntu or macOS etc.
- OS version: Windows 11 21H2, Ubuntu 20.04 etc.

**Other details:**
<!--
Add x inside the square brackets below (like [x]) to make a YES, otherwise leave as [ ] for NO.
-->

- [ ] I confirm this is not a bug in the VLC app & only `dart_vlc`.
- [ ] I have donated / sponsored `dart_vlc`.

**Screenshots**
If applicable, add screenshots to help explain your problem. Otherwise, do nothing.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Describe the feature you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here (if applicable).

**Operating system:**
- Platform: e.g. Windows, Ubuntu or macOS etc.
- OS version: Windows 11 21H2, Ubuntu 20.04 etc.

**Other details:**
<!--
Add x inside the square brackets below (like [x]) to make a YES, otherwise leave as [ ] for NO.
-->

- [ ] I confirm this is not a bug in the VLC app & only `dart_vlc`.
- [ ] I have donated / sponsored `dart_vlc`.

**Screenshots**
If applicable, add screenshots to help explain your problem. Otherwise, do nothing.
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
submodules: "true"
- uses: subosito/flutter-action@v1
with:
channel: "master"
channel: "stable"
- run: flutter config --enable-windows-desktop
- run: flutter pub get
- run: flutter build windows --verbose
Expand All @@ -33,23 +33,9 @@ jobs:
submodules: "true"
- uses: subosito/flutter-action@v1
with:
channel: "master"
channel: "stable"
- run: sudo apt update
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev vlc libvlc-dev
- run: flutter config --enable-linux-desktop
- run: flutter pub get
- run: flutter build linux --verbose

build_macos:
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: subosito/flutter-action@v1
with:
channel: "master"
- run: flutter config --enable-macos-desktop
- run: flutter pub get
- run: flutter build macos --verbose
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

40 changes: 33 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## 0.3.0
* BREAKING CHANGES
* Removed iOS support
* Removed macOS support

## 0.2.1

- Addressed few issues related to `NativeVideo` on Windows (@alexmercerind).
- Fixed switch case directShow control (@Paradoxu).
- Fixed Bump `flutter_native_view` and `window_manager` to latest versions (@ashutosh2014, @alexmercerind).

## 0.2.0

- Addressed multiple Dart-sided memory leaks during FFI interop (@alexmercerind).
- Introduce `NativeVideo` for Windows to render video playback performantly (uses [flutter_native_view](https://github.com/alexmercerind/flutter_native_view)) (@alexmercerind).
- Refactor native source code, move implementations to separate translation units & remove inline class methods (@alexmercerind).
- Fix `Video` rendering when explicit `VideoDimensions` are passed (@alexmercerind).
- Expose Player::SetHWND (@alexmercerind).

## 0.1.9

- Fix RTSP & HLS streams launching separate window instead of using `Video` widget (@alexmercerind).
- Add `playlistLength` value to ensure the "skip next" and "skip previous" buttons do not render if there is only one `Media` in a `Playlist`. (@GroovinChip)
- Update `dart_vlc.podspec` to ensure the correct Pods path on macOS. NOTE: This is based on Flutter's `stable` channel. (@GroovinChip)
- Added support for setting current audio track and getting audio track count (@exts)
- (linux) store texture info in instance data instead of class data (@hansihe)

## 0.1.8

- Add `startTime` and `stopTime` parameters to `Media` for clipping (@alexmercerind).
Expand All @@ -23,7 +50,7 @@

- Added initial macOS support (@jnschulze).
- Improved NativePort callbacks & removed unnecessary serialization (@alexmercerind).
- Now using a common dartvlc wrapper CMake library for all platforms (@jnschulze).
- Now using a common core wrapper CMake library for all platforms (@jnschulze).
- Other bug-fixes related to `Video` (@jnschulze).
- Setup garbage cleaning finalizers for memory allocated on heap (for C++/Dart FFI communication) (@alexmercerind @jnschulze).
- Removed deprecated libVLC API calls (@alexmercerind).
Expand All @@ -32,7 +59,7 @@

- Now `Player` no longer requires `videoWidth` & `videoHeight` to be passed for video playback (@alexmercerind).
- `Video` widget now uses the dimensions of the currently playing video (@alexmercerind).
- For overriding the automatic video dimensions retrieval, `videoDimensions` argument must be passed while instantiating `Player` class (@alexmercerind).
- For overriding the automatic video dimensions retrieval, `videoDimensions` argument must be passed while instantiating `Player` class (@alexmercerind).
- `Video` widget no longer asks for `playerId` argument, but `player` instead (@jnszhulze).
- Added `videoDimensionStream` and `videoDimension` attributes to `Player` class to listen to currently playing video dimensions (@alexmercerind).
- Migrated C++ code to use smart pointers instead of raw pointers (@alexmercerind).
Expand All @@ -45,7 +72,7 @@

## 0.1.2

- Now using `flutter::TextureRegistrar` for performant `Video` on Windows (#54) (@alexmercerind).
- Now using `flutter::TextureRegistrar` for performant `Video` on Windows (#54) (@alexmercerind).
- Fixed `autoStart` in `Player.open` (@alexmercerind).
- Fixed other crashes for Windows (@alexmercerind).
- Improved stability (@alexmercerind).
Expand Down Expand Up @@ -85,7 +112,7 @@
- Support for Dart CLI. See package `dart_vlc_ffi` (@alexmercerind).
- Added `commandlineArguments` to `Player` constructor to pass VLC commandline arguments (@alexmercerind).
- BREAKING CHANGES
- Now plugin requires initialization in the `main` method, call `DartVLC.initialize()` to instantiate the plugin (@alexmercerind).
- Now plugin requires initialization in the `main` method, call `DartVLC.initialize()` to instantiate the plugin (@alexmercerind).
- Now all the methods are synchronous & no longer require `await`. Please update your code (@alexmercerind).

## 0.0.7
Expand Down Expand Up @@ -147,11 +174,10 @@
- Contains:
- `volume`
- `rate`
- Ability to retrieve metadata of a `Media` (either from `Media.network` or `Media.file`) (@alexmercerind).
- Ability to retrieve metadata of a `Media` (either from `Media.network` or `Media.file`) (@alexmercerind).
- Now you can access metadata of a `Media` by passing `parse: true` for parsing the metadata (@alexmercerind).
- Retrieved metadata is stored inside `Media.metas` as `Map<String, String>` (@alexmercerind).


## 0.0.2

- Support for Flutter on Linux (@alexmercerind).
Expand Down Expand Up @@ -193,4 +219,4 @@
- `Player.generalState`
- `volume`: Volume of current `Player` instance.
- `rate`: Rate of current `Player` instance.
- Initial release, worked & documented by @alexmercerind.
- Initial release, worked & documented by @alexmercerind.
Loading

0 comments on commit c7708ca

Please sign in to comment.