{"action":"created","issue":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/390","labels_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/390/comments","events_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/390/events","html_url":"https://github.com/meetecho/janus-gateway/issues/390","id":118387919,"number":390,"title":"VideoTrack mute / unmute delay","user":{"login":"leonuh","id":871634,"avatar_url":"https://avatars.githubusercontent.com/u/871634?v=3","gravatar_id":"","url":"https://api.github.com/users/leonuh","html_url":"https://github.com/leonuh","followers_url":"https://api.github.com/users/leonuh/followers","following_url":"https://api.github.com/users/leonuh/following{/other_user}","gists_url":"https://api.github.com/users/leonuh/gists{/gist_id}","starred_url":"https://api.github.com/users/leonuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonuh/subscriptions","organizations_url":"https://api.github.com/users/leonuh/orgs","repos_url":"https://api.github.com/users/leonuh/repos","events_url":"https://api.github.com/users/leonuh/events{/privacy}","received_events_url":"https://api.github.com/users/leonuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-23T14:15:35Z","updated_at":"2016-01-11T12:01:30Z","closed_at":null,"body":"Hi there,\r\n\r\nThe stream is delayed on the \"receiver side\" after disable and enable the videoTrack.\r\nThe delay has gone after page refresh (rejoin)\r\nTo test:\r\nChange: getAudioTracks to getVideoTracks in https://github.com/meetecho/janus-gateway/blob/master/html/videoroomtest.js#L350\r\n\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/comments/170520532","html_url":"https://github.com/meetecho/janus-gateway/issues/390#issuecomment-170520532","issue_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/390","id":170520532,"user":{"login":"lminiero","id":3684796,"avatar_url":"https://avatars.githubusercontent.com/u/3684796?v=3","gravatar_id":"","url":"https://api.github.com/users/lminiero","html_url":"https://github.com/lminiero","followers_url":"https://api.github.com/users/lminiero/followers","following_url":"https://api.github.com/users/lminiero/following{/other_user}","gists_url":"https://api.github.com/users/lminiero/gists{/gist_id}","starred_url":"https://api.github.com/users/lminiero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lminiero/subscriptions","organizations_url":"https://api.github.com/users/lminiero/orgs","repos_url":"https://api.github.com/users/lminiero/repos","events_url":"https://api.github.com/users/lminiero/events{/privacy}","received_events_url":"https://api.github.com/users/lminiero/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T12:01:30Z","updated_at":"2016-01-11T12:01:30Z","body":"It looks like the true \"culprit\" is googJitterBufferMs, as googTargetDelayMs seems to depend on it. Looking at the chrome code (not really familiar with it), apparently when you exceed the delay bounds, as would be the case of receiving a video stream again after a pause of some time, the jitter buffer is resetted, which I guess makes sense. It also returns an error, though. This means the delay should be \"absorbed\" after a bit. I don't know how the browser is calculating the Jitter here, and how we can help limit its impact. We don't do much RTCP right now, so not sure if that might be it."}}