forked from CinemaMod/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefAudioHandler.java
More file actions
24 lines (17 loc) · 832 Bytes
/
CefAudioHandler.java
File metadata and controls
24 lines (17 loc) · 832 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
// 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;
/**
* Implement this interface to handle events related to audio playing.
* The methods of this class will be called on the UI thread.
*/
public interface CefAudioHandler {
boolean getAudioParameters(CefBrowser browser, CefAudioParameters params);
void onAudioStreamStarted(CefBrowser browser, CefAudioParameters params, int channels);
void onAudioStreamPacket(CefBrowser browser, float[] data, int frames, long pts);
void onAudioStreamStopped(CefBrowser browser);
void onAudioStreamError(CefBrowser browser, String text);
}