SlideShare uma empresa Scribd logo
1 de 21
HTML 5
MEDIA ELEMENTS
Call US: +91-9915337448 Email Us: info@webtechlearning.com
HTML Multimedia
• Multimedia on the web, is sound, music, videos, movies, and
animations.
• Multimedia comes in many different formats. It can be almost
anything you can hear or see.
• Examples: Pictures, music, sound, videos, records, films,
animations, and more.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
Multimedia Formats
• Multimedia elements (like sounds or videos) are stored in
media files.
• Multimedia files also have their own formats and different
extensions like:
• .swf, .wav, .mp3, .mp4, .mpg, .wmv, and .avi.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
HTML5 Video
• Before HTML5, there was no standard for showing videos on a
web page.
• Before HTML5, videos could only be played with a plug-in (like
flash).
• The HTML5 <video> element specifies a standard way to
embed a video in a web page.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
The HTML <video> Element
• To show a video in HTML, use the <video> element:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>
How it Works
• The controls attribute adds video controls, like play, pause,
and volume.
• It is a good idea to always include width and height attributes.
• Multiple <source> elements can link to different video files.
The browser will use the first recognized format.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
HTML <video> Autoplay
• To start a video automatically use the autoplay attribute:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<video width="320" height="240" autoplay>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
HTML5 Audio
• HTML5 provides a standard for playing audio files.
• Before HTML5, there was no standard for playing audio files
on a web page.
• Before HTML5, audio files could only be played with a plug-in
(like flash).
• The HTML5 <audio> element specifies a standard way to
embed audio in a web page.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
The HTML <audio> Element
• To play an audio file in HTML, use the <audio> element:
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
HTML Audio - How It Works
• The controls attribute adds audio controls, like play, pause,
and volume.
• Multiple <source> elements can link to different audio files.
The browser will use the first recognized format.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
HTML Plug-ins
• The purpose of a plug-in, is to extend the functionality of the
HTML browser.
• Helper applications are also called plug-ins.
• Plug-ins can be added to web pages with the <object> tag or
the <embed> tag.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
The <object> Element
• The <object> element is supported by all browsers.
• The <object> element defines an embedded object within an
HTML document.
• It is used to embed plug-ins (like Java applets, PDF readers,
Flash Players) in web pages.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
The <object> Element
• For Examples
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<object width="400" height="50" data="bookmark.swf"></object>
<object width="100%" height="500px" data="snippet.html"></object>
<object data="audi.jpeg"></object>
The <embed> Element
• The <embed> element is supported in all major browsers.
• The <embed> element also defines an embedded object
within an HTML document.
• Web browsers have supported the <embed> element for a
long time. However, it has not been a part of the HTML
specification before HTML5.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
The <embed> Element
• For Examples
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<embed width="400" height="50" src="bookmark.swf">
<embed width="100%" height="500px" src="snippet.html">
<embed src="audi.jpeg">
HTML YouTube Videos
• The easiest way to play videos in HTML, is to use YouTube.
• Different versions of different browsers support different
video formats.
• Converting videos to different format can be difficult and time
consuming.
• An easier solution might be to let YouTube play the videos in
your web page.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
Playing a YouTube Video in HTML
To play your video on a web page, do the following:
• Upload the video to YouTube
• Take a note of the video id
• Define an <iframe> element in your web page
• Let the src attribute point to the video URL
• Use the width and height attributes to specify the dimension of the player
• Add any other parameters to the URL
Call US: +91-9915337448 Email Us: info@webtechlearning.com
Using iFrame (the recommended
method)
• For Example
Call US: +91-9915337448 Email Us: info@webtechlearning.com
<iframe width="420" height="315"
src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=1">
</iframe>
YouTube Parameters
Autoplay
• Value 0 (default): The video will not play automatically when the player loads.
• Value 1: The video will play automatically when the player loads.
Controls
• Value 0: Player controls does not display. The video loads immediately.
• Value 1 (default): Player controls display. The video loads immediately.
• Value 2: Player controls display, but the video does not load before the user
initiates playback.
Call US: +91-9915337448 Email Us: info@webtechlearning.com
YouTube Parameters
Loop
• Value 0 (default): The video will play only once.
• Value 1: The video will loop (forever).
Playlist
• A comma separated list of videos to play (in addition to the original URL).
Call US: +91-9915337448 Email Us: info@webtechlearning.com
Html media

Mais conteúdo relacionado

Mais procurados (20)

CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Css box-model
Css box-modelCss box-model
Css box-model
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
Html audio video
Html audio videoHtml audio video
Html audio video
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Css3
Css3Css3
Css3
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
HTML
HTMLHTML
HTML
 
CSS
CSSCSS
CSS
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentation
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Css Ppt
Css PptCss Ppt
Css Ppt
 

Semelhante a Html media

Lecture9 web design and development
Lecture9 web design and developmentLecture9 web design and development
Lecture9 web design and developmentRafi Haidari
 
HTML5 video & Amazon elastic transcoder - FCIP August 2014
HTML5 video & Amazon elastic transcoder - FCIP August 2014HTML5 video & Amazon elastic transcoder - FCIP August 2014
HTML5 video & Amazon elastic transcoder - FCIP August 2014RZasadzinski
 
HTML 5: Audio And Video
HTML 5: Audio And VideoHTML 5: Audio And Video
HTML 5: Audio And VideoReema
 
HTML Media: Where We Are & Where We Need To Go
HTML Media: Where We Are & Where We Need To GoHTML Media: Where We Are & Where We Need To Go
HTML Media: Where We Are & Where We Need To GoNigel Parker
 
Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Saurabh Kheni
 
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingWordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingDigital Strategy Works LLC
 
HTML Multimedia.pptx
HTML Multimedia.pptxHTML Multimedia.pptx
HTML Multimedia.pptxssuser08ea44
 
Video and Audio Streaming
Video and Audio StreamingVideo and Audio Streaming
Video and Audio StreamingKarthick Kumar
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for PhonegapRakesh Jha
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5kokila T
 
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet![edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!Christopher Schmitt
 
Designing web pages html videos
Designing web pages html videosDesigning web pages html videos
Designing web pages html videosJesus Obenita Jr.
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelalShub
 
The Future of Video Player Accessibility
The Future of Video Player AccessibilityThe Future of Video Player Accessibility
The Future of Video Player Accessibility3Play Media
 

Semelhante a Html media (20)

Lecture9 web design and development
Lecture9 web design and developmentLecture9 web design and development
Lecture9 web design and development
 
Html multimedia
Html multimediaHtml multimedia
Html multimedia
 
HTML5
HTML5 HTML5
HTML5
 
HTML5 video & Amazon elastic transcoder - FCIP August 2014
HTML5 video & Amazon elastic transcoder - FCIP August 2014HTML5 video & Amazon elastic transcoder - FCIP August 2014
HTML5 video & Amazon elastic transcoder - FCIP August 2014
 
HTML 5: Audio And Video
HTML 5: Audio And VideoHTML 5: Audio And Video
HTML 5: Audio And Video
 
HTML Media: Where We Are & Where We Need To Go
HTML Media: Where We Are & Where We Need To GoHTML Media: Where We Are & Where We Need To Go
HTML Media: Where We Are & Where We Need To Go
 
Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3
 
Video in html 5
Video in html 5Video in html 5
Video in html 5
 
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and PodcastingWordcamp Raleigh Multimedia: Photos, Video, and Podcasting
Wordcamp Raleigh Multimedia: Photos, Video, and Podcasting
 
HTML Multimedia.pptx
HTML Multimedia.pptxHTML Multimedia.pptx
HTML Multimedia.pptx
 
Looking into HTML5 + CSS3
Looking into HTML5 + CSS3Looking into HTML5 + CSS3
Looking into HTML5 + CSS3
 
Video and Audio Streaming
Video and Audio StreamingVideo and Audio Streaming
Video and Audio Streaming
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5
 
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet![edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
[edUiconf] HTML5 does all that… and i can haz cheeseburger? You bet!
 
HTML Media
HTML MediaHTML Media
HTML Media
 
Html5video
Html5videoHtml5video
Html5video
 
Designing web pages html videos
Designing web pages html videosDesigning web pages html videos
Designing web pages html videos
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelal
 
The Future of Video Player Accessibility
The Future of Video Player AccessibilityThe Future of Video Player Accessibility
The Future of Video Player Accessibility
 

Mais de Webtech Learning

Mais de Webtech Learning (20)

Benefits of Digital Marketing
Benefits of Digital MarketingBenefits of Digital Marketing
Benefits of Digital Marketing
 
Digital Marketing Benefits
Digital Marketing  BenefitsDigital Marketing  Benefits
Digital Marketing Benefits
 
Future Scope of Digital Marketing in India
Future Scope of Digital Marketing in IndiaFuture Scope of Digital Marketing in India
Future Scope of Digital Marketing in India
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
 
Css presentation
Css presentationCss presentation
Css presentation
 
Client side &amp; Server side Scripting
Client side &amp; Server side Scripting Client side &amp; Server side Scripting
Client side &amp; Server side Scripting
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
Shadows Effects in CSS
Shadows Effects in CSSShadows Effects in CSS
Shadows Effects in CSS
 
Bs Typography
Bs TypographyBs Typography
Bs Typography
 
Bootstrap grids
Bootstrap gridsBootstrap grids
Bootstrap grids
 
Html formatting
Html formattingHtml formatting
Html formatting
 
Css box-sizing
Css box-sizingCss box-sizing
Css box-sizing
 
Css position
Css positionCss position
Css position
 
Css margins
Css marginsCss margins
Css margins
 
Css Display Property
Css Display PropertyCss Display Property
Css Display Property
 
Css floats
Css floatsCss floats
Css floats
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
 
Wordpress installation
Wordpress installationWordpress installation
Wordpress installation
 

Último

Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作7tz4rjpd
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证nhjeo1gg
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfworkingdev2003
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCRdollysharma2066
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryrioverosanniejoy
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书zdzoqco
 
Apresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoApresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoCarolTelles6
 
西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造kbdhl05e
 
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...mrchrns005
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfShivakumar Viswanathan
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10uasjlagroup
 

Último (20)

Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作韩国SKKU学位证,成均馆大学毕业证书1:1制作
韩国SKKU学位证,成均馆大学毕业证书1:1制作
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
 
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制堪培拉大学毕业证(UC毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Create Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdfCreate Web Pages by programming of your chice.pdf
Create Web Pages by programming of your chice.pdf
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
 
Design and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industryDesign and Managing Service in the field of tourism and hospitality industry
Design and Managing Service in the field of tourism and hospitality industry
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
 
Apresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus RizzoApresentação Clamo Cristo -letra música Matheus Rizzo
Apresentação Clamo Cristo -letra música Matheus Rizzo
 
西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造
 
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...
Business research proposal mcdo.pptxBusiness research proposal mcdo.pptxBusin...
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
FiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdfFiveHypotheses_UIDMasterclass_18April2024.pdf
FiveHypotheses_UIDMasterclass_18April2024.pdf
 
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
CREATING A POSITIVE SCHOOL CULTURE CHAPTER 10
 

Html media

  • 1. HTML 5 MEDIA ELEMENTS Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 2. HTML Multimedia • Multimedia on the web, is sound, music, videos, movies, and animations. • Multimedia comes in many different formats. It can be almost anything you can hear or see. • Examples: Pictures, music, sound, videos, records, films, animations, and more. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 3. Multimedia Formats • Multimedia elements (like sounds or videos) are stored in media files. • Multimedia files also have their own formats and different extensions like: • .swf, .wav, .mp3, .mp4, .mpg, .wmv, and .avi. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 4. HTML5 Video • Before HTML5, there was no standard for showing videos on a web page. • Before HTML5, videos could only be played with a plug-in (like flash). • The HTML5 <video> element specifies a standard way to embed a video in a web page. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 5. The HTML <video> Element • To show a video in HTML, use the <video> element: Call US: +91-9915337448 Email Us: info@webtechlearning.com <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> </video>
  • 6. How it Works • The controls attribute adds video controls, like play, pause, and volume. • It is a good idea to always include width and height attributes. • Multiple <source> elements can link to different video files. The browser will use the first recognized format. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 7. HTML <video> Autoplay • To start a video automatically use the autoplay attribute: Call US: +91-9915337448 Email Us: info@webtechlearning.com <video width="320" height="240" autoplay> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>
  • 8. HTML5 Audio • HTML5 provides a standard for playing audio files. • Before HTML5, there was no standard for playing audio files on a web page. • Before HTML5, audio files could only be played with a plug-in (like flash). • The HTML5 <audio> element specifies a standard way to embed audio in a web page. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 9. The HTML <audio> Element • To play an audio file in HTML, use the <audio> element: Call US: +91-9915337448 Email Us: info@webtechlearning.com <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>
  • 10. HTML Audio - How It Works • The controls attribute adds audio controls, like play, pause, and volume. • Multiple <source> elements can link to different audio files. The browser will use the first recognized format. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 11. HTML Plug-ins • The purpose of a plug-in, is to extend the functionality of the HTML browser. • Helper applications are also called plug-ins. • Plug-ins can be added to web pages with the <object> tag or the <embed> tag. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 12. The <object> Element • The <object> element is supported by all browsers. • The <object> element defines an embedded object within an HTML document. • It is used to embed plug-ins (like Java applets, PDF readers, Flash Players) in web pages. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 13. The <object> Element • For Examples Call US: +91-9915337448 Email Us: info@webtechlearning.com <object width="400" height="50" data="bookmark.swf"></object> <object width="100%" height="500px" data="snippet.html"></object> <object data="audi.jpeg"></object>
  • 14. The <embed> Element • The <embed> element is supported in all major browsers. • The <embed> element also defines an embedded object within an HTML document. • Web browsers have supported the <embed> element for a long time. However, it has not been a part of the HTML specification before HTML5. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 15. The <embed> Element • For Examples Call US: +91-9915337448 Email Us: info@webtechlearning.com <embed width="400" height="50" src="bookmark.swf"> <embed width="100%" height="500px" src="snippet.html"> <embed src="audi.jpeg">
  • 16. HTML YouTube Videos • The easiest way to play videos in HTML, is to use YouTube. • Different versions of different browsers support different video formats. • Converting videos to different format can be difficult and time consuming. • An easier solution might be to let YouTube play the videos in your web page. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 17. Playing a YouTube Video in HTML To play your video on a web page, do the following: • Upload the video to YouTube • Take a note of the video id • Define an <iframe> element in your web page • Let the src attribute point to the video URL • Use the width and height attributes to specify the dimension of the player • Add any other parameters to the URL Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 18. Using iFrame (the recommended method) • For Example Call US: +91-9915337448 Email Us: info@webtechlearning.com <iframe width="420" height="315" src="http://www.youtube.com/embed/XGSy3_Czz8k?autoplay=1"> </iframe>
  • 19. YouTube Parameters Autoplay • Value 0 (default): The video will not play automatically when the player loads. • Value 1: The video will play automatically when the player loads. Controls • Value 0: Player controls does not display. The video loads immediately. • Value 1 (default): Player controls display. The video loads immediately. • Value 2: Player controls display, but the video does not load before the user initiates playback. Call US: +91-9915337448 Email Us: info@webtechlearning.com
  • 20. YouTube Parameters Loop • Value 0 (default): The video will play only once. • Value 1: The video will loop (forever). Playlist • A comma separated list of videos to play (in addition to the original URL). Call US: +91-9915337448 Email Us: info@webtechlearning.com