ProjectorInfo class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
Properties
- avTransportUrl → String?
-
no setterinherited
-
copyWith
→ $ProjectorInfoCopyWith<
ProjectorInfo> -
Create a copy of ProjectorInfo
with the given fields replaced by the non-null parameter values.
no setterinherited
- friendlyName → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ip → String
-
no setterinherited
- locationXmlUrl → String
-
no setterinherited
- renderingControlUrl → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
castVideo(
{required String videoUrl}) → Future< void> - 投送视频 (SetAVTransportURI + Play)
-
getPositionInfo(
) → Future< (String, String)> - 获取播放进度 (当前时长, 总时长) 格式 HH:MM:SS
-
getPositionInfoSec(
) → Future< (BigInt, BigInt)> - 获取播放进度 (当前秒数, 总秒数)
-
getTransportInfo(
) → Future< TransportState> - 获取传输状态
-
getVolume(
) → Future< int> - 获取当前音量
-
map<
TResult extends Object?> (TResult $default(_ProjectorInfo value)) → TResult -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProjectorInfo value)?) → TResult? -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ProjectorInfo value)?, {required TResult orElse()}) → TResult -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String friendlyName, String ip, String locationXmlUrl, String? avTransportUrl, String? renderingControlUrl)?, {required TResult orElse()}) → TResult -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - 暂停
-
play(
) → Future< void> - 播放
-
seek(
{required String targetTime}) → Future< void> - 进度跳转 - target_time 格式为 HH:MM:SS
-
setMute(
{required bool mute}) → Future< void> - 设置静音状态
-
setVolume(
{required int volume}) → Future< void> - 设置音量 (0-100)
-
stop(
) → Future< void> - 停止
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String friendlyName, String ip, String locationXmlUrl, String? avTransportUrl, String? renderingControlUrl)) → TResult -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String friendlyName, String ip, String locationXmlUrl, String? avTransportUrl, String? renderingControlUrl)?) → TResult? -
Available on ProjectorInfo, provided by the ProjectorInfoPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited