Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: how catch client events play, pause, stop, seek

  1. #1

    Default how catch client events play, pause, stop, seek

    How i can catch client events such as play, pause, stop, seek on Wowza side for video on demand? I tried using IMediaStreamActionNotify methods onPause, onPlay, onSeek, but they don't worked, but onSeek method. This works nice. I watched with jw player

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    To catch play use onPlay

    For pause use onPauseRaw instead of onPause.

    Richard

  3. #3

    Default

    Thank you, Richard

  4. #4
    Join Date
    Apr 2012
    Posts
    22

    Default

    Thats a good info Richard,
    I want to prevent seek from server side. I want to evaluate whether to allow seek on a media from server side based on some parameters. So when a seek request comes i want to intercept and evaluate as to whether to permit or not if not permitted then no response will flow from server and default play back will continue. In case it is permitted then the action will fire and it will further leads to action on IMediaStreamActionNotify.
    Any suggestion where i can intercept this request evaluate and then let it move ahead.

  5. #5
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    IMediaStreamActionNotify.onSeek() should work.

    Richard

  6. #6
    Join Date
    Apr 2012
    Posts
    22

    Default

    Can i also disallow seek using IMediaStreamActionNotify.
    Say i return false will the server ignore the seek request?

  7. #7
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    I don't think so, this is a Notifier not an Override. I don't think there is a server-side way to disallow seek request.

    Richard

  8. #8
    Join Date
    Apr 2012
    Posts
    22

    Default

    I tried to over ride server side implementation of seek(IClient client, RequestFunction function, AMFDataList params)

    I m able to hold the seek. When i do not fire the this.invokePrevious(client, function, params) the seek hangs and waiting for input from the server.

    It seems i can use the AMFDataList params to set the seek position to last played position.

    Can you help in setting the location to last seek position. Say i store the last seek position.

    Which params of AFMDataList contains the seek location

    Thanks

  9. #9
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Right, override seek, good idea. You can use WMSProperties to store info per client.

    client.getAppInstance().getProperties().setProperty("lastSeek", seekLocation);
    // then later:		
    String lastSeek = client.getAppInstance().getProperties().getPropertyStr("lastSeek");
    Richard

  10. #10
    Join Date
    Apr 2012
    Posts
    22

    Default

    Thanks i got it working.

    Still struggling to find a way to detect onComplete Event. Any link which shows i can create flash pluggin and catch the parameter at Wowza Server end in customs module

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 08-12-2012, 04:54 AM
  2. Handle Cupertino Streams play, seek events
    By herkules in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 01-23-2012, 09:03 AM
  3. HTTP Cupertino stream play/stop events
    By alexitekako in forum General Forum
    Replies: 3
    Last Post: 12-06-2011, 07: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
  •