Skip to content

Commit

Permalink
[vide_player] Endorse web implementation. (flutter#2389)
Browse files Browse the repository at this point in the history
* Adds default support for web to the video_player plugin
* Minimal `web` dir, so the example can be run through `flutter run -d chrome`
  • Loading branch information
ditman committed Dec 10, 2019
1 parent bca1415 commit 661d298
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/video_player/video_player/CHANGELOG.md
@@ -1,3 +1,8 @@
## 0.10.5

* Support `web` by default.
* Require Flutter SDK 1.12.13+hotfix.4 or greater.

## 0.10.4+2

* Remove the deprecated `author:` field form pubspec.yaml
Expand Down
10 changes: 10 additions & 0 deletions packages/video_player/video_player/example/web/index.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>video_player web example</title>
</head>
<body>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
12 changes: 10 additions & 2 deletions packages/video_player/video_player/pubspec.yaml
@@ -1,7 +1,7 @@
name: video_player
description: Flutter plugin for displaying inline video with other Flutter
widgets on Android and iOS.
version: 0.10.4+2
version: 0.10.5
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player

flutter:
Expand All @@ -12,10 +12,18 @@ flutter:
pluginClass: VideoPlayerPlugin
ios:
pluginClass: FLTVideoPlayerPlugin
web:
default_package: video_player_web

dependencies:
meta: "^1.0.5"
video_player_platform_interface: ^1.0.1
# The design on https://flutter.dev/go/federated-plugins was to leave
# this constraint as "any". We cannot do it right now as it fails pub publish
# validation, so we set a ^ constraint.
# TODO(amirh): Revisit this (either update this part in the design or the pub tool).
# https://github.com/flutter/flutter/issues/46264
video_player_web: ^0.1.1

flutter:
sdk: flutter
Expand All @@ -26,4 +34,4 @@ dev_dependencies:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.10.0 <2.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"

0 comments on commit 661d298

Please sign in to comment.