blob: 97d31711950e7a2cf8fc3ea591920cb11a033f4c (
plain)
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) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
package org.qtproject.qt.android.multimedia;
import android.media.MediaRecorder;
public class QtMediaRecorderListener implements MediaRecorder.OnErrorListener, MediaRecorder.OnInfoListener
{
private long m_id = -1;
public QtMediaRecorderListener(long id)
{
m_id = id;
}
@Override
public void onError(MediaRecorder mr, int what, int extra)
{
notifyError(m_id, what, extra);
}
@Override
public void onInfo(MediaRecorder mr, int what, int extra)
{
notifyInfo(m_id, what, extra);
}
private static native void notifyError(long id, int what, int extra);
private static native void notifyInfo(long id, int what, int extra);
}
|