RecordRTC
RecordRTC copied to clipboard
iOS Safari rotation issue
Hello, I am facing issue to save video in correct orientation . Currently video record in Safari browser, But after save it rotate in 90 degree left side. https://prnt.sc/xhn5j0 So please suggest me what I need to update to save in correct orientation ?
Thanks !
@duhar Any update regarding this issue?
Not yet, But I have used some script to rotate image.
I face same issue when testing it on iOS 12.4.2.
function captureImageFromWebcam(takeIage, retakeImage, cameraID) { webCamPid = cameraID; webCamTakeM = takeIage; webCamRetakeM = retakeImage;
Webcam.set({
width: 300,
// flip_horiz:true,
height: 397,
image_format: 'jpeg',
jpeg_quality: 90,
user_callback: function (data_uri) {
$("." + imgclass).val(data_uri);
$('#rotatepp').val(0);
if (bname == 'Chrome' && os == 'iOS' && version > 12.5 &&
version <= 14.2) {
$('#rotatepp').val(-90);
document.getElementById(cameraID).innerHTML = '';
} else {
document.getElementById(cameraID).innerHTML = '
';
}
}
});
Webcam.attach('#' + cameraID);
}
On Thu, Aug 19, 2021 at 1:09 PM Bùi Minh Vũ @.***> wrote:
@duhar https://github.com/duhar Can you please share the script to rotate this video?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/muaz-khan/RecordRTC/issues/718#issuecomment-901683775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDXVSA3HNL3THIWXGWXV2LT5SYL5ANCNFSM4WPPIHBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
From here we check the device and version and in the hidden field we pass the value and USING php I have rotated and saved.
On Thu, Aug 19, 2021 at 1:50 PM Ghanshyam sharma @.***> wrote:
function captureImageFromWebcam(takeIage, retakeImage, cameraID) { webCamPid = cameraID; webCamTakeM = takeIage; webCamRetakeM = retakeImage;
Webcam.set({ width: 300, // flip_horiz:true, height: 397, image_format: 'jpeg', jpeg_quality: 90, user_callback: function (data_uri) { $("." + imgclass).val(data_uri); $('#rotatepp').val(0); if (bname == 'Chrome' && os == 'iOS' && version > 12.5 &&
version <= 14.2) { $('#rotatepp').val(-90); document.getElementById(cameraID).innerHTML = '
'; } else { document.getElementById(cameraID).innerHTML = '
'; } } });
Webcam.attach('#' + cameraID); }
On Thu, Aug 19, 2021 at 1:09 PM Bùi Minh Vũ @.***> wrote:
@duhar https://github.com/duhar Can you please share the script to rotate this video?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/muaz-khan/RecordRTC/issues/718#issuecomment-901683775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDXVSA3HNL3THIWXGWXV2LT5SYL5ANCNFSM4WPPIHBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .