Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持流格式的视频 hls m3u8 #6559

Closed
oxygensohn opened this issue Sep 1, 2024 · 15 comments
Closed

不支持流格式的视频 hls m3u8 #6559

oxygensohn opened this issue Sep 1, 2024 · 15 comments
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@oxygensohn
Copy link

你当前使用的版本

2.18

描述一下此特性

不支持流格式的视频 hls m3u8 , 请问能支持吗?

附加信息

No response

@oxygensohn
Copy link
Author

2、avif 格式不支持预览,不能直接插入为图片。

@JohnNiang
Copy link
Member

/ping @halo-dev/sig-halo-console

@ruibaby
Copy link
Member

ruibaby commented Sep 9, 2024

目前 Halo 编辑器的视频嵌入功能是单纯的利用浏览器的 video 标签,没有使用三方播放器库,了解到 m3u8 在 video 标签中使用时,只有少部分设备支持(Apple Safari),所以并不能直接利用 video 标签加载 m3u8 流媒体。

当前也没有引入三方播放器库的计划,但此功能可以通过插件在主题侧加载三方播放器库来实现。

/priority awaiting-more-evidence

@f2c-ci-robot f2c-ci-robot bot added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label Sep 9, 2024
@ruibaby
Copy link
Member

ruibaby commented Sep 24, 2024

2、avif 格式不支持预览,不能直接插入为图片。

2.19 已经支持。

@oxygensohn
Copy link
Author

WeChat0e882b3753f2d15c72d5344b0376b048
WeChat9377e15d29fa17e900b338d217b80341
WeChat581b7f746dfb9ac12ff8680a33075785

@oxygensohn
Copy link
Author

插入图片,并不能选择avif格式的图片。

@ruibaby
Copy link
Member

ruibaby commented Sep 24, 2024

你这里的图片文件类型为 application/octet-stream,我不清楚你这个图片为什么是这个类型,我这边上传的 avif 文件是正确的。

image

@oxygensohn
Copy link
Author

刚测试过,存服务器本地能正常识别为image/avif ,存至minio 识别为application/octet-stream

@ruibaby
Copy link
Member

ruibaby commented Sep 24, 2024

刚测试过,存服务器本地能正常识别为image/avif ,存至minio 识别为application/octet-stream

那我不认为这是 Halo 需要解决的问题,我们无法根据 application/octet-stream 去识别为 avif,根据后缀也不会是一个稳妥的方案。

@oxygensohn
Copy link
Author

明白了,我需要解决minio 服务器,感谢解答。

@oxygensohn
Copy link
Author

已上传至Minio服务器的图片,通过 minio mc 命令批量修改 content-type类型。

@oxygensohn
Copy link
Author

对象存储(Amazon S3 协议)
image
通过插件上传的avif ,需要更新插件对于avif上传Content-Type指定为image/avif

@oxygensohn
Copy link
Author

minio browser 手动上传avif格式图片至服务器,Content-Type 正确 image/avif
image
通过S3关联服务器上未关联的avif,附件中正常识别为image/avif,文章页面能够正常插入图片。

@JohnNiang
Copy link
Member

/triage duplicate

Close in favor of halo-dev/plugin-s3#169.

/close

@f2c-ci-robot f2c-ci-robot bot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Sep 29, 2024
@f2c-ci-robot f2c-ci-robot bot closed this as completed Sep 29, 2024
Copy link

f2c-ci-robot bot commented Sep 29, 2024

@JohnNiang: Closing this issue.

In response to this:

/triage duplicate

Close in favor of halo-dev/plugin-s3#169.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

3 participants