WordPress.org

Ready to get started?Download WordPress

Forums

YouTube
[resolved] oembed (3 posts)

  1. webmaster128
    Member
    Posted 9 months ago #

    Hihi,

    I am having a lot of trouble with the aspect ration of my video.

    As far as I can see from my tests, the YouTube oEmbed API does not deliver any useful results.

    In all 4 tests the width/height parameters are ignored and in 3/4 the aspect ratio returned is 4:3 instead of 16:9.

    16:9 video - Catching Fire
    http://www.youtube.com/watch?v=n6gODvbxSTs
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3Dn6gODvbxSTs&format=xml
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3Dn6gODvbxSTs&width=1000&height=1000&format=xml
    ok.

    16:9 video - Kullo
    http://www.youtube.com/watch?v=5OcTXnLVfFk
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3D5OcTXnLVfFk&format=xml
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3D5OcTXnLVfFk&width=1000&height=1000&format=xml
    Not ok.

    16:9 video - GTA 5
    http://www.youtube.com/watch?v=uhg8HOXHt0g
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3Duhg8HOXHt0g&format=xml
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3Duhg8HOXHt0g&width=1000&height=1000&format=xml
    Not ok.

    16:9 video - Familonet
    http://www.youtube.com/watch?v=mWLsPtNBCmg
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DmWLsPtNBCmg&format=xml
    http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DmWLsPtNBCmg&width=1000&height=1000&format=xml
    Not ok.

    I think for the time being, this API is no reliable source of information.

    Best,

    Simon

    http://wordpress.org/plugins/youtube-embed-plus/

  2. embedplus
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,
    We’ve been corresponding with YouTube about this issue - hence the delay. They are aware of the aspect ratio problem and have made an internal request to work on better support. At this point, the best option is to manually set the width and height codes that are shown in the directions (i.e., &width= and &height=).

    Also, rather than wait on YouTube, we also have a wizard and are going to add something like force 16:9 / 4:3 aspect ratio options. This will probably help those that don’t want to worry about codes/calculations. It will be up soon in fact!

    -EmbedPlus Team

  3. embedplus
    Member
    Plugin Author

    Posted 8 months ago #

    The force aspect ratio options have now been added as options in the height setting of the wizard. The appropriate settings will be automatically calculated based on the given width.

    -EmbedPlus Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.