Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Fix reloadPlayerView
Browse files Browse the repository at this point in the history
  • Loading branch information
VeinGuo committed Jun 13, 2017
1 parent 8ff0c42 commit ce27ca5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion VGPlayer/Classes/VGPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ extension VGPlayer {

open func replaceVideo(_ URL: URL) {
reloadPlayer()
self.displayView.reloadPlayerView()
self.mediaFormat = VGPlayerUtils.decoderVideoFormat(URL)
self.contentURL = URL
configurationPlayer(URL)
Expand Down
3 changes: 3 additions & 0 deletions VGPlayer/Classes/VGPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ extension VGPlayerView {
self.timeSlider.setProgress(0, animated: false)
self.replayButton.isHidden = true
self.timeSliding = false
self.loadingIndicator.isHidden = false
self.loadingIndicator.startAnimating()
self.timeLabel.text = "--:-- / --:--"
reloadPlayerLayer()
}

Expand Down
Binary file not shown.

0 comments on commit ce27ca5

Please sign in to comment.