videoUrl property
视频URL地址
此属性已过时,请使用 videoSource 代替。
例如: 使用 VideoSourceFactory.createUrlSource(url) 创建视频源。
为了向后兼容而保留。
Video URL address
This property is deprecated. Please use videoSource instead.
For example: use VideoSourceFactory.createUrlSource(url) to create a video source.
Kept for backward compatibility.
This method will be removed in a future release.
Implementation
@Deprecated('Use videoSource instead.')
String get videoUrl => videoSource?.sourceType == SourceType.url
? (videoSource as UrlVideoSource).url
: '';
Implementation
@Deprecated('Use videoSource instead.')
set videoUrl(String value) {
if (value.isNotEmpty) {
videoSource = VideoSourceFactory.createUrlSource(value);
}
}