新人帖 请问怎样设置能将本地附件的 MP4 文件在帖子中直接播放? New
Discuz! X3.5设置允许附件,允许mp4上传,允许使用媒体。
但是上传mp4附件以后,只能用附件形式插入帖子,无法用媒体嵌入形式插入帖子,请问我应该怎样排查和设置?
1 贡献最佳答案
版块设置里要“允许使用多媒体代码”,
用户组设置“允许使用 等多媒体代码”
全局-上传设置里,论坛附件设置“附件 URL 地址、媒体附件播放”
(开启附件 URL 地址后,上传附件的地址可通过 "attach://aid.ext" 方式在任何帖内引用(不支持附件收费以及阅读权限判定),并支持媒体类附件的直接播放,此项设置需要在 用户组 - 帖子相关 中允许用户组使用多媒体代码,并保证 config_global.php 配置的本地文件读取模式为 1 或 4 方可生效)
湖中沉发表于2025-11-27 21:36:49
[*]详细答案 >
版块设置里要“允许使用多媒体代码”,
用户组设置“允许使用 等多媒体代码”
全局-上传设置里,论坛附件设置“附件 URL 地址、媒体附件播放”
(开启附件 URL 地址后,上传附件的地址可通过 "attach://aid.ext" 方式在任何帖内引用(不支持附件收费以及阅读权限判定),并支持媒体类附件的直接播放,此项设置需要在 用户组 - 帖子相关 中允许用户组使用多媒体代码,并保证 config_global.php 配置的本地文件读取模式为 1 或 4 方可生效)
.ce-block { margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content { /* max-width:calc(100% - 50px) */ margin-left: auto; margin-right: auto;}.ce-paragraph { line-height: 1.6em; outline: none; text-indent: 2em; font-size: 16px;}.ce-paragraph--right { text-align: right;}.ce-paragraph--center { text-align: center;}.ce-paragraph--left { text-align: left;}.ce-paragraph--justify { text-align: justify;}.ce-paragraph-text-indent { text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{ margin-top: 0;}.ce-paragraph p:last-of-type{ margin-bottom: 0;}.svg-icon { width: 1em; height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect { fill: #4691f6;}.svg-icon circle { stroke: #4691f6; stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;} 写了个详细的教程帖:
https://www.dismall.com/thread-27536-1-1.html 湖中沉 发表于 2025-11-27 21:36 问题解决,谢谢!
.ce-block { margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content { /* max-width:calc(100% - 50px) */ margin-left: auto; margin-right: auto;}.ce-paragraph { line-height: 1.6em; outline: none; text-indent: 2em; font-size: 16px;}.ce-paragraph--right { text-align: right;}.ce-paragraph--center { text-align: center;}.ce-paragraph--left { text-align: left;}.ce-paragraph--justify { text-align: justify;}.ce-paragraph-text-indent { text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{ margin-top: 0;}.ce-paragraph p:last-of-type{ margin-bottom: 0;}.svg-icon { width: 1em; height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect { fill: #4691f6;}.svg-icon circle { stroke: #4691f6; stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页:
[1]