for (item = controls ; item && item->data ; item = item->next) {
CameraControlChannel = item->data;
_mmcam_dbg_log("CameraControlChannel->label %s", CameraControlChannel->label);
- if (!strcmp(CameraControlChannel->label, "ptz")) {
+ if (!strcmp(CameraControlChannel->label, "ptz_type")) {
if (gst_camera_control_set_value(CameraControl, CameraControlChannel, value->value.i_val)) {
_mmcam_dbg_warn("set ptz type %d done", value->value.i_val);
return TRUE;
}
}
- _mmcam_dbg_warn("failed to find tilt control channel");
+ _mmcam_dbg_warn("failed to find ptz type control channel");
}
return FALSE;
}
if (!strcmp(videosink_name, "xvimagesink") || !strcmp(videosink_name, "tizenwlsink") ||
- !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "evasimagesink")) {
+ !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "evasimagesink") ||
+ !strcmp(videosink_name, "directvideosink")) {
method = value->value.i_val;
MMCAMCORDER_G_OBJECT_SET(sc->element[_MMCAMCORDER_VIDEOSINK_SINK].gst, "display-geometry-method", method);
} else {
}
if (!strcmp(videosink_name, "xvimagesink") || !strcmp(videosink_name, "tizenwlsink") ||
- !strcmp(videosink_name, "evaspixmapsink")) {
+ !strcmp(videosink_name, "evaspixmapsink") || !strcmp(videosink_name, "directvideosink")) {
int rect_x = 0;
int rect_y = 0;
int rect_width = 0;
unsigned int i = 0;
int ret = TRUE;
int attr_idxs[] = {
- MM_CAM_STROBE_MODE
+ MM_CAM_STROBE_MODE,
+ MM_CAM_CAMERA_PTZ_TYPE,
+ MM_CAM_CAMERA_PAN_MECHA,
+ MM_CAM_CAMERA_PAN_ELEC,
+ MM_CAM_CAMERA_TILT_MECHA,
+ MM_CAM_CAMERA_TILT_ELEC
};
mmf_return_val_if_fail(hcamcorder, FALSE);