How to mute the video using sinch sdk - sinch

How to mute the video using sinch SDK anyone knows please help.
After connecting the call I can't mute it.

You can mute/unmute the recipients <video> element
<video class="remotevideo" id="incoming" autoplay muted></video>
Like this:
document.getElementById("incoming").muted=false;
Muting your own microphone is more complicated issue.
One possible solution is to use Sinch internal instant messaging feature and send a special message to the other end. So instead of muting local microphone you tell the other end to mute remote video.

Related

How to record or get the audio while the audio is playing in windows phone 8?

noob here.
I am developing an app for windows phone that streams audio from the web. I've put the play function with MediaElement class, and i have no problem with it.
Then, i want to add a feature to get/record the audio that i stream. I've googling and didn't find what i want.
Is there a way to do that?
Regards,
BM
This is the Microphone class link which can be used to capture audi.
Give a try and let me know
Microphone to capture audio
also go nthrough this link
capturing and playing audio

Way to get notification about audio device enable/disable in Windows XP/7/8

Is there way in Windows API to be notified when audio device gets enabled or disabled?
I have source code with RegisterDeviceNotification() and WM_DEVICECHANGE; it tracks USB device insertion/removing good. But it does not track laptop's internal audio device enabling or disabling.
Of course I can make timer and use waveInGetNumDevs/waveOutGetNumDevs.
But it is more interest to find way to force OS to send notifications :)
Thank you :)
waveIn/waveOut is legacy API you don't have notifications with. Yes you can poll with timer, of course, as you mentioned. In Vista+ the newer API does have notifications via IMMNotificationClient interface, see also this related answer: Get automatically notified on audio device connection/disconnection?

Expensify WP7 test framework

Can we use the Expensify Frame work to test Voice Commands on Emulator/Device..
The feels like this should be possible, but isn't something that I've already coded.
To achieve it, you'd have to setup some sort of playback system to create the audio voice commands. This could be done, for example, by using audio playback triggered from C# SpecFlow steps on the PC - e.g. using something like DirectShow/quartz - http://csharp-slackers.blogspot.co.uk/2008/10/playing-wav-or-mp3.html
This audio would then be played out and captured back into the emulator through the speakers and microphone on the host PC - just make sure they are positioned appropriately.

How to play mp3 file in loop in WP7

I'm implementing a game for WP7, and I need that a mp3 file plays in background, while I navigate through some screens. How can I do this? Thanks in advance.
Use background Audio agent for this purpose to play , even when user navigate between pages.
Also you can achieve the continuous playback by 2 ways
1. set the repeat option to play continuously
or
2. start play back again upon receiving the stop message, this can be achieved by putting code for starting playback again in Application Background player state handler upon receiving "PlayState.Stopped" message.
Please refer this link "How to: Play Background Audio for Windows Phone" for more details.
Hm.. what about global MediaPLayer instance?
See this link

wp7 mediaelement vs mediaplayer launcher

Can we get events like start, stop, pause of a video using mediaplayerlauncher and also can we get the length of the video played using the same or we need to go with mediaelement.
Launchers don't allow to communicate with the OS app in any way if no property is defined.
If you want/need control, you need the mediaelement.

Resources