您好我使用This Library作为我的应用程序并初始化Recyclker Adapter的所有值。我只是声音,但无法看到视频。请指导我,我所做的就是这里。它在Activity上运行良好,但在Adapoter的情况下效果不佳。
else {
String thumbanil_url = demoModels.getVideo();
Pattern compiledPattern = Pattern.compile(pattern);
Matcher matcher = compiledPattern.matcher(thumbanil_url);
if (matcher.find()) {
value_id = matcher.group();
((DemoViewHolderThird) holder).demoThirdItemInitView.youtubePlayerView.setAutoPlayerHeight(context);
((DemoViewHolderThird) holder).demoThirdItemInitView.youtubePlayerView.initialize("YqwVOWYJSxw", new YoutubePlayerView.YouTubeListener() {
@Override
public void onReady() {
}
@Override
public void onStateChange(YoutubePlayerView.STATE state) {
}
@Override
public void onPlaybackQualityChange(String arg) {
}
@Override
public void onPlaybackRateChange(String arg) {
}
@Override
public void onError(String arg) {
}
@Override
public void onApiChange(String arg) {
}
@Override
public void onCurrentSecond(double second) {
}
@Override
public void onDuration(double duration) {
}
@Override
public void logs(String log) {
}
});
}