Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix video show or noshow controls (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
doumafang authored and cxfeng1 committed Nov 7, 2018
1 parent 4e8f18e commit 6d14bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/sdk/WeexSDK/Sources/Component/WXVideoComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ - (instancetype)initWithRef:(NSString *)ref type:(NSString *)type styles:(NSDict
_posterURL = [NSURL URLWithString: attributes[@"poster"]];
}
if (attributes[@"controls"]) {
_showControl = ![attributes[@"controls"] isEqualToString:@"controls"];
_showControl = ![attributes[@"controls"] isEqualToString:@"nocontrols"];
}
}
return self;
Expand Down Expand Up @@ -412,7 +412,7 @@ - (void)updateAttributes:(NSDictionary *)attributes
[_videoView setPosterURL:_posterURL];
}
if (attributes[@"controls"]) {
_showControl = ![attributes[@"controls"] isEqualToString:@"controls"];
_showControl = ![attributes[@"controls"] isEqualToString:@"nocontrols"];
[_videoView setControlShow:_showControl];
}
}
Expand Down

0 comments on commit 6d14bf3

Please sign in to comment.