[TIMOB-10128] Android: VideoPlayer: DoubleClick event on videoplayer not fired
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-31T11:47:20.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and070112 |
Reporter | Neha Chhabra |
Assignee | Ping Wang |
Created | 2012-07-25T05:32:26.000+0000 |
Updated | 2014-07-17T10:12:48.000+0000 |
Description
On Android platform,the DoubleClick event on videoplayer not fired.
This is not a regression.It even occurs on 2.1.0
Steps to Reproduce:
1. Install and launch the app.js on to the android device.
2. Double click on the video.
Expected Result:
Alert should display,"dblclick".
Actual Result:
No alert is displayed.
app.js
var win= Ti.UI.createWindow();
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('dblclick', function(){
alert('dblclick!');
});
win.add(videoObject);
win.open();
In the above test case, when we touch the screen, it will first toggle the media control which means the first touch event is intercepted. Therefore when we double click the screen, "dblclick" event won't be fired. If we set "mediaControlStyle: Titanium.Media.VIDEO_CONTROL_HIDDEN" when creating the video player, the "dblclick" event works fine. This is how videoplayer works. Mark the ticket invalid.