SlideShare ist ein Scribd-Unternehmen logo
1 von 18
HTML5 RTC
Lunch and Learn Series
Lesson 1.
Agenda
 Introduction
 HTML 5 Overview
 WHY HTML5 RTC ?
 HTML5 RTC Javascript APIs
 MediaStream (getUserMedia) API
 RTC Workshop / Demo
Introduction
HTML5 RTC is also known as Web RTC and supports
browser-to-browser applications for voice calling, video
chat, and P2P file sharing.
RTC : Real Time Communication
It provides browsers and mobile applications with Real-Time
Communications (RTC) capabilities via simple APIs.
List of technologies that can be used for ral time communications : http://www.leggetter.co.uk/real-
time-web-technologies-guide/
Introduction
HTML5 Overview
HTML5 is a new standard for structuring and presenting content on the World Wide
Web.
HTML5 standard incorporates features like video playback and drag-and-drop that
have been previously dependent on third-party browser plug-ins such as Adobe Flash,
Microsoft Silverlight, and Google Gears.
Browser Support
All the latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all
support many HTML5 features and Microsoft Edge has support for some HTML5
functionality.
The mobile web browsers that come pre-installed on iPhones, iPads, and Android
phones all have excellent support for HTML5.
HTML5 Overview
New Features
New Semantic Elements − These are like <header>, <footer>, and <section>.
Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced
for <input> tag.
Persistent Local Storage − To achieve without resorting to third-party plugins.
WebSocket − A next-generation bidirectional communication technology for web
applications.
Server-Sent Events − HTML5 introduces events which flow from web server to the web
browsers called Server-Sent Events (SSE).
HTML5 Overview
New Features
Canvas − This supports a two-dimensional drawing surface that you can program with
JavaScript.
Audio & Video − You can embed audio or video on your web pages without resorting to
third-party plugins.
Geolocation − Now visitors can choose to share their physical location with your web
application.
Microdata − This lets you create your own vocabularies beyond HTML5 and extend your web
pages with custom semantics.
Drag and drop − Drag and drop the items from one location to another location on a the
same webpage.
WHY HTML5 RTC ?
History
One of the last major challenges for the web was to enable easy and inexpensive human
communication via voice and video.
RTC has been corporate and complex, requiring expensive audio and video technologies to be
licensed or developed in house.
Integrating RTC technology with existing content, data and services has been difficult and
time consuming, particularly on the web.
Need
Many web services already use RTC, but need downloads, native apps or plugins. These includes
 Skype,
 Facebook (which uses Skype)
 Google Hangouts (which use the Google Talk plugin).
Downloading, installing and updating plugins can be complex, error prone and annoying.
WHY HTML5 RTC ?
Benefits
It enables rich and high-quality RTC applications to be developed for the browser, mobile
platforms, and IoT devices, and allow them all to communicate via a common set of
protocols.
It provides low cost and high quality data, audio and video communication
Browsers
HTML5 RTC is currently supported by Google Chrome, Mozilla Firefox, and Opera, in both
their desktop and Android versions.
Microsoft’s Internet Explorer and Apple’s Safari have yet to add full support for HTML5 RTC.
HTML5 RTC Javascript APIs
RTC Tasks
HTML5 RTC applications need to do several things:
 Retrieving audio and video streams online.
 Enable communication between users in audio and video format.
 Enable transfer of random data formats between users.
 Get network information such as IP addresses and ports, and exchange this with other
WebRTC clients (known as peers) to enable connection, even through NATs and firewalls.
 Coordinate signaling communication to report errors and initiate or close sessions.
 Exchange information about media and client capability, such as resolution and codecs.
 RTCPeerConnection
is the WebRTC component that handles stable and efficient communication of streaming
data between peers. This requires a mechanism to coordinate communication and to send
control messages, a process known as signaling.
HTML5 RTC Javascript APIs
 RTCDataChannel
enables peer-to-peer exchange of random data, with low time lag and high processing
speed. Examples gaming, remote desktop apps and real time text chat
API
 MediaStream (getUserMedia)
provides access to multimedia streams (video, audio, or both) from local devices without the
need to install additional software. Used for realtime communication and recording tutorials.
MediaStream (getUserMedia) API
This API allows web applications to access a user's camera and microphone.
The API is only capable of acquiring audio and video, not sending the data or storing it in a
file.
It exposes only one method, getUserMedia(), that belongs to the window.navigator object of
the DOM.
The getUserMedia() method takes 3 parameters
1. Contraints
2. Success callback which processes a MediaStream
3. Failure callback which processes an error object
MediaStream (getUserMedia) API
Constraints
The constraints parameter is an object having either one or both the properties audio and
video.
{
video: true,
audio: true
}
Constraints
{
video: {
mandatory: {
minWidth: 1280,
minHeight: 720,
minFrameRate: 30
},
optional: [
{ minFrameRate: 60 }
]
},
audio: true
}
MediaStream (getUserMedia) API
MediaStream (getUserMedia) API
Success Callback
function(stream)
{
videoStream = stream;
// Stream the data
video.src = createSrc(stream);
video.play();
}
MediaStream (getUserMedia) API
Error Callback
function(error) {
console.log("Video capture error: ", error.code);
});
Workshop
At the end of the series we should have an RTC enabled application for video and
voice chat.
Demo 1 : Implement the MediaStream API.
THANKS… 

Weitere ähnliche Inhalte

Was ist angesagt?

WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)
WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)
WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)Victor Pascual Ávila
 
WebRTC: players, business models and implications for telecommunication carriers
WebRTC: players, business models and implications for telecommunication carriersWebRTC: players, business models and implications for telecommunication carriers
WebRTC: players, business models and implications for telecommunication carriersHarry Behrens, PhD
 
WebSphere Liberty Rtcomm: WebRTC Middleware for the Enterprise
WebSphere Liberty Rtcomm: WebRTC Middleware for the EnterpriseWebSphere Liberty Rtcomm: WebRTC Middleware for the Enterprise
WebSphere Liberty Rtcomm: WebRTC Middleware for the EnterpriseBrian Pulito
 
A Practical Guide to WebRTC
A Practical Guide to WebRTCA Practical Guide to WebRTC
A Practical Guide to WebRTCvline
 
The State of WebRTC
The State of WebRTCThe State of WebRTC
The State of WebRTCRobin Hawkes
 
WebRTC Overview
WebRTC OverviewWebRTC Overview
WebRTC OverviewArin Sime
 
WebRTC vs VoIP: IIT-RTC Oct 2013
WebRTC vs VoIP: IIT-RTC Oct 2013WebRTC vs VoIP: IIT-RTC Oct 2013
WebRTC vs VoIP: IIT-RTC Oct 2013Reid Stidolph
 
Using Groovy to empower WebRTC Network Systems
Using Groovy to empower WebRTC Network SystemsUsing Groovy to empower WebRTC Network Systems
Using Groovy to empower WebRTC Network Systemsantonry
 
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013Luis Borges Quina
 
Webrtc world tour_2019_2nd edition_ed1_uprism_syson
Webrtc world tour_2019_2nd edition_ed1_uprism_sysonWebrtc world tour_2019_2nd edition_ed1_uprism_syson
Webrtc world tour_2019_2nd edition_ed1_uprism_sysonsung young son
 
Oracle - WebRTC Pre-conference TADSummit Workshop
Oracle - WebRTC Pre-conference TADSummit WorkshopOracle - WebRTC Pre-conference TADSummit Workshop
Oracle - WebRTC Pre-conference TADSummit Workshopantonry
 
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...Boni García
 
Bloxian Technology Capabilities and Offferings
Bloxian Technology Capabilities and OffferingsBloxian Technology Capabilities and Offferings
Bloxian Technology Capabilities and OffferingsParveen Kumar
 
How WebRTC is Altering the Landscape for Mobile UC & BYOD
How WebRTC is Altering the Landscape for Mobile UC & BYODHow WebRTC is Altering the Landscape for Mobile UC & BYOD
How WebRTC is Altering the Landscape for Mobile UC & BYODGENBANDcorporate
 
How to integrate Mitel IP telephony solution to Business processes ?
How to integrate Mitel IP telephony solution to Business processes ?How to integrate Mitel IP telephony solution to Business processes ?
How to integrate Mitel IP telephony solution to Business processes ?chloeblondeau
 
OSI REFRENCE MODEL by- Mujmmil Shaikh
OSI REFRENCE MODEL by- Mujmmil ShaikhOSI REFRENCE MODEL by- Mujmmil Shaikh
OSI REFRENCE MODEL by- Mujmmil ShaikhMujmmil Shaikh
 

Was ist angesagt? (20)

WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)
WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)
WebRTC and VoIP: bridging the gap (Kamailio world conference 2013)
 
WebRTC in the Real World
WebRTC in the Real WorldWebRTC in the Real World
WebRTC in the Real World
 
WebRTC: players, business models and implications for telecommunication carriers
WebRTC: players, business models and implications for telecommunication carriersWebRTC: players, business models and implications for telecommunication carriers
WebRTC: players, business models and implications for telecommunication carriers
 
WebSphere Liberty Rtcomm: WebRTC Middleware for the Enterprise
WebSphere Liberty Rtcomm: WebRTC Middleware for the EnterpriseWebSphere Liberty Rtcomm: WebRTC Middleware for the Enterprise
WebSphere Liberty Rtcomm: WebRTC Middleware for the Enterprise
 
The Future of SIP in WebRTC
The Future of SIP in WebRTCThe Future of SIP in WebRTC
The Future of SIP in WebRTC
 
A Practical Guide to WebRTC
A Practical Guide to WebRTCA Practical Guide to WebRTC
A Practical Guide to WebRTC
 
The State of WebRTC
The State of WebRTCThe State of WebRTC
The State of WebRTC
 
WebRTC Overview
WebRTC OverviewWebRTC Overview
WebRTC Overview
 
WebRTC vs VoIP: IIT-RTC Oct 2013
WebRTC vs VoIP: IIT-RTC Oct 2013WebRTC vs VoIP: IIT-RTC Oct 2013
WebRTC vs VoIP: IIT-RTC Oct 2013
 
Using Groovy to empower WebRTC Network Systems
Using Groovy to empower WebRTC Network SystemsUsing Groovy to empower WebRTC Network Systems
Using Groovy to empower WebRTC Network Systems
 
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013
API Days Apidaze WebRTC Hype or Disruption 4 dec. 2013
 
Webrtc world tour_2019_2nd edition_ed1_uprism_syson
Webrtc world tour_2019_2nd edition_ed1_uprism_sysonWebrtc world tour_2019_2nd edition_ed1_uprism_syson
Webrtc world tour_2019_2nd edition_ed1_uprism_syson
 
Oracle - WebRTC Pre-conference TADSummit Workshop
Oracle - WebRTC Pre-conference TADSummit WorkshopOracle - WebRTC Pre-conference TADSummit Workshop
Oracle - WebRTC Pre-conference TADSummit Workshop
 
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...
NUBOMEDIA: an Elastic PaaS Enabling the Convergence of Real-Time and Big Data...
 
Bloxian Technology Capabilities and Offferings
Bloxian Technology Capabilities and OffferingsBloxian Technology Capabilities and Offferings
Bloxian Technology Capabilities and Offferings
 
Qnx html5 hmi
Qnx html5 hmiQnx html5 hmi
Qnx html5 hmi
 
How WebRTC is Altering the Landscape for Mobile UC & BYOD
How WebRTC is Altering the Landscape for Mobile UC & BYODHow WebRTC is Altering the Landscape for Mobile UC & BYOD
How WebRTC is Altering the Landscape for Mobile UC & BYOD
 
How to integrate Mitel IP telephony solution to Business processes ?
How to integrate Mitel IP telephony solution to Business processes ?How to integrate Mitel IP telephony solution to Business processes ?
How to integrate Mitel IP telephony solution to Business processes ?
 
OSI REFRENCE MODEL by- Mujmmil Shaikh
OSI REFRENCE MODEL by- Mujmmil ShaikhOSI REFRENCE MODEL by- Mujmmil Shaikh
OSI REFRENCE MODEL by- Mujmmil Shaikh
 
NUBOMEDIA Webinar
NUBOMEDIA WebinarNUBOMEDIA Webinar
NUBOMEDIA Webinar
 

Ähnlich wie Html5 RTC - 1

The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...
The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...
The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...Brian Pulito
 
What is WebRTC and How does it work?
What is WebRTC and How does it work?What is WebRTC and How does it work?
What is WebRTC and How does it work?SandipPatel533958
 
Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)Quobis
 
WbeRTC in IOT presented in KrankyGeek
WbeRTC in IOT presented in KrankyGeekWbeRTC in IOT presented in KrankyGeek
WbeRTC in IOT presented in KrankyGeekALTANAI BISHT
 
WebRTC - Is this a Game changer??
WebRTC - Is this a Game changer??WebRTC - Is this a Game changer??
WebRTC - Is this a Game changer??learjk
 
WebRTC standards update (13 Nov 2013)
WebRTC standards update (13 Nov 2013)WebRTC standards update (13 Nov 2013)
WebRTC standards update (13 Nov 2013)Victor Pascual Ávila
 
Peer-to-peer media streaming with HTML5
Peer-to-peer media streaming with HTML5Peer-to-peer media streaming with HTML5
Peer-to-peer media streaming with HTML5IJECEIAES
 
Forge SDK Introduction for TADHack
Forge SDK Introduction for TADHackForge SDK Introduction for TADHack
Forge SDK Introduction for TADHackAlan Quayle
 
Web rtc videoconference
Web rtc videoconferenceWeb rtc videoconference
Web rtc videoconferenceMarc Manthey
 
WebRTC Workshop 2013 given at the IMS World Forum
WebRTC Workshop 2013 given at the IMS World ForumWebRTC Workshop 2013 given at the IMS World Forum
WebRTC Workshop 2013 given at the IMS World ForumAlan Quayle
 

Ähnlich wie Html5 RTC - 1 (20)

Pkewebrtc
PkewebrtcPkewebrtc
Pkewebrtc
 
WebRCT
WebRCTWebRCT
WebRCT
 
Webrtc and tokbox
Webrtc and tokboxWebrtc and tokbox
Webrtc and tokbox
 
WebRTC presentation
WebRTC presentationWebRTC presentation
WebRTC presentation
 
The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...
The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...
The Enterprise wants WebRTC -- and it needs Middleware to get it! (IIT RTC Co...
 
What is WebRTC and How does it work?
What is WebRTC and How does it work?What is WebRTC and How does it work?
What is WebRTC and How does it work?
 
DevCon5 (July 2014) - Intro to WebRTC
DevCon5 (July 2014) - Intro to WebRTCDevCon5 (July 2014) - Intro to WebRTC
DevCon5 (July 2014) - Intro to WebRTC
 
Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)Webinar WebRTC HTML5 (english)
Webinar WebRTC HTML5 (english)
 
WbeRTC in IOT presented in KrankyGeek
WbeRTC in IOT presented in KrankyGeekWbeRTC in IOT presented in KrankyGeek
WbeRTC in IOT presented in KrankyGeek
 
DevCon5 (July 2014) - Acision SDK
DevCon5 (July 2014) - Acision SDKDevCon5 (July 2014) - Acision SDK
DevCon5 (July 2014) - Acision SDK
 
WebRTC - Is this a Game changer??
WebRTC - Is this a Game changer??WebRTC - Is this a Game changer??
WebRTC - Is this a Game changer??
 
WebRTC presentation
WebRTC presentationWebRTC presentation
WebRTC presentation
 
Webrtc in Real world
Webrtc in Real world Webrtc in Real world
Webrtc in Real world
 
DevCon 5 (December 2013) - WebRTC & WebSockets
DevCon 5 (December 2013) - WebRTC & WebSocketsDevCon 5 (December 2013) - WebRTC & WebSockets
DevCon 5 (December 2013) - WebRTC & WebSockets
 
WebRTC standards update (13 Nov 2013)
WebRTC standards update (13 Nov 2013)WebRTC standards update (13 Nov 2013)
WebRTC standards update (13 Nov 2013)
 
Peer-to-peer media streaming with HTML5
Peer-to-peer media streaming with HTML5Peer-to-peer media streaming with HTML5
Peer-to-peer media streaming with HTML5
 
Forge SDK Introduction for TADHack
Forge SDK Introduction for TADHackForge SDK Introduction for TADHack
Forge SDK Introduction for TADHack
 
Web rtc videoconference
Web rtc videoconferenceWeb rtc videoconference
Web rtc videoconference
 
WebRTC Workshop 2013 given at the IMS World Forum
WebRTC Workshop 2013 given at the IMS World ForumWebRTC Workshop 2013 given at the IMS World Forum
WebRTC Workshop 2013 given at the IMS World Forum
 
WebRTC Seminar Report
WebRTC  Seminar ReportWebRTC  Seminar Report
WebRTC Seminar Report
 

Kürzlich hochgeladen

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 2024The Digital Insurer
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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 Takeoffsammart93
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 

Kürzlich hochgeladen (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech 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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

Html5 RTC - 1

  • 1. HTML5 RTC Lunch and Learn Series Lesson 1.
  • 2. Agenda  Introduction  HTML 5 Overview  WHY HTML5 RTC ?  HTML5 RTC Javascript APIs  MediaStream (getUserMedia) API  RTC Workshop / Demo
  • 3. Introduction HTML5 RTC is also known as Web RTC and supports browser-to-browser applications for voice calling, video chat, and P2P file sharing. RTC : Real Time Communication It provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. List of technologies that can be used for ral time communications : http://www.leggetter.co.uk/real- time-web-technologies-guide/
  • 5. HTML5 Overview HTML5 is a new standard for structuring and presenting content on the World Wide Web. HTML5 standard incorporates features like video playback and drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash, Microsoft Silverlight, and Google Gears. Browser Support All the latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Microsoft Edge has support for some HTML5 functionality. The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5.
  • 6. HTML5 Overview New Features New Semantic Elements − These are like <header>, <footer>, and <section>. Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced for <input> tag. Persistent Local Storage − To achieve without resorting to third-party plugins. WebSocket − A next-generation bidirectional communication technology for web applications. Server-Sent Events − HTML5 introduces events which flow from web server to the web browsers called Server-Sent Events (SSE).
  • 7. HTML5 Overview New Features Canvas − This supports a two-dimensional drawing surface that you can program with JavaScript. Audio & Video − You can embed audio or video on your web pages without resorting to third-party plugins. Geolocation − Now visitors can choose to share their physical location with your web application. Microdata − This lets you create your own vocabularies beyond HTML5 and extend your web pages with custom semantics. Drag and drop − Drag and drop the items from one location to another location on a the same webpage.
  • 8. WHY HTML5 RTC ? History One of the last major challenges for the web was to enable easy and inexpensive human communication via voice and video. RTC has been corporate and complex, requiring expensive audio and video technologies to be licensed or developed in house. Integrating RTC technology with existing content, data and services has been difficult and time consuming, particularly on the web. Need Many web services already use RTC, but need downloads, native apps or plugins. These includes  Skype,  Facebook (which uses Skype)  Google Hangouts (which use the Google Talk plugin). Downloading, installing and updating plugins can be complex, error prone and annoying.
  • 9. WHY HTML5 RTC ? Benefits It enables rich and high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols. It provides low cost and high quality data, audio and video communication Browsers HTML5 RTC is currently supported by Google Chrome, Mozilla Firefox, and Opera, in both their desktop and Android versions. Microsoft’s Internet Explorer and Apple’s Safari have yet to add full support for HTML5 RTC.
  • 10. HTML5 RTC Javascript APIs RTC Tasks HTML5 RTC applications need to do several things:  Retrieving audio and video streams online.  Enable communication between users in audio and video format.  Enable transfer of random data formats between users.  Get network information such as IP addresses and ports, and exchange this with other WebRTC clients (known as peers) to enable connection, even through NATs and firewalls.  Coordinate signaling communication to report errors and initiate or close sessions.  Exchange information about media and client capability, such as resolution and codecs.
  • 11.  RTCPeerConnection is the WebRTC component that handles stable and efficient communication of streaming data between peers. This requires a mechanism to coordinate communication and to send control messages, a process known as signaling. HTML5 RTC Javascript APIs  RTCDataChannel enables peer-to-peer exchange of random data, with low time lag and high processing speed. Examples gaming, remote desktop apps and real time text chat API  MediaStream (getUserMedia) provides access to multimedia streams (video, audio, or both) from local devices without the need to install additional software. Used for realtime communication and recording tutorials.
  • 12. MediaStream (getUserMedia) API This API allows web applications to access a user's camera and microphone. The API is only capable of acquiring audio and video, not sending the data or storing it in a file. It exposes only one method, getUserMedia(), that belongs to the window.navigator object of the DOM. The getUserMedia() method takes 3 parameters 1. Contraints 2. Success callback which processes a MediaStream 3. Failure callback which processes an error object
  • 13. MediaStream (getUserMedia) API Constraints The constraints parameter is an object having either one or both the properties audio and video. { video: true, audio: true }
  • 14. Constraints { video: { mandatory: { minWidth: 1280, minHeight: 720, minFrameRate: 30 }, optional: [ { minFrameRate: 60 } ] }, audio: true } MediaStream (getUserMedia) API
  • 15. MediaStream (getUserMedia) API Success Callback function(stream) { videoStream = stream; // Stream the data video.src = createSrc(stream); video.play(); }
  • 16. MediaStream (getUserMedia) API Error Callback function(error) { console.log("Video capture error: ", error.code); });
  • 17. Workshop At the end of the series we should have an RTC enabled application for video and voice chat. Demo 1 : Implement the MediaStream API.

Hinweis der Redaktion

  1. RTC => all users can exchange information instantly or with hardly noticable time lag. In this context, the term "real-time" is synonymous with "live.“ Instant Messaging, Video calls, data transfer RTC Technologies SignalR, Websockets, Server Sent Events
  2. 3 Core areas of HTML5 RTC
  3. Previous Version =>  HTML 4.01 HTML5 is designed, as much as possible, to be backward compatible with existing web browsers. New features build on existing features and allow you to provide fallback content for older browsers.
  4. Forms => Type attribute: date,datetime, number range,email Output element tag, place holder attribute Storage => session storage and local storage  instead of session cookies. Sockets => bidirectional communication technology for web applications which operates over a single socket and is exposed via a JavaScript interface in HTML 5 compliant browsers. Using SSE you can push DOM events continously from your web server to the visitor's browser.
  5. Canvas => to draw graphics using JavaScript. It can be used to draw graphs, make photo compositions or do simple (and not so simple) animations. Audio Video => HTML5 features, include native audio and video support without the need for Flash. Location => do fancy location-aware things like finding local businesses or showing your location on a map Drag => makes it easy to copy, reorder and deletion of items with the help of mouse clicks
  6. Need => Plugins can be difficult to deploy, debug, troubleshoot, test and maintain—and may require licensing and integration with complex, expensive technology. It's often difficult to persuade people to install plugins in the first place!
  7. Note: that a platform 'supports WebRTC'. Often this actually just means that getUserMedia is supported, but not any of the other RTC components Video surveillance of home or work. A combination of The RTCPeerConection and getUserMedia can enable an implementation of audio or video chat. WebRTC developers can choose whatever messaging protocol they prefer, such as SIP or XMPP, and any appropriate duplex (two-way) communication channel for signaling RTCDataChannel Gaming Remote desktop applications Real-time text chat File transfer
  8. we need to send data across the Internet. This can be done using the RTCPeerConnection API. To store the data we can use the MediaStreamRecorder API. The navigator object contains information about the browser. Note: There is no public standard that applies to the navigator object, but all major browsers support it.
  9. The Window.URL property returns an object that provides static methods used for creating and managing object URLs. It can also be called as a constructor to construct URL objects.