Making WordPress.org

Changeset 1898

Timestamp:
09/18/2015 10:04:10 PM (9 years ago)
Author:
iandunn
Message:

WordPress.tv: Update oEmbed endpoint to provide the new VideoPress player.

Props nickmomrik

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-oembed/wordpresstv-oembed.php

    r1024 r1898  
    107107            $data['width']  = $width;
    108108            $data['height'] = $height;
    109             $data['html']   = '<embed src="//v.wordpress.com/' . $info->guid . '" type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"></embed>';
     109            $data['html']   = videopress_2015_player_get_html( array(
     110                'guid'   => $info->guid,
     111                'width'  => $width,
     112                'height' => $height,
     113            ) );
    110114        } // Other video types aren't supported quite yet
    111115        else {
Note: See TracChangeset for help on using the changeset viewer.