Wowza Community

How to access IClient properties from IHTTPStreamerSession?


from within a HTTP stream, I’m trying to do the equivalent of:

String key = IClient.getProperties().getPropertyStr(“SomeKey”)

but resolvePlayAlias for IHTTPStreamerSession doesn’t access IClient…

I’m using IMediaStreamNameAliasProvider2

In that class, this is what I want to do :wink:

	public String resolvePlayAlias(IApplicationInstance appInstance,
			String name, IHTTPStreamerSession httpSession) {
		getLogger().info("Resolve Play HTTPSession: " + name);
// ------> Access Client Properties (in <appname>/Application.xml <------ 
			return name;

Anyone have any idea?

I found appInstance.getProperties().getPropertyStr(str) but that’s not at all the client properties (or at least it isn’t working like that)

also appInstance.getClient(arg), since this uses IClient, but no idea what the params are, and not even sure if that’s what I want. In any case, it’s deprecated!



was what it was - don’t know why it didn’t work when I tested earlier! prolly forgot to restart wowza :wink: