Results 1 to 2 of 2

Thread: HLS streams and resolvePlayAlias

  1. #1
    Join Date
    Nov 2014

    Default HLS streams and resolvePlayAlias


    I work on a music streaming service that streams nicely to a Flash client using RTMP/RTMPS. Recently we've been working on HLS to support devices/systems where Flash is not available.

    The service uses tokens when requesting streams to stop unwanted visitors consuming streams and to ensure that streams are only accessible to the right people. To do this we have a stream handler that implements IMediaStreamNameAliasProvider2. It validates the token (read: alias), provides the correct alias for the token to get the audio and deletes the token so it can't be used again.

    Everything was working fine until we had to support HLS.

    It seems that approximately 10 seconds before the end of the track there's another lookup for the (same) alias/token taking place. I'm guessing that it is because we're using m3u8 for HLS streams and it (Wowza?) is checking for details of the next item in the playlist -- I'm not sure. Our stream handler token check fails and the result is a HTTPStreamerAdapterCupertinoStreamer.onPlaylist: java.lang.NullPointerException. Error log here:

    Do I need to implement another interface or override another method (HTTPStreamerAdapterCupertinoStreamer.onPlaylist maybe) to signal the end of the playlist? If not, is there another way around this problem that can be achieved by modifying our Wowza plugin rather than changing our token system?

    I note this thread which could be relevant but not sure how/if I can turn it into something practical:

    Thanks for your time!


  2. #2
    Join Date
    Nov 2014


    It may be worth pointing out that this problem doesn't exhibit when streaming in VLC but does with Safari. Doesn't *look* like Safari is sending an extra request but I could be wrong.

    Any pointers welcomed.


Similar Threads

  1. resolvePlayAlias and SMIL files
    By vjagannathan in forum General Forum
    Replies: 2
    Last Post: 07-24-2014, 07:21 PM
  2. resolvePlayAlias getting called twice
    By erbora00 in forum General Forum
    Replies: 1
    Last Post: 10-24-2011, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts