Click or drag to resize

AudioStreamPlayback Class

Can play audio from an audio file.
Inheritance Hierarchy
SystemObject
  DisposableClass
    AbstractMediaSenderAudioData, AudioFormat
      AudioSender
        Ozeki.MediaMediaStreamSender
          Ozeki.MediaTimerBasedMediaStreamHandler
            Ozeki.MediaAudioStreamPlayback
              Ozeki.MediaMP3StreamPlayback
              Ozeki.MediaOGGStreamPlayback
              Ozeki.MediaRawStreamPlayback
              Ozeki.MediaWaveStreamPlayback

Namespace:  Ozeki.Media
Assembly:  OzekiSDK (in OzekiSDK.dll) Version: 10.3.183.0
Syntax
public abstract class AudioStreamPlayback : TimerBasedMediaStreamHandler

The AudioStreamPlayback type exposes the following members.

Constructors
  NameDescription
Protected methodAudioStreamPlayback
Initializes a new instance of the AudioStreamPlayback class
Protected methodAudioStreamPlayback(Stream)
Initializes a new instance of the AudioStreamPlayback class with default packetization time (20ms). The audio stream will not be cached and will be played only once.
Protected methodAudioStreamPlayback(String)
Initializes a new instance of the AudioStreamPlayback class with default packetization time (20ms). The audio stream will not be cached and will be played only once.
Protected methodAudioStreamPlayback(WaveFormat, UInt32)
Initializes a new instance of the AudioStreamPlayback class.
Protected methodAudioStreamPlayback(Stream, Boolean, Boolean)
Initializes a new instance of the AudioStreamPlayback class with default packetization time (20ms).
Protected methodAudioStreamPlayback(String, Boolean, Boolean)
Initializes a new instance of the AudioStreamPlayback class with default packetization time (20ms)
Protected methodAudioStreamPlayback(Stream, Boolean, Boolean, UInt32)
Initializes a new instance of the AudioStreamPlayback class.
Protected methodAudioStreamPlayback(String, Boolean, Boolean, UInt32)
Initializes a new instance of the AudioStreamPlayback class
Top
Properties
  NameDescription
Public propertyCached
Gets a boolean value indicating whether the playback stream is cached in the memory.
Public propertyID (Inherited from DisposableClass.)
Protected propertyInterval
Gets the time between the send events (in milliseconds).
(Inherited from TimerBasedMediaStreamHandler.)
Public propertyIsStreaming
Gets or sets a value that is true if the wave is streaming, otherwise false.
(Inherited from MediaStreamSender.)
Public propertyLoop
A boolean value indicating whether the playback is repeated infinetly.
Protected propertyMediaFormat
Public propertyOutputFormat (Inherited from MediaStreamSender.)
Protected propertyPosition
Gets or sets the current position in the audio stream
(Inherited from MediaStreamSender.)
Public propertyStream
Gets the stream
(Inherited from MediaStreamSender.)
Top
Methods
  NameDescription
Public methodDispose (Inherited from DisposableClass.)
Protected methodDispose(Boolean)
Disposes the object.
(Inherited from TimerBasedMediaStreamHandler.)
Protected methodFinalize (Inherited from DisposableClass.)
Protected methodGetAudioData
Public methodGetAudioFormat (Inherited from MediaStreamSender.)
Protected methodLoadReader
Initializes the file reader which will read the content of the stream. (This method will be invoked in the LoadStream(Stream) method.)
Public methodLoadStream
Public methodPause
Pauses the streaming. (If the streaming is already paused then does nothing.)
(Inherited from MediaStreamSender.)
Protected methodReceiverConnected (Inherited from AudioSender.)
Protected methodReceiverDisconnected (Inherited from AudioSender.)
Protected methodSendMediaData (Inherited from AbstractMediaSenderAudioData, AudioFormat.)
Protected methodSetPlaybackWaveStream
Changes the playback stream to the given stream.
Public methodSetPreferredSendFormats (Inherited from AbstractMediaSenderAudioData, AudioFormat.)
Public methodStart
Starts the stream given in the Stream property. (If the stream is already started then does nothing.)
(Inherited from TimerBasedMediaStreamHandler.)
Public methodStop
Stops the streaming.
(Inherited from TimerBasedMediaStreamHandler.)
Protected methodTimerTick
This will be called when the built-in timer ticks.
(Overrides TimerBasedMediaStreamHandlerTimerTick(UInt32).)
Top
Events
  NameDescription
Public eventMediaDataSent (Inherited from AbstractMediaSenderAudioData, AudioFormat.)
Public eventStopped
Occurs when the audio recording or playing has been stopped
(Inherited from MediaStreamSender.)
Top
Fields
  NameDescription
Protected fieldbuffer
Protected fieldSync (Inherited from MediaStreamSender.)
Top
See Also