Browser is not defined

Dani

Member
ESTABLISHED connectFphoner streamInName:show49pmggHTZo1QV1211027192916806

Uncaught ReferenceError: Browser is not defined
at playStream (show.aspx?params)
at Object.ESTABLISHED (show.aspx?params)
at onSessionStatusChange (flashphoner.min.js?nc=16:12)
at WebSocket.wsConnection.onmessage (flashphoner.min.js?nc=16:12)

The code:
Flashphoner.createSession(connectionOptions).on(SESSION_STATUS.ESTABLISHED, function (session) {
conSession = session;
console.log("ESTABLISHED connectFphoner streamInName:" + streamInName);
playStream(streamInName);
}).on(SESSION_STATUS.DISCONNECTED, function () {
console.log("connectFphoner() DISCONNECTED");
}).on(SESSION_STATUS.FAILED, function () {
console.log("connectFphoner() FAILED");
});

What might be the issue ?
 

Max

Administrator
Staff member
Good day.
You're probably using Browser object in playStream() function. This object has been moved to Flashphoner namespace since WebSDK build 2.0.179.
You may add the following line to script beginning for complatibility (see example on GitHub)
Code:
var Browser = Flashphoner.Browser;
 
Top