Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6444] Android: Titanium.Media.createVideoPlayer - V8/Rhino - createVideoPlayer fails to create video player

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2011-12-05T17:00:52.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterDustin Hyde
AssigneeBill Dawson
Created2011-12-02T16:35:51.000+0000
Updated2011-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

FileDateSize
device-2011-12-02-162449.png2011-12-02T16:35:51.000+00008772
log.txt2011-12-02T16:35:51.000+0000638
videoTest.zip2011-12-02T17:25:28.000+00004840108

Comments

  1. Bill Dawson 2011-12-04

    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 is false just like theirs. That means for .play() to work, you either need to put the player on the window (like iOS) or set fullscreen: 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.
  2. Dustin Hyde 2011-12-08

JSON Source