Programmatically stream Android content to TV

android

Solution

For Android 4.2+, your app can use a `Presentation` and `DisplayManager` (or `MediaRouter`) to show separate content on an external display (HDMI, MHL, SlimPort, Miracast). Miracast is based on WiFiDirect.

Here is a presentation that I delivered last year that covers this topic.

Problem

What I would like to achieve is to live-stream one of my Android game to TV (using DLNA/Wifi Direct connection). Can I somehow do that? I still would like to control my game using phone (as it is), but I would see my game screen on my TV in live. Are there any solution out there? Thanks!

Original source