My simple custom module stop the hls vod app to stop working

we use 4.8.9 and I am trying to add a dynamic cors headers based on the allowed list of domains. I created a simple custom module with no error when it just extends module base. But as soon as i add the interface IModuleOnApp then after restarting my app stops responding. There is no error on the logs. I tried manually enabling by adding debug to my module in log4j as i have seen somewhere. Nothing helps. Any hint?

Hello,

Thank you for reaching out to us.

You can add additional logging within the code to help identify any hidden errors. If the issue persists or the application continues to freeze, capture a Java thread or heap dump (using jstack) to analyze where the process is getting stuck.

I hope this helps.

Thanks & Regards,

Taniya Nalin Shrivastava

Technical Support Engineer

Wowza | The solution you start with, the partner you scale with.

Wowza Video is here! Take look at all of the new features that will help elevate your business.

My working hours: 12-9 PM, IST

Bookmark our FAQ page

Manage your Support cases online

Subscribe to Updates on our Status page

Divide and conquer… I would add a ton of logging to your module to see if its loaded, see what methods are called etc.

Since IModuleOnApp is suspicious, and your app stops responding, my guess is that your module is failing to load or emiting an error, causing the app to fail

Hello,

Additionally, to help you create your own custom module, you can refer to the following example implementation from Wowza’s GitHub repository:

Example Module:

ModuleAutoRecordAdvancedExample.java (GitHub)

This sample demonstrates how a custom module can be implemented. You can also refer to the official Wowza Server API documentation for the IModuleOnApp interface here:

API Reference:

IModuleOnApp Javadoc

When implementing the onAppStart and onAppStop methods, we recommend starting simple — just log a few messages to System.out to confirm that your module is being called correctly. Once you verify that it’s working, you can gradually add your custom logic.

If the module still doesn’t work as expected, please ensure that you’re using the Wowza IDE correctly. The following guide provides step-by-step instructions:

How to Extend Wowza Streaming Engine Using the Wowza IDE

https://www.wowza.com/docs/how-to-extend-wowza-streaming-engine-using-the-wowza-ide

Starting with a minimal implementation and verifying the basic functionality first will help isolate whether the issue is with the code or the development setup.

I hope this helps.

Thanks & Regards,

Taniya Nalin Shrivastava

Technical Support Engineer

Wowza | The solution you start with, the partner you scale with.