HTML5媒体播放器

注意


此页为于 SCP 维基内部使用的“组件”页。用于在其他页面中引用。

未经组件作者或工作人员允许,请勿修改此页的内容。


效果组件描述

描述:此效果组件允许您将视频或音频内容插入到文章中。

文章中的例子: SCP-536-J, SCP-1208-RU

参数:

  • type:接受videoaudio作为参数,具体取决于所需内容的类型。
  • url:接受指向内容文件的链接作为参数。
  • autoplay:将数值true(使用时自动播放)或false作为参数。 默认情况下使用false。 不建议使用自动播放。

使用示例:

[[include component:html5player
|type=audio
|url=/local—files/scp-1208-ru/warsong.mp3]]


[[include component:html5{$type}
|url={$url}
|autoplay={$autoplay_{$autoplay}}
|autoplay_true=autoplay
]]

除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License