Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19360

Android: Video player is not playing mp4 files on 4.X android & genymotion emulators

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lchoudhary Lokesh Choudhary
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20252
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code