Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10128] Android: VideoPlayer: DoubleClick event on videoplayer not fired

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-07-31T11:47:20.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and070112
ReporterNeha Chhabra
AssigneePing Wang
Created2012-07-25T05:32:26.000+0000
Updated2014-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();

Comments

  1. Ping Wang 2012-07-31

    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.

JSON Source