Javascript api conflict with Red5ProJDK

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

croftie
Posts: 49
Joined: 24 Jul 2013, 08:35
Location: Algarve Portugal
Contact:

Javascript api conflict with Red5ProJDK

Postby croftie » 09 Jun 2017, 18:30

We are developing an application with both smartfoxserver and red5pro webrtc. I have just started upgrading the whole smartfoxserver 2x environment to 2.13 and the javascript client library to 1.7.3. Server side everything is good but there seems to be a namespace conflict with the red5pro library. On sfs.connect() we get the following error in console.

Code: Select all

sfs2x-api.js:10 Uncaught RangeError: Wrong length!
    at X (red5pro-sdk.min.js:11)
    at new S (red5pro-sdk.min.js:11)
    at SFSDataSerializer.object2binary (sfs2x-api.js:9)
    at SFSObject.toBinary (sfs2x-api.js:11)
    at SFSProtocolCodec.onPacketWrite (sfs2x-api.js:10)
    at SocketEngine.send (sfs2x-api.js:10)
    at SmartFox.send (sfs2x-api.js:8)
    at SmartFox._onSocketConnect (sfs2x-api.js:8)
    at SocketEngine.dispatchEvent (sfs2x-api.js:10)
    at WebSocket._onSocketConnect (sfs2x-api.js:10)
X   @   red5pro-sdk.min.js:11
S   @   red5pro-sdk.min.js:11
object2binary   @   sfs2x-api.js:9
toBinary   @   sfs2x-api.js:11
onPacketWrite   @   sfs2x-api.js:10
send   @   sfs2x-api.js:10
send   @   sfs2x-api.js:8
_onSocketConnect   @   sfs2x-api.js:8
dispatchEvent   @   sfs2x-api.js:10
_onSocketConnect   @   sfs2x-api.js:10




it is fine when the red5 pro library is not loaded.

It is neither organisation's fault but seeking a solution so we can start to use the binary features from javascript
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Javascript api conflict with Red5ProJDK

Postby Bax » 10 Jun 2017, 07:25

We already v1.7.4 pre-release version available that should fix the issue.
Please send us an email (info@smartfoxserv...) so we can send it for testing.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 17 guests