File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ import 'package:dart_vlc/src/device.dart';
12
12
/// Provide a unique [id] while instanciating.
13
13
///
14
14
/// ```dart
15
- /// Player player = Player(id: 0);
15
+ /// Player player = new Player(id: 0);
16
16
/// ```
17
17
///
18
18
/// If you wish to use this instance for [Video] playback, then provide [videoWidth] & [videoHeight] optional parameters.
19
19
/// Higher value may lead to degraded performance.
20
20
///
21
21
/// ```dart
22
- /// Player player = await Player(
22
+ /// Player player = new Player(
23
23
/// id: 0,
24
24
/// videoWidth: 1920,
25
25
/// videoHeight: 1080,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class VideoFrame {
33
33
///
34
34
/// ```dart
35
35
/// class _MyAppState extends State<MyApp> {
36
- /// Player player = Player(id: 0);
36
+ /// Player player = new Player(id: 0);
37
37
///
38
38
/// @override
39
39
/// Widget build(BuildContext context) {
@@ -134,8 +134,8 @@ class VideoState extends State<Video> {
134
134
ui.PixelFormat .bgra8888,
135
135
(ui.Image _image) => imageCompleter.complete (_image),
136
136
rowBytes: 4 * videoFrame.videoWidth,
137
- targetWidth: videoFrame.videoWidth ,
138
- targetHeight: videoFrame.videoHeight ,
137
+ targetWidth: widget.width. toInt () ,
138
+ targetHeight: widget.height. toInt () ,
139
139
);
140
140
ui.Image image = await imageCompleter.future;
141
141
return new RawImage (
You can’t perform that action at this time.
0 commit comments