HTML5 homemade local web video player

Source: Internet
Author: User

HTML5: Local video with Web page opened half of the ads can not, it seems that the storm or something is about to be eliminated. Video format is still required, it seems to have a transcoding device.

Format

Ie

Firefox

Opera

Chrome

Safari

Ogg

No

3.5+

10.5+

5.0+

No

MPEG 4

9.0+

No

No

5.0+

3.0+

WebM

No

4.0+

10.6+

6.0+

No

1 <!DOCTYPE HTML>2 <HTML> 3 <Body> 4 5 <Divstyle= "Text-align:center;">6   <Buttononclick= "Playpause ()">Play/Pause</Button> 7   <Buttononclick= "Makenormal ()">In</Button>8   <Buttononclick= "Makesmall ()">Small</Button>9   <Buttononclick= "Makebig ()">Big</Button>Ten   <BR/>      One<VideoID= "Video1"width= "+"Controls= "Controls style="margin-top:15px; "> A     <Sourcesrc= "G:\ video footage \ Speed and passion 7 720p Mp4.mp4"type= "Video/mp4" /> -    <!--<source src= "g:\ video section \ Name Detective Conan industry Fire Sunflower. ogg" type= "Video/ogg"/> - - Your Browser does not support HTML5 video. the   </Video> - </Div>  -  - <Scripttype= "Text/javascript"> + varMyvideo=document.getElementById ("Video1"); -  + functionPlaypause () A {  at if(myvideo.paused) - Myvideo.play (); - Else  - myvideo.pause (); - }  -  in functionMakebig () - {  to Myvideo.width=1400;  + }  -  the functionMakesmall () * {  $ Myvideo.width= -; Panax Notoginseng }  -  the functionMakenormal () + {  A Myvideo.width= +;  the }  + </Script>  -  $ </Body>  $ </HTML>

HTML5 homemade local web video player

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.