Class MediaCollection
Internal collection of available media streams
Implements:
Global.IEqualityComparer<OdinNative.Odin.Media.MediaStream>
Properties
this[long]
Try to get a media stream by ID
Count
Count of streams in the collection
IsReadOnly
Indicates whether elements can be added or removed from the collection
Methods
Add(MediaStream)
Add a stream to the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream | item | stream to add |
Clear()
Free and empty the collection
Contains(long)
Determines whether the stream by id is in the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | handle id of the stream |
Contains(MediaStream)
Determines whether the media is in the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream | item | stream |
CopyTo(MediaStream[], int)
Copies stream of the collection to an array
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream[] | array | target array |
System.Int32 | arrayIndex | array offset |
Equals(MediaStream, MediaStream)
Determines whether the streams are equal
Returns
System.Boolean
: true if equal or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream | x | stream |
OdinNative.Odin.Media.MediaStream | y | stream |
GetEnumerator()
Get enumerator for iteration
Returns
Global.IEnumerator<OdinNative.Odin.Media.MediaStream>
: enumerator### GetHashCode(MediaStream)
Default GetHashCode
Returns
System.Int32
: hash code
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream | obj | stream |
Remove(long)
Remove a stream by handle id from the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | handle id of the stream to remove |
Remove(MediaStream)
Remove a stream from the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Media.MediaStream | item | stream to remove |
Implements
Global.IEqualityComparer<OdinNative.Odin.Media.MediaStream>