Closed jauhenk closed 8 years ago
Hi Eugene, Did you update your AdapterJS to version 0.12.0 ?
We have a custom solution based on earlier version - only IE part. Could you please provide me with a major changes?
Will use history better:) Will let you know the state.
The critical changes that you want to look for are in this commit: https://github.com/Temasys/AdapterJS/commit/df2de3fdeb3fcd1df7bfc410f2d5ac1a8a44f866
It looks like there is a lot of changes, but it's mainly indentation. The "real" changes are actually quite small. What changes is
Link to the release notes : https://github.com/Temasys/AdapterJS/releases/tag/0.12.0
May I know what are the motivations leading you to make a custom integration instead of using AJS ?
Thank you for your comments! I tried today different manipulations with the attachMediaStream but still have issue. When I have an audio call and turn on camera with microphone - sound disappears. We just had already implemented polyfill for webrtc.
I found that you have some strange logic with audio.enabled. When I have video to mute myself I still should use enableSoundTracks(false)
Hi,
I'm experiencing exactly the same issue. Video plays without sound (which seems odd because video is running perfectly otherwise, just missing sound, and it worked with earlier versions of the plugin).
Could you please clarify your comment above? Does it solve the sound issue?
Hi,
EnableSoundTracks is a legacy implementation that is expected to be deprecated in the near future. We cannot remove it at the moment as the current plugin still depends on it (which is actually a bug) EnableSoundTracks will continue to be called from AdapterJS to ensure compatibility with older versions of the plugin.
I may have a found way of reproducing you issue.
Can you both do the following:
Also, several topic about it are popping (https://groups.google.com/forum/#!topic/temasys-discuss-webrtcplugin/Q0eiv70Ctxg) Can we try to centralise the discussion here :)
I have managed to locate the issue.
Contrary to other WebRTC implementations the plugin has audio off by default (to have sound off by default on an audio element seems especially odd). This means that when connecting a stream the AudioMediaTrack
must be retrieved and set to enabled. There is also a bug that if the enabled
property of the AudioMediaTrack is set to true
before the object element is injected, it will be reset to false. Really, the best solution in my opinion would be to automatically enable audio as other implementations do for consistency.
Also the muted property does not seem to be implemented (this would be needed if enableSoundTracks would be removed). I would suggest also adding a muted property to the object element in the same way that audio and video elements have.
I will provide more details in the discussion group thread.
I'm fairly confused by what you're telling me.
1 - Contrary to other WebRTC implementations the plugin has audio off by default (to have sound off by default on an audio element seems especially odd). Are you talking about the DOM element or the AudioTrack ? None of them should be off by default
2- This means that when connecting a stream the AudioMediaTrack must be retrieved and set to enabled The AudioTrack is automatically set enabled when it has at least one renderer (AND if enableSoundTrack was called) It is automatically disabled when it has no renderer.
3- There is also a bug that if the enabled property of the AudioMediaTrack is set to true before the object element is injected, it will be reset to false. Our documentation specifically states that you CANNOT call attachMediaStream before your
4- Also the muted property does not seem to be implemented That is correct, AudioTrack.muted is missing from the plugin at the moment.
attachMediaStream
, as I said we don't use the adapter. What I can see from the adapter code and attachMediaStream
the only difference is that enableSoundTracks
is called before inserting the audio/video object element. Perhaps this is a requirement but I would expect play()
or pause()
to be possible to call at any time to stop or start rendering.muted
property but not on the MediaStreamTrack but on the object element like is for audio/video elements. That together with the play
and pause
methods would be a great improvement.About 4, actually I noticed that setting muted
to true
did stop sound but reversely to false
it had no effect (it didn't start sound again). What is worse, calling enableSoundTracks
with true
has no effect so there is no simple way to implement mute functionality. To reproduce this, just start audio or video, call enableSoundTracks(false)
after audio started - sound will be muted as expected. Do enableSoundTracks(true)
after this - nothing will happen.
muted
worked but only to mute and not to unmute when I tried it in our app.Hey guys,
By bullet point:
I am closing this issue as I don't see any extra work expected.
Hello guys, I found that there is no incoming sound of audio track in plugins after 0.8.850 version. I tested chrome - ie, ie with 850 plugin - ie with 854. With 0.8.850 all is correct. Could you please take a look? Thanks!