8 replies [Last post]
jereece
jereece's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-07-19
Posts: 11
Points: 13

I am new to this forum and new to CSS. I have some experience HTML coding but have never used CSS. I would appreciate someone helping me figure this out.

I have a web cam that streams to the internet. I need to rotate the display of the video 90 degrees clockwise. I have searched Google to find options. All have failed. I saw an article about using CSS to rotate text and images so I thought I would see if that would work. I emailed the author but he was unwilling to help but he did send me the code below. Can anyone help me about inserting the code below to see if it will work on the web page I link to above? Any help is deeply appreciated. Here is the code.

<div class="rotateme">
/* play your video here */
</div>
 
and the css:
 
.rotateme {
 -webkit-transform: rotate(-90deg); 
-moz-transform: rotate(-90deg);
transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 
}

Deuce
Deuce's picture
User offline. Last seen 3 days 9 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

What's to help with? Put your

What's to help with?
Put your video player code into the div.
If this doesn't work, then please provide a live example.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

jereece
jereece's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-07-19
Posts: 11
Points: 13

Live Example

Remember I told you I have no CSS experience. But I did as you said and I put the code in. Obviously I am missing something. Here's my live example.
<a href="http://jreece.com/doggiecam/index-test.htm" rel="nofollow">http://jreece.com/doggiecam/index-test.htm</a>

Tony
Tony's picture
User offline. Last seen 3 hours 35 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3705
Points: 1115

Hi jereece, The CSS needs to

Hi jereece,
The CSS needs to go either in a separate file, linked in the head of your page or in style tags in the head of your page.

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

http://www.w3schools.com/css/css_howto.asp

getting the cam to show is another matter.

Your question may have already been answered, search and read before you ask.

jereece
jereece's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-07-19
Posts: 11
Points: 13

It appears this is rotating

It appears this is rotating the link HTML I entered not the video of the of the link. Any suggestions? I want to rotate the streaming video that the link displays. This is the original page and this is my work in progress.

As always I appreciate the help.

Jim

Tony
Tony's picture
User offline. Last seen 3 hours 35 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3705
Points: 1115

This works on the original

This works on the original page.

.ninety{ -webkit-transform: rotate(-90deg); 
-moz-transform: rotate(-90deg);
transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 
}

Your question may have already been answered, search and read before you ask.

gary.turner
gary.turner's picture
User offline. Last seen 2 hours 18 min ago. Offline
rank Moderator
Moderator
Timezone: GMT-6
Joined: 2004-06-25
Posts: 7695
Points: 1511

Aren't y'all turning the

Aren't y'all turning the wrong direction? Needs to be 90deg, not -90deg, right?

Also, I don't think transform will work on plug-ins, though it'll work for <img>. You need the html5 <video> element.

Wouldn't it be simpler to rotate the camera CCW 90deg?

cheers,

gary

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

jereece
jereece's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-07-19
Posts: 11
Points: 13

Tony - I tried your code and

Tony - I tried your code and I still get is the web address of my video instead of the video and it's not rotated at all. Could you take the code of my page, modify it where it works for you and send it to me via PM? Maybe I am just not doing something right and I have virtually no experience with CSS.

Gary.Turner...I think your are correct in that I need to rotate it clockwise. Thanks. However if I turn the camera then the video will not display the full length of the room. So I am afraid it's not that simple. I may ultimately have to do that and live with part of the room not covered but I was hoping to figure this out.

I continue to appreciate your help.

Jim

jereece
jereece's picture
User offline. Last seen 1 year 23 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-07-19
Posts: 11
Points: 13

Can anyone else help me use

Can anyone else help me use CSS to rotate my streaming video 90 degrees clockwise?

Thanks,
Jim