ビデオに aframe-video-controls を使用するたびに。完全な Web ブラウザー ビデオが表示されます。長さや幅を指定して動画を表示したい。また、htmlのように指定した位置に配置したいです。どうすればいいですか?
1 に答える
0
コンポーネントを使用しposition
て配置し、scale
コンポーネントをスケーリングします。
<!-- 360 video, rotated 180-degrees to select an initial view. -->
<a-videosphere src="#cityVideo" rotation="0 180 0"></a-videosphere>
<!-- Video controls. -->
<a-entity
video-controls="src: #cityVideo; backgroundColor: #333; barColor: #EF2D5E; textColor: #DADADA; infoTextTop: Gaze and click on the icon or progress bar.; infoTextBottom: Double-click outside of the player to toggle it."
position="0 1 -2" scale="1 1.5 1"></a-entity>
https://aframe.io/docs/0.2.0/components/position.html https://aframe.io/docs/0.2.0/components/scale.html
于 2016-08-08T17:15:31.407 に答える