![]() Otherwise the user has no way to play the movie. If you do not set the controls attribute, you must either set the autoplay attribute, create a controller using JavaScript, or play the movie programmatically from JavaScript. (You cannot set the attribute to false explicitly in HTML-you set it to false implicitly by leaving the attribute out.) In cases where it is crucial that the bottom of the video never be obscured, omit the controls attribute. The controller is not normally visible when the movie is playing-it appears only when the movie is paused, when the user touches the video, or when the mouse pointer hovers over the playing movie. In Safari, the default video controller is slightly translucent and is overlaid on the bottom of the video. If neither is specified, the video is displayed at its native size. If both height and width are specified, the video is presented at that size. If only the height or width parameter is specified, the video is scaled up or down to that height or width while maintaining the native aspect ratio of the movie. In Safari on the desktop, the movie metadata is downloaded automatically whenever possible, so the native video size is used as the default. On iPhone or iPod touch, the video plays in fullscreen mode once the user initiates it, and the default space is allocated to a placeholder on the webpage. On iPad, the video currently plays in this default space. If no height or width is specified, a default size of 150 x 300 pixels is allocated in the webpage. In Safari on iOS, the native size of the video is unknown until the user initiates a download. ![]() There are several ways you can control media playback directly in HTML by setting attributes appropriately.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |