File tree 3 files changed +17
-26
lines changed
3 files changed +17
-26
lines changed Original file line number Diff line number Diff line change @@ -155,21 +155,17 @@ export default function Header({
155
155
duration = { 0.4 }
156
156
easeType = "ease-in"
157
157
render = { ( { style } ) => (
158
- < video
159
- preload = "none"
158
+ < iframe
160
159
className = { styles . video }
161
- id = "tabPanel-1"
162
- aria-labelledby = "tabPanel-1"
163
- controls
164
- playsInline
165
- muted
166
160
style = { style }
167
- >
168
- < source
169
- src = "/video/react-hook-form-demo-video.mp4"
170
- type = "video/mp4"
171
- />
172
- </ video >
161
+ width = "560"
162
+ height = "315"
163
+ src = "https://www.youtube.com/embed/7ytK2qU9ac8?si=itv-Hocfih4pnRE4"
164
+ title = "YouTube video player"
165
+ allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
166
+ referrerpolicy = "strict-origin-when-cross-origin"
167
+ allowfullscreen
168
+ />
173
169
) }
174
170
/>
175
171
</ div >
@@ -179,20 +175,15 @@ export default function Header({
179
175
className = { isWeb ? styles . videoWrapperHide : styles . videoWrapperShow }
180
176
>
181
177
< h4 className = { styles . videoHeading } > React Native</ h4 >
182
- < video
183
- preload = "none"
178
+ < iframe
184
179
className = { styles . video }
185
- id = "tabPanel-2"
186
- aria-labelledby = "tabPanel-2"
187
- controls
188
- playsInline
189
- muted
190
- >
191
- < source
192
- src = "/video/react-hook-form-native-demo-video.mp4"
193
- type = "video/mp4"
194
- />
195
- </ video >
180
+ width = "560"
181
+ height = "315"
182
+ src = "https://www.youtube.com/embed/rIKMY5azC3A?si=fYwKNYewKAlv6hoW"
183
+ title = "YouTube video player"
184
+ allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
185
+ referrerPolicy = "strict-origin-when-cross-origin"
186
+ />
196
187
</ div >
197
188
198
189
< div
You can’t perform that action at this time.
0 commit comments