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