Skip to content

Commit dc67dea

Browse files
committed
Added play/pause function to the play example app
1 parent 0a272c6 commit dc67dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/SampleProject/lib/play.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class _PlayState extends State<Play> {
201201
width: MediaQuery.of(context).size.width,
202202
height: MediaQuery.of(context).size.height,
203203
decoration: const BoxDecoration(color: Colors.black54),
204-
child: RTCVideoView(_remoteRenderer),
204+
child: RTCVideoView(_remoteRenderer,objectFit: orientation == Orientation.portrait ? RTCVideoViewObjectFit.RTCVideoViewObjectFitContain : RTCVideoViewObjectFit.RTCVideoViewObjectFitCover ),
205205
),
206206
_isPaused
207207
? Center(

0 commit comments

Comments
 (0)