You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a reference to `ReactNativeVideo` to your main application project. From Visual Studio 2015:
98
91
99
92
1. Right-click main application project > Add > Reference...
100
-
2. Check `ReactNativeVideo` from Solution Projects.
93
+
2.
94
+
UWP: Check `ReactNativeVideo` from Solution Projects.
95
+
WPF: Check `ReactNativeVideo.Net46` from Solution Projects.
101
96
102
97
**MainPage.cs**
103
98
@@ -140,10 +135,11 @@ using System.Collections.Generic;
140
135
volume={1.0} // 0 is muted, 1 is normal.
141
136
muted={false} // Mutes the audio entirely.
142
137
paused={false} // Pauses playback entirely.
143
-
resizeMode="cover"// Fill the whole screen at aspect ratio.*
138
+
resizeMode="cover"// Fill the whole screen at aspect ratio.*
144
139
repeat={true} // Repeat forever.
145
140
playInBackground={false} // Audio continues to play when app entering background.
146
141
playWhenInactive={false} // [iOS] Video continues to play when control or notification center are shown.
142
+
ignoreSilentSwitch={"ignore"} // [iOS] ignore | obey - When 'ignore', audio will still play with the iOS hard silent switch set to silent. When 'obey', audio will toggle with the switch. When not specified, will inherit audio settings as usual.
147
143
progressUpdateInterval={250.0} // [iOS] Interval to fire onProgress (default to ~250ms)
148
144
onLoadStart={this.loadStart} // Callback when video starts to load
149
145
onLoad={this.setDuration} // Callback when video loads
0 commit comments