-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add conferences to native java bindings.
- Loading branch information
Showing
176 changed files
with
6,901 additions
and
1,635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ exclude: | |
- "gradlew" | ||
- "**/*.cpp" | ||
- "**/*.h" | ||
- "**/*Jni.java" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 11 additions & 25 deletions
36
lib/src/commonMain/kotlin/im/tox/tox4j/av/enums/ToxavCallControl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,36 @@ | ||
package im.tox.tox4j.av.enums | ||
|
||
/** | ||
* Call control. | ||
*/ | ||
/** Call control. */ | ||
enum class ToxavCallControl { | ||
/** | ||
* Resume a previously paused call. Only valid if the pause was caused by this | ||
* client, if not, this control is ignored. Not valid before the call is | ||
* accepted. | ||
* Resume a previously paused call. Only valid if the pause was caused by this client, if not, | ||
* this control is ignored. Not valid before the call is accepted. | ||
*/ | ||
RESUME, | ||
|
||
/** | ||
* Put a call on hold. Not valid before the call is accepted. | ||
*/ | ||
/** Put a call on hold. Not valid before the call is accepted. */ | ||
PAUSE, | ||
|
||
/** | ||
* Reject a call if it was not answered, yet. Cancel a call after it was | ||
* answered. | ||
*/ | ||
/** Reject a call if it was not answered, yet. Cancel a call after it was answered. */ | ||
CANCEL, | ||
|
||
/** | ||
* Request that the friend stops sending audio. Regardless of the friend's | ||
* compliance, this will cause the {@link | ||
* im.tox.tox4j.av.callbacks.AudioReceiveFrameCallback} event to stop being | ||
* Request that the friend stops sending audio. Regardless of the friend's compliance, this will | ||
* cause the {@link im.tox.tox4j.av.callbacks.AudioReceiveFrameCallback} event to stop being | ||
* triggered on receiving an audio frame from the friend. | ||
*/ | ||
MUTE_AUDIO, | ||
|
||
/** | ||
* Calling this control will notify client to start sending audio again. | ||
*/ | ||
/** Calling this control will notify client to start sending audio again. */ | ||
UNMUTE_AUDIO, | ||
|
||
/** | ||
* Request that the friend stops sending video. Regardless of the friend's | ||
* compliance, this will cause the {@link | ||
* im.tox.tox4j.av.callbacks.VideoReceiveFrameCallback} event to stop being | ||
* Request that the friend stops sending video. Regardless of the friend's compliance, this will | ||
* cause the {@link im.tox.tox4j.av.callbacks.VideoReceiveFrameCallback} event to stop being | ||
* triggered on receiving an video frame from the friend. | ||
*/ | ||
HIDE_VIDEO, | ||
|
||
/** | ||
* Calling this control will notify client to start sending video again. | ||
*/ | ||
/** Calling this control will notify client to start sending video again. */ | ||
SHOW_VIDEO, | ||
} |
33 changes: 11 additions & 22 deletions
33
lib/src/commonMain/kotlin/im/tox/tox4j/av/enums/ToxavFriendCallState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,30 @@ | ||
package im.tox.tox4j.av.enums | ||
|
||
/** | ||
* Call state graph. | ||
*/ | ||
/** Call state graph. */ | ||
enum class ToxavFriendCallState { | ||
/** | ||
* Set by the AV core if an error occurred on the remote end or if friend | ||
* timed out. This is the final state after which no more state | ||
* transitions can occur for the call. This call state will never be triggered | ||
* in combination with other call states. | ||
* Set by the AV core if an error occurred on the remote end or if friend timed out. This is the | ||
* final state after which no more state transitions can occur for the call. This call state | ||
* will never be triggered in combination with other call states. | ||
*/ | ||
ERROR, | ||
|
||
/** | ||
* The call has finished. This is the final state after which no more state | ||
* transitions can occur for the call. This call state will never be | ||
* triggered in combination with other call states. | ||
* The call has finished. This is the final state after which no more state transitions can | ||
* occur for the call. This call state will never be triggered in combination with other call | ||
* states. | ||
*/ | ||
FINISHED, | ||
|
||
/** | ||
* The flag that marks that friend is sending audio. | ||
*/ | ||
/** The flag that marks that friend is sending audio. */ | ||
SENDING_A, | ||
|
||
/** | ||
* The flag that marks that friend is sending video. | ||
*/ | ||
/** The flag that marks that friend is sending video. */ | ||
SENDING_V, | ||
|
||
/** | ||
* The flag that marks that friend is receiving audio. | ||
*/ | ||
/** The flag that marks that friend is receiving audio. */ | ||
ACCEPTING_A, | ||
|
||
/** | ||
* The flag that marks that friend is receiving video. | ||
*/ | ||
/** The flag that marks that friend is receiving video. */ | ||
ACCEPTING_V, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.