forked from mirrors/linphone-iphone
add rtt java API. No jni yet
This commit is contained in:
parent
303609ab4c
commit
2e331a0ca0
8 changed files with 70 additions and 0 deletions
|
|
@ -359,5 +359,12 @@ public interface LinphoneCall {
|
|||
* @return A player
|
||||
*/
|
||||
public LinphonePlayer getPlayer();
|
||||
|
||||
/**
|
||||
* Create a new chat room for messaging from a call if not already existing, else return existing one
|
||||
* @return LinphoneChatRoom where messaging can take place.
|
||||
*/
|
||||
public LinphoneChatRoom getChatRoom() ;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,4 +158,18 @@ public interface LinphoneCallParams {
|
|||
**/
|
||||
boolean videoMulticastEnabled();
|
||||
|
||||
/**
|
||||
* Use to enable real time text following rfc4103.
|
||||
* If enabled, outgoing calls put a m=text line in SDP offer .
|
||||
* @param yesno if yes, subsequent outgoing calls will propose rtt
|
||||
*
|
||||
**/
|
||||
void enableRealTimeText(boolean yesno);
|
||||
/**
|
||||
* Use to get real time text following rfc4103.
|
||||
* @returns returns true if call rtt is activated.
|
||||
**/
|
||||
boolean realTimeTextEnabled();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,4 +227,12 @@ public interface LinphoneChatMessage {
|
|||
* Set the callbacks associated with the LinphoneChatMessage.
|
||||
*/
|
||||
void setListener(LinphoneChatMessage.LinphoneChatMessageListener listener);
|
||||
/**
|
||||
* Fulfill a chat message char by char. Message linked to a Real Time Text Call send char in realtime following RFC 4103/T.140
|
||||
* To commit a message, use #linphone_chat_room_send_message
|
||||
* @param[in] character T.140 char
|
||||
* @throw LinphoneCoreExeption .
|
||||
*/
|
||||
void putChar(long charater) throws LinphoneCoreException;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,4 +144,19 @@ public interface LinphoneChatRoom {
|
|||
* @param message
|
||||
*/
|
||||
void sendChatMessage(LinphoneChatMessage message);
|
||||
|
||||
/**
|
||||
* get Curent Call associated to this chatroom if any
|
||||
* To commit a message, use #linphone_chat_room_send_message
|
||||
* @returns LinphoneCall or NULL.
|
||||
*/
|
||||
public LinphoneCall getCall();
|
||||
/**
|
||||
* When realtime text is enabled LinphoneCallParams.realTimeTextEnabled, LinphoneCoreListener.isComposingReceived is call every time a char is received from peer.
|
||||
* At the end of remote typing a regular LinphoneChatMessage is received with committed data from LinphoneCoreListener.messageReceived .
|
||||
* @returns RFC 4103/T.140 char
|
||||
*/
|
||||
long getChar();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -254,5 +254,9 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
public LinphonePlayer getPlayer() {
|
||||
return new LinphonePlayerImpl(getPlayer(nativePtr));
|
||||
}
|
||||
@Override
|
||||
public LinphoneChatRoom getChatRoom() {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,4 +171,14 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
|||
public boolean videoMulticastEnabled() {
|
||||
return videoMulticastEnabled(nativePtr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableRealTimeText(boolean yesno) {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean realTimeTextEnabled() {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,4 +154,8 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
|
|||
public void setListener(LinphoneChatMessageListener listener) {
|
||||
setListener(nativePtr, listener);
|
||||
}
|
||||
@Override
|
||||
public void putChar(long charater) throws LinphoneCoreException {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,4 +174,12 @@ class LinphoneChatRoomImpl implements LinphoneChatRoom {
|
|||
public void sendChatMessage(LinphoneChatMessage message) {
|
||||
sendChatMessage(nativePtr, message, ((LinphoneChatMessageImpl)message).getNativePtr());
|
||||
}
|
||||
@Override
|
||||
public LinphoneCall getCall() {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
@Override
|
||||
public long getChar() {
|
||||
throw new RuntimeException("java binding not implemented yet");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue