Videos set to play inline open fullscreen in the iOS editor

オープン 初心者向け
#942 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
html, ios, javascript, swift
領域
mobile

調査の方向性

修正はエディタの iOS 側、WKWebView が構成される場所に入れる必要があります。その構成が作成される箇所を見つけ、allowsInlineMediaPlayback が設定されているか確認してください。iPhone シミュレータで Video ブロックを使い、"Play inline" で再現し、webkitDisplayingFullscreen が false のままであることを確認してください。iPhone でブロック内で動画が再生され、"Play inline" がオフのときに全画面表示が引き続き機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

[Type] Bug Gutenberg iOS
Description

On iPhone, a Video block with "Play inline" turned on plays in the system fullscreen player when played in the editor. I expect it to play inside the block, as a <video playsinline> does in Safari.

The editor's WKWebView doesn't set allowsInlineMediaPlayback, which defaults to false on iPhone, so WebKit ignores playsinline and plays every video fullscreen. Setting it to true would let each video's own setting apply, as in Safari: inline with playsinline, fullscreen without.

Step-by-step reproduction instructions
  1. On an iPhone, open the iOS demo app's Standalone Editor.
  2. Add a Video block with a video URL and turn on "Play inline".
  3. Select the block and tap play.

Expected: the video plays inside the block.
Actual: the system fullscreen player opens. webkitDisplayingFullscreen is true 1 ms after playback starts.

Screenshots, screen recording, code snippet

The system fullscreen player showing a Video block with "Play inline" turned on

Environment info

GutenbergKit trunk (0.20.1), iOS demo app, iPhone 17 simulator on iOS 27.2. Not tested on iPad, where allowsInlineMediaPlayback defaults to true.

Please confirm that you have searched existing issues in the repo.
  • Yes
主要言語
JavaScript
スター
29
フォーク
6
平均マージ
2日 2時間
マージ済み PR(30日)
77

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wordpress-mobile/GutenbergKit のほかの issue

wordpress-mobile/GutenbergKit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。