- Completed Apply Coupon Functionality
- Made a selection for the coupon selected, also added no coupon found when coupon is not there - Added Masila view in more section - Added Play trailer from Manila in more section - Gave other connectivity
This commit is contained in:
@@ -33,6 +33,10 @@ class MoreVC: UIViewController {
|
||||
|
||||
vm.player?.pause()
|
||||
}
|
||||
@IBAction func playTrailerBtnTapped(_ sender: LocalisedElementsButton) {
|
||||
let item = JwPlayerItemCreate(url: APIEndPoints.StaticURLs.masilaUrl, poster: nil, titles: "Masila")
|
||||
JWPlayerManager.shared.presentPlayer(from: self, playerItems: [item], contentType: .trailer)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TableView DataSource , Delegates
|
||||
|
||||
@@ -109,7 +109,7 @@ class PlayerVC: JWPlayerViewController, JWPlayerViewControllerDelegate {
|
||||
override func jwplayer(_ player: any JWPlayer, didFinishLoadingWithTime loadTime: TimeInterval) {
|
||||
super.jwplayer(player, didFinishLoadingWithTime: loadTime)
|
||||
print("LoadTime", loadTime)
|
||||
if let videoIndex{
|
||||
if let videoIndex , contentType == .webSeries{
|
||||
player.nextUpPlaylistIndex = videoIndex
|
||||
player.next()
|
||||
self.videoIndex = nil
|
||||
@@ -129,7 +129,8 @@ class PlayerVC: JWPlayerViewController, JWPlayerViewControllerDelegate {
|
||||
// player.next()
|
||||
}
|
||||
case .trailer:
|
||||
player.play()
|
||||
break
|
||||
// player.play()
|
||||
case .continueWatching,.audioBooks, .games:
|
||||
player.seek(to: 0)
|
||||
player.play()
|
||||
|
||||
@@ -12,7 +12,8 @@ class RadioVC: UIViewController, WKNavigationDelegate {
|
||||
|
||||
@IBOutlet var webView: WKWebView!
|
||||
var url = "https://wokaland.com/admin/api/woka_fm"
|
||||
// var url = "https://s4.voscast.com:9161/stream"
|
||||
// var url = "https://s4.voscast.com:9161/stream" provide on 18th july
|
||||
// var url = "https://planetcast.radiowalla.in/radio.mp3" //url from 24th july
|
||||
|
||||
@IBOutlet weak var backView: UIView!
|
||||
|
||||
@@ -63,7 +64,6 @@ class RadioVC: UIViewController, WKNavigationDelegate {
|
||||
self.unloadWebView()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func unloadWebView() {
|
||||
// Cancel any ongoing navigation
|
||||
|
||||
Reference in New Issue
Block a user