Dactyloidae/browser/base/content/pictureInPicture.xul

40 lines
2.2 KiB
Text
Raw Normal View History

2026-09-13 10:51:36 -07:00
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
2026-09-13 11:52:14 -07:00
<?xml-stylesheet href="chrome://browser/content/pictureInPicture.css" type="text/css"?>
2026-09-13 10:51:36 -07:00
<!DOCTYPE window SYSTEM "chrome://browser/locale/browser.dtd">
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
2026-09-13 12:18:07 -07:00
xmlns:html="http://www.w3.org/1999/xhtml"
2026-09-13 10:51:36 -07:00
id="picture-in-picture" windowtype="Browser:PictureInPicture"
2026-09-13 12:18:07 -07:00
title="&pictureInPicture.title;" width="480" height="270"
hidechrome="true"
persist="screenX screenY width height">
2026-09-13 10:51:36 -07:00
<script type="application/javascript" src="chrome://browser/content/pictureInPicture.js"/>
2026-09-13 12:18:07 -07:00
<stack flex="1">
<vbox id="player-container" flex="1"/>
<vbox id="player-overlay" flex="1">
<hbox class="pip-controls" id="top-controls" pack="end">
<button id="close" label="&#x00D7;" tooltiptext="&pictureInPicture.close;"
aria-label="&pictureInPicture.close;" oncommand="window.close();"/>
</hbox>
<spacer flex="1"/>
<vbox class="pip-controls" id="playback-controls">
<html:input id="seek" type="range" min="0" max="1" step="0.1" value="0"
disabled="disabled" aria-label="&pictureInPicture.seek;"
oninput="Player.seek(this.value);" onchange="Player.finishSeeking();"/>
<hbox align="center">
<button id="play" label="&mediaPlay.label;" oncommand="Player.command('playpause');"/>
<button id="mute" label="&mediaMute.label;" oncommand="Player.command('mute');"/>
<label id="time" value="0:00 / 0:00" flex="1" crop="end"/>
<button id="return" label="&pictureInPicture.return;" oncommand="Player.returnToTab();"/>
</hbox>
</vbox>
</vbox>
<resizer id="resize" dir="bottomright" right="0" bottom="0"/>
</stack>
2026-09-13 10:51:36 -07:00
<label id="pause-label" value="&mediaPause.label;" hidden="true"/>
<label id="unmute-label" value="&mediaUnmute.label;" hidden="true"/>
2026-09-13 12:18:07 -07:00
<label id="live-label" value="&pictureInPicture.live;" hidden="true"/>
2026-09-13 10:51:36 -07:00
</window>