Examples

Use basic and advanced Wowza Streaming Engine Java API code examples.

Articles

Control access to Apple HLS streaming (cupertinostreaming)
Control access to Apple HLS streams with the ModuleAccessControlCupertinoStreaming class in the Wowza Streaming Engine Java API.
Control access to Adobe HDS streaming (sanjosestreaming)
Control access to Adobe HDS streams with the ModuleAccessControlSanJoseStreaming class in the Wowza Streaming Engine Java API.
Control access to Microsoft Smooth Streaming (smoothstreaming)
Control access to Microsoft Smooth Streaming streams with the ModuleAccessControlSmoothStreaming class in the Wowza Streaming Engine Java API.
Control access to MPEG-DASH streaming (mpegdashstreaming)
Control access to MPEG-DASH streaming with the ModuleAccessControlMPEGDashStreaming class in the Wowza Streaming Engine Java API.
Control access to HTTP streams (cupertinostreaming, sanjosestreaming, smoothstreaming, mpegdashstreaming)
Control access to Apple HLS, Adobe HDS, Microsoft Smooth Streaming, and MPEG-DASH streams with the ModuleAccessControlHTTPStreaming class in the Wowza Streaming Engine Java API.
Control access to RTSP/RTP streams
Control access to RTSP/RTP streams with the ModuleAccessControlRTSP class in the Wowza Streaming Engine Java API.
Start and stop live stream recordings with the Wowza Streaming Engine Java API
Use LiveStreamRecord and IMediaStreamActionNotify3 in the Wowza Streaming Java API to start and stop recording live streams automatically
Transport data to Amazon S3 services
Transport data to Amazon S3 by using the Wowza Streaming Engine Java API.
Transport data to Google Cloud Platform services
Transport data to the Google Cloud Platform using the Wowza Streaming Engine Java API.
Use Wowza nDVR recording API
Use the Wowza Streaming Engine Java API to manually control Wowza nDVR recording.
Use Wowza nDVR Playlist Request API
Use the Wowza Streaming Engine Java API to control nDVR playlist requests.
Wowza nDVR: Query Recording Duration via API
Use the Wowza Streaming Engine Java API to query the duration in dvrTime, packetTime, and UTC time using an HTTP provider.
Extract MP4-formatted files from DVR streams with Wowza Streaming Engine Java API
Use the Wowza Streaming Engine Java API to extract clips from live DVR streams in Wowza nDVR stores.
Select audio and subtitle tracks from a VOD file with the Wowza Streaming Engine Java API
Use this example code for MP4 video-on-demand playback that converts subtitle tracks to onTextData data events in Wowza Streaming Engine.
Add a Media Cache source using the Wowza Streaming Engine server-side API
Add a Wowza Media Cache source using the Wowza Streaming Engine Java API.
Decrypt PlayReady-encrypted VOD content using the Wowza Streaming Engine Java API
Use the Wowza Streaming Engine Java API to decrypt Microsoft PlayReady-encrypted MP4 files before streaming.
Control HTTP origin session creation
Control the creation and combination of stream sessions when Wowza Streaming Engine is configured as an HTTP origin server.
Convert timed metadata from AMF to ID3 using the Wowza Streaming Engine Java API
Convert AMF timed metadata in live, VOD, or nDVR streams to ID3 tags for Apple HLS delivery using the Wowza Streaming Engine Java API.
Do basic server-side publishing with Stream class streams
Use the Stream class in the Wowza Streaming Engine Java API to publish live streams using static content.
Do pre-roll and playlist for iOS (a client-side work-around)
Implement client-side (browser-based) pre-roll and playlists for iOS devices and VOD-to-live or VOD-to-VOD streaming.
Do scheduled, adaptive bitrate streaming using Stream class streams
Set up scheduled multibitrate streaming in the Wowza Streaming Engine Java API.
Do server-side redirect of RTMP connections from one application to another
Redirect RTMP client connections to specific applications and application instances using the Wowza Streaming Engine Java API.
Dynamically switch between RTP and MPEG-TS when streaming RTSP
Use the Wowza Streaming Engine Java API to switch between native RTP and MPEG-TS delivery when streaming out using RTSP.
Expose an attribute or method of a custom application module through JMX/JConsole
Add attributes or operations to a custom module through JMX/JConsole at runtime for Wowza Media Server 3 by using the Wowza Streaming Engine Java API.
Get the current frame rate from a live stream by using the Wowza Streaming Engine Java API
Use the ModuleLiveFrameRate class in the Wowza Streaming Engine Java API to get the frame rate of a live steam.
Insert a pre-roll or mid-roll for video on demand playback in Flash RTMP client
Create a VOD server-side playlist for a Flash client by using the Wowza Streaming Engine Java API.
Insert keyframes into a transcoded stream with the Wowza Streaming Engine Java API
Use the Wowza Streaming Engine Java API to force additional keyframes into transcoded streams and stop keyframes from being inserted.
Load balance NVIDIA CUDA accelerated transcoding across GPUs
Use the ITranscoderVideoLoadBalancer interface in the Wowza Streaming Engine Java API to balance NVIDIA CUDA–accelerated transcoding across multiple GPUs.
Log play statistics on a timer
Use the ModuleStreamStats class in the Wowza Streaming Engine Java API to log stats for each play stream on a timer.
Control which streams get transcoded with the Wowza Streaming Engine Java API
Create a module that uses the ILiveStreamTranscoderControl interface in the Wowza Streaming Engine Java API to control which streams get transcoded.
Modify or control a stream by overriding playback
Override RTMP client playback requests and perform actions such as restricting access to a stream or renaming a stream by using the Wowza Streaming Engine Java API.
Modify or fix SDP data sent from IP cameras
Use a Java class to override default RTSP requests sent to IP cameras and the SDP data those requests generate.
Monitor MPEG-TS ingestion to process additional data streams (SCTE-35, KLV, etc.)
Use a custom listener to insert PID monitors into MPEG-TS streams as they're ingested into Wowza Streaming Engine server.
Use generic Stream Target API to prepare Apple HLS streams for ad insertion (SCTE-35)
Prepare Apple HLS streams for ad insertion based on SCTE-35 events in live MPEG-TS source streams by using the Wowza Streaming Engine Java API.
Move recordings of live streams (ModuleMediaWriterFileMover)
Use ModuleMediaWriterFileMover to copy or move files after they've been recorded to disk.
Override publish to remap a stream name
Rename a stream that's being published by using the ModuleOverridePublishRemapStream class.
Protect your SWF files by loading them from Wowza Media Server
Load a .swf file on a Wowza Streaming Engine server as an object in memory.
Redirect an HTTP or RTSP session through server-side code
Redirect an RTSP or HTTP streaming session (cupertino, sanjose, and smooth).
Set up a command line interface to Wowza API
Use the JMX interface to execute common command-line operations.
Switch streams using Stream class streams
Implement the Stream class in the Wowza Streaming Engine Java API to switch between stream sources by using playlist objects.
Use IMediaStreamActionNotify3 interface to listen for RTMP stream events (includes codec info)
Listen for RTMP stream events with the IMediaStreamActionNotify3 interface in the Wowza Streaming Engine Java API.
Use IMediaStreamNameAliasProvider2 interface
Use the IMediaStreamNameAliasProvider2 interface in the Wowza Streaming Engine Java API to programmatically create stream name aliases.
Use IPublishingProvider API to publish server-side live streams
Create a server-side stream that is a mixture of live and video-on-demand content.
Use Java API calls to resolve SMIL file requests (AMLST)
Intercept a request for a multi-bitrate VOD stream and group the stream through Wowza Streaming Engine Java API calls.
Use per-application publish.password file
Use a different password for each RTSP/RTP application in Wowza Streaming Engine.
Use MediaCaster API to start native RTP and MPEG-TS streams
Control when an RTP or MPEG-TS live stream is started and stopped with two public MediaCaster classes in the Wowza Streaming Engine Java API.
Use Wowza Streaming Engine Java API to start and stop MediaCaster streams
Start and stop MediaCaster streams by using the IApplicationInstance interface in the Wowza Streaming Engine Java API.
IMediaCasterNotify2 example
Implement the IMediaCasterNotify2 interface in the Wowza Streaming Engine Java API.
IMediaStreamActionNotify2 example
Implement the IMediaStreamActionNotify2 interface in the Wowza Streaming Engine Java API.
Stream Class Example
Add a server listener to a Wowza Streaming Engine application by using the Wowza Streaming Engine Java API.
Send Apple HLS streams to a generic destination
Extend the Cupertino PushPublishing class to send Apple HLS streams from Wowza Streaming Engine to generic Stream Target destinations.
Control MPEG-DASH fragment IDs and timecodes
Use the Wowza Streaming Engine Java API to adjust chunk IDs and timecodes of live MPEG-DASH streams as they're packetized to synchronize streams across multiple servers.
Dynamically update RTP/AVSyncMethod when re-streaming IP camera streams
Set the RTP/AVSyncMethod for live RTSP streams on a per-stream basis by using the Wowza Streaming Engine Java API.
Intercept and block incoming UDP packets for an RTP or MPEG-TS stream
Intercept UDP packets in incoming RTP or MPEG-TS streams and control which ones are depacketized by Wowza Streaming Engine.
Push a native RTP or MPEG-TS stream using RTPUtils API
Use the RTPUtils function to push an MPEG-TS or native RTP stream out of a Wowza Streaming Engine server.
Set up a command line interface to the Wowza Streaming Engine Java API to start/stop VHost using JMX
Use the JMX interface to implement virtual, appInstance, and MediaCaster stream start/stop from the command line.
Module to get HTTP and RTP performance statistics
Collect performance stats for streams using this Wowza Streaming Engine Java API module.