-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathHelper.swift
35 lines (32 loc) · 1.01 KB
/
Helper.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// ReasonDesciption.swift
// ModernAVPlayer_Example
//
// Created by ankierman on 18/10/2019.
// Copyright © 2019 CocoaPods. All rights reserved.
//
import ModernAVPlayer
struct Helper {
func reasonDescription(_ reason: PlayerUnavailableActionReason) -> String {
switch reason {
case .alreadyPaused:
return "Already Paused"
case .alreadyPlaying:
return "Already Playing"
case .alreadyStopped:
return "Already Stopped"
case .alreadyTryingToPlay:
return "Wait a moment, already trying to play"
case .loadMediaFirst:
return "Load a media first"
case .waitEstablishedNetwork:
return "Wait network to be established before"
case .waitLoadedMedia:
return "Wait media to be loaded before"
case .seekPositionNotAvailable:
return "Seek position not available"
case .seekOverstepPosition:
return "You can't seek after item end"
}
}
}