Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#11860 closed defect (bug) (invalid)

blip.tv videos do not resize correctly

Reported by: fairweb's profile fairweb Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Media Keywords:
Focuses: Cc:

Description

When using WP 2.9 feature to display a video (on a single line in the content) blip.tv videos do not resize according to WP settings. They always display 500x360 whatever the settings.

Change History (7)

#1 @nacin
14 years ago

I'm pretty sure WP only provides a maximum width and height, and blip.tv then returns the oembed representation of the video.

It looks like YouTube scales it out to the width it is asked for (which, unfiltered, is the width the theme supports), while blip.tv always returns the size of your default player. Check your blip.tv player specs, it is probably 500x360.

#2 @fairweb
14 years ago

  • Cc fairweb added

I'm using the single line url feature to insert videos. Other videos are resizing according to the Settings->Media->embeds settings, but not blip. Obviously, size can be adjusted on blip as their embeds codes do have width and height attributes. If I use their embed code, paste it in an html file and change the attributes, it does work.

#3 @nacin
14 years ago

  • Milestone changed from 2.9.2 to Unassigned

Please see my initial comment.

The specs of your blip.tv default player is probably 500 x 360. (If you could check on that, this will help confirming my suspicions.) WordPress implements the oEmbed standard, and it seems blip.tv returns the default player size regardless of the size WordPress asks for. Normally, an oEmbed provider would take what is requested as a size, and return a valid size.

Not sure how much we could do here.

#4 @fairweb
14 years ago

I don't know if this could be useful
http://blip.tv/file/1398453?skin=json

There are width and height which are not 500 x 360. However I don't know if it's the original media size.

Hope it helps.

#5 @fairweb
14 years ago

I tried to call this
http://blip.tv/oembed?url=http%3A//blip.tv/file/1398453&format=json&maxwidth=300&maxheight=300

The file returned this

{
	
	"type": "video",
	"version": "1.0",
	"title": "Xavier de Mazenod presente Elearning Entreprise",
	"author_name": "luc",
	"author_url": "http://luc.blip.tv",
	"provider_name": "blip.tv",
	"provider_url": "http://blip.tv",
	"width": "300",
	"height": "300",
	"html": "<embed src=\"http://blip.tv/play/gYxB1eBIAg\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"390\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed>"
	
}

So it's returning the max values but the embed width and height are not following. Do you think that's where the problem lies ?

#6 @Viper007Bond
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Yep, WordPress uses what it's given. Looks like Blip.tv's oEmbed provider needs work. I'd contact them and get them to fix it. It's a lot easier than use having to regex their HTML and fix it (plus would kinda defeat the purpose of oEmbed).

#7 @filosofo
14 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.