Results 1 to 5 of 5

Thread: PushPublish module not getting UnPublish or onStop notifications

  1. #1

    Default PushPublish module not getting UnPublish or onStop notifications

    I have a live application , I validate users schedule and reject any further stream as in following function . If user ends the stream pushPublisher gets notification properly and connection to FMS is closed but when schedule is exceeded and I reject the stream pushpublisher doenst get notified . I am using following code in live application for closing streams . What's causing this issue and is there anyway I can notify publisher to stop publishing ?

    public void rejectStream(IMediaStream stream, IClient client) {
    stream.stopPublishing();
    stream.close();
    client.rejectConnection();
    client.shutdownClient();
    }

  2. #2

    Default

    Any one from wowza support willing to provide help ?

  3. #3

    Default

    Instead of calling the methods you are calling call:

    client.setShutdownClient(true);
    It is the better way to stop the connection along with all the proper side effects of shutting down push publishing.

    Charlie

  4. #4

    Default

    Tried that too , but no success . Even after stopping stream in Encoder before 8 hours I still see the stream being push , PushPublisherRTMP.sendPackets in log . And Flash Media Server still has stream packets being received from wowza . I have changed code to following

    public void rejectStream(IMediaStream stream, IClient client) {
    stream.stopPublishing();
    stream.close();
    stream.shutdown();
    stream.clear();
    stream.flush();
    stream.notifyActionUnpublish(stream.GetName(),true,false);
    client.rejectConnection();
    client.setShutdownClient();
    }

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

    Default

    This will shutdown an RTMP encoder client, but FMLE will keep trying to reconnect.

    Richard

Similar Threads

  1. Accessing PushPublish module for stream from Live Application
    By sdabhi in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 07-19-2013, 01:12 PM
  2. PushPublish module for Flash doesnt disconnect properly
    By sdabhi in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 07-16-2013, 04:04 AM
  3. PushPublish AddOn Custom Module RTMP-IN >> UDP-OUT
    By iantos85 in forum Wowza Streaming Engine functionality
    Replies: 0
    Last Post: 02-27-2013, 11:56 AM

Posting Permissions

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