|
@@ -36,11 +36,11 @@
|
|
|
|
|
|
|
|
- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
|
|
- (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
|
|
|
if ([@"start" isEqualToString:call.method]) {
|
|
if ([@"start" isEqualToString:call.method]) {
|
|
|
- NSString *playerInfoId = call.arguments[@"playerInfoId"];
|
|
|
|
|
- NSString *rtmpUrl = [NSString stringWithFormat:@"rtmp://202.79.174.56:1935/myapp/%@?playerInfoId=%@", playerInfoId, playerInfoId];
|
|
|
|
|
- NSUserDefaults *userDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.long.dianjing"];
|
|
|
|
|
- [userDefaults setValue:rtmpUrl forKey:@"rtmpUrl"];
|
|
|
|
|
- [userDefaults synchronize];
|
|
|
|
|
|
|
+ // NSString *playerInfoId = call.arguments[@"playerInfoId"];
|
|
|
|
|
+ // NSString *rtmpUrl = [NSString stringWithFormat:@"rtmp://202.79.174.56:1935/myapp/%@?playerInfoId=%@", playerInfoId, playerInfoId];
|
|
|
|
|
+ // NSUserDefaults *userDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.long.dianjing"];
|
|
|
|
|
+ // [userDefaults setValue:rtmpUrl forKey:@"rtmpUrl"];
|
|
|
|
|
+ // [userDefaults synchronize];
|
|
|
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("PUSH_START"), NULL, nil, YES);
|
|
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("PUSH_START"), NULL, nil, YES);
|
|
|
|
|
|
|
|
SCLAlertView *alert = [[SCLAlertView alloc] init];
|
|
SCLAlertView *alert = [[SCLAlertView alloc] init];
|