Java Code Examples for com.google.android.exoplayer2.audio.AudioListener#onAudioSessionId()
The following examples show how to use
com.google.android.exoplayer2.audio.AudioListener#onAudioSessionId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleExoPlayer.java From MediaSDK with Apache License 2.0 | 6 votes |
@Override public void onAudioSessionId(int sessionId) { if (audioSessionId == sessionId) { return; } audioSessionId = sessionId; for (AudioListener audioListener : audioListeners) { // Prevent duplicate notification if a listener is both a AudioRendererEventListener and // a AudioListener, as they have the same method signature. if (!audioDebugListeners.contains(audioListener)) { audioListener.onAudioSessionId(sessionId); } } for (AudioRendererEventListener audioDebugListener : audioDebugListeners) { audioDebugListener.onAudioSessionId(sessionId); } }
Example 2
Source File: SimpleExoPlayer.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onAudioSessionId(int sessionId) { if (audioSessionId == sessionId) { return; } audioSessionId = sessionId; for (AudioListener audioListener : audioListeners) { // Prevent duplicate notification if a listener is both a AudioRendererEventListener and // a AudioListener, as they have the same method signature. if (!audioDebugListeners.contains(audioListener)) { audioListener.onAudioSessionId(sessionId); } } for (AudioRendererEventListener audioDebugListener : audioDebugListeners) { audioDebugListener.onAudioSessionId(sessionId); } }
Example 3
Source File: SimpleExoPlayer.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
@Override public void onAudioSessionId(int sessionId) { if (audioSessionId == sessionId) { return; } audioSessionId = sessionId; for (AudioListener audioListener : audioListeners) { // Prevent duplicate notification if a listener is both a AudioRendererEventListener and // a AudioListener, as they have the same method signature. if (!audioDebugListeners.contains(audioListener)) { audioListener.onAudioSessionId(sessionId); } } for (AudioRendererEventListener audioDebugListener : audioDebugListeners) { audioDebugListener.onAudioSessionId(sessionId); } }
Example 4
Source File: SimpleExoPlayer.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void onAudioSessionId(int sessionId) { if (audioSessionId == sessionId) { return; } audioSessionId = sessionId; for (AudioListener audioListener : audioListeners) { // Prevent duplicate notification if a listener is both a AudioRendererEventListener and // a AudioListener, as they have the same method signature. if (!audioDebugListeners.contains(audioListener)) { audioListener.onAudioSessionId(sessionId); } } for (AudioRendererEventListener audioDebugListener : audioDebugListeners) { audioDebugListener.onAudioSessionId(sessionId); } }
Example 5
Source File: SimpleExoPlayer.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void onAudioSessionId(int sessionId) { if (audioSessionId == sessionId) { return; } audioSessionId = sessionId; for (AudioListener audioListener : audioListeners) { // Prevent duplicate notification if a listener is both a AudioRendererEventListener and // a AudioListener, as they have the same method signature. if (!audioDebugListeners.contains(audioListener)) { audioListener.onAudioSessionId(sessionId); } } for (AudioRendererEventListener audioDebugListener : audioDebugListeners) { audioDebugListener.onAudioSessionId(sessionId); } }