-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expects m line #6
Comments
sender:
|
RtpDataChannels: false should be ok, even though it's the default. The m-line should start with m=application... Can you check what the descType is in |
Sorry for the delay, the descType is |
@fippo If I change the line to
I get no error anymore, but the |
:D Sorry, I forgot to accept an incoming filetransfer. Now the sender gets an error
in
|
After I replaced all occurrences (5) of |
hrm... https://github.com/otalk/jingle-filetransfer-session/blob/master/index.js#L200-L202 and https://github.com/otalk/jingle-filetransfer-session/blob/master/index.js#L221-L223 should replace the 'filetransfer' with the low-level 'datachannel' before things are passed down to sdp-jingle-json. |
Do you mean how |
err.. yeah |
If I add this in line https://github.com/otalk/jingle-filetransfer-session/blob/master/index.js#L203
it prints
This is a snapshot before descType is (or in this case not) overwritten: |
I found a description setter, so I guess it is no good idea to test against |
what confuses me is that https://github.com/otalk/jingle.js/blob/master/test/filetransfer.js still passes and shows the correct value (aka: works for me). |
Yes:
I still have the feeling, that something is messed up (but this comes maybe from the fact, that it is very complicated with all this libs). E.g. in the jingle-filetransfer-session lib the descType seems to be inconsistent. https://github.com/otalk/jingle-filetransfer-session/blob/master/index.js#L51 Also the jingle.js lib looks for filetransfer: https://github.com/otalk/jingle.js/blob/master/index.js#L26 Also the stanza definitions uses filetransfer as value: https://github.com/otalk/jxt-xmpp/blob/master/src/file.js#L50 |
This is somewhat somewhat complicated by design. sdp-jingle-json does not know (or care) about filetransfers which is why the application (in this case jingle-filetransfer-session) needs to rewrite the descType and pluck the information it is interested in (offer, name, hash, etc). @legastero since the test is only dealing with json objects, any chance that stanza objects behave differently when trying to modify them? |
chatting with @legastero it seems that what I do here works with json objects but not stanza.io objects (in the current version?) |
Thought your lib would require jxt objects, but this also seems to work:
Crazy stuff. Now the error is gone. |
Hey guys,
I have trouble to get this working with my strophe.jinglejs library, receiving Chromium 45.0.2454.101 prints me:
Your example works, but I think it is outdated, so maybe something changed.
I use this snippet to send a file via my lib:
The incoming jingle on receiver side:
I guess the
sctpmap
line is not correct used, but the JXT parser should work fine, becausestanza._extensions.jingle._extensions._jingleContent._iceUdp.sctp
looks good.@legastero @fippo Do you have any idea, where the JXT object to sdp translation happens? I tried to get it, but without success.
The text was updated successfully, but these errors were encountered: