I have a HLS video to stream through a Twitter Player Card.
This video content was generated through a iPhone read camera, and so its native resolution is 1280x720.
The streaming content as well is 1280x720, since it keeps the same form factor for all the streaming urls generated in the m3u8 file.
So I would like to rotate the <video/> in order to be displayed in the right way on the card as well.
I use this video as the player card specification:
<meta name="twitter:player:stream" content="http://clipmediaservice.origin.mediaservices.windows.net/1fe05e77-e980-4466-9f9d-33bb84f227f4/RIk4L9fa36.ism/manifest(format=m3u8-aapl)">
<meta name="twitter:player:stream:content_type" content="video/mp4; codecs="avc1.42E01E1, mp4a.40.2"">
where the container iFrame is like the Twitter Player Card example
<video width="100%" src="http://clipmediaservice.origin.mediaservices.windows.net/1fe05e77-e980-4466-9f9d-33bb84f227f4/RIk4L9fa36.ism/manifest(format=m3u8-aapl)" type="video/mp4"></video>
I tried this simple CSS rotation in the container page but didn’t make the trick
<style type="text/css">
video {
width:100%;
max-width:600px;
height:auto;
transform:rotate(90deg);
}
</style>