Unreal Media Server allows custom user logging to support different storages such as database etc.
Application programmer needs to develop a custom logging COM dll component, that will implement special interface, and specify ProgID of this component in Media Server Configurator. Then Media Server will call LogIn and LogOut methods of this component every time a user will start or stop playing media resource. This includes anonymous users as well. Here is a description of the interface:
interface IWorker : IDispatch{ [id(1), helpstring("method LogIn")] HRESULT LogIn([in] BSTR sUserName, [in] BSTR sTime, [in] BSTR sResourceName); [id(2), helpstring("method LogOut")] HRESULT LogOut([in] BSTR sUserName, [in] BSTR sTime, [in] LONG nKBytesTransfered); };
The custom COM dll project needs to import type library "UUserLog.tlb" included in this package. Use sample project as a base for your custom component. It's a ready component that outputs user log info to debug console window. To make UMediaServer use this component, open Media Server Configurator, choose "custom logging" in the "properties dialog", and enter "SampleUserLog.UnrealSampleLog" as a ProgID.