pub enum BrowseControllerRequest {
GetMediaPlayerItems {
start_index: u32,
end_index: u32,
responder: BrowseControllerGetMediaPlayerItemsResponder,
},
GetNowPlayingItems {
start_index: u32,
end_index: u32,
attribute_option: AttributeRequestOption,
responder: BrowseControllerGetNowPlayingItemsResponder,
},
GetFileSystemItems {
start_index: u32,
end_index: u32,
attribute_option: AttributeRequestOption,
responder: BrowseControllerGetFileSystemItemsResponder,
},
ChangePath {
path: Path,
responder: BrowseControllerChangePathResponder,
},
PlayFileSystemItem {
uid: u64,
responder: BrowseControllerPlayFileSystemItemResponder,
},
PlayNowPlayingItem {
uid: u64,
responder: BrowseControllerPlayNowPlayingItemResponder,
},
SetBrowsedPlayer {
player_id: u16,
responder: BrowseControllerSetBrowsedPlayerResponder,
},
}Expand description
Client wrapper for local controller (CT) -> remote target (TG) AVCTP connections between devices for browse related commands.
NOTE: a client is high level construct and does not represent a connection with a device. Connections are internally managed and may be shared by multiple clients. The actual connection may be opened on-demand after any command here is called.
Variants§
GetMediaPlayerItems
Used for GetFolderItems(MediaPlayerList). Gets the list of media players. End index is inclusive.
GetNowPlayingItems
Used for GetFolderItems(NowPlayingList). Gets the list of items from the now playing list aka the queue of the addressed media player.
- request
end_indexis inclusive.
Fields
attribute_option: AttributeRequestOptionresponder: BrowseControllerGetNowPlayingItemsResponderGetFileSystemItems
Used for GetFolderItems(MediaPlayerVirtualFilesystem). Gets the list of folder item/media element item.
- request
end_indexis inclusive.
Fields
attribute_option: AttributeRequestOptionresponder: BrowseControllerGetFileSystemItemsResponderChangePath
Used for ChangePath browse command.
- request
pathdictates whether or not the direction will be Move Up or Move down. Ifpath.parentis set, direction will be Move Up. Ifpath.child_folder_uidis set, direction will be Move Down.
PlayFileSystemItem
Used for PlayItem(FileSystem).
PlayNowPlayingItem
Used for PlayItem(NowPlayingList). Plays the specified item from the now playing list aka the queue of the addressed media player.
SetBrowsedPlayer
Changes the addressed player_id on the target when multiple are supported.
Implementations§
Source§impl BrowseControllerRequest
impl BrowseControllerRequest
pub fn into_get_media_player_items( self, ) -> Option<(u32, u32, BrowseControllerGetMediaPlayerItemsResponder)>
pub fn into_get_now_playing_items( self, ) -> Option<(u32, u32, AttributeRequestOption, BrowseControllerGetNowPlayingItemsResponder)>
pub fn into_get_file_system_items( self, ) -> Option<(u32, u32, AttributeRequestOption, BrowseControllerGetFileSystemItemsResponder)>
pub fn into_change_path( self, ) -> Option<(Path, BrowseControllerChangePathResponder)>
pub fn into_play_file_system_item( self, ) -> Option<(u64, BrowseControllerPlayFileSystemItemResponder)>
pub fn into_play_now_playing_item( self, ) -> Option<(u64, BrowseControllerPlayNowPlayingItemResponder)>
pub fn into_set_browsed_player( self, ) -> Option<(u16, BrowseControllerSetBrowsedPlayerResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL