File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
SuperPlayerDemo/SuperPlayer/CacheView/VodDownloadCenter
SuperPlayerKit/SuperPlayer Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ - (id)init {
4040}
4141
4242- (void )registerListener : (DownloadCallback *)callback info : (TXVodDownloadMediaInfo *)mediaInfo {
43- [self .listenerDic setObject: callback forKey: mediaInfo.playPath];
43+ if (mediaInfo.playPath != nil ){
44+ [self .listenerDic setObject: callback forKey: mediaInfo.playPath];
45+ }
4446}
4547
4648- (void )unRegisterListener : (TXVodDownloadMediaInfo *)mediaInfo {
Original file line number Diff line number Diff line change @@ -2021,6 +2021,7 @@ - (void)showVipView {
20212021- (void )_removeOldPlayer {
20222022 for (UIView *w in [self subviews ]) {
20232023 if ([w isKindOfClass: NSClassFromString (@" TXCRenderView" )]) [w removeFromSuperview ];
2024+ if ([w isKindOfClass: NSClassFromString (@" TXCiOSVideoRenderView" )]) [w removeFromSuperview ];
20242025 if ([w isKindOfClass: NSClassFromString (@" TXIJKSDLGLView" )]) [w removeFromSuperview ];
20252026 if ([w isKindOfClass: NSClassFromString (@" TXCAVPlayerView" )]) [w removeFromSuperview ];
20262027 if ([w isKindOfClass: NSClassFromString (@" TXCThumbPlayerView" )]) [w removeFromSuperview ];
You can’t perform that action at this time.
0 commit comments