Class CustomActivityEffect
Custom activity detection effect for OdinNative.Wrapper.MediaPipeline callbacks.
Observes the isSilent flag emitted by the native pipeline on each audio frame
without modifying the audio data or the silence state itself.
Subscribe to OdinNative.Wrapper.Media.CustomActivityEffect.OnActivityChanged on the returned instance to receive per-frame silence state updates.
Inheritance: System.Object -> OdinNative.Wrapper.Media.PipelineEffect
Implements:
OdinNative.Wrapper.Media.IPipelineEffect, System.IDisposable
Properties
PeerId
Peer id passed through to OdinNative.Wrapper.Media.CustomActivityEffect.OnActivityChanged subscribers.
MediaId
Media stream id passed through to OdinNative.Wrapper.Media.CustomActivityEffect.OnActivityChanged subscribers.
Methods
~CustomActivityEffect()
Dispose()
Frees the native callback handle. Must be called after removing the effect from its pipeline.
Create(MediaPipeline, uint, ulong)
Insert a OdinNative.Wrapper.Media.CustomActivityEffect into the specified pipeline.
Returns
OdinNative.Wrapper.Media.CustomActivityEffect: instance of OdinNative.Wrapper.Media.CustomActivityEffect or null on failure
Parameters
| Type | Name | Description |
|---|---|---|
| OdinNative.Wrapper.MediaPipeline | pipeline | pipeline to insert the effect into |
System.UInt32 | peerId | peer id passed through to OdinNative.Wrapper.Media.CustomActivityEffect.OnActivityChanged |
System.UInt64 | mediaId | media id passed through to OdinNative.Wrapper.Media.CustomActivityEffect.OnActivityChanged |
Events
OnActivityChanged
Raised when the silence state reported by the native pipeline changes. Subscribers must not modify the state. To silence audio use a dedicated mute effect instead.
Event Type
OdinNative.Wrapper.Media.CustomActivityEffect.ActivityChangedDelegate
Implements
- OdinNative.Wrapper.Media.IPipelineEffect
System.IDisposable