We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(void)playButtonAction:(UIButton *)sender{ _fmVideoPlayer.index = sender.tag - 100;
FriendInfoResultModel * tempResultModel = [FriendInfoResultModel mj_objectWithKeyValues:self.dataArr[_fmVideoPlayer.index]]; VideosModel * model = [VideosModel mj_objectWithKeyValues:[tempResultModel.videos firstObject]]; [_fmVideoPlayer setUrlString:model.path]; //_fmVideoPlayer.frame = CGRectMake(0, 275*(sender.tag - 100) + kScreenWidth/5 + 50 , kScreenWidth, (self.view.frame.size.width-20)/2);
MovieTableViewCell * cell = [self.mainTableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:_fmVideoPlayer.index]]; CGRect cellRect = [cell convertRect:cell.videoPlayer.frame toView:self.view.window];
_fmVideoPlayer.frame = cellRect; [self.view addSubview:_fmVideoPlayer]; _fmVideoPlayer.contrainerViewController = self; [_fmVideoPlayer.player play]; [_fmVideoPlayer showToolView:YES]; _fmVideoPlayer.playOrPauseBtn.selected = YES; _fmVideoPlayer.danmakuView.hidden = YES; _fmVideoPlayer.hidden = NO; }
这样添加后,视频View一直在固定位置。
哦,原来必须是UITableViewController
The text was updated successfully, but these errors were encountered:
No branches or pull requests
(void)playButtonAction:(UIButton *)sender{
_fmVideoPlayer.index = sender.tag - 100;
FriendInfoResultModel * tempResultModel = [FriendInfoResultModel mj_objectWithKeyValues:self.dataArr[_fmVideoPlayer.index]];
VideosModel * model = [VideosModel mj_objectWithKeyValues:[tempResultModel.videos firstObject]];
[_fmVideoPlayer setUrlString:model.path];
//_fmVideoPlayer.frame = CGRectMake(0, 275*(sender.tag - 100) + kScreenWidth/5 + 50 , kScreenWidth, (self.view.frame.size.width-20)/2);
MovieTableViewCell * cell = [self.mainTableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:_fmVideoPlayer.index]];
CGRect cellRect = [cell convertRect:cell.videoPlayer.frame toView:self.view.window];
_fmVideoPlayer.frame = cellRect;
[self.view addSubview:_fmVideoPlayer];
_fmVideoPlayer.contrainerViewController = self;
[_fmVideoPlayer.player play];
[_fmVideoPlayer showToolView:YES];
_fmVideoPlayer.playOrPauseBtn.selected = YES;
_fmVideoPlayer.danmakuView.hidden = YES;
_fmVideoPlayer.hidden = NO;
}
这样添加后,视频View一直在固定位置。
哦,原来必须是UITableViewController
The text was updated successfully, but these errors were encountered: