@Override public void onResolutionListButtonFocusFirst() { // TODO Auto-generated method stub // 当遥控器焦点指到container的时候,要求里面的按钮中第一个要显示为focus状态 VDVideoViewController controller = VDVideoViewController.getInstance(mContext); if (controller != null) { VDResolutionManager resolutionManager = VDResolutionManager.getInstance(mContext); if (resolutionManager != null) { VDResolution firstResolution = resolutionManager.getResolutionData().getFirstResolution(); if (firstResolution != null && firstResolution.getTag().equals(mResolutionTag)) { requestFocus(); } } } }
public void initResolution() { VDVideoViewController controller = VDVideoViewController.getInstance(mContext); if (controller != null) { try { VDResolutionManager resolutionManager = VDResolutionManager.getInstance(mContext); if (resolutionManager != null) { mResolution = resolutionManager.getCurrResolution(); String tag = resolutionManager.getCurrResolutionTag(); setClicked(tag); } refreshButtonText(); } catch (Exception ex) { ex.printStackTrace(); } } }