Results 1 to 5 of 5

Thread: parameter in <streamtype>

  1. #1

    Default parameter in <streamtype>

    Good Afternoon!

    We can use more than one parameter in <streamtype>?

    Something like: <StreamType> live, file </ StreamType> to run live broadcasts or on demand at the same application.xml?

    Thank you!

  2. #2

    Default

    Maybe I have not expressed myself right. Conveying the need live and on demand at the same point of transmission.

    Is this possible?

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

    Default

    You can only specify one, but for Flash RTMP clients you can change StreamType dynamically, either client-side, like this

    netconnection.call("setStreamType",null, "default");
    var netstreamVOD:NetStream = new NetStream(netconnection);
    netstreamVOD.play("mp4:sample.mp4");
    or server-side like this:

    package test;
    
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.request.*;
    
    public class ModuleStreamTypeSwitch extends ModuleBase {
    
    	public void onConnect(IClient client, RequestFunction function,
    			AMFDataList params) {
    		String streamType = getParamString(params, PARAM1);
    		client.setStreamType(streamType);
    	}
    
    }
    In the above, you would might connect to an application with StreamType "live" but set it to "default" for vod playback

    netconnection.connect("rtmp://[wowza-address]:1935/live", "default");

    Richard

  4. #4

    Default

    I'm sorry, I missed!

    Where should I set these codes?

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

    Default

    The client-side is Flash Actionscript for a RTMP client. The server-side is a whole little Wowza application module. You need the Wowza IDE, which includes a short guide to get you started.

    http://www.wowza.com/media-server/developers#wowza-ide

    Richard

Similar Threads

  1. nDVR Manifest file StreamType is inconsistent
    By ikiweu8382 in forum Wowza nDVR
    Replies: 3
    Last Post: 05-12-2015, 03:09 AM
  2. nDVR Manifest file StreamType is inconsistent
    By JJobse in forum Wowza nDVR
    Replies: 3
    Last Post: 04-22-2014, 07:01 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
  •