getVideoMidForUser method

String getVideoMidForUser(
  1. int userId
)

Implementation

String getVideoMidForUser(int userId) {
  var videoMid = '';

  subStreams.forEach((mid1, value) {
    if (value == userId) {
      streamTypes.forEach((mid2, type) {
        if (mid1 == mid2 && type == STREAM_KIND_VIDEO) {
          videoMid = mid2;
        }
      });
    }
  });

  return videoMid;
}