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

Android: Videos do not play correctly on Android 5.1 (API 22)

    Details

    • Story Points:
      5
    • Sprint:
      2020 Sprint 4, 2020 Sprint 5

      Description

      Summary
      When playing a video from URL using Media.VideoPlayer, the video freezes after 2-3 seconds and errors are displayed on Android 5.1 (API level 22).

      Steps to reproduce

      1. Create a Classic titanium app project
      2. Add the below code to app.js
      3. Use any of the affected SDK versions (e.g. 8.2.0.GA)
      4. Run on Android API 22 emulator or device

      var window = Ti.UI.createWindow({ fullscreen: true });
      var videoView = Ti.Media.createVideoPlayer({
      	url: "http://assets.appcelerator.com.s3.amazonaws.com/video/media.m4v",
      	autoplay: true,
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      });
      window.add(videoView);
      window.open();
      

      Result
      The video freezes after 2-3 seconds. "Titanium apps have rich multimedia" is shown. Errors also displayed in terminal:

      [WARN]  MediaHTTPConnection: readAt 3113714 / 32768 => java.net.ProtocolException
      [ERROR] MediaPlayer: Should have subtitle controller already set
      [DEBUG] EGL_emulation: eglMakeCurrent: 0xb42baa60: ver 2 0 (tinfo 0xb43a2e60)
      [ERROR] MediaPlayer: error (1, -19)
      [ERROR] MediaPlayer: Error (1,-19)
      [DEBUG] TiVideoView8: (main) [27668,27793] Error: 1,-19
      [DEBUG] EGL_emulation: eglMakeCurrent: 0xb42baa60: ver 2 0 (tinfo 0xb43a2e60)
      [DEBUG] EGL_emulation: eglMakeCurrent: 0xb42baa60: ver 2 0 (tinfo 0xb43a2e60)
      [WARN]  MediaPlayer: info/warning (3, 0)
      [ERROR] MediaPlayer: error (1, -1004)
      [ERROR] MediaPlayer: Error (1,-1004)
      [DEBUG] TiVideoView8: (main) [2109,29902] Error: 1,-1004
      

      Expected Result
      The video should play as normal and there should not be any errors in the terminal.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                ssaddique Sohail Saddique
                Reviewer:
                Joshua Quick
                Tester:
                Satyam Sekhri
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration