Class Flashphoner

java.lang.Object
com.flashphoner.fpwcsapi.Flashphoner

public class Flashphoner extends Object
Main class of WCS Android SDK, containing global static initialization and Session creation methods
  • Field Details

  • 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

      public static Collection<Session> getSessions()
      Get current sessions as a collection
      Returns:
      Collection
    • getSession

      public Session getSession(String id)
      Get Session by identifier
      Parameters:
      id - Identifier of session
      Returns:
      Session found by id, or null if no session found
    • createSession

      public static Session createSession(SessionOptions options)
      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

      public static void releaseLocalMediaAccess(MediaConnectionOptions mediaConnectionOptions)
      Release local media access
    • getMediaDevices

      public static MediaDeviceList getMediaDevices()
      Get list of available media devices, including built-in microphone, frontal and non-frontal camera
      Returns:
      MediaDeviceList
    • createRoomManager

      public static RoomManager createRoomManager(RoomManagerOptions options)
      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

      public static WCSAudioManager 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