Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1797] iOS 7 Camera + Video button's not always responsive

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-12-16T19:33:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelscamera, ios, ios7, video, videoplayer
ReporterChad Stachowicz
AssigneeShak Hossain
Created2013-12-16T19:09:05.000+0000
Updated2016-03-08T07:40:41.000+0000

Description

When using the camera or video functionality in iOS7, it usually (average of 8 out of 10 times) is unresponsive on the play button in video, unless you double click it, or hold it for a smidge of time.. 2 in 10 times it works as expected, the first time you tap it. Oddly enough it works everytime as expected on the other corner with the fullscreen buton. Seems easily reproducable. The same thing happens in the Camera Flash and Turn around to the front buttons. var movieModal = Ti.UI.createWindow({ backgroundColor : '#00000000', barColor: '#15B17A', navTintColor: "#ffffff", statusBarStyle: Titanium.UI.iPhone.StatusBar.LIGHT_CONTENT, translucent: false, title: 'Video', orientationModes:[Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT,Ti.UI.PORTRAIT,Ti.UI.UPSIDE_PORTRAIT] }); var activeMovie = Ti.Media.createVideoPlayer({ backgroundColor: '#000', mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT, url: post.post_attachments[0].url, autoplay: false, zIndex: 5 }); var url = post.post_attachments[0].url; var pieces = url.substring(0, url.length - 8); var movPict = Titanium.UI.createImageView({ image: (pieces + "frame_0000.png"), box: true, height: 260, bottom: 15 }); var playButton = Titanium.UI.createImageView({ image: '/images/LH2-Play-icon-2.png', top: -170, height: 32, zIndex: 1, box: true, width: 32, }); movPict.addEventListener('click', function(e){ Alloy.CFG.navwindow.openWindow(movieModal,{animated:false}); movieModal.add(activeMovie); }); playButton.addEventListener('click', function(e){ Alloy.CFG.navwindow.openWindow(movieModal,{animated:false}); movieModal.add(activeMovie); }); commentHolder.add(movPict); commentHolder.add(playButton);

Comments

  1. Chad Stachowicz 2013-12-16

  2. Ritu Agrawal 2013-12-16

    Marking as Invalid based on users comment.

JSON Source