hyzp_ybqx-Commit163:版本号更新为version: 1.4.33+20220515。升级插件到自定义的my_flutter_superplayer 0.0.3,能够正常播放点位视频
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Created by Lijy91 on 2020/9/4.
|
||||
//
|
||||
|
||||
#import <SDWebImage/SDWebImage.h>
|
||||
#import "FLTSuperPlayerView.h"
|
||||
|
||||
// FLTSuperPlayerViewController
|
||||
@@ -43,6 +43,9 @@
|
||||
_superPlayerView.delegate = self;
|
||||
|
||||
[self setControlViewType:args[@"controlViewType"]];
|
||||
if (args[@"coverImageUrl"] != nil) {
|
||||
[self setCoverImage:args[@"coverImageUrl"]];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -63,17 +66,14 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)setControlViewType:(NSString *)controlViewType
|
||||
{
|
||||
if ([controlViewType isEqualToString:@"without"]) {
|
||||
_superPlayerView.controlView = [[SPWithoutControlView alloc] initWithFrame:CGRectZero];
|
||||
} else {
|
||||
_superPlayerView.controlView = [[SPDefaultControlView alloc] initWithFrame:CGRectZero];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
|
||||
if ([[call method] isEqualToString:@"getPlayMode"]) {
|
||||
if ([[call method] isEqualToString:@"setControlViewType"]) {
|
||||
[self setControlViewType:call result: result];
|
||||
} else if ([[call method] isEqualToString:@"setTitle"]) {
|
||||
[self setTitle:call result: result];
|
||||
} else if ([[call method] isEqualToString:@"setCoverImage"]) {
|
||||
[self setCoverImage:call result: result];
|
||||
} else if ([[call method] isEqualToString:@"getPlayMode"]) {
|
||||
[self getPlayMode:call result: result];
|
||||
} else if ([[call method] isEqualToString:@"getPlayState"]) {
|
||||
[self getPlayState:call result: result];
|
||||
@@ -106,6 +106,42 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setControlViewType:(NSString *)controlViewType
|
||||
{
|
||||
if ([controlViewType isEqualToString:@"without"]) {
|
||||
_superPlayerView.controlView = [[SPWithoutControlView alloc] initWithFrame:CGRectZero];
|
||||
} else {
|
||||
_superPlayerView.controlView = [[SPDefaultControlView alloc] initWithFrame:CGRectZero];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setControlViewType:(FlutterMethodCall*)call
|
||||
result:(FlutterResult)result
|
||||
{
|
||||
NSString *controlViewType = call.arguments[@"controlViewType"];
|
||||
[self setControlViewType:controlViewType];
|
||||
}
|
||||
|
||||
- (void)setTitle:(FlutterMethodCall*)call
|
||||
result:(FlutterResult)result
|
||||
{
|
||||
NSString *title = call.arguments[@"title"];
|
||||
[_superPlayerView.controlView setTitle:title];
|
||||
}
|
||||
|
||||
- (void)setCoverImage:(NSString *)coverImageUrl
|
||||
{
|
||||
[_superPlayerView.coverImageView sd_setImageWithURL:[NSURL URLWithString:coverImageUrl]];
|
||||
_superPlayerView.coverImageView.alpha = 1;
|
||||
}
|
||||
|
||||
- (void)setCoverImage:(FlutterMethodCall*)call
|
||||
result:(FlutterResult)result
|
||||
{
|
||||
NSString *coverImageUrl = call.arguments[@"coverImageUrl"];
|
||||
[self setCoverImage:coverImageUrl];
|
||||
}
|
||||
|
||||
- (void)getPlayMode:(FlutterMethodCall*)call
|
||||
result:(FlutterResult)result
|
||||
{
|
||||
@@ -144,7 +180,6 @@
|
||||
// skip
|
||||
}
|
||||
|
||||
|
||||
- (void)playWithModel:(FlutterMethodCall*)call
|
||||
result:(FlutterResult)result
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user