Opened 13 years ago

Closed 12 years ago

#1333 closed defect (duplicate)

Design: review the video preview API

Reported by: bennylp Owned by: nanang
Priority: normal Milestone: release-2.0-beta
Component: pjmedia-videodev Version: 2.0-dev-branch
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Currently, preview API only exists in PJSUA-LIB, and it is done by creating a rendering device, videoport, and vide tee to move the frames from the capture to render device.

As it turns out, the capture device on iOS has the capability to create preview layer natively, hence there is no need to create a rendering device and feed the frames manually. While the current PJSUA-LIB API is still able to accommodate this, it may be cleaner to implement this on pjmedia-videodev layer.

The alternative solution for current API is something like this:

  • add new capability in video capture device to specify whether it has native preview layer or not
  • create preview API in pjmedia-videodev. The preview API will work with device's native preview layer if it is available, or create a rendering device when it's not.

Change History (2)

comment:1 Changed 13 years ago by bennylp

  • Milestone changed from release-2.0-alpha to release-2.0-beta

comment:2 Changed 12 years ago by bennylp

  • Resolution set to duplicate
  • Status changed from new to closed

Dup. Native preview was done in #1340

Note: See TracTickets for help on using tickets.