| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>视频播放</title> |
| | | <title>mp4.html</title> |
| | | <meta http-equiv="Expires" content="0" /> |
| | | <meta http-equiv="Cache" content="no-cache" /> |
| | | <meta http-equiv="Pragma" content="no-cache" /> |
| | | <meta http-equiv="Cache-control" content="no-cache" /> |
| | | <link href="imgs/favicon.ico" rel="icon" type="image/x-icon" /> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> |
| | | <style> |
| | | html, body { |
| | | margin: 0; |
| | |
| | | let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | | let r = window.location.search.substr(1).match(reg); |
| | | if (r != null) { |
| | | return unescape(r[2]); |
| | | return decodeURI(r[2]); |
| | | }; |
| | | return null; |
| | | } |
| | |
| | | if (!name || !video) return; |
| | | |
| | | video.src = "mp4/" + name; |
| | | video.play(); |
| | | //video.play(); |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <video id="video" controls="controls"> |
| | | <video id="video" controls="controls" loop="loop"> |
| | | <source src="" type="video/mp4"> |
| | | </video> |
| | | </body> |