Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19360] Android: Video player is not playing mp4 files on 4.X android & genymotion emulators

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsAndroid
LabelsengTriage, qe-5.0.0
ReporterLokesh Choudhary
AssigneeUnknown
Created2015-08-17T20:49:18.000+0000
Updated2019-12-09T19:18:35.000+0000

Description

*This issue is seen with SDK 4.1.0.GA as well.*

Steps To Reproduce:

1. Run the code below on 4.X android & genymotion emulator's.
var vidWin = Titanium.UI.createWindow({
    title : 'Video View Demo',
    backgroundColor : '#fff'
});
 
var videoPlayer = Titanium.Media.createVideoPlayer({
    top : 2,
    autoplay : true,
    backgroundColor : 'blue',
    height : 300,
    width : 300,
    mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
    scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
    url : 'http://player.vimeo.com/external/121659103.sd.mp4?s=b04ddefe800446e09bd2cdf7e6193aa9'
    //url : 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
    //url : 'http://108.59.9.98/big_buck_bunny.mp4'
    //url : 'http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4'
    //url: 'https://s3.amazonaws.com/playbackacp.com/865/challenge/865-01-03.mp4'
    //url: 'http://www.html5videoplayer.net/videos/toystory.mp4'
});
 
 
vidWin.add(videoPlayer);
vidWin.open();

Actual Result:

1. The video player fails to play the video with error:
[ERROR] :  MediaPlayer: Should have subtitle controller already set
[ERROR] :  MediaPlayer: error (1, -2147483648)
[ERROR] :  MediaPlayer: start called in state 0
[ERROR] :  MediaPlayer: error (-38, 0)
[ERROR] :  MediaPlayer: Attempt to call getDuration without a valid mediaplayer
[ERROR] :  MediaPlayer: error (-38, 0)
[ERROR] :  MediaPlayer: Error (1,-2147483648)
[DEBUG] :  TiVideoView8: (main) [3832,3832] Error: 1,-2147483648
[ERROR] :  MediaPlayer: Error (-38,0)
[DEBUG] :  TiVideoView8: (main) [22,3854] Error: -38,0
[ERROR] :  MediaPlayer: Error (-38,0)
[DEBUG] :  TiVideoView8: (main) [2,3856] Error: -38,0
2. Ran the code on the following android 4.X devices & the video plays successfully with *no* errors: * Samsung Galaxy S4 - Android 4.4.2 * Samsung Galaxy S3 - Android 4.0.4 * Galaxy Nexus - Android 4.2.2 * Samsung Note - Android 4.3

Expected Results:

1.Video player should play Mp4 videos with no errors on 4.X android & genymotion emulator's

Comments

  1. Trevor Chong 2016-03-18

    Seems some of users are running into issues with this too ever since we upgraded to 5.0.2. They seem to be usually users with 4.0.x devices.
  2. Anthony De Sousa 2016-04-04

    This issue still exists, we have an application where users can send videos from iOS and android. MP4 generated (from iOs) video are not visible for some android device. Here is a list of some devices where video fail : {noformat} Samsung GT S7390 - Android 4.1.2 LG G3 mini - Android 5.0.3 HTC one M8 - Android 6.0 Galaxy mini s2 - Android 4.4.2 ... {noformat} Is it an Appcelerator bug ? Could you fix it ?

JSON Source