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

optionally treat short silent videos as gifs #3969

Closed
ibrokemypie opened this issue Jan 23, 2019 · 12 comments · Fixed by #12392
Closed

optionally treat short silent videos as gifs #3969

ibrokemypie opened this issue Jan 23, 2019 · 12 comments · Fixed by #12392
Labels
💬Discussion Being discussed or needs discussion

Comments

@ibrokemypie
Copy link

ibrokemypie commented Jan 23, 2019

Summary

Many other instances replace gifs with short silent webms or mp4s as they save the same purpose but use a lot less space. On these other services the silent webm/mp4s are autoplayed (or played on hover) and looped like a gif is. It would be great if misskey did the same

Environment


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@tamaina
Copy link
Contributor

tamaina commented Feb 20, 2022

「short silent video」を検出・定義するのがややこしい(議論になりそう)

@acid-chicken
Copy link
Member

「short silent video」を検出・定義するのがややこしい(議論になりそう)

あまりややこしさのイメージが湧かないんだけどどこら辺が懸念点?

@tamaina
Copy link
Contributor

tamaina commented Feb 20, 2022

検出するのは簡単だわね

定義(「何秒にするか」)をどうしようかなと

@acid-chicken
Copy link
Member

検出するのは簡単だわね

定義(「何秒にするか」)をどうしようかなと

他プラットフォームだと

Twitter: 旧仕様だと 7 秒以下(現仕様は全てループ対象)
Mastodon: オーディオチャンネルがない動画全て

といったところかしら

@rinsuki
Copy link
Contributor

rinsuki commented Feb 20, 2022

オーディオチャンネルがない動画全てでいいんじゃないかという気がする

@tamaina
Copy link
Contributor

tamaina commented Feb 20, 2022

あまりにもクソ長いとサーバーのリソースが厳しい気がする
(Twitterに倣って(??)140秒とかにするか)

@acid-chicken
Copy link
Member

acid-chicken commented Feb 20, 2022

あまりにもクソ長いとサーバーのリソースが厳しい気がする
(Twitterに倣って(??)140秒とかにするか)

どういうこと?(これってリソースには直接影響を及ぼさなくない?)

@tamaina
Copy link
Contributor

tamaina commented Feb 20, 2022

あー、別に変換しなくていいか

(じゃあクライアント側でどうやって検出するの)

@acid-chicken
Copy link
Member

あー、別に変換しなくていいか

(じゃあクライアント側でどうやって検出するの)

HTMLMediaElement#loop = !HTMLMediaElement#audioTracks.length で終わりそう

@tamaina
Copy link
Contributor

tamaina commented Feb 20, 2022

@saschanaz
Copy link
Member

tracks APIのブラウザサポートほぼ全滅ですのでサーバー側で確認する必要がありそうです

@acid-chicken
Copy link
Member

tracks APIのブラウザサポートほぼ全滅ですのでサーバー側で確認する必要がありそうです

できそうじゃね https://codepen.io/acid-chicken/pen/RwvMrmM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬Discussion Being discussed or needs discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants