Videos set to play inline open fullscreen in the iOS editor

Đang mở Phù hợp với người mới
#942 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, ios, javascript, swift
Lĩnh vực
mobile

Hướng nghiên cứu

Bản sửa thuộc phía iOS của trình soạn thảo, nơi WKWebView được cấu hình; tìm nơi cấu hình của nó được tạo và kiểm tra xem allowsInlineMediaPlayback có được đặt hay không. Tái hiện trên trình mô phỏng iPhone với một khối Video dùng "Play inline" và xác nhận webkitDisplayingFullscreen vẫn là false. Hoàn tất khi video phát bên trong khối trên iPhone và chế độ toàn màn hình vẫn hoạt động khi "Play inline" tắt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[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
Ngôn ngữ chính
JavaScript
Star
29
Fork
6
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
77

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wordpress-mobile/GutenbergKit

Tất cả issue của wordpress-mobile/GutenbergKit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.