Results 1 to 4 of 4

Thread: How to overwrite Dvr or Http play method

  1. #1

    Default How to overwrite Dvr or Http play method


    I want to restream a stream from rtsp link like rtsp://xxxx/live/ch0 on dvr.

    Problem :

    On stream manager :

    start receving a stream that's name is "rtsp://xxxx/live/ch0"

    OSMF player:

    play link must be like : http://wowza-address:1935/appname/rt...nifest.f4m?DVR

    But it is not playable.

    So i have to use stream name alias. But i dont know how to overwrite http play method.

    I overwrite ModuleBase play method and i can smoothly play

    PHP Code:
    public void play(IClient clientRequestFunction function,
    AMFDataList params) {
    String streamName getShoutcastServerUrl(getParamString(paramsPARAM1));
    streamName != null){
    getLogger().info("Client Accepted");
    invokePrevious(client, function, params);
    getLogger().warn("Client Rejected : stream name can not resolved.");

  2. #2
    Join Date
    Dec 2007


    Create a text file with a .stream extension in the /content folder and make the contents "rtsp://xxxx/live/ch0". Is it a camera? You might call it Then start the stream in StreamManager with the name "" and use that to playback

  3. #3


    I did it but this method not automated . I want to create a stream when a customer request to stream a rtsp or rtmp live content. In this way file creation is automated event.

  4. #4
    Join Date
    Dec 2007


    It is not possible to start such streams on the fly for HTTP clients, so it won't work for the OSMF client.

    For RTMP or RTSP clients, if that is all you are going to serve, you can use StreamType "rtp-live".

    But the client cannot just play some alias stream name that is not associated with a source unless it is pre-defined in a .stream file or with the StreamNameAlias addon, or at least stored somewhere like a db that you can query using IMediaStreamNameAliasProvider2


Similar Threads

  1. play method not called for RTSP
    By spaumier in forum Wowza Streaming Server Java API
    Replies: 7
    Last Post: 02-17-2014, 07:49 AM
  2. play() method and flowplayer.
    By asaf32 in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 07-13-2013, 09:51 AM
  3. play method is not invoked in case of Flash HTTP
    By mahesh in forum Tutorials Discussion
    Replies: 7
    Last Post: 06-19-2013, 05:16 AM
  4. reject client play method
    By asaf32 in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 05-23-2013, 06:26 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