nvm!
This commit is contained in:
parent
1389b54b98
commit
c7aef09983
|
@ -406,10 +406,10 @@ struct ContentView: View {
|
|||
} else {
|
||||
Text("Signing in...")
|
||||
.onAppear(perform: {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
DispatchQueue.main.async { [self] in
|
||||
_viewDidLoad.wrappedValue = false
|
||||
usleep(500000);
|
||||
self?.jsi.did = false;
|
||||
self.jsi.did = false;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ struct PlayerDemo: View {
|
|||
@State private var captionConfiguration: Bool = false {
|
||||
didSet {
|
||||
if(captionConfiguration == false) {
|
||||
DispatchQueue.global(qos: .userInitiated).async { _ in
|
||||
DispatchQueue.global(qos: .userInitiated).async { [self] in
|
||||
vlcplayer.pause()
|
||||
usleep(10000);
|
||||
vlcplayer.play()
|
||||
|
@ -251,8 +251,8 @@ struct PlayerDemo: View {
|
|||
_isPlaying.wrappedValue = true;
|
||||
}
|
||||
|
||||
DispatchQueue.global(qos: .userInteractive).async { [weak self] in
|
||||
self?.keepUpWithPlayerState()
|
||||
DispatchQueue.global(qos: .userInteractive).async { [self] in
|
||||
self.keepUpWithPlayerState()
|
||||
}
|
||||
} catch {
|
||||
|
||||
|
@ -361,8 +361,8 @@ struct PlayerDemo: View {
|
|||
let videoDuration = Double(vlcplayer.time.intValue + abs(vlcplayer.remainingTime.intValue))
|
||||
if(bool == true) {
|
||||
vlcplayer.pause()
|
||||
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
|
||||
self?.processScrubbingState()
|
||||
DispatchQueue.global(qos: .userInitiated).async { [self] in
|
||||
self.processScrubbingState()
|
||||
}
|
||||
} else {
|
||||
//Scrub is value from 0..1 - find position in video and add / or remove.
|
||||
|
|
Loading…
Reference in New Issue