Package com.flashphoner.fpwcsapi
Class Flashphoner
java.lang.Object
com.flashphoner.fpwcsapi.Flashphoner
Main class of WCS Android SDK, containing global static initialization and Session creation methods
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoomManager
createRoomManager
(RoomManagerOptions options) Create a new room manager for creating conference and other group communicationsstatic Session
createSession
(SessionOptions options) Create a new session using optionsstatic android.app.Activity
static WCSAudioManager
static org.webrtc.CameraEnumerator
getCameraEnumerator
(android.content.Context context) static MediaConnectionOptions
getLocalMediaAccess
(Constraints constraints, android.content.Context context, org.webrtc.SurfaceViewRenderer renderer) Request access to a local media device using particular constrains and rendererstatic int
Get maximum available volume value from audio managerstatic MediaDeviceList
Get list of available media devices, including built-in microphone, frontal and non-frontal cameragetSession
(String id) Get Session by identifierstatic Collection<Session>
Get current sessions as a collectionstatic int
Get current volume levelstatic void
init
(android.app.Activity activity) Init api using contextstatic boolean
Checks if the camera supports flashlightstatic void
releaseLocalMediaAccess
(MediaConnectionOptions mediaConnectionOptions) Release local media accessstatic void
setVolume
(int volume) Set volume levelstatic boolean
Turn off flashlightstatic boolean
Turn on flashlight
-
Field Details
-
VIDEO_CODEC_VP8
- See Also:
-
VIDEO_CODEC_VP9
- See Also:
-
VIDEO_CODEC_H264
- See Also:
-
eglBaseContext
public static org.webrtc.EglBase.Context eglBaseContext
-
-
Constructor Details
-
Flashphoner
public Flashphoner()
-
-
Method Details
-
init
public static void init(android.app.Activity activity) Init api using context- Parameters:
activity
- Android activity
-
getSessions
Get current sessions as a collection- Returns:
- Collection
-
getSession
Get Session by identifier- Parameters:
id
- Identifier of session- Returns:
- Session found by id, or null if no session found
-
createSession
Create a new session using options- Parameters:
options
- Session options- Returns:
- Session newly created session
-
getLocalMediaAccess
public static MediaConnectionOptions getLocalMediaAccess(Constraints constraints, android.content.Context context, org.webrtc.SurfaceViewRenderer renderer) Request access to a local media device using particular constrains and renderer- Parameters:
constraints
- Constraints (width, height, fps etc)renderer
- Android view renderer. Output from this media device will be displayed on this renderer.
-
releaseLocalMediaAccess
Release local media access -
getMediaDevices
Get list of available media devices, including built-in microphone, frontal and non-frontal camera- Returns:
- MediaDeviceList
-
createRoomManager
Create a new room manager for creating conference and other group communications- Parameters:
options
- Room options- Returns:
- RoomManager
-
setVolume
public static void setVolume(int volume) Set volume level- Parameters:
volume
-
-
getMaxVolume
public static int getMaxVolume()Get maximum available volume value from audio manager- Returns:
- maxVolume
-
getAudioManager
-
getActivity
public static android.app.Activity getActivity() -
getVolume
public static int getVolume()Get current volume level- Returns:
- volume
-
getCameraEnumerator
public static org.webrtc.CameraEnumerator getCameraEnumerator(android.content.Context context) -
turnOnFlashlight
public static boolean turnOnFlashlight()Turn on flashlight -
turnOffFlashlight
public static boolean turnOffFlashlight()Turn off flashlight -
isFlashlightSupport
public static boolean isFlashlightSupport()Checks if the camera supports flashlight- Returns:
- true if camera supports flashlight
-