HTMLマルチメディア
Web上のマルチメディアは、サウンド、音楽、ビデオ、映画、およびアニメーションです。
マルチメディアとは何ですか?
マルチメディアにはさまざまな形式があります。画像、音楽、音声、ビデオ、レコード、映画、アニメーションなど、聞いたり見たりできるほとんどすべてのものにすることができます。
Webページには、さまざまなタイプと形式のマルチメディア要素が含まれていることがよくあります。
ブラウザのサポート
最初のWebブラウザはテキストのみをサポートし、単一の色の単一のフォントに制限されていました。
その後、色、フォント、画像、マルチメディアをサポートするブラウザが登場しました。
マルチメディアフォーマット
マルチメディア要素(オーディオやビデオなど)はメディアファイルに保存されます。
ファイルの種類を見つける最も一般的な方法は、ファイル拡張子を調べることです。
マルチメディアファイルには、.wav、.mp3、.mp4、.mpg、.wmv、.aviなどの形式とさまざまな拡張子があります。
一般的なビデオフォーマット
![]() |
そこに多くのビデオフォーマットがあります。 MP4、WebM、およびOgg形式はHTMLでサポートされています。 YouTubeではMP4形式が推奨されています。 |
Format | File | Description |
---|---|---|
MPEG | .mpg .mpeg |
MPEG. Developed by the Moving Pictures Expert Group. The first popular video format on the web. Not supported anymore in HTML. |
AVI | .avi | AVI (Audio Video Interleave). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers. |
WMV | .wmv | WMV (Windows Media Video). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers. |
QuickTime | .mov | QuickTime. Developed by Apple. Commonly used in video cameras and TV hardware. Plays well on Apple computers, but not in web browsers. |
RealVideo | .rm .ram |
RealVideo. Developed by Real Media to allow video streaming with low bandwidths. Does not play in web browsers. |
Flash | .swf .flv |
Flash. Developed by Macromedia. Often requires an extra component (plug-in) to play in web browsers. |
Ogg | .ogg | Theora Ogg. Developed by the Xiph.Org Foundation. Supported by HTML. |
WebM | .webm | WebM. Developed by Mozilla, Opera, Adobe, and Google. Supported by HTML. |
MPEG-4 or MP4 |
.mp4 | MP4. Developed by the Moving Pictures Expert Group. Commonly used in video cameras and TV hardware. Supported by all browsers and recommended by YouTube. |
注: HTML標準でサポートされているのは、MP4、WebM、およびOggビデオのみです。
一般的なオーディオ形式
MP3は、圧縮された録音音楽に最適な形式です。MP3という用語はデジタル音楽の代名詞になっています。
あなたのウェブサイトが録音された音楽に関するものであるなら、MP3が選択です。
Format | File | Description |
---|---|---|
MIDI | .mid .midi |
MIDI (Musical Instrument Digital Interface). Main format for all electronic music devices like synthesizers and PC sound cards. MIDI files do not contain sound, but digital notes that can be played by electronics. Plays well on all computers and music hardware, but not in web browsers. |
RealAudio | .rm .ram |
RealAudio. Developed by Real Media to allow streaming of audio with low bandwidths. Does not play in web browsers. |
WMA | .wma | WMA (Windows Media Audio). Developed by Microsoft. Plays well on Windows computers, but not in web browsers. |
AAC | .aac | AAC (Advanced Audio Coding). Developed by Apple as the default format for iTunes. Plays well on Apple computers, but not in web browsers. |
WAV | .wav | WAV. Developed by IBM and Microsoft. Plays well on Windows, Macintosh, and Linux operating systems. Supported by HTML. |
Ogg | .ogg | Ogg. Developed by the Xiph.Org Foundation. Supported by HTML. |
MP3 | .mp3 | MP3 files are actually the sound part of MPEG files. MP3 is the most popular format for music players. Combines good compression (small files) with high quality. Supported by all browsers. |
MP4 | .mp4 | MP4 is a video format, but can also be used for audio. Supported by all browsers. |
注: HTML標準では、MP3、WAV、およびOggオーディオのみがサポートされています。