Question: Figure 8 - 6 4 HTML 6 7 8 HTML 5 and CSS | Tutorial 8 Enhancing a Website with Multimedia Add the following track
Figure HTML HTML and CSS Tutorial Enhancing a Website with Multimedia
Add the following track cues to the wscaptions.vtt file, labeling the captions through
times are in parenthesis:
:: We observe today
:: not a victory of party,
:: but a celebration of freedom
:: symbolizing an end,
:: as well as a beginning
:: signifying renewal,
:: as well as change.
:: For I have sworn before you
:: and Almighty God
:: the same solemn oath
:: our forebears prescribed
:: nearly a century and threequarters ago.
Save your changes to the file and then go to the wsmedia.css file in your editor. Within the
Video Player Styles section, insert a style rule that displays video elements as blocks with a
width of and horizontally centered by setting the topbottom margins to pixels and the
leftright margins to auto.
Create a media query for screen devices with a minimum width of pixels. Within the media
query, create a style for video elements that sets the width of the player to pixels, floated on
the right margin with a margin width of pixels.
Within the Track Styles section, create a style rule for caption cues that displays the text in
a em sansserif font with a text color of and a background color of
rgba
Save your changes to the file and then load the wsjfkhtml file in your browser.
Test the page by playing the video clip of Kennedy's speech. Verify that captions are added to the
speech, matching the words uttered by the president. Notes: If you are using Google Chrome
or Opera, you will have to upload your files to a server if you wish to see the caption styles you
created for the video clip. If your captions appear white on a gray background, move the mouse
pointer away from the video player so that the video slider is not showing.
Rhetoric in the United States page
Source: Wikimedia Commons
Complete the following:
Using your editor, open the wsjfktxthtml wsmediatxtcss and wscaptionstxtvtt files from the html case folder. Enter your name and the date in the comment section of each file, and save them as wsjfkhtml wsmedia.css and wscaptions.vtt files respectively.
Go to the wsjfkhtml file in your editor. Insert a link to the wsmedia.css style sheet file. Take some time to study the content and structure of the document.
Scroll down to the article element and directly below the heading, insert a video clip with the controls enabled, displaying the poster image wsjfkposter.png file. Add two possible sources to the video clip: wsjfkspeech.mp and wsjkkspeech.webm, including the mimetype for each video source.
After the two video sources, add a captions track with the label Speech Captions using the source file wscaptions.vtt If the browser does not support embedded video, display the paragraph: To play this video clip, your browser needs to support HTML
Save your changes to the file and then open the wscaptions.vtt file in your text editor. Add an initial line to the text file indicating that this file is in WEBVTT format.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
