Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-11-07 00:13:46

pxoxrxn
Member
Registered: 2011-12-01
Posts: 67
Website

Reducing the size on embedded videos

Hi, I am trying to reduce the size of embedded videos, down to around YouTube size (640 x 360). I changed the settings in the Video>Cinfig>Embed settings but instead of scaling it down, its crops the videos to the top left corner so you can only see that parts.


Is there a way to scale them down like YouTube does?

Offline

#2 2013-11-07 00:58:53

xpornclub
Member
From: California
Registered: 2012-01-01
Posts: 445
Website

Re: Reducing the size on embedded videos

Are you using the Iframe code?  or ?   Cause in the Iframe code is has the size attributes.   Or are you talking about videos embedded into your site?

Offline

#3 2013-11-07 05:55:05

pxoxrxn
Member
Registered: 2011-12-01
Posts: 67
Website

Re: Reducing the size on embedded videos

No, I'm taking about embedding videos from my tube to another website. They are in the iFrame but if you change those dimension it crops the video instead of scaling and you lose half the video.

Offline

#4 2013-11-07 05:59:36

xpornclub
Member
From: California
Registered: 2012-01-01
Posts: 445
Website

Re: Reducing the size on embedded videos

What player are you using?  Cause im using nuevo player and it does not cut off the video if I change it, it stretches to fit whatever I choose

Offline

#5 2013-11-07 07:05:14

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Reducing the size on embedded videos

Yeah, its because the code is not responsive. We will make it responsive in our next version.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2013-11-07 16:13:58

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Re: Reducing the size on embedded videos

This is kind of missunderstanding.
"Responsive" refers to HTML objects that reacts on browser's dimensions.
Symtab surely means that default player iframe works fine only at selected frame size.
But if you change it manually later, player object doesn't fit iframe automatically.
In ppposite Nuevoplayer iframe works fine with any frame dimensions, even if it's changed later manually.
xpornclub knows it, as when you embed his code, player will always fit iframe whatever size.

Talking of responsive design is something different.
Definition is clear: such design "adapts the layout to the viewing environment by using fluid, proportion-based grids,flexible images,CSS3 media queries, an extension of the @media rule."

In clear words this means that HTML elements are adopted to browser's size, even if it is stretched/reduced manually in the runtime.
Good example of responsive template is my Wordpress Nuevoplayer integration demo on http://www.cglex.com
When you watch video, try to resize browser and you'll see that player changes size automatically at certain moment, depending if  vertical html elements go outside/inside browser's dimension.
That's about "responsive" term.

xpornclub, you also miss some secrets about Nuevoplayer.
Player size is one thing, video size is other thing.
Nuevoplayer allows to choose initial video scaling method.
This can be "fit to screen" or "preserve aspect ratio".
So it will play as you decide in Nuevoplayer settings.
However scaling method can be changed during playback as well.
There is settings button in controlbar for this purpose.

In general when someone has any HTML display issue, it's often not possible to suggest anything useful by reading only issue description. Even screenshot doesn't help in anything. Only live example link allows to see the issue and sometimes (not always) allows more experienced people to help in such matter.

Last edited by Nuevolab (2013-11-07 17:24:45)

Offline

#7 2013-11-08 05:37:17

pxoxrxn
Member
Registered: 2011-12-01
Posts: 67
Website

Re: Reducing the size on embedded videos

I don't want to post the URL publicly. If anyone cares to take a look at what I mean, I am happy to email the link.

I am using FlowPlayer. The iFrame seems to push its way outside of the div that it sits in, I can't explain it with words but it overlaps with a men that's in a different div.

Offline

#8 2013-11-08 08:16:30

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Reducing the size on embedded videos

Please send me a email. What nuevo described will be implemented in next version (we already have this on some custom developed sites).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#9 2013-11-08 11:22:51

Nuevolab
Member
Registered: 2012-08-01
Posts: 189

Re: Reducing the size on embedded videos

Some explanaition to Symtab,
What I described about iframe and player that always fit, at first glance I did by checking iframe size once document loaded and assigning correct size to the player, so it fits iframe size.
However recently I changed my tactics, modified Nuevoplayer js code, so it is possible to use "100%" width/height for such player.
It may not work with other players. All depends of css rules inside player js code.
Using such method allows not only to take care about player size inside iframe, but also to use 100% wide player on responsive layouts. Using % instead of pixels allows responsive layouts to resize player automatically to browser's size, even on the fly.

Symtab have you seen what I did with login feature?
http://forum.adultscriptpro.com/viewtopic.php?pid=14663
Wonder what's your opinion?
Not a big thing, but I like it.

Last edited by Nuevolab (2013-11-08 11:25:48)

Offline

#10 2013-11-08 19:01:10

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Reducing the size on embedded videos

Yeah...the good method is to use width 100%. This what it will always resize to the parent element. It works with all players (jw/flowplayer tested). I like the login feature.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB