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

能否增加点iframe内嵌视频的高度? #675

Closed
niphor opened this issue Feb 7, 2024 · 6 comments
Closed

能否增加点iframe内嵌视频的高度? #675

niphor opened this issue Feb 7, 2024 · 6 comments

Comments

@niphor
Copy link

niphor commented Feb 7, 2024

这个问题是我换成FeedMe 4.x时出现的,以前我用3.x版本的时候,高度会高一点,看上去还行,4.x短多了,竖屏拍摄的视频看的时候比较影响了。

我这很多订阅的信息,带的视频是手机竖屏拍的,现有iframe高度实在是太短了,视频很难看清。
image

现阶段我用的是TTRSS,输出的内容里的HTML片段为

<div class="embed-responsive">
    <iframe src="https://localhost" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"></iframe>
</div>

我尝试过

  1. 调整iframe内嵌页面的高度,最终是框框大小不变,内部变成了可以滚动的
  2. 给iframe或者上层div增加个min-height的样式,也没有效果。

自我改造似乎没法抹平这个问题,只能来这边提个改进建议了

@seazon
Copy link
Owner

seazon commented Feb 20, 2024

页面的样式feedme会修改,所以改了没用。这个不太方便确定视频本身是横屏还是竖屏。
给个有竖屏视频的rss源,我看看能不能做适配。

@niphor
Copy link
Author

niphor commented Feb 21, 2024

感谢回复

个人觉得 倒也没必要适配竖屏视频,而是iframe 能大概符合16:9 或者16:10 应该能够应付一下绝大部分视频了

现在是 16:6.8左右,高度太小了,就算是16:9的正常片子,也是左右2条黑边。

因为我的RSS源是自己huginn制作的,暂时不方便贴互联网上,我来找找看有没有其它参考源,不好意思。

@seazon
Copy link
Owner

seazon commented Mar 4, 2024

下个版本会统一视频比例到16:9

@niphor
Copy link
Author

niphor commented Mar 4, 2024

好的,感谢

@seazon
Copy link
Owner

seazon commented Mar 4, 2024

please try 4.2.0

@niphor
Copy link
Author

niphor commented Mar 5, 2024

有效果,感谢🙏

@niphor niphor closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants