1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【HTML】embed要素とmediaplayer.swfを使ってflv動画を再生する

Last updated at Posted at 2015-12-16

<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title></title>
<style type="text/css">
</style>
</head>
<body>

<embed src="mediaplayer.swf?file=http://localhost/movie/sample.flv" width="640" height="480" quality="high" type="application/x-shockwave-flash" allowfullscreen="true">

<script type="text/javascript">
</script>
</body>
</html>

embed要素を使ってflv動画を再生する

embed要素のsrc属性にmediaplayer.swfをflv動画を指定するとflv動画を再生することができる。


allowfullscreen="true"

で全画面表示を可能にしている。

よく分かってない箇所

Another HTML-lint 5でHTMLの構文チェックするとエラーが出る


<EMBED> に不明な属性 `ALLOWFULLSCREEN` が指定されています。

とErrorが出る。


allowfullscreen="true"

ってしないと全画面表示ができないだけどな。なんでエラーが出るん?
それからオート再生とループ再生ってできるのだろうか?

参考文献

mediaplayer.swf
Another HTML-lint 5

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?