VideoSettings.fromMap constructor

VideoSettings.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory VideoSettings.fromMap(Map<String, dynamic> map) {
  return VideoSettings(
    width: map['width'] as int,
    height: map['height'] as int,
    bitrate: map['bitrate'] as int,
    frameInterval: map['frameInterval'] as int,
    profileLevel: ProfileLevel.values.byName(map['profileLevel'] as String),
  );
}