2016-08-08 3 views

答えて

0

スケーリングする位置とscale成分にposition成分を使用。

<!-- 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

+0

どうもありがとうございました。たぶん私はこの質問をはっきりと記述しなかったでしょう。私の質問は、私がそのようなコードを使用すると、ビデオはすべての画面でいっぱいになるということです。私はそれを望んでいない。たとえば、画面(ブラウザ)の半分を占めるようにビデオが必要です。動画は指定された位置にあります(html、左上、上、下、右の属性のように)。そして、どうすればこの機能を実現できますか? –

+0

半球を作成することができます。 'https://aframe.io/docs/0.2.0/components/geometry.html#sphere – ngokevin

+0

私はあなたのために質問を作成しました:http://stackoverflow.com/questions/38857027/how-to-create-a-180-degree-semisphere-segment-partial-video-sphere-in-a-frame/38857090# 38857090 – ngokevin

関連する問題