Kaynağa Gözat

播放器增加referer

Harry 1 yıl önce
ebeveyn
işleme
3ce9c41d6b

+ 3 - 0
BFStuckPointKit/Classes/BFUtils/PQSingletoVideoPlayer.swift

@@ -43,6 +43,9 @@ public class PQSingletoVideoPlayer: NSObject {
         let config = TXVodPlayConfig()
         let config = TXVodPlayConfig()
         config.cacheFolderPath = videoCacheDirectory
         config.cacheFolderPath = videoCacheDirectory
         config.maxCacheItems = 5
         config.maxCacheItems = 5
+        let httpHeader : [String : String] = ["Referer":"http://appspeed.piaoquantv.com"]
+        config.headers = httpHeader
+
         player.config = config
         player.config = config
         player.vodDelegate = self
         player.vodDelegate = self
         player.setRenderMode(.RENDER_MODE_FILL_SCREEN)
         player.setRenderMode(.RENDER_MODE_FILL_SCREEN)

+ 0 - 10
Example/BFStuckPointKit.xcworkspace/contents.xcworkspacedata

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
-   version = "1.0">
-   <FileRef
-      location = "group:BFStuckPointKit.xcodeproj">
-   </FileRef>
-   <FileRef
-      location = "group:Pods/Pods.xcodeproj">
-   </FileRef>
-</Workspace>

+ 0 - 8
Example/BFStuckPointKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>IDEDidComputeMac32BitWarning</key>
-	<true/>
-</dict>
-</plist>

+ 0 - 222
Example/Podfile.lock

@@ -1,222 +0,0 @@
-PODS:
-  - Alamofire (5.4.4)
-  - AliyunOSSiOS (2.10.10)
-  - BFAnalyzeKit (0.1.0):
-    - BFCommonKit/BFEnums
-    - BFCommonKit/BFEnv
-    - BFCommonKit/BFProtocols
-    - BFNetRequestKit
-  - BFCommonKit (1.5.2):
-    - BFCommonKit/BFCategorys (= 1.5.2)
-    - BFCommonKit/BFConfig (= 1.5.2)
-    - BFCommonKit/BFEnums (= 1.5.2)
-    - BFCommonKit/BFEnv (= 1.5.2)
-    - BFCommonKit/BFModels (= 1.5.2)
-    - BFCommonKit/BFProtocols (= 1.5.2)
-    - BFCommonKit/BFUtility (= 1.5.2)
-    - BFCommonKit/BFVendors (= 1.5.2)
-  - BFCommonKit/BFCategorys (1.5.2):
-    - KingfisherWebP (= 1.3.0)
-  - BFCommonKit/BFConfig (1.5.2):
-    - BFCommonKit/BFEnums
-  - BFCommonKit/BFEnums (1.5.2)
-  - BFCommonKit/BFEnv (1.5.2)
-  - BFCommonKit/BFModels (1.5.2):
-    - BFCommonKit/BFEnums
-    - ObjectMapper (= 4.2.0)
-    - RealmSwift (= 10.7.6)
-  - BFCommonKit/BFProtocols (1.5.2):
-    - BFCommonKit/BFEnums
-  - BFCommonKit/BFUtility (1.5.2):
-    - Alamofire (= 5.4.4)
-    - BFCommonKit/BFCategorys
-    - BFCommonKit/BFConfig
-    - KeychainAccess (= 4.2.2)
-    - Kingfisher (= 6.3.1)
-    - KingfisherWebP (= 1.3.0)
-    - Toast-Swift (= 5.0.1)
-  - BFCommonKit/BFVendors (1.5.2)
-  - BFMaterialKit (0.2.0):
-    - BFUIKit
-  - BFMediaKit (0.1.0):
-    - BFCommonKit
-    - NuiSDK (= 2.5.14)
-    - ObjectMapper (= 4.2.0)
-    - RealmSwift (= 10.7.6)
-  - BFNetRequestKit (1.0.1):
-    - Alamofire (= 5.4.4)
-  - BFStuckPointKit (0.1.0):
-    - BFAnalyzeKit
-    - BFCommonKit
-    - BFMaterialKit
-    - BFMediaKit
-    - BFNetRequestKit
-    - BFUIKit
-    - BFUploadKit
-    - Bugly (= 2.5.90)
-    - LMJHorizontalScrollText (= 2.0.2)
-    - MJRefresh (~> 3.0)
-    - TXLiteAVSDK_Player (= 9.3.10765)
-    - WechatOpenSDK-Swift (= 1.8.7.1)
-  - BFUIKit (0.1.2):
-    - BFCommonKit
-    - BFUIKit/Comm (= 0.1.2)
-    - BFUIKit/Controller (= 0.1.2)
-    - BFUIKit/View (= 0.1.2)
-    - FDFullscreenPopGesture (= 1.1)
-    - Kingfisher (~> 6.0)
-    - MGSwipeTableCell (~> 1.0)
-    - MJRefresh (~> 3.0)
-    - RealmSwift (= 10.7.6)
-    - SnapKit (~> 5.0)
-    - SVProgressHUD (~> 2.0)
-  - BFUIKit/Comm (0.1.2):
-    - BFCommonKit
-    - FDFullscreenPopGesture (= 1.1)
-    - Kingfisher (~> 6.0)
-    - MGSwipeTableCell (~> 1.0)
-    - MJRefresh (~> 3.0)
-    - RealmSwift (= 10.7.6)
-    - SnapKit (~> 5.0)
-    - SVProgressHUD (~> 2.0)
-  - BFUIKit/Controller (0.1.2):
-    - BFCommonKit
-    - FDFullscreenPopGesture (= 1.1)
-    - Kingfisher (~> 6.0)
-    - MGSwipeTableCell (~> 1.0)
-    - MJRefresh (~> 3.0)
-    - RealmSwift (= 10.7.6)
-    - SnapKit (~> 5.0)
-    - SVProgressHUD (~> 2.0)
-  - BFUIKit/View (0.1.2):
-    - BFCommonKit
-    - FDFullscreenPopGesture (= 1.1)
-    - Kingfisher (~> 6.0)
-    - MGSwipeTableCell (~> 1.0)
-    - MJRefresh (~> 3.0)
-    - RealmSwift (= 10.7.6)
-    - SnapKit (~> 5.0)
-    - SVProgressHUD (~> 2.0)
-  - BFUploadKit (0.1.0):
-    - AliyunOSSiOS (= 2.10.10)
-    - BFAnalyzeKit
-    - BFCommonKit
-    - BFNetRequestKit
-    - BFUIKit
-  - Bugly (2.5.90)
-  - FDFullscreenPopGesture (1.1)
-  - KeychainAccess (4.2.2)
-  - Kingfisher (6.3.1)
-  - KingfisherWebP (1.3.0):
-    - Kingfisher (~> 6.2)
-    - libwebp (>= 1.1.0)
-  - libwebp (1.2.1):
-    - libwebp/demux (= 1.2.1)
-    - libwebp/mux (= 1.2.1)
-    - libwebp/webp (= 1.2.1)
-  - libwebp/demux (1.2.1):
-    - libwebp/webp
-  - libwebp/mux (1.2.1):
-    - libwebp/demux
-  - libwebp/webp (1.2.1)
-  - LMJHorizontalScrollText (2.0.2)
-  - MGSwipeTableCell (1.6.11)
-  - MJRefresh (3.7.2)
-  - NuiSDK (2.5.14)
-  - ObjectMapper (4.2.0)
-  - Realm (10.7.6):
-    - Realm/Headers (= 10.7.6)
-  - Realm/Headers (10.7.6)
-  - RealmSwift (10.7.6):
-    - Realm (= 10.7.6)
-  - SnapKit (5.0.1)
-  - SVProgressHUD (2.2.5)
-  - Toast-Swift (5.0.1)
-  - TXLiteAVSDK_Player (9.3.10765)
-  - WechatOpenSDK-Swift (1.8.7.1)
-
-DEPENDENCIES:
-  - BFAnalyzeKit (from `../../../BFAnalyzeKit/Trunk`)
-  - BFCommonKit (from `../../../BFCommonKit/Trunk`)
-  - BFMaterialKit (from `../../../BFMaterialKit/Trunk`)
-  - BFMediaKit (from `../../../BFMediaKit/Trunk`)
-  - BFNetRequestKit (from `../../../BFNetRequestKit/Trunk`)
-  - BFStuckPointKit (from `../`)
-  - BFUIKit (from `../../../BFUIKit/Trunk`)
-  - BFUploadKit (from `../../../BFUploadKit/Trunk`)
-
-SPEC REPOS:
-  https://github.com/CocoaPods/Specs.git:
-    - AliyunOSSiOS
-    - Bugly
-    - LMJHorizontalScrollText
-    - NuiSDK
-    - ObjectMapper
-    - TXLiteAVSDK_Player
-    - WechatOpenSDK-Swift
-  trunk:
-    - Alamofire
-    - FDFullscreenPopGesture
-    - KeychainAccess
-    - Kingfisher
-    - KingfisherWebP
-    - libwebp
-    - MGSwipeTableCell
-    - MJRefresh
-    - Realm
-    - RealmSwift
-    - SnapKit
-    - SVProgressHUD
-    - Toast-Swift
-
-EXTERNAL SOURCES:
-  BFAnalyzeKit:
-    :path: "../../../BFAnalyzeKit/Trunk"
-  BFCommonKit:
-    :path: "../../../BFCommonKit/Trunk"
-  BFMaterialKit:
-    :path: "../../../BFMaterialKit/Trunk"
-  BFMediaKit:
-    :path: "../../../BFMediaKit/Trunk"
-  BFNetRequestKit:
-    :path: "../../../BFNetRequestKit/Trunk"
-  BFStuckPointKit:
-    :path: "../"
-  BFUIKit:
-    :path: "../../../BFUIKit/Trunk"
-  BFUploadKit:
-    :path: "../../../BFUploadKit/Trunk"
-
-SPEC CHECKSUMS:
-  Alamofire: f3b09a368f1582ab751b3fff5460276e0d2cf5c9
-  AliyunOSSiOS: b8f1dfc229cd9abf68c8ee0cb245c2d66e00dd96
-  BFAnalyzeKit: 457ecf2fcb09cb83417e2adea50f98c60a50ddec
-  BFCommonKit: 86a8c8818c9430b01ee654ba60eb5cb8b863c0e6
-  BFMaterialKit: 0a15786e2a55587f1b2b4b74c0bff5321ebf3630
-  BFMediaKit: 9e2d138ae02e7d7f15425561de527a5bd470040b
-  BFNetRequestKit: 1d074023eafe7c272fab4ed3a608e685902235d0
-  BFStuckPointKit: 833444e54fdd30812b452b650a905eafcfe90aa0
-  BFUIKit: f209190fb92c8f9050554ac5950a2e4852e8a481
-  BFUploadKit: 92ca3512d8dcf7d9a941c68bbba7f31c56323314
-  Bugly: 88bc32c0acc6fef7b74d610f0319ee7560d6b9fe
-  FDFullscreenPopGesture: a8a620179e3d9c40e8e00256dcee1c1a27c6d0f0
-  KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
-  Kingfisher: 016c8b653a35add51dd34a3aba36b580041acc74
-  KingfisherWebP: dec17a5eb1af2658791bde1f93ae9a853678f826
-  libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
-  LMJHorizontalScrollText: ebc9b908db297f603c5b98c9b4e5f4582f5a14b8
-  MGSwipeTableCell: b804e4e450dee439c42250be90bd50458bf67fce
-  MJRefresh: 30997d30b347c8e9508a4db11e3a690da0c9b85a
-  NuiSDK: 96e2a2acc66b6404bc794f2c4702ce0278edcd7c
-  ObjectMapper: 1eb41f610210777375fa806bf161dc39fb832b81
-  Realm: ed860452717c8db8f4bf832b6807f7f2ce708839
-  RealmSwift: e31c4ddbcc42ac879313d656b86f9ca539f6f4f4
-  SnapKit: 97b92857e3df3a0c71833cce143274bf6ef8e5eb
-  SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
-  Toast-Swift: 9b6a70f28b3bf0b96c40d46c0c4b9d6639846711
-  TXLiteAVSDK_Player: 2b60edf893a8e82165a5e4b961a6cb347b10be4a
-  WechatOpenSDK-Swift: 18a8f7b12e745c30acc013f72a9f8a25aad6e216
-
-PODFILE CHECKSUM: d413fdcc5220f8d5b6bb7e61ac746deedc91e067
-
-COCOAPODS: 1.11.2