當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。