Results 1 to 5 of 5

Thread: Please help, i need additional info about Wowza server-side API

  1. #1
    Join Date
    Oct 2015
    Posts
    4

    Default Please help, i need additional info about Wowza server-side API

    I can't find how to stop stream created from server side through class Stream, like this:

    stream.play("mp4:" + recordingName, 0, -1, true);
    When i do:

    IMediaStream stream = applicationInstance.getStreams().getStream(streamName);
    stream.close();
    But stream still play.

    I found some subjects about Stream and IMediaStream, and all of them without answer.
    I created a topic http://www.wowza.com/forums/showthre...om-server-side

    Please point me right way.

  2. #2

    Default

    Hello there. Try it like this:
    Stream stream = (Stream)client.getAppInstance().getProperties().getProperty(streamName);
    stream.close();
    Also, you might like to take a look at this module:
    How to control Stream class streams dynamically (ModuleStreamControl)

    Regards,

    Salvadore

  3. #3
    Join Date
    Oct 2015
    Posts
    4

    Default

    Quote Originally Posted by salvadore View Post
    Hello there. Try it like this:
    Stream stream = (Stream)client.getAppInstance().getProperties().getProperty(streamName);
    stream.close();
    Yes, i try this. Return error on this line:

    stream.close();
    ERROR	500	-	HTTPRequestAdapter.service : java.lang.NullPointerException|at ru.pixorama.HTTPTranslation.onHTTPRequest(HTTPTranslation.java:178)|at com.wowza.wms.http.HTTPRequestAdapter.service(HTTPRequestAdapter.java:33)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:643)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:375)|at com.wowza.wms.server.ServerHandler.messageReceived(ServerHandler.java:488)|	-	-	-	39.276	-	-	-	-	-	-	-	-	-	-	-	-

  4. #4
    Join Date
    Oct 2015
    Posts
    4

    Default

    Update:

    Thanks, now working

    Just need put reference on stream to applicationInstance properties on stream creation.

    Stream stream = Stream.createInstance(applicationInstance, streamID);
    applicationInstance.getProperties().put(streamID, stream);
    stream.play("mp4:" + recordingName, 0, -1, true);
    And get this reference from applicationInstance when yo need to stop stream:

    Stream stream = (Stream) applicationInstance.getProperties().getProperty(streamID);
    stream.close();

  5. #5

    Default

    Great! Thanks for the update and glad to hear you got this sorted.

    Salvadore

Similar Threads

  1. Need help with this url please please.
    By Rogerkorn in forum General Forum
    Replies: 2
    Last Post: 10-09-2015, 06:46 AM
  2. Need custom java module using server side API's to use LiveStreamRecordManager API
    By RichmondElvis in forum Wowza Streaming Engine functionality
    Replies: 2
    Last Post: 10-08-2015, 04:50 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
  •