Results 1 to 6 of 6

Thread: IMediaStreamActionNotify doesn't work with iOS

  1. #1
    Join Date
    Jun 2012
    Posts
    3

    Default IMediaStreamActionNotify doesn't work with iOS

    Hi all,

    I am currently working on a new module which will record playing statistics for VOD.

    here is my code for onStreamCreate method:

    public void onStreamCreate(IMediaStream stream) {

    IMediaStreamActionNotify2 actionNotify = new StreamListener();

    WMSProperties props = stream.getProperties();
    synchronized(props)
    {
    props.put("streamActionNotifier", actionNotify);
    }
    stream.addClientListener(actionNotify);

    }

    where StreamListener:

    public class StreamListener implements IMediaStreamActionNotify2

    My code works fine when I use rtmp connection to play the stream. When I connect with iPhone the stream plays fine, but no notifications are sent to StreamListener.

    Any ideas why?

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    That's right, IMediaStreamActionNotify2 (and 3) only work with Flash RTMP clients. The closest thing for HTTP clients is this:

    http://www.wowza.com/forums/content....-and-San-Jose)

    However it is not as good for this purpose because of the latency inherent in HTTP streams. The best way to get stats is from log files. Take a look at this method of adding user info to the logs:

    http://www.wowza.com/forums/content....aming-by-users

    Richard

  3. #3
    Join Date
    Jun 2012
    Posts
    3

    Default

    Hi Richard,

    Thank you for replying to my post.

    "That's right, IMediaStreamActionNotify2 (and 3) only work with Flash RTMP clients." - we need a solution for all devices, so I will forget about IMediaStreamActionNotify for now.

    I had a look at stats log file and I decided to develop a log parser for our statistics module based on this file. I tested the logger output with RTMP client and iPhone and everything looks ALMOST fine. The only thing that is missing in both cases is a log record for "PAUSE" event. Is there any way to specify which events should be included in the stats log?

    Thanks,

    Adam

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Adam,

    I think you get two sessions if you pause cupertino stream. What do you see? Even the logs are less precise for HTTP streaming because Wowza only knows about the chunks it has sent, and now how much were played by the device.

    Richard

  5. #5
    Join Date
    Jun 2012
    Posts
    3

    Default

    Richard,

    You are right, "pause" event log record appears in the stats log, but there is a long delay between the button is clicked and the log record is created. The same for RTMP, there is a delay, but much shorter.

    Is there anything I can do about this delay? Would any settings like "session timeout" help? (for both RTMP and iOS)

    Thanks,

    Adam

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at this article:

    http://www.wowza.com/forums/content....rameters-(iOS)

    Richard

Similar Threads

  1. Streaming to iOS doesn't work
    By SETVproducer in forum Live Streaming and Encoders
    Replies: 7
    Last Post: 09-04-2014, 12:42 PM
  2. work for 30 second only on ios
    By joinvisions in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 08-30-2012, 03:07 PM
  3. HTTP Streaming, iOS and vods3. Are all these work together?
    By greenf in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 11-01-2011, 03:28 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
  •