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


Nested Class Summary
 
Nested classes/interfaces inherited from class webphone.SIPNotification
SIPNotification.Account, SIPNotification.AI, SIPNotification.Answer, SIPNotification.APIResult, SIPNotification.BLF, SIPNotification.Block, SIPNotification.CDR, SIPNotification.Chat, SIPNotification.ChatComposing, SIPNotification.ChatReport, SIPNotification.Credit, SIPNotification.DTMF, SIPNotification.Event, SIPNotification.Group, SIPNotification.INFO, SIPNotification.LicKey, SIPNotification.Line, SIPNotification.Log, SIPNotification.Media, SIPNotification.MWI, SIPNotification.NewContact, SIPNotification.PlayReady, SIPNotification.Popup, SIPNotification.Presence, SIPNotification.Rating, SIPNotification.Register, SIPNotification.RTPE, SIPNotification.RTPStat, SIPNotification.RTPT, SIPNotification.ServerContacts, SIPNotification.ShouldReset, SIPNotification.SIP, SIPNotification.SRS, SIPNotification.Start, SIPNotification.Status, SIPNotification.Stop, SIPNotification.USSD, SIPNotification.VAD, SIPNotification.Video, SIPNotification.Vrec
 
Field Summary
static int TYPE_CACHE
          cache (ignore)
static int TYPE_PLAY
          player
static int TYPE_PREVIEW_DIRECT
          local preview before call
static int TYPE_PREVIEW_STREAM
          local display in call
static int TYPE_REC
          webcam recorder
static int TYPE_SCREEN
          screen recorder
static int TYPE_UNKNOWN
          undefined
static int VIDEO_START
          when player/recorder starts
static int VIDEO_STOP
          player/recorder stops
static int VIDEO_UNKNOWN
          unrecognizable start-stop
 
Fields inherited from class webphone.SIPNotification
NOTIFICATION_ACCOUNT, NOTIFICATION_AI, NOTIFICATION_ALL, NOTIFICATION_ANSWER, NOTIFICATION_APIRESULT, NOTIFICATION_BLF, NOTIFICATION_BLOCK, NOTIFICATION_CDR, NOTIFICATION_CHAT, NOTIFICATION_CHATCOMPOSING, NOTIFICATION_CHATREPORT, NOTIFICATION_CREDIT, NOTIFICATION_DTMF, NOTIFICATION_EVENT, NOTIFICATION_GROUP, NOTIFICATION_INFO, NOTIFICATION_INVALID, NOTIFICATION_LICKEY, NOTIFICATION_LINE, NOTIFICATION_LOG, NOTIFICATION_MEDIA, NOTIFICATION_MWI, NOTIFICATION_NEWUSER, NOTIFICATION_PLAYREADY, NOTIFICATION_POPUP, NOTIFICATION_PRESENCE, NOTIFICATION_RATING, NOTIFICATION_REGISTER, NOTIFICATION_RTPE, NOTIFICATION_RTPSTAT, NOTIFICATION_RTPT, NOTIFICATION_SERVERCONTACTS, NOTIFICATION_SHOULDRESET, NOTIFICATION_SIP, NOTIFICATION_SRS, NOTIFICATION_START, NOTIFICATION_STATUS, NOTIFICATION_STOP, NOTIFICATION_USSD, NOTIFICATION_VAD, NOTIFICATION_VIDEO, NOTIFICATION_VREC
 
Method Summary
 int getBw()
          bw: suggested max bandwidth in kbit/s.
 java.lang.String getCodec()
          codec: video codec.
 java.lang.String getDevice()
          device: device name to use.
 java.lang.String getFmtp()
          fmtp: the full fmpt SDP line for the negotiated codec
 int getFps()
          fps: suggested frame per second.
 int getHeight()
          height: video scale height.
 java.lang.String getIp()
          ip: the remote or local video RTP stream IP address, depending on the context
 java.lang.String getLevel()
          level: suggested H.264 level.
 int getLine()
          line: endpoint line (channel) number
 int getMaxBw()
          max_bw: max bandwidth to use in kbit/s.
 int getMaxFps()
          max_fps: max fps allowed.
 int getPayload()
          payload: codec payload number.
 java.lang.String getPixelfmt()
          pixelfmt: suggested H.264 pixel format.
 java.lang.String getPm()
          pm: packetization mode.
 int getPort()
          port: the remote or local video RTP stream port number, depending on the context
 java.lang.String getProfile()
          profile: suggested H.264 profile (baseline/main/high).
 int getProfilelevelid()
          profilelevelid: the negotiated H.264 profile-level-id.
 int getQuality()
          quality: suggested quality (values same as for the”video_quality” parameter).
 java.lang.String getReason()
          reason: a string about the video start/stop reason.
 java.lang.String getSprop()
          sprop: sprop-parameter-sets if any.
 java.lang.String getSrtpAlg()
          srtp_alg: SRTP crypto suite.
 java.lang.String getSrtpKey()
          srtp_key: SRTP local key (which was sent to peer).
 java.lang.String getSrtpRemoteKey()
          srtp_remotekey: SRTP remote key (which was received from peer).
 int getStartOrStop()
          startstop (VIDEO_...
 java.lang.String getStartOrStopText()
          startstop as stromg
 int getType()
          type (TYPE_...
 java.lang.String getTypeText()
          type as string
 int getWidth()
          width: video scale width.
 
Methods inherited from class webphone.SIPNotification
getNotificationType, getNotificationTypeText, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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