本文整理汇总了Java中org.chromium.chrome.browser.media.router.MediaRouteManager类的典型用法代码示例。如果您正苦于以下问题:Java MediaRouteManager类的具体用法?Java MediaRouteManager怎么用?Java MediaRouteManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MediaRouteManager类属于org.chromium.chrome.browser.media.router包,在下文中一共展示了MediaRouteManager类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: OnSinksReceivedRunnable
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
OnSinksReceivedRunnable(MediaRouteManager manager, MediaRouteProvider routeProvider,
String sourceId, List<MediaSink> sinks) {
mRouteManager = new WeakReference<MediaRouteManager>(manager);
mRouteProvider = routeProvider;
mSourceId = sourceId;
mSinks = sinks;
}
示例2: create
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
/**
* @param applicationContext The application context to use for this route provider.
* @return Initialized {@link CastMediaRouteProvider} object or null if it's not supported.
*/
@Nullable
public static CastMediaRouteProvider create(
Context applicationContext, MediaRouteManager manager) {
assert applicationContext != null;
MediaRouter androidMediaRouter =
ChromeMediaRouter.getAndroidMediaRouter(applicationContext);
if (androidMediaRouter == null) return null;
return new CastMediaRouteProvider(applicationContext, androidMediaRouter, manager);
}
示例3: CastMediaRouteProvider
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
@VisibleForTesting
CastMediaRouteProvider(
Context applicationContext, MediaRouter androidMediaRouter, MediaRouteManager manager) {
mApplicationContext = applicationContext;
mAndroidMediaRouter = androidMediaRouter;
mManager = manager;
mMessageHandler = new CastMessageHandler(this);
}
示例4: create
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
/**
* @return Initialized {@link CastMediaRouteProvider} object or null if it's not supported.
*/
@Nullable
public static CastMediaRouteProvider create(MediaRouteManager manager) {
MediaRouter androidMediaRouter = ChromeMediaRouter.getAndroidMediaRouter();
return new CastMediaRouteProvider(androidMediaRouter, manager);
}
示例5: run
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
@Override
public void run() {
MediaRouteManager manager = mRouteManager.get();
if (manager != null) manager.onSinksReceived(mSourceId, mRouteProvider, mSinks);
}
示例6: createCastMediaRouteProviderForTest
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
@VisibleForTesting
static CastMediaRouteProvider createCastMediaRouteProviderForTest(
Context applicationContext, MediaRouter androidMediaRouter, MediaRouteManager manager) {
return new CastMediaRouteProvider(applicationContext, androidMediaRouter, manager);
}
示例7: CastMediaRouteProvider
import org.chromium.chrome.browser.media.router.MediaRouteManager; //导入依赖的package包/类
@VisibleForTesting
CastMediaRouteProvider(MediaRouter androidMediaRouter, MediaRouteManager manager) {
mAndroidMediaRouter = androidMediaRouter;
mManager = manager;
mMessageHandler = new CastMessageHandler(this);
}