Skip to content

Commit c0d279f

Browse files
authored
Merge pull request #3583 from wrjanan/patch-2
Update a-videosphere.md
2 parents 3c3d57b + d0354e4 commit c0d279f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/primitives/a-videosphere.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ Videospheres are a large sphere with the video texture mapped to the inside.
2828
</a-scene>
2929
```
3030

31+
## Methods
32+
33+
More indepth knowledge on the methods to alter video material can be seen over [here](../components/material.html#video-textures)
34+
35+
```javascript
36+
// to set specific time of video
37+
document.querySelector("#antarctica").components.material.data.src.currentTime = 0 // start of video
38+
39+
// to play the videosphere
40+
document.querySelector("#antarctica").components.material.material.map.image.play();
41+
```
42+
3143
## Attributes
3244

3345
Note that the videosphere primitive inherits [common attributes](./common-attributes.md).
@@ -41,6 +53,8 @@ Note that the videosphere primitive inherits [common attributes](./common-attrib
4153
| segments-height | geometry.segmentsHeight | 64 |
4254
| segments-width | geometry.segmentsWidth | 64 |
4355

56+
57+
4458
## Equirectangular Video
4559

4660
[equirectangular]: https://en.wikipedia.org/wiki/Equirectangular_projection

0 commit comments

Comments
 (0)