Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Recording video Iphone 4 problem: Camera don´t cover screen.

$
0
0

We have created an app that records video with a overlay, everything works well on iPhone5 but not on iPhone4.

What you need to know:

We are forcing landscape orientation.
We use overlay.
We record from front camera.
The overlay stuff do cover the screen and works as expected.
It works well on iPhone 5.

We are grateful for any suggestion on how to solve this issue, here is the code for the overlay:

var landscapeOverlay = Ti.UI.createView({
    width: Titanium.Platform.displayCaps.platformWidth,
    height: Titanium.Platform.displayCaps.platformHeight,
    transform: Ti.UI.create2DMatrix().rotate(90)
});
var overlay = Titanium.UI.createView({
    width:"100%",
    height:"100%",
    backgroundColor:"transparent"
});
overlay.add(landscapeOverlay);
 
Titanium.Media.showCamera({
    success:function(event)
    {
        // here we do stuff.
    },
    cancel:function()
    {
        // here we do stuff.
    },
    error:function(error)
    {
        // here we do stuff.
    },
    showControls: false,
    allowEditing: false,
    overlay: overlay,
    mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,
    videoMaximumDuration:0,
    videoQuality:Titanium.Media.QUALITY_MEDIUM,
    transform: Ti.UI.create2DMatrix().scale(1)
});
Ti.Media.switchCamera(Ti.Media.CAMERA_FRONT);

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>