本文整理匯總了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);
}