Wowza Community

ServerListenerStartupStreamsMonitor file content changes

Hi,

Task: Change uri inside a stream file without any changing of stream file name.

Changes are done from the code no manually!

Assume we have file:

a.stream

It’s content:

{ "uri": "rtsp://192.168.10.124:554/stream"}

Assume we need just to change a uri of the file:

from

{ "uri": "rtsp://192.168.10.124:554/stream"}

to

{ "uri": "rtsp://[B]192.168.11.100[/B]:554/stream"}

But a name of the stream file should be a.stream

Currently ServerListenerStartupStreamsMonitor doesn’t see changes of the file.

It just checks a file name.

More over.

If we delete/add a file with the same name from the code (Java/C/…)

ServerListenerStartupStreamsMonitor also doesn’t see changes!

Any ideas appreciated.

Hi,

I don’t think the ServerListenerStartupStreamsMonitor was indented to work with the above scenario and given this requirement I believe your only option is to write some custom code to achieve this goal.

The custom code would need to be able to detect changes, possible by checking the time the file was last modified.

Regards,

Jason

Ok. Thanks