Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4333] Android: videoPlayer does not fire playing event

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-03-22T06:11:51.000+0000
Affected Version/sRelease 1.7.0, Release 2.0.1
Fix Version/sRelease 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06
ComponentsAndroid
Labelsexalture, parity, qe-testadded
ReporterJon Alter
AssigneeSunila
Created2011-06-06T13:52:26.000+0000
Updated2013-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(){');
});

Tested With

TiSDK 1.7.0.RC1 Android 2.3

Associated Helpdesk Ticket

http://appc.me/c/APP-888114

Comments

  1. Eduardo Gomez 2011-06-17

    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
  2. Eduardo Gomez 2011-07-02

    As a Customer relies on this, priority was increased.
  3. Kent Nguyen 2011-10-19

    Please fix this, it has been several months
  4. Junaid Younus 2012-05-15

    Issue still exists in 2.0.1GA2, tested on a Samsung Galaxy S2. Issue doesn't exist on the iOS simulator.
  5. Anirudh Nagesh 2012-10-17

    PR : https://github.com/appcelerator/titanium_mobile/pull/3257
  6. Sunila 2013-03-02

    If this need doc change, let me know
  7. Allen Yeung 2013-03-20

    https://github.com/appcelerator/titanium_mobile/pull/3925
  8. Dhirendra Jha 2013-07-12

    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.

JSON Source