Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4337] Android: the loadstate event never fires for videoPlayer

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-02-21T15:23:41.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ComponentsAndroid
Labelsexalture, look1, tbs-1.9.0
ReporterJon Alter
AssigneeSunila
Created2011-06-06T14:30:41.000+0000
Updated2017-03-30T22:10:49.000+0000

Description

The "loadstate" event never fires for videoPlayer. Step 1: Run the code below Step 2: notice that loadstate never fires
var win = Titanium.UI.createWindow();
var activeMovie = Titanium.Media.createVideoPlayer({
	contentURL: 'http://theatercrew.com/sample.mp4',
	autoplay: true
});

win.open();
activeMovie.play();

// fires on iOS but not android
activeMovie.addEventListener('loadstate',function(e){
  Ti.API.info("loadstate event fired: " + e.loadState);  
});

Tested With

TiSDK 1.7.0.RC1 Android 2.3

Associated Helpdesk Ticket

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

Comments

  1. Kent Nguyen 2011-10-19

    please fix this. need it urgently in 1.8.0 CI
  2. Arthur Evans 2012-02-12

    This appears to work in current master.
  3. Sunila 2013-02-20

    This works fine. Sample code is not right, the 'activeMovie' needs to be added to 'win'.
  4. Sunila 2013-02-21

    I can't reproduce this. Sample code is not right, the 'activeMovie' needs to be added to 'win'.
  5. Lee Morris 2017-03-30

    Closing ticket as I am unable to reproduce the issue using the following environment; Pixel (7.1) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source