java.lang.Object
com.smartdevicelink.managers.BaseSubManager
com.smartdevicelink.managers.audio.BaseAudioStreamManager
From Class | Fields |
---|---|
com.smartdevicelink.managers.BaseSubManager | SETTING_UP, READY, LIMITED, SHUTDOWN, ERROR, internalInterface |
Creates a new object of AudioStreamManager
public AudioStreamManager(ISdl internalInterface,Context context)
public void start(CompletionListener listener)
public void dispose()
Starts the audio service and audio stream to the connected device. The method is non-blocking.
public void startAudioStream(boolean encrypted,CompletionListener completionListener)
Stops the audio service and audio stream to the connected device. The method is non-blocking.
public void stopAudioStream(CompletionListener completionListener)
Pushes the specified resource file to the playback queue. The audio file will be played immediately. If another audio file is currently playing the specified file will stay queued and automatically played when ready.
public void pushResource(int resourceId,CompletionListener completionListener)
Pushes the specified audio file to the playback queue. The audio file will be played immediately. If another audio file is currently playing the specified file will stay queued and automatically played when ready.
public void pushAudioSource(Uri audioSource,CompletionListener completionListener)
Pushes raw audio data to SDL Core. The audio file will be played immediately. If another audio file is currently playing, the specified file will stay queued and automatically played when ready.
public void pushBuffer(ByteBuffer data,CompletionListener completionListener)
protected void onTransportUpdate(java.util.List<com.smartdevicelink.transport.utl.TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)
protected com.smartdevicelink.streaming.audio.IAudioStreamListener startAudioStream(SdlSession session)
protected boolean stopAudioStream()
From Class | Methods |
---|---|
com.smartdevicelink.managers.BaseSubManager | start, dispose, transitionToState, getState, handleTransportUpdated, onTransportUpdate |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |