• Basic Java API Code Examples

    Published on 10-03-2010 05:05 AM     Number of Views: 15866 

    The following is a quick and dirty Java class that utilizes the JMX interface to implement a small set of command line operations such as starting stopping virtual hosts and application instances, starting and stopping streams and getting connection count and IO statistics: ...
    Published on 10-03-2010 04:22 AM     Number of Views: 21905 
    1. Categories:
    2. Live

    The following is a snippet of code for starting and stopping a stream using methods that are part of the IApplicationInstance interface. It is a couple of utility methods that can be used to simplify starting/stopping a stream:

    IApplicationInstance.startMediaCasterStream(streamName, mediaCasterType);
    IApplicationInstance.stopMediaCasterStream(streamName)
    ...
    Published on 10-03-2010 04:19 AM     Number of Views: 9894 
    1. Categories:
    2. Live,
    3. Video Recording

    When using the rtp-live and rtp-live-record stream types, Native RTP and MPEG-TS streams are started and stopped on demand based on client's viewing the stream. The publishing process is started the first time a client tries to view a stream and stops 60 seconds after the last client has stopped viewing the stream. If you want to control when the stream is started and be sure it remains running, you can use the MediaCaster API to acquire and release the stream. The code looks like this:

    To start publishing/recording:
    MediaCasterStreamMap mediaCasterMap = appInstance.getMediaCasterStreams();
    MediaCasterStreamItem mediaCasterItem = mediaCasterMap.acquire(streamName);
    ...
    Published on 10-03-2010 04:13 AM     Number of Views: 24310 
    1. Categories:
    2. Mobile,
    3. RTSP/RTP,
    4. Security,
    5. Set-top Box

    By default, RTSP/RTP authentication (digest and basic) is controlled by a single password file located at [install-dir]/conf/publish.password. If you want to have a separate publish.password file per application, you can do this by doing the following: ...
    Published on 10-03-2010 03:42 AM     Number of Views: 17444 
    1. Categories:
    2. Adobe Flash,
    3. Apple iOS,
    4. Live,
    5. Microsoft Silverlight,
    6. Mobile,
    7. RTSP/RTP,
    8. Set-top Box,
    9. SHOUTcast/Icecast

    This article shows a Stream class example. ...
    Published on 10-03-2010 03:37 AM     Number of Views: 19715 
    1. Categories:
    2. Mobile,
    3. RTSP/RTP,
    4. Security,
    5. Set-top Box

    Example module that illustrates the basic API for controlling access to an RTSP/RTP stream. ...
    Published on 10-03-2010 03:27 AM     Number of Views: 11294 

    package com.wowza.wms.plugin.test.module;
    
    import com.wowza.wms.amf.*;
    import com.wowza.wms.application.*;
    ...
    Published on 10-03-2010 03:11 AM     Number of Views: 12729 
    1. Categories:
    2. Adobe Flash

    The following example shows how to change the name of the stream being published. In this example, the stream named "myStream" is changed to "yourStream".

    package com.wowza.wms.example.module;
    ...
    Published on 10-03-2010 02:47 AM     Number of Views: 6754 
    1. Categories:
    2. Mobile,
    3. RTSP/RTP,
    4. Set-top Box

    To change window title displayed when streaming using RTSP/RTP, add the following property to the RTP/Properties container in [install-dir]/conf/[application]/Application.xml (be sure to get the correct <Properties> container - there are several in the Application.xml file):

    <Property>
     <Name>rtspSessionName</Name>
    ...
    Published on 10-03-2010 02:44 AM     Number of Views: 5940 

    package com.wowza.wms.example.module;
    
    import com.wowza.wms.application.WMSProperties;
    import com.wowza.wms.module.*;
    ...
    Published on 10-03-2010 01:41 AM     Number of Views: 5646 

    By default, all custom modules are exposed in JMX/JConsole at runtime. You can easily add attributes or operations to your custom module that are available through JMX/JConsole at runtime. To make an attribute available, be sure you add public getter and setter methods to access your attribute. All public methods will be made available through JMX as long as they use simple Java types (String, int, long, Boolean, short, etc.).

    This code only applies to Wowza Media Server™ 3.

    For example, if you have a module MyModule and you want to expose the attribute connectionLimit and the method logSomething, the code will look something like this:

    package com.wowza.wms.plugin.test.module;
    ...
    Published on 10-03-2010 01:39 AM     Number of Views: 10464 
    1. Categories:
    2. Adobe Flash,
    3. Security

    This article includes example code of various actions you can do when using an event handler to override the client's RTMP playback request. Overriding the play command may be useful when you want to control stream access, change stream properties, log data for analysis, or perform other actions. ...
    Published on 10-03-2010 01:32 AM     Number of Views: 28653 
    1. Categories:
    2. Adobe Flash,
    3. Security

    The following sample code shows how to restrict access to files on a Wowza media server to registered users by implementing a login module. This example uses a MySQL database to store the user details. ...
    Published on 10-03-2010 12:00 AM     Number of Views: 43526 
    1. Categories:
    2. Live

    This article provides example code for injecting cuepoints (timed data) and metadata into live streams and the recordings ...
    Published on 10-02-2010 10:34 PM     Number of Views: 27045 
    1. Categories:
    2. Adobe Flash,
    3. Video On Demand

    The following example shows how to create a video on demand, server-side playlist. In this example, the requested video ...

    Page 3 of 3 FirstFirst 123