Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2725] Android: Remote Videos Do Not Play

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:27:57.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, defect, reported-1.6.0
ReporterDawson Toth
AssigneeDon Thorp
Created2011-04-15T03:27:56.000+0000
Updated2017-03-02T21:02:13.000+0000

Description

Problem

Remote videos do not play on Android.

Sample Code

The following code demonstrates the problem:

var win = Titanium.UI.createWindow();
var activeMovie = Titanium.Media.createVideoPlayer({
    url: 'http://theatercrew.com/sample.mp4'
});
win.add(activeMovie);
win.open();
activeMovie.play();

Trace level log attached.

Expected Behavior

The above should play a sample video of a "Q" being painted, with a wooshing sound effect. It is a MPEG-4 encoded mp4, which is on Android's list of supported media formats ( http://developer.android.com/guide/appendix/media-formats.html">http://developer.android.com/guide/appendix/media-formats.html ).

Platforms Tested

All tests done on 1.6.0 build pulled from build.appcelerator.net 12/29/10.
WORKS on iPhone Simulator 4.2
BREAKS on Android Simulator 2.2, Android Simulator APIs 2.2, Android Device (SAMSUNG Epic 4G) 2.1

Associated Helpdesk Ticket

Enterprise client is asking about this. They have a release on Friday that this issue would prevent.
http://developer.appcelerator.com/helpdesk/view/63661">http://developer.appcelerator.com/helpdesk/view/63661

Attachments

FileDateSize
trace.txt2011-04-15T03:27:57.000+000071900

Comments

  1. Don Thorp 2011-04-15

    The android player is it's own window and should not be added to the current window. The error references that.

       (kroll$1) [16,950] Exception calling kroll method add, invocation: null ]
       [TRACE] E/KrollMethod( 268): java.lang.ClassCastException: ti.modules.titanium.media.VideoPlayerProxy
       

    Marking as invalid because the issue is not related to actual video playback just invalid use of the control.

  2. Marshall Culpepper 2011-04-15

    (from [b8b7bad9bb64c7626d109223f3f9edb5219497c7]) support redirects that use absolute paths as well as URLs [#2302 state:fixed-in-qa] [#2725]
    https://github.com/appcelerator/titanium_mobile/commit/b8b7bad9bb64c7626d109223f3f9edb5219497c7"> https://github.com/appcelerator/titanium_mobile/commit/b8b7bad9bb64...

  3. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source