servo / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
3.1k stars 276 forks source link

[type: question] Orientation support for video element #4853

Closed nvipa closed 1 month ago

nvipa commented 2 months ago

I wanted to know 2 things:

  1. Is there fullscreen support for element ? for e.g., i want to achieve fullscreen video playback? Is there a webrender API which can be called to make an element fullscreen
  2. Is there support for orientation , for e.g. 90 deg, 180 deg or 270 deg ? for e.g. Is there API to achieve orientation change?
nical commented 1 month ago

Hi, WebRender does not deal with the window, so there is no API for this in WebRender and it is up to the code that embeds webrender to handle that. Orientation is also handled outside of WebRender.