andrew-delph / SocialCloud

Chat application with user matchmaking leveraging machine learning.
Other
0 stars 0 forks source link

screen shot users #417

Closed andrew-delph closed 1 year ago

andrew-delph commented 1 year ago
    Future.delayed(Duration(seconds: 3)).then((value) async {
      ByteBuffer? buffer =
          await localMediaStream()?.getVideoTracks().first.captureFrame();

      if (buffer != null) {
        print("buffer: $buffer");
        var imageBytes = buffer.asUint8List();

        String base64Image = base64.encode(imageBytes);

        print("${base64Image}");
      }
    });