webphone
Class SIPNotification.Video

java.lang.Object
  extended by webphone.SIPNotification
      extended by webphone.SIPNotification.Video
Enclosing class:
SIPNotification

public static class SIPNotification.Video
extends SIPNotification

VIDEO notification.
Triggered by: video start/stop events
Event: SIPNotificationListener.onVideo
Fields: VIDEO,startstop,type,line,reason,ip,port,codec,payload,quality,bw,max_bw,fps,max_fps,width,height,profilelevelid,profile,pixelfmt,level,pm,sprop,srtp_alg,srtp_key,srtp_remotekey,device,fmtp


Field Summary
static intTYPE_CACHE
          cache (ignore)
static intTYPE_PLAY
          player
static intTYPE_PREVIEW_DIRECT
          local preview before call
static intTYPE_PREVIEW_STREAM
          local display in call
static intTYPE_REC
          webcam recorder
static intTYPE_SCREEN
          screen recorder
static intTYPE_UNKNOWN
          undefined
static intVIDEO_START
          when player/recorder starts
static intVIDEO_STOP
          player/recorder stops
static intVIDEO_UNKNOWN
          unrecognizable start-stop
 
Method Summary
 intgetBw()
          bw: suggested max bandwidth in kbit/s.
 java.lang.StringgetCodec()
          codec: video codec.
 java.lang.StringgetDevice()
          device: device name to use.
 java.lang.StringgetFmtp()
          fmtp: the full fmpt SDP line for the negotiated codec
 intgetFps()
          fps: suggested frame per second.
 intgetHeight()
          height: video scale height.
 java.lang.StringgetIp()
          ip: the remote or local video RTP stream IP address, depending on the context
 java.lang.StringgetLevel()
          level: suggested H.264 level.
 intgetLine()
          line: endpoint line (channel) number
 intgetMaxBw()
          max_bw: max bandwidth to use in kbit/s.
 intgetMaxFps()
          max_fps: max fps allowed.
 intgetPayload()
          payload: codec payload number.
 java.lang.StringgetPixelfmt()
          pixelfmt: suggested H.264 pixel format.
 java.lang.StringgetPm()
          pm: packetization mode.
 intgetPort()
          port: the remote or local video RTP stream port number, depending on the context
 java.lang.StringgetProfile()
          profile: suggested H.264 profile (baseline/main/high).
 intgetProfilelevelid()
          profilelevelid: the negotiated H.264 profile-level-id.
 intgetQuality()
          quality: suggested quality (values same as for the”video_quality” parameter).
 java.lang.StringgetReason()
          reason: a string about the video start/stop reason.
 java.lang.StringgetSprop()
          sprop: sprop-parameter-sets if any.
 java.lang.StringgetSrtpAlg()
          srtp_alg: SRTP crypto suite.
 java.lang.StringgetSrtpKey()
          srtp_key: SRTP local key (which was sent to peer).
 java.lang.StringgetSrtpRemoteKey()
          srtp_remotekey: SRTP remote key (which was received from peer).
 intgetStartOrStop()
          startstop (VIDEO_...
 java.lang.StringgetStartOrStopText()
          startstop as stromg
 intgetType()
          type (TYPE_...
 java.lang.StringgetTypeText()
          type as string
 intgetWidth()
          width: video scale width.
 
Methods inherited from class webphone.SIPNotification
getNotificationType, toString
  

Field Detail

VIDEO_UNKNOWN

public static final int VIDEO_UNKNOWN
unrecognizable start-stop

See Also:
Constant Field Values

VIDEO_START

public static final int VIDEO_START
when player/recorder starts

See Also:
Constant Field Values

VIDEO_STOP

public static final int VIDEO_STOP
player/recorder stops

See Also:
Constant Field Values

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
undefined

See Also:
Constant Field Values

TYPE_CACHE

public static final int TYPE_CACHE
cache (ignore)

See Also:
Constant Field Values

TYPE_PLAY

public static final int TYPE_PLAY
player

See Also:
Constant Field Values

TYPE_REC

public static final int TYPE_REC
webcam recorder

See Also:
Constant Field Values

TYPE_SCREEN

public static final int TYPE_SCREEN
screen recorder

See Also:
Constant Field Values

TYPE_PREVIEW_DIRECT

public static final int TYPE_PREVIEW_DIRECT
local preview before call

See Also:
Constant Field Values

TYPE_PREVIEW_STREAM

public static final int TYPE_PREVIEW_STREAM
local display in call

See Also:
Constant Field Values
 
Method Detail

getStartOrStop

public int getStartOrStop()
startstop (VIDEO_... constant)


getStartOrStopText

public java.lang.String getStartOrStopText()
startstop as stromg


getType

public int getType()
type (TYPE_... constant)


getTypeText

public java.lang.String getTypeText()
type as string


getLine

public int getLine()
line: endpoint line (channel) number


getReason

public java.lang.String getReason()
reason: a string about the video start/stop reason. Example: disconnect


getIp

public java.lang.String getIp()
ip: the remote or local video RTP stream IP address, depending on the context


getPort

public int getPort()
port: the remote or local video RTP stream port number, depending on the context


getCodec

public java.lang.String getCodec()
codec: video codec. Example: h264


getPayload

public int getPayload()
payload: codec payload number. Example: 123


getQuality

public int getQuality()
quality: suggested quality (values same as for the”video_quality” parameter). Example: 8


getBw

public int getBw()
bw: suggested max bandwidth in kbit/s. Example: 1000


getMaxBw

public int getMaxBw()
max_bw: max bandwidth to use in kbit/s. Example: 3000


getFps

public int getFps()
fps: suggested frame per second. Example: 24


getMaxFps

public int getMaxFps()
max_fps: max fps allowed. Example: 30


getWidth

public int getWidth()
width: video scale width. Example: 1280


getHeight

public int getHeight()
height: video scale height. Example: 720


getProfilelevelid

public int getProfilelevelid()
profilelevelid: the negotiated H.264 profile-level-id. Example: 42e015


getProfile

public java.lang.String getProfile()
profile: suggested H.264 profile (baseline/main/high). Example: baseline


getPixelfmt

public java.lang.String getPixelfmt()
pixelfmt: suggested H.264 pixel format. Example: yuv420p


getLevel

public java.lang.String getLevel()
level: suggested H.264 level. Example: 4.2


getPm

public java.lang.String getPm()
pm: packetization mode. Example: 1


getSprop

public java.lang.String getSprop()
sprop: sprop-parameter-sets if any. Example: Z0LACqaBQfsBEAAAAwAQAAADAkjxImo=,aM48gA==


getSrtpAlg

public java.lang.String getSrtpAlg()
srtp_alg: SRTP crypto suite. Example: AES_CM_128_HMAC_SHA1_80


getSrtpKey

public java.lang.String getSrtpKey()
srtp_key: SRTP local key (which was sent to peer). Example: inline:o4vjJ1k8EpU0qkUGunhL9wq9EH4YSlkg263KMIaU


getSrtpRemoteKey

public java.lang.String getSrtpRemoteKey()
srtp_remotekey: SRTP remote key (which was received from peer). Example: inline:o4vjJ1k8EpU0qkUGunhL9wq9EH4YSlkg263KMIaU


getDevice

public java.lang.String getDevice()
device: device name to use. Example: Internal Webcam


getFmtp

public java.lang.String getFmtp()
fmtp: the full fmpt SDP line for the negotiated codec