SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

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 081017imec.archive
 
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.11Rikaz Sheriff
 
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 Verdocnkimec.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
 
ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012ENoLL @ AAL Forum 2012
ENoLL @ AAL Forum 2012imec.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 Stresimec.archive
 
Ecrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov PaperEcrea3f Zoran Kostov Paper
Ecrea3f Zoran Kostov Paperimec.archive
 
31032010 we bbt workshop project management
31032010 we bbt workshop project management31032010 we bbt workshop project management
31032010 we bbt workshop project managementimec.archive
 
Brokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaBrokerage 2007 presentation multimedia
Brokerage 2007 presentation multimediaimec.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 Dejongheimec.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
 
T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들T map 로그에서 발생한 Java Locale 문제들
T map 로그에서 발생한 Java Locale 문제들Chanil Park
 
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 Seriesimec.archive
 
6 deus leaflet wp5
6 deus leaflet wp56 deus leaflet wp5
6 deus leaflet wp5imec.archive
 
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 knowledgeRikaz Sheriff
 

Destaque (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
 

Último

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 DiscoveryTrustArc
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
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 businesspanagenda
 
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.pdfsudhanshuwaghmare1
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
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...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
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 FMESafe Software
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 

Último (20)

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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

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