I'm using chrome API and Default Media Receiver. Is it possible to use some parameters to display media on a portrait screen?
No, it's not possible, and that's normal, because video content should be displayed in the aspect ratio in which it was filmed. If you try to display it differently it will look wrong. How does Chromecast displays it then?
Tap the Cast Screen option. In both cases, now tap the name of the Chromecast you want to stream to. Your screen will now appear on the TV—it even reflect the orientation of your device's screen, so rotate it sideways to switch into landscape mode to fill the TV screen.
Or this in the browser window:
javascript:document.body.style.setProperty("-webkit-transform", "rotate(90deg)", null);
you could do something like this:
body.portrait {
-webkit-transform: rotate(90deg);
}
and then add the portrait
class to the <body>
via javascript with a cast message
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With