当前位置: 首页>>代码示例>>Java>>正文


Java MediaRouteManager类代码示例

本文整理汇总了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;
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:8,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:15,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:9,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:10,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:6,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:6,代码来源:CastMediaRouteProvider.java

示例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);
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:7,代码来源:CastMediaRouteProvider.java


注:本文中的org.chromium.chrome.browser.media.router.MediaRouteManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。