Geo-Location video Web Storage

Source: Internet
Author: User

(i) geographical location of HTML5

HTML5 geolocation (geolocation) is used to locate the user's location.

HTML5-Using geo-positioning

Use the GetCurrentPosition () method to get the user's location.

The following example is a simple geolocation instance that returns the latitude and longitude of a user's location:

Handling Errors and rejections

Two HTML5 Video

With the video element.

Video on a web site

Until now, there is still no standard for displaying video on a Web page.

Today, most videos are displayed via plugins (such as Flash). However, not all browsers have the same plugin.

HTML5 provides a standard way to include video through the visual element.

HTML5 (VIDEO)-How to work

To display the video in HTML5, all you need is:

Element provides play, pause, and volume controls to control the video.

Element elements also provide the width and Height properties to control the size of the video. If you set the height and width, the required video space is retained when the page loads. If you do not set these properties and the browser does not know the size of the video, the browser will not be able to load a specific space, the page will vary depending on the size of the original video.

The content inserted between the tag and the label is presented to browsers that do not support the video element.

The above example calls two methods: Play () and pause (). It uses two properties at the same time: paused and width.

Geo-Location video Web Storage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.