Browse Source

Docs: Video Player Add-On - always use 4 spaces for indentation

customisations
alemart 6 months ago
parent
commit
158c8d6032
1 changed files with 14 additions and 14 deletions
  1. 14
    14
      docs/addons/ar-video-player.md

+ 14
- 14
docs/addons/ar-video-player.md View File

25
 
25
 
26
     ```html
26
     ```html
27
     <ar-root>
27
     <ar-root>
28
-      <ar-video-player src="#my-video">
29
-        <!-- ... video controls ... -->
30
-      </ar-video-player>
28
+        <ar-video-player src="#my-video">
29
+            <!-- ... video controls ... -->
30
+        </ar-video-player>
31
     </ar-root>
31
     </ar-root>
32
 
32
 
33
     <!-- ... -->
33
     <!-- ... -->
34
 
34
 
35
     <a-assets>
35
     <a-assets>
36
-      <video id="my-video" playsinline>
37
-        <source src="assets/my-video.mp4" type="video/mp4" />
38
-        <source src="assets/my-video.webm" type="video/webm" />
39
-      </video>
36
+        <video id="my-video" playsinline>
37
+            <source src="assets/my-video.mp4" type="video/mp4" />
38
+            <source src="assets/my-video.webm" type="video/webm" />
39
+        </video>
40
     </a-assets>
40
     </a-assets>
41
     ```
41
     ```
42
 
42
 
89
 
89
 
90
 ```html
90
 ```html
91
 <ar-root>
91
 <ar-root>
92
-  <ar-video-player width="2" height="1.125">
92
+    <ar-video-player width="2" height="1.125">
93
 
93
 
94
-    <!-- Set different videos for different targets -->
95
-    <ar-video-player-source reference-image="mage" src="#mage-video"></ar-video-player-source>
96
-    <ar-video-player-source reference-image="cat" src="#cat-video"></ar-video-player-source>
94
+        <!-- Set different videos for different targets -->
95
+        <ar-video-player-source reference-image="mage" src="#mage-video"></ar-video-player-source>
96
+        <ar-video-player-source reference-image="cat" src="#cat-video"></ar-video-player-source>
97
 
97
 
98
-  </ar-video-player>
98
+    </ar-video-player>
99
 </ar-root>
99
 </ar-root>
100
 ```
100
 ```
101
 
101
 
129
     ar-onvideopause="opacity: 0.5"
129
     ar-onvideopause="opacity: 0.5"
130
     ar-onvideoended="opacity: 0.5"
130
     ar-onvideoended="opacity: 0.5"
131
 >
131
 >
132
-  <!-- ... video controls ... -->
132
+    <!-- ... video controls ... -->
133
 </ar-video-player>
133
 </ar-video-player>
134
 ```
134
 ```
135
 
135
 
175
     ar-onvideoended__1="_target: #animated-character-1; visible: true"
175
     ar-onvideoended__1="_target: #animated-character-1; visible: true"
176
     ar-onvideoended__2="_target: #animated-character-2; visible: true"
176
     ar-onvideoended__2="_target: #animated-character-2; visible: true"
177
 >
177
 >
178
-  <!-- ... video controls ... -->
178
+    <!-- ... video controls ... -->
179
 </ar-video-player>
179
 </ar-video-player>
180
 
180
 
181
 <!-- ... -->
181
 <!-- ... -->

Loading…
Cancel
Save