[TIMOB-6444] Android: Titanium.Media.createVideoPlayer - V8/Rhino - createVideoPlayer fails to create video player
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-12-05T17:00:52.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Dustin Hyde |
Assignee | Bill Dawson |
Created | 2011-12-02T16:35:51.000+0000 |
Updated | 2011-12-08T10:30:57.000+0000 |
Description
Titanium.Media.createVideoPlayer fails to create video player.
Affects 1.8.0.1 on all Android devices. Does not affect 1.7.5 or iOS (1.8.0.1). Regression.
Steps to Reproduce:
1. Run videoTest project (attached).
Expected Result:
A short movie should play showing a failed slam-dunk attempt.
Actual Result:
Blank screen (screenshot attached). One log message (attached).
Log Excerpt:
12-02 15:11:04.040: W/VideoPlayerProxy(1637): (main) [4462,35857] Player action ignored; player has not been created.
Attachments
The app.js indicates that you're using an older version of the KS test for this. Can you update to the newer version? You'll see it works then. The problem with this version of app.js is that it's checking just "Titanium.Platform.version >= 3.2" (or whatever). That means it would only work if you had Android 3.2 (or higher) or iOS 3.2 (or higher) installed. That check is there for *iOS* 3.2 and isn't relevant for Android. I removed it entirely recently from KitchenSink because a) we don't even support iOS < 3.2 anymore (at least I don't so); b) in Android, it prevented the video player view from being put on to the window. Now that we have (almost) parity with iOS in the VideoPlayer, our (Android's) default for the
fullscreen
property isfalse
just like theirs. That means for.play()
to work, you either need to put the player on the window (like iOS) or setfullscreen: true
, in which case the player is not put on a view but rather starts a whole new activity window when it starts. Information will be included in our release notes when 1.8 is released.