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

    • Type: Bug
    • Status: In Progress
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 8.0.0, Release 8.2.1, Release 8.2.0, Release 8.3.0
    • Fix Version/s: Release 9.0.1
    • Component/s: Android
    • Environment:

      Android Emulator API 22, Titanium SDK 8.2.0.GA, MacOS 10.14.6, Appc CLI 7.1.1

    • Sprint:
      2020 Sprint 2

      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

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              ssaddique Sohail Saddique
              Tester:
              Sohail Saddique
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code