How can I control video playback on another device?


Question

I'll be taking a long car trip, and I'd like to be able to control video playback on an Android device in the back of the vehicle from the front of the vehicle.



Specific requirements:




  • 2 devices


    • Player device that will be playing the videos. Should run Android and can be a phone or a tablet.

    • Control device to control playback on the player device


  • Solution should not require physical interaction with the player device

  • Solution should work without internet connectivity on all devices

  • Solution should not require a 3rd device of any kind (e.g. wireless hotspot)

  • Solution should maximize battery life on the player device (for example, I think streaming from the control device to the player device would use more battery than if the videos were stored on the player device)


Answer

My first instinct was to use a bluetooth remote to control the player device, but it would require me to set up a playlist on the player device ahead of time, it limits the ability to play specific videos, and it won't let me control the volume.



Instead I came up with a solution using another Android device as the control device:




  1. Copy videos to the player device


  2. Install Kodi to the player device


  3. Install Kore to the control device


  4. Start portable hotspot on the display device




    1. Settings > More > Tethering & portable hotspot > Set up Wi-Fi hotspot

    2. Get password

    3. Back > enable Portable Wi-Fi hotspot


  5. Connect the control device's wifi to the player device's hotspot


  6. Open Kore on the control device and follow the instructions to enable remote control on the player device. The instructions are also here: Kodi web server




That's enough to enable controlling playback on the player device. However, if nothing is playing on the player and the screen turns off, starting playback from Kore won't turn the screen on. Here's how I worked around that:




  1. Set the display of the player device to never turn off. Based on the answer from here, install Automate and use the flow provided to keep the screen on.



    Alternatively, what I did is I created a flow that detects when Kodi is running, and if it is it 1. disables the wifi 2. enables the wifi hotspot 3. turns the media volume all the way up (the volume can be controlled from Kore using the volume buttons) 4. keeps the screen on.


  2. Set up a screensaver on the player device to blank the screen to maximize battery life




    1. Kodi > Settings > Interface settings > Screensaver > Screensaver mode > Black




Other than higher battery use due to the display workaround, the only other downside I've found is that Kore doesn't support playlists, so you have to create a new queue every time.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes