mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Add a window ID parameter to LinphoneCore.createFilePlayer()
This commit is contained in:
parent
6e9bfc276b
commit
182d7989d8
2 changed files with 7 additions and 6 deletions
|
|
@ -1786,7 +1786,7 @@ public interface LinphoneCore {
|
|||
* Create a media player
|
||||
* @return An object that implement LinphonePlayer
|
||||
*/
|
||||
public LinphonePlayer createPlayer();
|
||||
public LinphonePlayer createPlayer(AndroidVideoWindowImpl window);
|
||||
|
||||
/**
|
||||
* Destroy a player
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import java.io.IOException;
|
|||
|
||||
import org.linphone.core.LinphoneCall.State;
|
||||
import org.linphone.mediastream.Log;
|
||||
import org.linphone.mediastream.video.AndroidVideoWindowImpl;
|
||||
import org.linphone.mediastream.video.capture.hwconf.Hacks;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
@ -1279,12 +1280,12 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
return getFileTransferServer(nativePtr);
|
||||
}
|
||||
|
||||
private native long createPlayer(long nativePtr);
|
||||
private native long createPlayer(long nativePtr, AndroidVideoWindowImpl window);
|
||||
@Override
|
||||
public synchronized LinphonePlayer createPlayer() {
|
||||
long player = createPlayer(nativePtr);
|
||||
if(player != 0) {
|
||||
return new LinphonePlayerImpl(createPlayer(nativePtr));
|
||||
public synchronized LinphonePlayer createPlayer(AndroidVideoWindowImpl window) {
|
||||
long playerPtr = createPlayer(nativePtr, window);
|
||||
if(playerPtr != 0) {
|
||||
return new LinphonePlayerImpl(playerPtr);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue