Forum, Support | Wowza Media Systems - Powered by vBulletin
  • Register
  • Help

  • Articles
    • Welcome
    • Quick Start Guide
    • Tutorials
    • Documentation
  • Forum
  • Find a Consultant
  • Advanced Search
  • Home
  • Home
  • Server-side Modules and Code Samples
  • Basic

  1. New Wowza GoCoder iOS encoding app is available! Click here to get more information.
  2. Wowza Media Server development build 3.5.2.08 is now available! Click here to get more information.
  • Basic

    Module to limit the number of connections to an application 

    Published on 10-03-2010 11:06 PM     Number of Views: 8736 
    1. Categories:
    2. Adobe Flash

    Here is a simple module that limits the number of connections to an application:

    Code:
    package com.wowza.wms.plugin.collection.module;
    ...
    Read More Read More 14 Comments

    How to protect your SWF files by loading them from Wowza Media Server 

    Published on 10-03-2010 05:18 AM     Number of Views: 7180 
    1. Categories:
    2. Adobe Flash,
    3. Security

    Here is some code contributed by user RogerLittin in our forums. From his post:

    I was looking for a method to stop my swf's and images from being stolen or decompiled and came across a bit of code for loading them as a byte array instead of using the normal Loader. ...
    Read More Read More 8 Comments

    How to do basic server-side publishing with Stream class streams 

    Published on 10-03-2010 06:17 AM     Number of Views: 10711 
    1. Categories:
    2. Live

    Use the new Stream class to publish live streams using static content. And you can publish on a schedule, like a television station.

    This is a simple example to illustrate the basic use of the Stream Class ...
    Read More Read More 9 Comments

    How to set up a command line interface to Wowza API 

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

    Here 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: ...
    Read More Read More 1 Comment

    How to use a per application publish.password file 

    Published on 10-03-2010 04:13 AM     Number of Views: 9747 
    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 would like to have a separate publish.password file per application, you can do this by doing the following: ...
    Read More Read More 8 Comments

    How to do file-based authentication with RTMP client with credentials passed as parameters of NetConnection connect 

    Published on 10-03-2010 02:14 AM     Number of Views: 12619 
    1. Categories:
    2. Adobe Flash,
    3. Security

    This is a file based, username/password authentication method that you can use with Flash applications that connect to Wowza ...
    Read More Read More 5 Comments

    How to control access to Microsoft Smooth Streaming (smoothstreaming) 

    Published on 10-03-2010 04:20 AM     Number of Views: 4436 
    1. Categories:
    2. Microsoft Silverlight,
    3. Security

    Example module that illustrates basic API for controlling access to a Smooth Streaming stream.

    Code:
    package com.wowza.wms.example.module;
    
    import com.wowza.wms.application.IApplicationInstance;
    ...
    Read More Read More 2 Comments

    How to get connection counts for server, applications, application instances sent to a Flash application 

    Published on 10-03-2010 01:16 AM     Number of Views: 10402 

    Here is some sample code to get the connection counts to the server, application, application instance and a stream by name. It will also return a list of client ids connected to a particular stream name.

    Server side code:

    Code:
    package com.wowza.wms.plugin.collection.module;
    
    import java.util.*;
    ...
    Read More Read More 17 Comments

    How to inject cuepoints or metadata 

    Published on 10-03-2010 12:03 AM     Number of Views: 12331 
    1. Categories:
    2. Live

    Code to inject a cue point that gets recorded and triggered client side from the server side.

    Note: Although ...
    Read More Read More 75 Comments

    How to do pre-roll and playlist for iOS (a client-side work-around) 

    Published on 10-03-2010 05:10 AM     Number of Views: 7154 
    1. Categories:
    2. Apple iOS

    This is a client-side (browser-based) solution for pre-roll and playlists for iOS devices. This works for vod to live, or vod to vod. (It did not work in my test for live to vod). Switching from one video or stream to another with different audio encoding will not work. The transitions are not seamless, there is a couple moments of load time.

    VOD pre-roll for live stream:
    Code:
    <html>
    <head>
    <title>Pre-roll</title>
    <script>
    function end(e)
    ...
    Read More Read More 6 Comments

    How to log play statistics on a timer 

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

    Module to log stats for each play stream on a timer.

    Code:
    package com.wowza.wms.example.module;
    
    import java.util.*;
    ...
    Read More Read More 3 Comments

    How to MediaCaster API to start native RTP and MPEG-TS streams 

    Published on 10-03-2010 04:19 AM     Number of Views: 4465 
    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 attempts 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:
    Code:
    MediaCasterStreamMap mediaCasterMap = appInstance.getMediaCasterStreams();
    MediaCasterStreamItem mediaCasterItem = mediaCasterMap.acquire(streamName);
    ...
    Read More Read More

    How to use the MediaCaster API 

    Published on 10-03-2010 04:22 AM     Number of Views: 8301 
    1. Categories:
    2. Live

    This 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:

    Code:
    IApplicationInstance.startMediaCasterStream(streamName, mediaCasterType);
    IApplicationInstance.stopMediaCasterStream(streamName)
    ...
    Read More Read More 10 Comments

    How to override publish to remap a stream name 

    Published on 10-03-2010 03:11 AM     Number of Views: 4326 
    1. Categories:
    2. Adobe Flash

    Change the name of the stream being published. In this example, if the stream is named "myStream", change it to "yourStream".

    Code:
    package com.wowza.wms.example.module;
    ...
    Read More Read More 6 Comments

    How to limit playback by IP address 

    Published on 10-03-2010 01:12 AM     Number of Views: 9298 
    1. Categories:
    2. Adobe Flash,
    3. Security

    This example overrides play to limit Flash clients to certain IPs. Handling for HTTP and RTSP clients has been added as ...
    Read More Read More 36 Comments

    How to use a ServerListener to load and lock an appinstance (IServerNotify2) 

    Published on 10-03-2010 04:10 AM     Number of Views: 3632 

    Here is a sample ServerListener (IServerNotify) class that will load and lock an application instance.

    Code:
    package com.wowza.wms.plugin.test.module;
    
    import com.wowza.wms.application.*;
    import com.wowza.wms.logging.*;
    ...
    Read More Read More 5 Comments

    Module to limit the number of viewers to a stream 

    Published on 10-03-2010 01:00 AM     Number of Views: 6403 
    1. Categories:
    2. Adobe Flash

    Here is a simple module that limits the number of viewers per stream.

    Code:
    package com.wowza.wms.plugin.collection.module;
    ...
    Read More Read More 15 Comments

    IMediaCasterNotify2 example 

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

    Module that implements the IMediaCasterNotify2 interface and its event handlers:

    Code:
    package com.wowza.wms.example.module;
    
    import com.wowza.wms.application.*;
    ...
    Read More Read More

    How to override play to remap a stream name 

    Published on 10-03-2010 06:04 AM     Number of Views: 4459 
    1. Categories:
    2. Adobe Flash

    Code:
    package com.wowza.wms.example.module;
    
    import com.wowza.wms.amf.*;
    import com.wowza.wms.client.*;
    ...
    Read More Read More 11 Comments

    IMediaStreamActionNotify2 example 

    Published on 10-03-2010 03:27 AM     Number of Views: 5857 

    Code:
    package com.wowza.wms.plugin.test.module;
    
    import com.wowza.wms.amf.*;
    import com.wowza.wms.application.*;
    ...
    Read More Read More 9 Comments

    Page 1 of 4 123 ... Next LastLast
  • Article List

    • Quick Start Guide
    • Tutorials
    • Documentation
    • Performance Tuning
    • Software Updates
    • Wowza for Amazon EC2
      • Quick Start Guide
      • Pre-built AMIs (Amazon Machine Images)
      • Advanced Topics
    • Media Players and Devices
      • General
      • Adobe Flash
      • Microsoft Silverlight
      • Apple iOS Devices
      • Set-top, Mobile and QuickTime
    • Live Streaming and Encoders
      • General
      • Advanced Topics and Troubleshooting
      • Specific Encoding Technologies
    • Video On Demand Streaming
    • Closed Captioning
    • Server Administration
    • AddOn: Wowza Transcoder
    • AddOn: Wowza nDVR
    • AddOn: Wowza DRM
    • AddOn: Other
    • Wowza GoCoder for iPhone
    • Server-side Modules and Code Samples
      • Basic
      • Advanced
      • HTTP Providers
    • List of All Articles
  • Categories

    Adobe Flash (90)
    Amazon EC2 (14)
    Apple iOS (57)
    Closed Captioning (7)
    Digital Rights Management (7)
    IP Camera (16)
    Live (179)
    Live Stream Repeater (23)
    Microsoft Silverlight (37)
    Mobile (32)
    RTSP/RTP (46)
    Security (33)
    Set-top Box (28)
    SHOUTcast/Icecast (14)
    Video Chat (6)
    Video On Demand (93)
    Video Recording (14)
    Wowza DRM (8)
    Wowza nDVR (14)
    Wowza Transcoder (26)
  • Wowza Media Systems
  • Archive
  • Top
All times are GMT -7. The time now is 07:18 PM.
© 2013 Wowza Media Systems, LLC. All rights reserved