// 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 interface CefAudioHandler { boolean getAudioParameters(CefBrowser browser, CefAudioParameters params); void onAudioStreamStarted(CefBrowser browser, CefAudioParameters params, int channels); void onAudioStreamPacket(CefBrowser browser, DataPointer data, int frames, long pts); void onAudioStreamStopped(CefBrowser browser); void onAudioStreamError(CefBrowser browser, String text); }