[TIMOB-13238] iOS: Media - Click event is not registered
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-03-28T18:25:21.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-3.1.0, regression |
Reporter | Anshu Mittal |
Assignee | Ingo Muschenetz |
Created | 2013-03-28T11:10:42.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
movie.mp4 | 2013-03-28T11:10:42.000+0000 | 2549211 |
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.
Closing ticket as invalid.