ImageTrackOptions
Image configurations.
class ImageTrackOptions {
const ImageTrackOptions({this.imageUrl, this.fps});
@JsonKey(name: 'imageUrl')
final String? imageUrl;
@JsonKey(name: 'fps')
final int? fps;
factory ImageTrackOptions.fromJson(Map<String, dynamic> json) =>
_$ImageTrackOptionsFromJson(json);
Map<String, dynamic> toJson() => _$ImageTrackOptionsToJson(this);
}
Attributes
- imageUrl
- The image URL. Supported formats of images include JPEG, JPG, PNG and GIF. This method supports adding an image from the local absolute or relative file path.Note: On the Android platform, adding images from
/assets/is not supported. - fps
- The frame rate of the video streams being published. The value range is [1,30]. The default value is 1.