We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0247a9c commit c0e2a23Copy full SHA for c0e2a23
lib/gocoder/src/wowz_camera_view.dart
@@ -202,9 +202,12 @@ class _WOWZCameraViewState extends State<WOWZCameraView> {
202
_channel.invokeMethod(_applicationName, widget.applicationName);
203
_channel.invokeMethod(_streamName, widget.streamName);
204
//authentication
205
- _channel.invokeMethod(_username, widget.username);
206
- _channel.invokeMethod(_password, widget.password);
207
-
+ if (widget.username != null) {
+ _channel.invokeMethod(_username, widget.username);
+ }
208
+ if (widget.password != null) {
209
+ _channel.invokeMethod(_password, widget.password);
210
211
if (widget.wowzSize != null) {
212
_channel.invokeMethod(
213
_wowzSize, "${widget.wowzSize.width}/${widget.wowzSize.height}");
0 commit comments