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

Live Stream(HLS) not working in Android 5.0/5.01(Lollipop)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Not Our Bug
    • Affects Version/s: Release 3.4.1, Release 3.5.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Nexus 5 Android 5.0/5.01 (Lollipop)
      Titanium SDK: 3.4.1
      Titanium CLI: 3.4.1
      Android SDK: 5.0
      OS X Version: 10.9.5,
      Appcelerator Studio: 3.4.1

      Description

      Problem Description

      HLS video link does not work on Android Lollipop. And it’s also a bug on native android.
      https://code.google.com/p/android-developer-preview/issues/detail?id=1820

      Steps to reproduce

      1. Create a new mobile project (classic)
      2. Paste this code to app.js

      app.js

      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
      });
       
      videoPlayer.url = 'http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8';
      vidWin.add(videoPlayer);
      vidWin.open(); 
      

      3. Open the app in a device with Android 5.x

      Extra information

      Titanium.Media.VideoPlayer does not stream HLS (Live Stream) on Lollipop.
      On KitKat works great.
      for example - Nasa TV:
      http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8

      setting this url in the url property of the VideoPlayer Object returns the current log:

      12-29 15:13:05.148: D/MediaPlayer(19906): Couldn't open file on client side, trying server side
      12-29 15:13:05.157: I/LiveSession(26737): onConnect http://<suppressed>
      12-29 15:13:05.165: E/LiveSession(26737): unable to fetch master playlist http://<suppressed>.
      12-29 15:13:05.167: E/MediaPlayer(19906): error (1, -1004)
      12-29 15:13:05.284: D/HTTPClient(19906): The persistent handle is disposed.
      12-29 15:13:05.291: E/MediaPlayer(19906): Error (1,-1004)
      12-29 15:13:05.291: D/TiVideoView8(19906): (main) [364705,552345] Error: 1,-1004
      12-29 15:13:05.337: D/NuPlayerDriver(26737): reset(0xb50ce880)
      12-29 15:13:05.337: D/NuPlayerDriver(26737): notifyResetComplete(0xb50ce880)
      12-29 15:13:05.338: D/NuPlayerDriver(26737): reset(0xb50ce880)
      12-29 15:13:05.340: D/MediaPlayer(19906): Couldn't open file on client side, trying server side
      12-29 15:13:05.345: I/LiveSession(26737): onConnect http://<suppressed>
      12-29 15:13:05.353: E/LiveSession(26737): unable to fetch master playlist http://<suppressed>.
      12-29 15:13:05.354: E/MediaPlayer(19906): error (1, -1004)
      12-29 15:13:05.385: E/MediaPlayer(19906): Error (1,-1004)
      12-29 15:13:05.385: D/TiVideoView8(19906): (main) [94,552439] Error: 1,-1004
      12-29 15:13:05.405: D/HTTPClient(19906): The persistent handle is disposed.
      12-29 15:13:06.705: D/audio_hw_primary(26737): disable_audio_route: reset and update mixer path: low-latency-playback
      12-29 15:13:06.705: D/audio_hw_primary(26737): disable_snd_device: snd_device(2: speaker)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                eyal.solodki@gmail.com Eyal Solodki
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code