You must init winsocks before playing RTMP stream (desktop).
WSADATA wsa;
WSAStartup(MAKEWORD(2,2), &wsa);
This is not required for WinRT.
Your media server must fix timestamp for every client start with 0.
So you can't use nginx-rtmp-module , try simple-rtmp-server or others.