SlideShare ist ein Scribd-Unternehmen logo
1 von 15
VoIP on Android



Wednesday 7 April 2010
Johan Cloetens
                                  @belgianwaves
                    • background interest since start
                    • huge android fan since oct. 2008
                    • free applications on Android Market:
                         SipAgent, ShootMe/PicMe, OnAir, ...
                    • professional android consultant since feb.
                         2009
                    • Escaux, Philips, Cherry, ...
Wednesday 7 April 2010
VoIP
                                why should i care?

                    • isn’t this boring?
                    • break free / save costs
                    • market trends
                    • bringing voice in the network allows
                         enriched experiences
                    • Android is the ideal platform
Wednesday 7 April 2010
Android (overview)




Wednesday 7 April 2010
Android (ipc)

              • Intents               • Services
               • loose coupling        • tight coupling
               • asynchronous          • synchronous
               • hash-like messages    • aidl / corba-like

Wednesday 7 April 2010
Android (audio)

                                     AudioTrack
                         App
                                     AudioRecord
                                                   MediaServer




Wednesday 7 April 2010
Android (audio)
                         APPLICATIONS               Audio Apps



                         APP FRAMEWORK AudioTrack /           MediaPlayer /
                                          AudioRecord         Recorder Class

                         RUNTIME -> NATIVE              JNI

                         NATIVE LIBRARIES
                                                        Media
                                                        Library
                                                    IPC binding
                                 MediaPlayer                        Audio Flinger
                                 Service (Native)                   (Native)



                             PV OpenCore Player/
                             Author Engine                 IPC binding


                                                                         HAL of Audio
                          PV Audio Enc/     PV Media
                          Dec Node          In/Out Node

                                               PV MIO
                                               I/F
                                                                         Alsa user Lib
                                                    Android Audio
                                                    I/O Wrapper



                         LINUX KERNEL
                                                                    Alsa Driver




Wednesday 7 April 2010
AudioTrack

                         AudioTrack t = new AudioTrack(AudioManager.STREAM_VOICE_CALL,
                             	   	   	   	   	   	     8000,
                             	   	   	   	   	   	     AudioFormat.CHANNEL_CONFIGURATION_MONO,
                         	   	   	   	   	   	   	     AudioFormat.ENCODING_PCM_16BIT,
                         	   	   	   	   	   	   	     bufferSizeOut(),
                         	   	   	   	   	   	   	     AudioTrack.MODE_STREAM);
                         	   	   t.play();
                         	   	   	   byte buffer[] = new byte[BUFFER_SIZE];
                         	   	   	   while (!stopped()) {
                         	   	   	   	   int read = fetchIn(buffer);
                         	   	   	   	   if (read > 0) {
                         	   	   	   	   	   t.write(buffer, 0, read);
                         	   	   	   	   }
                         	   	   	   }
                         	   	   t.stop();




Wednesday 7 April 2010
AudioRecord

                     AudioRecord r = new AudioRecord(MediaRecorder.AudioSource.MIC,
                     	   	  	   	   	   	   	  	     8000,
                     	   	  	   	   	   	   	  	     AudioFormat.CHANNEL_CONFIGURATION_MONO,
                     	   	  	   	   	   	   	  	     AudioFormat.ENCODING_PCM_16BIT,
                     	   	  	   	   	   	   	  	     bufferSizeIn());
                     	   	  r.startRecording();
                     	   	  	   byte buffer[] = new byte[BUFFER_SIZE];
                     	   	  	   while(!stopped()) {
                     	   	  	   	   int read = r.read(buffer, 0, BUFFER_SIZE);
                     	   	  	   	   if (read > 0) {
                     	   	  	   	   	   pushOut(buffer, read);
                     	   	  	   	   }
                     	   	  	   }
                     	   	  r.stop();




Wednesday 7 April 2010
It’s easy ;-)
                                  choices left

                    • compliancy to protocols (sip & iax)
                    • codecs (ulaw, alaw, gsm, g729, ...)
                    • java versus native
                    • to silo or not to silo...
                    • gotcha’s

Wednesday 7 April 2010
Gotchas

                    • fragmentation
                    • room for interpretation api’s
                    • hardware dependency / buffer hints
                    • latency
                    • bugs
                    • floating point support
Wednesday 7 April 2010
Demos




Wednesday 7 April 2010
To silo or not to silo
                            that is the question...


                    • basic functionality easier to integrate
                    • enriched experience asks for silo
                    • how to blend experience / look & feel?
                    • ( what has Google in the pipe? )

Wednesday 7 April 2010
Conclusion
                    • VoIP on Android is a reality
                    • could be easier
                    • will improve
                    • enriched communication experience only
                         limited by your imagination
                    • Android is platform of choice, plenty of
                         options


Wednesday 7 April 2010
Feedback
                         belgianwaves@gmail.com




Wednesday 7 April 2010

Weitere ähnliche Inhalte

Andere mochten auch

VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
imec.archive
 
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
imec.archive
 
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo   Gert VerdocnkIct Sd01 Checklist Ict And Human Capital In Kmo   Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
imec.archive
 
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value  Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
imec.archive
 
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
A2 Bforum P1 04   Kh Lim   Nele Mentens   StresA2 Bforum P1 04   Kh Lim   Nele Mentens   Stres
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
imec.archive
 
Ecrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov PaperEcrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov Paper
imec.archive
 
31032010 we bbt workshop project management
31032010 we bbt workshop project management31032010 we bbt workshop project management
31032010 we bbt workshop project management
imec.archive
 
Brokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaBrokerage 2007 presentation multimedia
Brokerage 2007 presentation multimedia
imec.archive
 
2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]
imec.archive
 
Qo E E2 E2 Project Overview Antoine Dejonghe
Qo E E2 E2   Project Overview   Antoine DejongheQo E E2 E2   Project Overview   Antoine Dejonghe
Qo E E2 E2 Project Overview Antoine Dejonghe
imec.archive
 
2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]
imec.archive
 
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 SeriesWorkshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
imec.archive
 
6 deus leaflet wp5
6 deus leaflet wp56 deus leaflet wp5
6 deus leaflet wp5
imec.archive
 

Andere mochten auch (18)

VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
VACF1-Verslag van een onderzoek naar en uitbouw van een innovatief webplatfor...
 
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017Ddo7 Marianne Treschow   Ghent Dividend Presentation Treschow   081017
Ddo7 Marianne Treschow Ghent Dividend Presentation Treschow 081017
 
Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11Psychological Illness @ IPM on 3.4.11
Psychological Illness @ IPM on 3.4.11
 
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo   Gert VerdocnkIct Sd01 Checklist Ict And Human Capital In Kmo   Gert Verdocnk
Ict Sd01 Checklist Ict And Human Capital In Kmo Gert Verdocnk
 
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value  Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
Apollon-23/05/2012-9u30- Parallell session: Living Labs added value
 
ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012
 
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
A2 Bforum P1 04   Kh Lim   Nele Mentens   StresA2 Bforum P1 04   Kh Lim   Nele Mentens   Stres
A2 Bforum P1 04 Kh Lim Nele Mentens Stres
 
Ecrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov PaperEcrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov Paper
 
31032010 we bbt workshop project management
31032010 we bbt workshop project management31032010 we bbt workshop project management
31032010 we bbt workshop project management
 
Family
FamilyFamily
Family
 
Brokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaBrokerage 2007 presentation multimedia
Brokerage 2007 presentation multimedia
 
2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]2008 brokerage 06 multimodal logistics [compatibility mode]
2008 brokerage 06 multimodal logistics [compatibility mode]
 
Qo E E2 E2 Project Overview Antoine Dejonghe
Qo E E2 E2   Project Overview   Antoine DejongheQo E E2 E2   Project Overview   Antoine Dejonghe
Qo E E2 E2 Project Overview Antoine Dejonghe
 
2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]2008 brokerage 07 adoption potential analysis [compatibility mode]
2008 brokerage 07 adoption potential analysis [compatibility mode]
 
T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들
 
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 SeriesWorkshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
Workshopvin1 2018 Technology In Labour For Rebirth Of Hal 9000 Series
 
6 deus leaflet wp5
6 deus leaflet wp56 deus leaflet wp5
6 deus leaflet wp5
 
Use of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledgeUse of social media to facilitate dissemination of medical knowledge
Use of social media to facilitate dissemination of medical knowledge
 

KĂźrzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

KĂźrzlich hochgeladen (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

droidcon_voip_android

  • 2. Johan Cloetens @belgianwaves • background interest since start • huge android fan since oct. 2008 • free applications on Android Market: SipAgent, ShootMe/PicMe, OnAir, ... • professional android consultant since feb. 2009 • Escaux, Philips, Cherry, ... Wednesday 7 April 2010
  • 3. VoIP why should i care? • isn’t this boring? • break free / save costs • market trends • bringing voice in the network allows enriched experiences • Android is the ideal platform Wednesday 7 April 2010
  • 5. Android (ipc) • Intents • Services • loose coupling • tight coupling • asynchronous • synchronous • hash-like messages • aidl / corba-like Wednesday 7 April 2010
  • 6. Android (audio) AudioTrack App AudioRecord MediaServer Wednesday 7 April 2010
  • 7. Android (audio) APPLICATIONS Audio Apps APP FRAMEWORK AudioTrack / MediaPlayer / AudioRecord Recorder Class RUNTIME -> NATIVE JNI NATIVE LIBRARIES Media Library IPC binding MediaPlayer Audio Flinger Service (Native) (Native) PV OpenCore Player/ Author Engine IPC binding HAL of Audio PV Audio Enc/ PV Media Dec Node In/Out Node PV MIO I/F Alsa user Lib Android Audio I/O Wrapper LINUX KERNEL Alsa Driver Wednesday 7 April 2010
  • 8. AudioTrack AudioTrack t = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSizeOut(), AudioTrack.MODE_STREAM); t.play(); byte buffer[] = new byte[BUFFER_SIZE]; while (!stopped()) { int read = fetchIn(buffer); if (read > 0) { t.write(buffer, 0, read); } } t.stop(); Wednesday 7 April 2010
  • 9. AudioRecord AudioRecord r = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSizeIn()); r.startRecording(); byte buffer[] = new byte[BUFFER_SIZE]; while(!stopped()) { int read = r.read(buffer, 0, BUFFER_SIZE); if (read > 0) { pushOut(buffer, read); } } r.stop(); Wednesday 7 April 2010
  • 10. It’s easy ;-) choices left • compliancy to protocols (sip & iax) • codecs (ulaw, alaw, gsm, g729, ...) • java versus native • to silo or not to silo... • gotcha’s Wednesday 7 April 2010
  • 11. Gotchas • fragmentation • room for interpretation api’s • hardware dependency / buffer hints • latency • bugs • floating point support Wednesday 7 April 2010
  • 13. To silo or not to silo that is the question... • basic functionality easier to integrate • enriched experience asks for silo • how to blend experience / look & feel? • ( what has Google in the pipe? ) Wednesday 7 April 2010
  • 14. Conclusion • VoIP on Android is a reality • could be easier • will improve • enriched communication experience only limited by your imagination • Android is platform of choice, plenty of options Wednesday 7 April 2010
  • 15. Feedback belgianwaves@gmail.com Wednesday 7 April 2010