#1263 closed task (fixed)
Video API for PJSUA-LIB
Reported by: | bennylp | Owned by: | nanang |
---|---|---|---|
Priority: | major | Milestone: | release-2.0-alpha |
Component: | pjsua-lib | Version: | 2.0-dev-branch |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description (last modified by bennylp)
PJSUA-LIB video API specification:
1. Video Device Enumeration API
Specifications:
- query device count
- query device names
- hotswap support?
2. Video Call API
Specifications:
- enable or disable video when initiating call
- enable or disable video when receiving call
- choose which device to use for video call
- add and remove video media stream during the call
- change which device to use during the call
- hide remote video window
- move and/or resize video window
Notes:
Q: when receiving incoming call or reinvite which adds video, how can the app confirm this to the user?
A: at the moment, incoming video will be accepted automatically, but the app may simply hide the window until it gets user confirmation, if needed.
Q: when receiving incoming call or reinvite with video, should we start sending automatically?
A: at the moment the answer tends to be no, as sending video is an operation that can be initiated independently.
3. Video Capture Preview API
Specifications:
- start and stop preview for the specified camera device, independent of calls
- preview more than one capture devices independently
- move and/or resize preview window
4. Media Info and Statistic API
The new API can be used for both audio and video.
Specifications:
- query the number of media streams in a call
- query the media stream info
- query the media stream statistic
- query the media transport info/statistic
- move pjsua function that dumps call statistic (i.e. "dq" command) to a separate size, to reduce footprint for apps that don't use it.
5. Notification API
Nothing special for video. Update in media status is reported in on_media_state() callback as usual. Application may use media status API to query about video status.
Change History (18)
comment:1 Changed 14 years ago by bennylp
- Priority changed from normal to major
comment:2 Changed 13 years ago by bennylp
- Description modified (diff)
- Summary changed from API: video status and notification to Video API for PJSUA-LIB
comment:3 Changed 13 years ago by bennylp
- Description modified (diff)
comment:4 Changed 13 years ago by bennylp
- Description modified (diff)
comment:5 Changed 13 years ago by bennylp
comment:6 Changed 13 years ago by bennylp
- Owner changed from bennylp to nanang
- Status changed from new to assigned
comment:7 Changed 13 years ago by nanang
comment:8 Changed 13 years ago by nanang
comment:9 Changed 13 years ago by nanang
comment:10 Changed 13 years ago by nanang
comment:11 Changed 13 years ago by nanang
comment:12 Changed 13 years ago by nanang
comment:13 Changed 13 years ago by ming
comment:14 Changed 13 years ago by nanang
- Replaced video stream operation DISABLE into REMOVE.
- Replaced video stream operation ENABLE into CHANGEDIR.
- Added new param: media direction, used in operation ADD and CHANGEDIR.
- Updated video stream operation START_TRANSMIT to ignore capture device param (as changing capture device is handled by CHANGE_CAP_DEV operation).
comment:15 Changed 13 years ago by nanang
- Resolution set to fixed
- Status changed from assigned to closed
(In [3609]) Initial commit re #1263 (PJSUA-LIB Video API):
We're still missing: