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
  • Advanced

  1. Wowza Media Server 3.6.2 is now available! Click here to get more information.
  2. New Wowza GoCoder iOS encoding app is available! Click here to get more information.
  • Advanced

    How to use Publisher API and JSpeex to publish an audio stream (VOIP integration) 

    Published on 10-03-2010 05:30 AM     Number of Views: 7144 
    1. Categories:
    2. Live

    Here is a quick example of how to use JSpeex with the Publisher API to send raw audio data to Wowza Media Server.

    First, download a sample 16000Hz, stereo wav file and copy it to the [install-dir]/content folder: Extremists.wav

    Note: This file was created from the Extremists.flv file using the following ffmpeg command:
    Code:
    cd [install-dir]/content
    ffmpeg -i Extremists.flv -vn -ac 2 -ar 16000 Extremists.wav
    ...
    Read More Read More 1 Comment

    How to graph individual values (ex. concurrent connections to the server) 

    Published on 10-03-2010 06:31 AM     Number of Views: 4588 

    Any integer read only value in the MBeans section of JConsole can be graphed by double clicking on it's value. This graph will be updated every 5 seconds and will be maintained even if you view a different panel of attributes. To stop graphing a value click the Discard chart button.

    To graph the current number connections to the Wowza Pro server follow these steps: ...
    Read More Read More 5 Comments

    How to add a web service interface to Wowza Media Server and integrate with .NET (dotNet) 

    Published on 10-03-2010 06:36 AM     Number of Views: 8584 

    Server listener class that will be invoked when Wowza Server starts. You can download a pre-built version of this web service here: WebService.

    ServerListenerWowzaServerWS.java
    Code:
    package com.wowza.wms.plugin.test.ws;
    
    import com.wowza.wms.logging.*;
    ...
    Read More Read More 10 Comments

    How to push a native RTP or MPEG-TS stream using RTPUtils API 

    Published on 10-03-2010 05:38 AM     Number of Views: 5102 
    1. Categories:
    2. Mobile,
    3. RTSP/RTP,
    4. Set-top Box

    Below is a snippet of code that illustrates how to use the RTPUtils function to push an MPEG-TS or native RTP stream out of Wowza Media Server. The stream can be sent out over UDP unicast or multicast.

    MPEG-TS out:
    Code:
    To start the stream:
    RTPPushPublishSession rtpPullSession= RTPUtils.startRTPPull(appInstance, streamName, true, dstAddress, dstPort, false);
    ...
    Read More Read More

    How to set up a command line interface to Wowza API to start/stop VHost using JMX 

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

    Here is a quick and dirty Java class that utilizes the JMX interface to implement virtual, appInstance and MediaCaster stream ...
    Read More Read More

    How to calculate the bitrate of a video on demand stream 

    Published on 10-03-2010 05:25 AM     Number of Views: 3987 
    1. Categories:
    2. Video On Demand

    Simple module to calculate video on demand bitrate in bits per second.

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

    How to read an FLV file using the FLVUtils API 

    Published on 10-03-2010 06:35 AM     Number of Views: 3440 
    1. Categories:
    2. Adobe Flash,
    3. Video On Demand

    Snippet of code that uses the internal FLVUtils class to read an .flv file:

    Code:
    public void debugFLVFile(File file)
    {
    	try
    	{
    		BufferedInputStream inStream = new BufferedInputStream(new FileInputStream(file));
    		FLVUtils.readHeader(inStream);
    ...
    Read More Read More 1 Comment

    How to add onMetaData event on the fly to video on demand streams 

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

    The code enables you to modify the onMetaData data that is associated with an on demand stream. The class extends the MediaReaderFLV class and overrides the getMetaData method. It then calls the MediaReaderFLV getMetadata method, deserializes the data into an AMFDataList object, allows you to inject or modify the metadata, serializes the packet and returns it to the streamer.

    Code:
    package com.wowza.wms.plugin.test.mediareader;
    
    import java.util.*;
    ...
    Read More Read More

    How to track users using a SharedObject 

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

    This is the basic code to keep track of connected users in a shared object:

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

    How to use IMediaWriterActionNotify to programmatically move and rename recordings of live streams 

    Published on 10-03-2010 01:26 AM     Number of Views: 9715 
    1. Categories:
    2. Video Recording

    You can use the IMediaWriterActionNotify listener interface to be notified when file writes are completed. Listeners are added to an application instance using the IApplicationInstance.addMediaWriterListener(IMedia WriterActionNotify listener) method. Below is a module for that illustrates how to use this interface.

    Note: You can use the built-in ModuleMediaWriterFileMover module as a simpler alternative for copying or moving files after recording.

    Code:
    package com.wowza.wms.plugin.test.module;
    
    import java.io.*;
    ...
    Read More Read More 2 Comments

    How to monitor live streams using IMediaStreamActionNotify2 

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

    This Module monitors live streams. Stream stats are sent to Flash clients.

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

    How to start and stop live stream recordings programmatically (IMediaStreamActionNotify3) 

    Published on 11-14-2012 02:22 PM     Number of Views: 3913 
    1. Categories:
    2. Live,
    3. Video Recording

    You can use an example module that uses the LiveStreamRecord APIs and IMediaStreamActionNotify3 interface to start recording ...
    Read More Read More 17 Comments

    How select audio, data and/or video channel from a multi-channel MP4 file using IMediaReaderActionNotify 

    Published on 10-03-2010 04:34 AM     Number of Views: 11201 
    1. Categories:
    2. Video On Demand

    Note: Wowza Media Server 3.0.5 or greater is required for HTTP functionality.
    Note: Wowza Media Server 2.1.2 or greater ...
    Read More Read More 72 Comments

    Module to get HTTP and RTP performance statistics 

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

    Module to get performance stats for Cupertino, Smooth, SanJose and RTP sessions

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

    API Change: IApplicationInstance.getClient(int index) have been deprecated 

    Published on 10-03-2010 06:30 AM     Number of Views: 2488 

    As of Wowza Media Server 2 Preview 7 the following method has been deprecated:

    Code:
    IApplicationInstance.getClient(int index)
    The new method for iterating through all the clients connected to an application instance is as follows: ...
    Read More Read More

    How-to-add-poster-frames-to-Apple-HTTP-streams-(ID3-metadata) for on-demand and live audio streams 

    Published on 10-29-2012 03:13 PM
    1. Categories:
    2. Apple iOS,
    3. Live

    Note: This version of this feature only works stand-alone audio only live streams. If you are using the audio only rendition ...
    Read More Read More

    How to setup MediaCache to stream filenames without extensions 

    Published on 11-16-2011 10:23 AM     Number of Views: 1818 
    1. Categories:
    2. Video On Demand

    Note: The below addFileExtensionIfNeeded property is available in MediaCache build989 or greater (see version.txt of MediaCache ...
    Read More Read More

    How to monitor bandwidth of published streams 

    Published on 02-09-2011 12:46 AM  Number of Views: 7422 
    1. Categories:
    2. Live

    Code:
    package com.wowza.wms.plugin.collection.module;
    
    import java.util.Date;
    import java.util.Timer;
    ...
    Read More Read More 21 Comments

    How to add poster frames to Apple HTTP streams (ID3 metadata) for App Store audio renditions 

    Published on 11-22-2010 04:37 AM     Number of Views: 9748 
    1. Categories:
    2. Apple iOS,
    3. Live,
    4. Video On Demand

    Note: For on-demand audio and live audio streams not using the App Store compliance technique you must use this version. ...
    Read More Read More 36 Comments

  • 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 (89)
    Amazon EC2 (14)
    Apple iOS (56)
    Closed Captioning (6)
    Digital Rights Management (7)
    IP Camera (16)
    Live (177)
    Live Stream Repeater (23)
    Microsoft Silverlight (37)
    Mobile (32)
    RTSP/RTP (46)
    Security (34)
    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 (31)
  • Wowza Media Systems
  • Archive
  • Top
All times are GMT -7. The time now is 12:53 AM.
© 2013 Wowza Media Systems, LLC. All rights reserved