Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[video_player] interface: add support for content-uri based videos (a… #4307

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.2.0

* Add `contentUri` to `DataSourceType`.

## 4.1.0

* Add `httpHeaders` to `DataSource`
Expand Down Expand Up @@ -29,7 +33,7 @@

## 2.1.0

* Add VideoPlayerOptions with audo mix mode
* Add VideoPlayerOptions with audio mix mode

## 2.0.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class MethodChannelVideoPlayer extends VideoPlayerPlatform {
case DataSourceType.file:
message.uri = dataSource.uri;
break;
case DataSourceType.contentUri:
message.uri = dataSource.uri;
break;
}

TextureMessage response = await _api.create(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ enum DataSourceType {

/// The video was loaded off of the local filesystem.
file,

/// The video is available via contentUri. Android only.
contentUri,
}

/// The file format of the given video.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/plugins/tree/master/packages/video_player
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 4.1.0
version: 4.2.0

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down