Clapper.StreamList¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/en  | 
|||
r/en  | 
|||
r/en  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Clapper.StreamList(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A list of media streams.
- get_current_index()¶
 - Returns:
 Current stream index or [const`Clapper`.STREAM_LIST_INVALID_POSITION] when nothing is selected.
- Return type:
 
Get index of the currently selected
Clapper.Stream.
- get_current_stream()¶
 - Returns:
 The current
Clapper.Stream.- Return type:
 
Get the currently selected
Clapper.Stream.
- get_n_streams()¶
 - Returns:
 The number of streams in
Clapper.StreamList.- Return type:
 
Get the number of streams in
Clapper.StreamList.This behaves the same as [method`Gio`.ListModel.get_n_items], and is here for code uniformity and convenience to avoid type casting by user.
- get_stream(index)¶
 - Parameters:
 index (
int) – a stream index- Returns:
 The
Clapper.Streamat index.- Return type:
 
Get the
Clapper.Streamat index.This behaves the same as [method`Gio`.ListModel.get_item], and is here for code uniformity and convenience to avoid type casting by user.
- select_index(index)¶
 - Parameters:
 index (
int) – a stream index- Returns:
 - Return type:
 
Selects
Clapper.Streamat index from self as current one.
- select_stream(stream)¶
 - Parameters:
 stream (
Clapper.Stream) – aClapper.Stream- Returns:
 - Return type:
 
Selects
Clapper.Streamfrom self to be activated.
Property Details¶
- Clapper.StreamList.props.current_index¶
 - Name:
 current-index- Type:
 - Default Value:
 4294967295- Flags:
 
Index of currently selected stream.
- Clapper.StreamList.props.current_stream¶
 - Name:
 current-stream- Type:
 - Default Value:
 - Flags:
 
Currently selected stream.
- Clapper.StreamList.props.n_streams¶
 - Name:
 n-streams- Type:
 - Default Value:
 0- Flags:
 
Number of streams in the list.