Results 1 to 8 of 8

Thread: How to remove IMediaStream object from Wowza to avoid "Hit license limit for publish"

  1. #1
    Join Date
    Nov 2015
    Posts
    5

    Question How to remove IMediaStream object from Wowza to avoid "Hit license limit for publish"

    Hello,

    Each time flash client calls:
    ns = new NetStream();
    ns.publish("streamName")
    ns.close();

    I see that Wowza creates IMediaStream object. And if I execute above code for five times - Wowza logs tell "Hit license limit for publishing streams." I want to properly reuse or shutdown previous stream instances on Wowza side.
    How can I achieve that?

    I tried without success:
    @Override
    public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {
    // bellow doesn't really work
    stream.shutdown();
    stream.close();
    stream.getClient().getAppInstance().getStreams().clearStreamName(streamName, stream);
    }


    Here is article which describes how to block new streams, but I need to clean old one instead.
    https://www.wowza.com/forums/content...publish-stream

    Thank you,
    Stan

  2. #2
    Join Date
    Jan 2015
    Posts
    357

    Default

    Hi,

    I want to properly reuse or shutdown previous stream instances on Wowza side.
    Can you clarify more on your use case? If a playback client or publisher disconnects, Wowza should automatically destroy the stream without additional interaction. The license limit error is built-in as part of the verification process to see if a trial subscription is exceeding the license usage. Using a paid license key should not trigger the error you are seeing.

    Michelle

  3. #3
    Join Date
    Nov 2015
    Posts
    5

    Default

    Right, I don't have license limitation issue on production. My clients don't disconnects during republish. Users may enable mic when they want to speak and mute then.
    I worry if clients publish/unpublish streams too often - extra stream objects stays in Wowza memory.

  4. #4

    Default

    Try it like this
    IClient.setShutdownClient(true);

    For example:
    stream.getClient().setShutdownClient(true);
    For HTTP streams, take a look at this guide:
    How to control access to HTTP streams (cupertinostreaming, sanjosestreaming, smoothstreaming, mpegdashstreaming)
    httpSession.rejectSession();
    Regards,

    Salvadore

  5. #5
    Join Date
    Nov 2015
    Posts
    5

    Default

    I don't want to drop client connection :-)

  6. #6
    Join Date
    Jan 2015
    Posts
    357

    Default

    Hi,

    When the audio source is muted (no audio packets coming in), but the video is still coming in, the connection would not be dropped by Wowza, but would instead be kept open. Are you looking to temporarily suspend --but not disconnect -- a given stream if there is no audio?

    Michelle

  7. #7
    Join Date
    Nov 2015
    Posts
    5

    Default

    Thank you for reply,

    There were no video data at my test case.

    Let's close this thread as not many users will encounter this

  8. #8

    Default

    Thank you for updating this post.

    Salvadore

Similar Threads

  1. call("setCaption",null,"myStream","hello room","eng","0"); - how to use serverside
    By Eliont in forum Server-side Modules and Code Samples Discussion
    Replies: 0
    Last Post: 10-30-2015, 02:43 AM
  2. Replies: 1
    Last Post: 10-02-2014, 07:20 AM
  3. Hit License Limit for Live Stream Transcoders
    By jolivia in forum Wowza Transcoder
    Replies: 2
    Last Post: 03-31-2014, 05:05 AM
  4. Replies: 3
    Last Post: 09-10-2013, 11:40 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
  •