anchor.diff:          'RTCVideoRenderer-$textureId', (int viewId) => videoElement);
   
       videoElement.onCanPlay.listen((dynamic _) {
  -      if (!isInitialized) {
  -        isInitialized = true;
  -        value = value.copyWith(
  -            rotation: 0,
  -            width: videoElement.videoWidth.toDouble() ?? 0.0,
  -            height: videoElement.videoHeight.toDouble() ?? 0.0,
  -            renderVideo: renderVideo);
  -      }
  -      print('RTCVideoRenderer: videoElement.onCanPlay');
  +      value = value.copyWith(
  +          rotation: 0,
  +          width: videoElement.videoWidth.toDouble() ?? 0.0,
  +          height: videoElement.videoHeight.toDouble() ?? 0.0,
  +          renderVideo: renderVideo);
  +      print('RTCVideoRenderer: videoElement.onCanPlay ${value.toString()}');
  +    });
  +
  +    videoElement.onResize.listen((dynamic _) {
  +      value = value.copyWith(
  +          rotation: 0,
  +          width: videoElement.videoWidth.toDouble() ?? 0.0,
  +          height: videoElement.videoHeight.toDouble() ?? 0.0,
  +          renderVideo: renderVideo);
  +      print('RTCVideoRenderer: videoElement.onResize ${value.toString()}');
       });
   
       // The error event fires when some form of error occurs while attempting to load or perform the media.
  
positive.code:   }
  }
  
  class RTCVideoView extends StatelessWidget {
    RTCVideoView(
      this._renderer, {
      Key key,
  
negative.code:   static int _textureCounter = 1;
    final int textureId;
    html.VideoElement videoElement;
    MediaStream _srcObject;
  
    bool get muted => videoElement?.muted ?? true;
  
    set muted(bool mute) => videoElement?.muted = mute;
  
    bool get renderVideo => videoElement != null && srcObject != null;
  
    Future<void> initialize() async {
      videoElement = html.VideoElement()
        //..src = 'https://flutter-webrtc-video-view-RTCVideoRenderer-$textureId'
        ..autoplay = true
        ..controls = false
        ..style.objectFit = 'contain' // contain or cover
        ..style.border = 'none';
  