[TIMOB-4337] Android: the loadstate event never fires for videoPlayer
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-02-21T15:23:41.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | n/a |
Components | Android |
Labels | exalture, look1, tbs-1.9.0 |
Reporter | Jon Alter |
Assignee | Sunila |
Created | 2011-06-06T14:30:41.000+0000 |
Updated | 2017-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);
});
please fix this. need it urgently in 1.8.0 CI
This appears to work in current master.
This works fine. Sample code is not right, the 'activeMovie' needs to be added to 'win'.
I can't reproduce this. Sample code is not right, the 'activeMovie' needs to be added to 'win'.
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