Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13238] iOS: Media - Click event is not registered

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-03-28T18:25:21.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.1.0, regression
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2013-03-28T11:10:42.000+0000
Updated2017-03-16T22:15:31.000+0000

Description

Click event is not registered. This is Regression since the issue does not occur on 3.0.2 GA. Steps to reproduce: 1. Create an app using the code below. 2. Launch the test app and tap on the screen. Actual: Touchstart event is registered and an alert for the same is popped up but click event is not registered. Expected: Click even should be registered and the alert for the same should be popped up.
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});
    
		var videoObject = Titanium.Media.createVideoPlayer({
		    contentURL:'movie.mp4',
		    scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,
		    top:0,
		    left:0,
		    height:'100%',
		    width:'100%',
		    autoplay:true
		});
		  
		videoObject.addEventListener('click', function(){
		   alert('click!');});
		    
		videoObject.addEventListener('touchstart', function(){
		  alert('touchstart!');
		});
		
		win1.add(videoObject);
		win1.open();
		

Attachments

FileDateSize
movie.mp42013-03-28T11:10:42.000+00002549211

Comments

  1. Eric Merriman 2013-03-28

    Anshu, Please try this with Ti.API.info instead of the Alert. The issue here is that under certain circumstances you will get a touch cancel. The Alert or the window opening may be causing the touch cancel to fire instead of the click. Based on your investigation we will probably end up editing our test cases.
  2. Lee Morris 2017-03-16

    Closing ticket as invalid.

JSON Source