I have a Wowza Streaming Engine 4.0.3 with Transcoder Addon and nDVR addon.
In application Live demo video pre-roll untill a live stream starts (by StreamPubslisher & ModuleLoopUntilLive).
STREAM1 is pre-roll stream.
STREAM2 is live stream.
By the Transcoder Addon live stream (STREAM2) is transcoding for other bitrate (STREAM2_360p, STREAM2_aac, etc).
How can i setup auto record specific streams only when STREAM2 is running (e.g. STREAM2 - live upstream, STREAM2_360p - live upstream with lower bitrate, etc).
You can achieve the described scenario by developing a custom Wowza module which would detect the desired stream name and start recording that particular stream.
Check our our article on how to record streams programmatically. Then you can further modify the source to determine which streams are initiated via the onPublish method.
Looking at your screenshot of the IDE, the class and method names with the red squiggles do not have supporting import lines at top. If you mouse over any of those you will see an option to import the required library; just mouse over, do not click until you see the import option.
Also, take a look at this guide to using the Wowza IDE. This guide is a little out-dated with references to the stand-alone Wowza IDE (which is no longer available) and Wowza 3 paths, but it is still the essential guide to implementing Wowza application Modules, HTTPProviders and ServerListeners
I tried to adding the new class to the IMediaStreamActionNotify3, but the Eclipse got error
Description Resource Path Location Type
File cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 30 Java Problem
WMSLoggerFactory cannot be resolved MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 38 Java Problem
ILiveStreamRecordFileVersionDelegate cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 9 Java Problem
ILiveStreamRecord cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 11 Java Problem
Date cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 15 Java Problem
Date cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 15 Java Problem
File cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 18 Java Problem
File cannot be resolved to a type MyDelegate.java /autorecord/src/com/wowza/wms/example/module line 18 Java Problem