OdinPeer.AddMediaComponent
public OdinMedia AddMediaComponent(GameObject containerObject, ushort mediaId, bool enable = true)
public OdinMedia AddMediaComponent(GameObject containerObject, ushort mediaId, uint samplerate, bool stereo, bool enable = true)
Create a Unity component
Parameters#
Name | Type | Description |
---|
containerObject | GameObject | gameobject where the component will be added |
mediaId | UInt16 | id of |
enable | Boolean | flag if the new component is enabled |
samplerate | UInt32 | decoder samplerate |
stereo | Boolean | decoder channel flag |
Returns#
Variants#
public OdinMedia AddMediaComponent(GameObject containerObject, ushort mediaId, bool enable = true)
Create a Unity component
Parameters#
Name | Type | Description |
---|
containerObject | GameObject | gameobject where the component will be added |
mediaId | UInt16 | id of |
enable | Boolean | flag if the new component is enabled |
Returns#
public OdinMedia AddMediaComponent(GameObject containerObject, ushort mediaId, uint samplerate, bool stereo, bool enable = true)
Create a Unity component
Parameters#
Name | Type | Description |
---|
containerObject | GameObject | gameobject where the component will be added |
mediaId | UInt16 | id of |
samplerate | UInt32 | decoder samplerate |
stereo | Boolean | decoder channel flag |
enable | Boolean | flag if the new component is enabled |
Returns#