Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ROTATE EMBEDDED VIDEO(YOUTUBE)

Status
Not open for further replies.
Jul 7, 2010
21
DE
Any hint on how to rotate an embedded youtube video at a specific angle for example 45 degrees?
I am interested to rotate the video and the timebar,controls etc.

any hint highly appreciated.
 
I'd go for the Matrix filter to do it in IE:
For other browsers that support CSS 3, you could use this:
For all other browsers, you would probably require a custom-rolled video player that could accept the rotation angle as a parameter.

I could be wrong, but it's not the sort of thing most users would want, which is why I'm guessing it's not the sort of thing you see being commonly built into 'standard' players.

Note: I haven't tried rotating any applet / Flash / ActiveX controls using the above methods... you might find they work in one browser but not another, so test well :)

Hope this helps,

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
thanks a lot for the answer...
I tried to put the youtube url in the iframe but it doesn't work in any browser..
any ideas?my code is below:
thanks a lot in advance


<style type="text/css">
iframe {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
transform: rotate(-90deg);
position: absolute;
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
</style>

<iframe src=" width="400" height="500"
scrolling="auto" frameborder="1">
</iframe>
 
Looks like my disclaimer was spot on - I don't think you can rotate Flash movies. I've got the iframe to rotate, but not the Flash movie inside it.

Perhaps rolling your own custom Flash video player and doing the rotation in Flash itself is the best way to go.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
thanks a lot for the answer..
will try it in flash and then and see what happens...if you have any other idea..please post...
 
I have very little experience in flash...do you think it is possible to embed in flash then rotate the entire scene or just the embedded video and export as a swf?thanks in advance for any answer..
 
thank you very much for the interest..will check the flash forum out...please post a link if you get any answer...!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top