Steps to develop Asterisk Android Client with GSM Codec - android

I am trying to develop a Asterisk Android Client. My preferred codec is GSM. I have downloaded SIPDroid source code and some other helping projects. But since I am totally new on this area, I am not sure where to start from.
Here is what I am trying to do at starting.
Record sound
Convert that sound to GSM RTP packet
Play that codec sound
Stream that GSM RTP Packet
Integrate SIP Session with the App
I have one Android device (HTC Wildfire). Is it possible to test these steps from simulator to my set using Wi-Fi network?
Please give me an appropriate steps/algorithm on which I can develop the client App.
It'll be great if someone give me some tips to use the existing projects.Thanks

I asked a friend with an android phone to install SIPDroid, and it does support the GSM codec.

Related

How play web audio with bluetooth devices

I programmmed a website which uses text to speech engine to generate audio files.
Then these mp3 files are started using Web Audio API.
Everything works fine when hearing aufio from speakers on a computer or on a smart phone.
However, as soon as I connect my bluetooth helmet to the smart phone, the audio is not played.
Is it a famous issue that Web Audio API doesn't work with bluetooth devices, or does the issue come from my code?
Do I need to change the context's destination ? How can I set it to buetooth? (ex : https://www.html5rocks.com/en/tutorials/webaudio/intro/)
source.connect(context.destination); // connect the source to the context's destination (the speakers)
This question has already been posted on stackoverflow, but I can't find an answer.
Please help me.
Hi use the web bluetooth library for more reference read this here

Stream an audio file to multiple android phones

I'm want to make an app that would let users connect to other android devices and play music on all devices simultaneously(much like Samsung's Group Play). I did a little reading over the internet and learnt that the MediaPlayer in android can do rtsp. I'm not exactly sure what it is or how it works, but it seems that it can help me stream audio. I want to know how I could
1.Set up a kind of a server that all devices would connect to.
2.Get a client to connect to the "server". Multiple clients would connect.
3.Stream audio to all connected clients.
Any help is appreciated.
Thank You!

Getting surveillance camera footage streamed to phone

I am studying computer programming, but I feel that at school we are doing only stuff that work on a computer without having any connection to the outside world and it isn't all that interesting, so I gave myself a challenge. I want to make a program that streams footage from a surveillance camera to a phone. It seems a bit of a long shot, but I want to try. The thing is that, as I said, at school we are doing pretty basic stuff and with a project like this I have no idea how to even begin. A simple Google search didn't help at all.
I know how mobile apps are made, but I have no idea how to connect such devices.
Any ideas?
I have experience only in RTMP streaming so I am going to explain what I did then.As far as I know, there are 3 components required for streaming in RTMP:
The source - a device with the webcam that is going to generate the video streams. You might need to learn flash scripting language called ActionScript 3 and Flex to write an application that will help you to send stream to a server.
The Media Server- The source device sends its stream to the media server (in some cases, the media server is the source). You can easily do this with action script after you set up your server. If you want to have a local media server then you can install RED5 media server which is based on Java and is open-source.
Client Application- The client application can be a mobile application or a flash based web application which will connect to your media server for the stream and will display it on the client's device.Even this can be written in ActionScript/Flex.
Here is a tutorial on how you can download and setup Red5 media server:
http://www.technogumbo.com/tutorials/Red5-Media-Server-Development-Setup-Tutorial/Red5-Media-Server-Development-Setup-Tutorial.php
You'll need to learn ActionScript / Flex for client side application and some bit of Java for server side.

VLC adding extensions, remote connection, etc

I have a question whether I can remotely control VLC video player program (play, pause, sound, maybe some video streaming, cam streaming) between my computer/mobile phone.
Here is my plan:
1. VLC player on Mac OS
2. writing some TCP Server (C++)
3. writing client on side of android mobile phone
here i consider writing in C++ in order to use it in android/ios ?
4. writing application on Android with simple buttons that can control remotely this player...
Can this solution work properly?
Some additional questions:
1. Can such solution work over WAN (Internet) not only LAN (TCP socket communication)
2. VLC player has in preferences Interface > Main Interfaces > RC
and Lua HTTP, Lua Telnet, etc. (whats the aim of this? )
3. I saw some application on Google Store that comunicates via Lua HTTP?
I would prefer writing my own server/client + protocol for communication this is for university lower degree project.
So my question is whether if I will write such a server, Will there be possibility to integrate it with VLC somehow like adding to preferences > Interfeaces, or it should be separate program or it can be written as plugin or some add-on ?
In summary I need some help to direct me which solution will be the best to provide the most seamless interaction with VLC and have own server, client, protocol in order it hasn't been to easy (I saw in documentacion that possibly there are simple commands in VLC over HTTP protocol which I assume could allow for easy interacting with VLC).
I think also about extending this project by enabling mouse move control on Mac OS / Windows. What should I need for it?
The last part is to enable streaming video to phone and maybe in opposite direction from phone to VLC player. Also web cam capture streaming from phone to VLC and oposite Mac book to phone will be interesting solution.?
thanks for any help
PLEASE If it is too long question please concentrate on answering whether it is possible to do, and whether it can be seamlessly integrated in such way that end user shouldn't have to make many hours of configuration...
Best solution form my point of view:
- preference screen of my plugin embedded in VLC player settings
- writing TCP port/ host (maybe using current host IP in local network)
- on mobile side detecting and connecting via this host:port using client and it just works...
1. VLC player on Mac OS 2. writing some TCP Server (C++) 3. writing client on side of android mobile phone here i consider writing in C++ in order to use it in android/ios ? 4. writing application on Android with simple buttons that can control remotely this player... Can this solution work properly?
Yes it is possible and it works perfectly. VLC has in built server, so you do not need another server app to control it. you just write a client side app for android or Windows/iOS. However if you still want to write server app, you can do so (I don't recommend it), but obviously communication delay between client app and VLC is higher than usual.
1. Can such solution work over WAN (Internet) not only LAN (TCP socket communication) 2. VLC player has in preferences Interface > Main Interfaces > RC
and Lua HTTP, Lua Telnet, etc. (whats the aim of this? ) 3. I saw some application on Google Store that comunicates via Lua HTTP?
Yes it should be possible, but I haven't tried it though.
I would prefer writing my own server/client + protocol for communication this is for university lower degree project. So my question is whether if I will write such a server, Will there be possibility to integrate it with VLC somehow like adding to preferences > Interfeaces, or it should be separate program or it can be written as plugin or some add-on ?
As I said, you can write your own server app, you can integrate that server with VLC server (web Interface). Again this method is not recommended.
If you still want to write server app, instead of integrating with VLC's web interface, map key board short cuts (for example, receive stop request from your client app, and rise keyboard 'S' key event on your server app. 'S' key is short cut for stop command for VLC. For more VLC short cut keys refer here)
VLC supports both transcoding and streaming, I suggest you to write only client app, integrate it with the VLC Web interface. That is the best method. (For more info, there are many apps on play store, try any one of them or refer VLC forum)

Transmit Live Android Audio without SIP

I am looking to transmit audio in realtime from an Android application I am working on to a server in a way similar to how a baby monitor functions (one way listening).
I created a test app that uses SIP to initiate a VOIP call between our client and server applications. The problem is that now I need a way to do this on non-SIP enabled devices. I have tried recording the audio from the device microphone into a buffer, then sending the buffer in chunks to the server through HTTP objects and re-assembling the audio for playback with poor results.
Does anyone have any suggestions for streaming realtime audio from an Android device to a server application for processing? SIP works so well, but I don't have time to implement a SIP stack on all of our non supported devices.
XMPP/jingle (aka gtalk) is the usual alternative. There are C libraries as well as some support in java using the smack libraries. (The smack jingle support is old and doesn't work well, but IIRC someone is working on a new version)

Categories

Resources