forked from CinemaMod/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefAudioHandlerAdapter.java
More file actions
31 lines (24 loc) · 980 Bytes
/
CefAudioHandlerAdapter.java
File metadata and controls
31 lines (24 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.handler;
import org.cef.browser.CefBrowser;
import org.cef.misc.CefAudioParameters;
import org.cef.misc.DataPointer;
/**
* Implement this interface to handle events related to audio playing.
* The methods of this class will be called on the UI thread.
*/
public abstract class CefAudioHandlerAdapter implements CefAudioHandler {
public boolean getAudioParameters(CefBrowser browser, CefAudioParameters params) {
return false;
}
public void onAudioStreamStarted(CefBrowser browser, CefAudioParameters params, int channels) {
}
public void onAudioStreamPacket(CefBrowser browser, DataPointer data, int frames, long pts) {
}
public void onAudioStreamStopped(CefBrowser browser) {
}
public void onAudioStreamError(CefBrowser browser, String text) {
}
}