Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1245

Android Media Player - not able to play mp3 and mp4/hls

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
      None
    • Environment:

      SDK 3.5.1 Android 5.0.1

      Description

      IWhen using ti.media.videoplayer playing remote HLS/MP4, I got the following errors:

      [ERROR] : MediaHTTPConnection: unknown exception java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
      [ERROR] : MediaPlayer: Error (1,-1004)

      When using ti.media.audioplayer playing remote MP3, I got the following errors:

      [ERROR] : MediaHTTPConnection: unknown exception java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
      [ERROR] : MediaPlayer: error (1, -2147483648)

      It has something to do with TiCacheResponse. If I empty the folder /Android/data/appid/cache/_tmp/remote-cache, the video/audio will play, for just once. Next time the error shows again, since the remote file has been cached.

      I believe this ticket is a duplicate of https://jira.appcelerator.org/browse/TC-5053

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rtlechuga Radamantis Torres-Lechuga (Inactive)
                Reporter:
                shawnlan Shawn Lan
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code