cache media stream don't works
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
in tsip_dialog_invite.js
need 699 line:
tmedia_session_mgr.prototype.SetParamSession(o_msession_mgr.e_type, "cache-stream", this.get_stack().media.b_cache_stream),
instead of
tmedia_session_mgr.prototype.SetParamSession(o_msession_mgr.e_type, "cache-stream", this.get_stack().network.b_cache_stream),
Thanks.
Original issue reported on code.google.com by builin.m...@gmail.com
on 28 Feb 2014 at 4:42
GoogleCodeExporter commented
I would like to endorse above solution, and it seems there is a mix up in the
SIPML5 between the flags this.get_stack().media.b_cache_stream and
this.get_stack().media.b_cache_stream
This is how i got this working. you need to implement the above snippet first,
and i had to introduce a delay
here
(Line number can differ, so i prefer you search for this code snippet.)
if (this.e_type == tmedia_type_e.AUDIO && (this.b_cache_stream && __o_jsep_stream_audio)) {
tmedia_session_jsep01.onGetUserMediaSuccess(__o_jsep_stream_audio, c)
}
so i had to change it too, to this
if (this.e_type == tmedia_type_e.AUDIO && (this.b_cache_stream &&
__o_jsep_stream_audio)) {
setTimeout(function () {
tmedia_session_jsep01.onGetUserMediaSuccess(__o_jsep_stream_audio, c)
}, 1000);
}
this got everything working fine , but i do accept that set time out is not a
nice solution to this problem. So if any one suggest something better than that
would be great.
Original comment by arifimra...@gmail.com
on 31 Dec 2014 at 2:09