u2sb u2sb
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
  • Overview

  • MetingJsServer

  • vuepress-plugin-smplayer

  • hexo-tag-mmedia

    • 安装和基本介绍
    • Audio
    • Video
    • Meting
    • Aplayer
    • Dplayer
    • 哔哩哔哩动画
    • 西瓜视频
      • 介绍
      • 使用
      • 参数
        • JSON 参数
      • 配置
    • ArtPlayer
    • 开发文档
    • 0.X 版本
  • Danmu.Server

  • OpenSw
  • hexo-tag-mmedia
MonologueChi
2021-02-23
目录

西瓜视频

# 介绍

可以插入 西瓜 视频

# 使用

{% mmedia "xigua" "xid=6925997698269053453" %}
1
{% mmedia "xigua" "xid:6925997698269053453" "autoplay:true" %}
1

# 参数

  • 使用 : 或 = 分割。

详细参数表:

参数 默认 解释
xid - 西瓜视频的 ID,就是那一串数字
id - 一般情况下不需要填写
autoplay false autoplay
startTime 0 开始时间,秒
allowfullscreen allowfullscreen 允许全屏, allowfullscreen 或 true 允许,其他选项不允许
sandbox 见 配置 iframe sandbox
width 100% css 属性
max_width 850px css 属性
margin auto css 属性

# JSON 参数

mmedia 插件允许在 contents 部分使用 JSON 编写配置,使用 JSON5 标准。

# 配置

默认配置可写入 _config.yml 下

mmedia:
  xigua:
    default:
      autoplay: false
      startTime: 0
      allowfullscreen: allowfullscreen
      sandbox: allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups
      width: 100%
      max_width: 850px
      margin: auto
1
2
3
4
5
6
7
8
9
10
#开源项目#hexo-tag-mmedia
上次更新: 10/4/2022, 11:21:17 PM
哔哩哔哩动画
ArtPlayer

← 哔哩哔哩动画 ArtPlayer→

Theme by Vdoing | Copyright © 2018-2022 MonoLogueChi | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式