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.
Implementation
@Deprecated('Use videoSource or AliPlayerWidgetData.fromUrl() instead.')
String get videoUrl => videoSource?.sourceType == SourceType.url
? (videoSource as UrlVideoSource).url
: '';
- @Deprecated('Use videoSource or AliPlayerWidgetData.fromUrl() instead.')
Implementation
@Deprecated('Use videoSource or AliPlayerWidgetData.fromUrl() instead.')
set videoUrl(String value) {
if (value.isNotEmpty) {
videoSource = VideoSourceFactory.createUrlSource(value);
}
}