Wowza Community

Should onAppStart be getting called twice?

I have a module using onAppStart, and this was always called once on our Wowza server using the live application. On an ec2 instance which uses the application type liverepeater-origin, the event is fired twice, once for the actual app name, and once for “definst”. Is this normal expected behavior? Also, are classes extending ModuleBase created only one time (singleton), or one time per application, so in this case twice?

Thanks,

Grant

onAppStart fires each time an application instance is started. This is same on EC2 as any instance of Wowza. If you connect with each of the following, onAppStart will fire once for each:

rtmp://[wowza-server]:1935/vod/definst

rtmp://[wowza-server]:1935/vod/room1

Richard

scratch

Yes, sorry. And it was wrong anyway.

Richard

Yes, with AES. Here are two methods:

https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method

https://www.wowza.com/docs/how-to-use-the-internal-method-of-aes-128-encryption-to-secure-live-or-vod-streams-sent-to-apple-ios-devices-moduleencryptionhandlercupertinostreaming

Richard

Was this post meant for another thread?