Hi,
I want to implement audio streaming. From where I can start?
Regards
Prem
Hi,
I want to implement audio streaming. From where I can start?
Regards
Prem
Hi Prem,
You should investigate, for example, our doc section, MediaPublishOptions.h class header, and our VideoService sample (obj-c & swift).
There are the media content enum (in MediaPublishOptions.h):
typedef enum {
AUDIO_AND_VIDEO,
ONLY_VIDEO,
ONLY_AUDIO,
CUSTOM_VIDEO,
AUDIO_AND_CUSTOM_VIDEO,
} MediaStreamContent;
By default MediaPublishOptions ‘content’ property is been set to AUDIO_AND_VIDEO, but you can change it to another value.
Consider you would like to refactor our swift sample to implement audio steaming. Ok.
options.content = ONLY_AUDIO
That’s all. Please try.
Regards,
Slava
Hi Slava,
Thanks a lot for your cooperation. But there is much delay(4 or 5 seconds or more) to travel audio data from source to destination. Why this delay is happening? Is related with codec that is working behind? How can I reduce this delay to make it feel like real time? I have checked this over WiFi. Kindly reply.
Regards
Prem
Hi Prem,
It is possible the delay is due to your geographic location and network speed.
Regards,
Mark
Hi Mark,
At the same WiFi and same geographic location WhatsApp working nearly real time. So, I don’t think its network geographical issue.
How do you know Whatapp is not doing peer-to-peer networking? This is not an apples-to-apples comparison.
Exactly I don’t know how Whatsapp implement this? Is peer to peer or client-server architecture but its nearly real time. So, if I want to make audio/video transmission nearly real time than what methodology should be used?
I apologize, but I am not in a position to recommend.
Regards,
Mark
So, I have to accept this latency if i want to implement Backendless SDK for this purpose.
I asked you a question about your geographic location so at least we can eliminate (or include) that as a factor. Without knowing any details about your location and how far you’re from our media servers, I’d have to say ‘yes’.
Hi Mark,
Currently my geographical location is India.
Hi Prem,
Could you please run a trace route for api.backendless.com ? I’d like to see how many network hops it goes through.
Regards,
Mark
Hi Mark,
Its breaking connection. Some times it says not reachable.
Hi Prem,
Backendless MediaService is built on a media server (Wowza), and usually media server makes a buffering about 3 sec and more even for live stream. We should know that we have not a case with ip-telephony. But I hope to find a decision asap.
Regards,
Slava
Ok. So, its different from VOIP-Telephopny.