I am trying to get a reference to the MediaRouteButton which is the cast icon and I am getting a null value all the time. Just wanted to see if anyone knows how to get a reference to this button. I am using a onGlobalLayoutListener to get notifications.
How to get access to the chromecast icon programaticailly
62 Views Asked by ronnie173 At
1
There are 1 best solutions below
Related Questions in CHROMECAST
- Can't install Custom Receiver on Chromecast
- Chromecast android send image
- Google Cast Media Player Library - for streaming from Local Device
- Chromcast instream subtitles are not working
- is it possible to display image files that require a session on the server in chromecast?
- How to implement same custom receiver app for different sender apps having different graphics and media assets?
- Chromecast displays weird artifacts in my custom receiver web app
- Queue mutiliples image on Chromecast with GCKMediaQueueItem
- Customer Receiver: Unable to Cast to Device
- Chrome Sender: media.playerState is not properly updated
- How to cast the screen of android device with chromecast?
- How to determine if the user willingly disconnected from a Cast device?
- Set-Cookie in Chromecast Network
- Chromecast add subtitle while playing video
- ChromeCast Android mute/unmute button working reverse with iOS
Related Questions in CASTCOMPANIONLIBRARY
- Android Chromecast Companion Library - subtitle toggle button
- Not able to be notified when casting menu item is clicked using Cast Companion Library
- Android Chromecast Companion Library - set TextTrackStyle error 2103
- How can I customize the mini-Controller from Cast Companion Library?
- Is it possible to customize VideoCastControllerActivity?
- How can I pass other custom data to my custom VideoCastControllerActivity in Cast Companion library?
- Android app automatically casting without user interaction (CastCompanionLibrary)
- VideoCastControllerActivity: ActivityNotFoundException
- How to change theme on Dialog Cast Companion Library android
- Get media current position before disconnecting from cast
- how do i change the applicationId dynamically for chromecast android
- Registering the app to cast developer console using Styled Media Reciever
- How to get access to the chromecast icon programaticailly
- I can't get the Cast Companion Library notification to work
- Android Chromecast Seeking behavior - Restarts Video from begining
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you are using CCL, you should be easily able to use ShowCaseView; take a look at the CastVideos-android app and see how it does it, basically you can use the callback
onCastDeviceDetected()to be notified when the cast button appears and then do something like:This assumes you have a ToolBar.
EDIT: If you have an ActionBar, try the following:
At some point, I had submitted a patch to ShowCaseView project to cover MediaRoute button so hopefully that still works; I haven't tried that lately since I am using Toolbar now.