[TIMOB-4333] Android: videoPlayer does not fire playing event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-22T06:11:51.000+0000 |
Affected Version/s | Release 1.7.0, Release 2.0.1 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06 |
Components | Android |
Labels | exalture, parity, qe-testadded |
Reporter | Jon Alter |
Assignee | Sunila |
Created | 2011-06-06T13:52:26.000+0000 |
Updated | 2013-09-23T07:39:11.000+0000 |
Description
Android videoPlayer does not fire a playing event when the currently playing movie changes.
Step 1: run the code below
Step 2: notice that 'playing' never fires
var win = Titanium.UI.createWindow();
var activeMovie = Titanium.Media.createVideoPlayer({
contentURL: 'http://theatercrew.com/sample.mp4',
autoplay: true
});
win.add(activeMovie);
win.open();
activeMovie.play();
activeMovie.addEventListener('playing',function(){
Ti.API.info('activeMovie.addEventListener(\'playing\',function(){');
});
There is another HD ticket having the same issue, regardless via remote or locally, movie can't be played http://appc.me/c/APP-653931 repro sequence ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var win = Ti.UI.createWindow({ }); //var video_url = "https://s3.amazonaws.com/cbsappengine/harley.mp4";//Get URL movie var activeMovie = Titanium.Media.createVideoPlayer({ contentURL: 'android/harley.mp4',//Movie Stored locally backgroundColor:'#111', movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL }); win.add(activeMovie); activeMovie.play(); win.open(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7/2/11: I corrected this issue with supported video format (mp4) per Android, my mistake. http://developer.android.com/guide/appendix/media-formats.html
As a Customer relies on this, priority was increased.
Please fix this, it has been several months
Issue still exists in 2.0.1GA2, tested on a Samsung Galaxy S2. Issue doesn't exist on the iOS simulator.
PR : https://github.com/appcelerator/titanium_mobile/pull/3257
If this need doc change, let me know
https://github.com/appcelerator/titanium_mobile/pull/3925
Environment Used - SDK - 3.1.2.v20130710144553 Appcelerator Studio - 3.1.2.201307101037 Device - Galaxy Nexus 4(v4.0.4) acs - 1.0.3 alloy - 1.1.3 npm - 1.2.14 titanium - 3.1.1 titanium-code-processor - 1.0.1 Now video Player fires the playing event. Hence closing this issue.