I’m using mobile SDK 2020.
Hi Dario,
Yes it is possible.
Please specify the platform you are using in order to point you to particular sample - If I remember well samples are available for all the platforms.
Thanks Petar,
I´m using Milestone 2019 R3 and I have testing two App Samples: VideoLiveSample & PushToTalkSample in c#. Exists any example in c# to get camera audio?
Regards,
Darío
Hi Dario,
I’m a little bit confused.
I’m not sure I understand where you look at this “VideoLiveSample”.
In a MIP SDK Mobile 2019 R3 package, when you navigate to
DotNet\Samples\UWP
You should see 4 samples (folders):
AudioLiveUwpSample
AudioPlaybackUwpSample
PlaybackUwpSample
PushToTalkUwpSample
I think you are interested in the first 2 of them that starts with “Audio”.
Btw the structure is the same in 2020 R1 SDK package.
Sorry for my mistake, is´t not C# is Android, I’m using this example:
- \MIPSDKMobile_2020R1\Android\Samples\LiveVideoSample
- **\MIPSDKMobile_2020R1\Android\Samples\**PushToTalkSample
Regrads,
Darío.
Hello,
At the moment, we don’t have a dedicated sample for playing audio with Android. The LiveVideoSample will just show live video (no audio) and the PushToTalk sample will record audio on the device and send it to the mobile server, but will not play incoming audio.
So in order to play audio coming from the server, an extra steps has to be taken.
You can check the below threads for more info on how it’s done, together with code snippets:
Hope that helps
Best regards,
Plamen Parvanov
Thanks Plamen for you answer, we have trying with the first link (
https://developer.milestonesys.com/s/question/0D53X00006INmfrSAD/are-there-any-live-audio-streaming-examples-for-the-mobile-sdk-now-that-support-for-this-has-been-added-in-the-2019-r3) but we have it 's error:
can you help me ?
This is the error that We have.
Hello,
From checking the Android documentation it seems that AudioManager has no play method, that’s why you get this error.
Best regards,
Plamen Parvanov
Hi, is there any update as to a sample or reference for playing audio on android (java)?
Hello,
Unfortunately there is no update at this time.
Best regards,
Plamen Parvanov