本文整理汇总了Java中android.support.v17.leanback.media.SurfaceHolderGlueHost类的典型用法代码示例。如果您正苦于以下问题:Java SurfaceHolderGlueHost类的具体用法?Java SurfaceHolderGlueHost怎么用?Java SurfaceHolderGlueHost使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SurfaceHolderGlueHost类属于android.support.v17.leanback.media包,在下文中一共展示了SurfaceHolderGlueHost类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAttachedToHost
import android.support.v17.leanback.media.SurfaceHolderGlueHost; //导入依赖的package包/类
@Override
protected void onAttachedToHost(PlaybackGlueHost host) {
super.onAttachedToHost(host);
if (host instanceof SurfaceHolderGlueHost) {
((SurfaceHolderGlueHost) host).setSurfaceHolderCallback(this);
}
}
示例2: onAttachedToHost
import android.support.v17.leanback.media.SurfaceHolderGlueHost; //导入依赖的package包/类
@Override
public void onAttachedToHost(PlaybackGlueHost host) {
if (host instanceof SurfaceHolderGlueHost) {
mSurfaceHolderGlueHost = ((SurfaceHolderGlueHost) host);
mSurfaceHolderGlueHost.setSurfaceHolderCallback(new VideoPlayerSurfaceHolderCallback());
}
}
示例3: onAttachedToHost
import android.support.v17.leanback.media.SurfaceHolderGlueHost; //导入依赖的package包/类
@Override
public void onAttachedToHost(PlaybackGlueHost host) {
if (host instanceof SurfaceHolderGlueHost) {
surfaceHolderGlueHost = ((SurfaceHolderGlueHost) host);
surfaceHolderGlueHost.setSurfaceHolderCallback(componentListener);
}
notifyStateChanged();
player.addListener(componentListener);
player.addVideoListener(componentListener);
}