Skip to content

Commit d142ecc

Browse files
committed
Update README.md
1 parent 3e933af commit d142ecc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ In the core of this package, I use `AVQueuePlayer`. Here are the supported featu
138138
### 1. Create LoopPlayerView
139139

140140
```swift
141-
ExtPlayerView(fileName: 'swipe')
141+
ExtVideoPlayer(fileName: 'swipe')
142142
```
143143

144144
or in a declarative way
145145

146146
```swift
147-
ExtPlayerView{
147+
ExtVideoPlayer{
148148
VideoSettings{
149149
SourceName("swipe")
150150
Ext("mp8") // Set default extension here If not provided then mp4 is default
@@ -165,7 +165,7 @@ or in a declarative way
165165
```
166166
167167
```swift
168-
ExtPlayerView{
168+
ExtVideoPlayer{
169169
VideoSettings{
170170
SourceName("swipe")
171171
Gravity(.resizeAspectFill)
@@ -175,7 +175,7 @@ or in a declarative way
175175
```
176176

177177
```swift
178-
ExtPlayerView{
178+
ExtVideoPlayer{
179179
VideoSettings{
180180
SourceName('https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8')
181181
ErrorGroup{
@@ -208,7 +208,7 @@ The AVFoundation framework used in the package supports a wide range of video fo
208208
The package now supports using remote video URLs, allowing you to stream videos directly from web resources. This is an extension to the existing functionality that primarily focused on local video files. Here's how to specify a remote URL within the settings:
209209

210210
```swift
211-
ExtPlayerView{
211+
ExtVideoPlayer{
212212
VideoSettings{
213213
SourceName('https://example.com/video')
214214
Gravity(.resizeAspectFill) // Video content fit
@@ -238,7 +238,7 @@ struct VideoView: View {
238238
@State private var playbackCommand: PlaybackCommand = .play
239239

240240
var body: some View {
241-
ExtPlayerView(
241+
ExtVideoPlayer(
242242
{
243243
VideoSettings {
244244
SourceName("swipe")

0 commit comments

Comments
 (0)