SlideShare a Scribd company logo
1 of 9
Download to read offline
Embedding videos to web page (FLV and HTML 5 videos)
This step by step guide consists of the following 3 sections:
Part 1: The good old method of adding Flash Video (FLV) to a webpage
Part 2: Learning how to use open source VideoLAN’s VLC player to convert video to formats
supported in HTML5 by different browsers
Part 3: Embedding videos using HTML 5 <video> tag
Part 1: Adding Flash Video (FLV) to a page
1. Launch Dreamweaver CS 6, create new site and link to local folder.
2. Create a new HTML 5 file, give it a title “FLV and HTML 5 Video” and saved it as
video.html.
3. Choose Insert > Media > FLV.
4. When the Insert FLV dialog box appears, make sure the Video Type is set to
Progressive Download Video. See Figure 4. Take note of the other Video Type.
Figure 4
5. Click Browse and navigate to the movie folder in the site root. Choose italy.flv.
6. From the Skin type, choose Corona Skin 2. Click OK.
7. Click the Detect Size button to enter the Width and Height of the video automatically.
Select the Constrain and Auto Rewind options. Click OK. Refer to Figure 7.
Figure 7
8. The Corona Skin 2 will easily fit the limited width of the sidebar, and it interactively
appears and disappears when the visitor moves his cursor over the video.
9. Dreamweaver inserts a placeholder, which can be customized somewhat with the
Property inspector. FLV files cannot be previewed within Design view and must be
viewed in Live view or a browser. See Figure 9.
Figure 9
10. Save the file. When you save the file, the Copy Dependent Files dialog box may
appear displaying a message explaining that the dependent files expressInstall.swf
and swfobject_modified.js will be placed into a new Scripts folder. These files are
essential for running an FLV file in the browser and must be uploaded to your web
server to support Flash functionality. If and when this dialog box appears, click OK.
Figure 10
11. Preview the page in Live view, or preview the page in the browser. If the video controls
are not visible, move your cursor over the still image to display them. Click the Play
button to view the movie. There is no sound in this movie, but the controls include a
speaker button to turn the sound off and on, as in Figure 11.
Figure 11
12. When you’re finished, switch back to Design view.
Part 2: Using VideoLAN’s VLC to convert video
You’ve added an FLV file and controls that allow the user to start and stop the video, and to
turn the sound off and on. You also detected the size of the video automatically.
However as more users are accessing the Internet via mobile browsers on iOS, Phone 8 and
Android platform, the recommended method to embed video is to use the latest HTML
<Video> Tag.
The problem is that HTML 5 video does not support FLV format. Two other formats are
required to support all browsers:
1. MP4 format to be playable on iOS Safari and IE
2. OGG format to be playable on other browsers (Eg Firefox, Chrome and Opera)
Procedure:
13. Download and install the VLC player.
14. Open the source file (eg italy.flv) using VLC player.
15. On the Menu: File > Streaming / Exporting Wizard
16. Select "Transcode / Save to file", then "OK".
17. Choose "Existing playlist item", select the source file (eg italy.flv) and "Next".
11
22
33
18. Check "Transcode video", select "MPEG-4" for mp4 or "Theora" for ogg format.
Check "Transcode audio", select "MPEG-4 Audio" for mp4 or "Vorbis"" for ogg format.
Then "Next".
19. Select "MPEG 4 / MP4" for mp4 or "ogg" for ogg format. "Next".
20. Select "Choose .." then in the popup, select the location and type in the filename (eg
"italy") , "Save". Then "Next".
21. Just click on "Finish" and the conversion will start.
That’s all to the conversions.
11
44 22
33
Part 3: Embedding HTML 5 videos
For newer browsers, they will play the HTML 5 video (MP4 or OGG format) but for older
browsers (such as IE6 on Win XP), they will play FLV using the Flash Plugin. We need to
add code to Part 1 as follows:
22. Switch to code view. The code will take care for browser without flash player to provide
the link to download. For those with latest flash player, it will run the
“FLVPlayer_Progressive.swf” (basically a FLV player) to play “italy.flv” file.
23. Add the following code (before and after the <object> tags).
Use “<!-- xxx xxx xxx -->” to add HTML comments.
:
:
24. Modify the code to include additional attributes for the <video> tag.
For more attributes and their possible values, refer to the following table:
25. Add in the <source> tags to point to the two video files.
26. Save and preview in the various browsers (IE, Firefox, Chrome, etc).

More Related Content

More from Hock Leng PUAH

Integrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteIntegrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteHock Leng PUAH
 
Step by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleStep by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleHock Leng PUAH
 
CSS Basic and Common Errors
CSS Basic and Common ErrorsCSS Basic and Common Errors
CSS Basic and Common ErrorsHock Leng PUAH
 
Connectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectConnectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectHock Leng PUAH
 
Ohm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelOhm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelHock Leng PUAH
 
Connections Exercises Guide
Connections Exercises GuideConnections Exercises Guide
Connections Exercises GuideHock Leng PUAH
 
Design to circuit connection
Design to circuit connectionDesign to circuit connection
Design to circuit connectionHock Leng PUAH
 
NMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryNMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryHock Leng PUAH
 
Virtualbox step by step guide
Virtualbox step by step guideVirtualbox step by step guide
Virtualbox step by step guideHock Leng PUAH
 
Pedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsPedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsHock Leng PUAH
 
Objective C Primer (with ref to C#)
Objective C  Primer (with ref to C#)Objective C  Primer (with ref to C#)
Objective C Primer (with ref to C#)Hock Leng PUAH
 
Do While and While Loop
Do While and While LoopDo While and While Loop
Do While and While LoopHock Leng PUAH
 

More from Hock Leng PUAH (20)

Integrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web siteIntegrate jQuery PHP MySQL project to JOOMLA web site
Integrate jQuery PHP MySQL project to JOOMLA web site
 
Responsive design
Responsive designResponsive design
Responsive design
 
Step by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visibleStep by step guide to use mac lion to make hidden folders visible
Step by step guide to use mac lion to make hidden folders visible
 
Beautiful web pages
Beautiful web pagesBeautiful web pages
Beautiful web pages
 
CSS Basic and Common Errors
CSS Basic and Common ErrorsCSS Basic and Common Errors
CSS Basic and Common Errors
 
Connectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe ProjectConnectivity Test for EES Logic Probe Project
Connectivity Test for EES Logic Probe Project
 
Logic gate lab intro
Logic gate lab introLogic gate lab intro
Logic gate lab intro
 
Ohm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallelOhm's law, resistors in series or in parallel
Ohm's law, resistors in series or in parallel
 
Connections Exercises Guide
Connections Exercises GuideConnections Exercises Guide
Connections Exercises Guide
 
Design to circuit connection
Design to circuit connectionDesign to circuit connection
Design to circuit connection
 
NMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 SummaryNMS Media Services Jobshet 1 to 5 Summary
NMS Media Services Jobshet 1 to 5 Summary
 
Virtualbox step by step guide
Virtualbox step by step guideVirtualbox step by step guide
Virtualbox step by step guide
 
Nms chapter 01
Nms chapter 01Nms chapter 01
Nms chapter 01
 
Pedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker StudentsPedagogic Innovation to Engage Academically Weaker Students
Pedagogic Innovation to Engage Academically Weaker Students
 
Objective C Primer (with ref to C#)
Objective C  Primer (with ref to C#)Objective C  Primer (with ref to C#)
Objective C Primer (with ref to C#)
 
Do While and While Loop
Do While and While LoopDo While and While Loop
Do While and While Loop
 
C# looping basic
C# looping basicC# looping basic
C# looping basic
 
Mgd10 lab02
Mgd10 lab02Mgd10 lab02
Mgd10 lab02
 
Mgd10 lab01
Mgd10 lab01Mgd10 lab01
Mgd10 lab01
 
Mgd09 lab03
Mgd09 lab03Mgd09 lab03
Mgd09 lab03
 

Recently uploaded

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Embedding videos to web page (FLV and HTML 5 videos)

  • 1. Embedding videos to web page (FLV and HTML 5 videos) This step by step guide consists of the following 3 sections: Part 1: The good old method of adding Flash Video (FLV) to a webpage Part 2: Learning how to use open source VideoLAN’s VLC player to convert video to formats supported in HTML5 by different browsers Part 3: Embedding videos using HTML 5 <video> tag Part 1: Adding Flash Video (FLV) to a page 1. Launch Dreamweaver CS 6, create new site and link to local folder. 2. Create a new HTML 5 file, give it a title “FLV and HTML 5 Video” and saved it as video.html. 3. Choose Insert > Media > FLV. 4. When the Insert FLV dialog box appears, make sure the Video Type is set to Progressive Download Video. See Figure 4. Take note of the other Video Type. Figure 4 5. Click Browse and navigate to the movie folder in the site root. Choose italy.flv. 6. From the Skin type, choose Corona Skin 2. Click OK. 7. Click the Detect Size button to enter the Width and Height of the video automatically. Select the Constrain and Auto Rewind options. Click OK. Refer to Figure 7. Figure 7 8. The Corona Skin 2 will easily fit the limited width of the sidebar, and it interactively appears and disappears when the visitor moves his cursor over the video.
  • 2. 9. Dreamweaver inserts a placeholder, which can be customized somewhat with the Property inspector. FLV files cannot be previewed within Design view and must be viewed in Live view or a browser. See Figure 9. Figure 9 10. Save the file. When you save the file, the Copy Dependent Files dialog box may appear displaying a message explaining that the dependent files expressInstall.swf and swfobject_modified.js will be placed into a new Scripts folder. These files are essential for running an FLV file in the browser and must be uploaded to your web server to support Flash functionality. If and when this dialog box appears, click OK. Figure 10 11. Preview the page in Live view, or preview the page in the browser. If the video controls are not visible, move your cursor over the still image to display them. Click the Play button to view the movie. There is no sound in this movie, but the controls include a speaker button to turn the sound off and on, as in Figure 11.
  • 3. Figure 11 12. When you’re finished, switch back to Design view.
  • 4. Part 2: Using VideoLAN’s VLC to convert video You’ve added an FLV file and controls that allow the user to start and stop the video, and to turn the sound off and on. You also detected the size of the video automatically. However as more users are accessing the Internet via mobile browsers on iOS, Phone 8 and Android platform, the recommended method to embed video is to use the latest HTML <Video> Tag. The problem is that HTML 5 video does not support FLV format. Two other formats are required to support all browsers: 1. MP4 format to be playable on iOS Safari and IE 2. OGG format to be playable on other browsers (Eg Firefox, Chrome and Opera) Procedure: 13. Download and install the VLC player. 14. Open the source file (eg italy.flv) using VLC player. 15. On the Menu: File > Streaming / Exporting Wizard
  • 5. 16. Select "Transcode / Save to file", then "OK". 17. Choose "Existing playlist item", select the source file (eg italy.flv) and "Next". 11 22 33
  • 6. 18. Check "Transcode video", select "MPEG-4" for mp4 or "Theora" for ogg format. Check "Transcode audio", select "MPEG-4 Audio" for mp4 or "Vorbis"" for ogg format. Then "Next". 19. Select "MPEG 4 / MP4" for mp4 or "ogg" for ogg format. "Next".
  • 7. 20. Select "Choose .." then in the popup, select the location and type in the filename (eg "italy") , "Save". Then "Next". 21. Just click on "Finish" and the conversion will start. That’s all to the conversions. 11 44 22 33
  • 8. Part 3: Embedding HTML 5 videos For newer browsers, they will play the HTML 5 video (MP4 or OGG format) but for older browsers (such as IE6 on Win XP), they will play FLV using the Flash Plugin. We need to add code to Part 1 as follows: 22. Switch to code view. The code will take care for browser without flash player to provide the link to download. For those with latest flash player, it will run the “FLVPlayer_Progressive.swf” (basically a FLV player) to play “italy.flv” file. 23. Add the following code (before and after the <object> tags). Use “<!-- xxx xxx xxx -->” to add HTML comments. : :
  • 9. 24. Modify the code to include additional attributes for the <video> tag. For more attributes and their possible values, refer to the following table: 25. Add in the <source> tags to point to the two video files. 26. Save and preview in the various browsers (IE, Firefox, Chrome, etc).