Skip to content

Commit

Permalink
Added class to div wrapping player, for easier styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Interactive committed Jun 9, 2023
1 parent 2dc4125 commit 3c553f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inc/class-cloudflare-stream-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function get_video_embed_template( $uid = 'UID', $args ) {
$poster_time = $poster_time . 's';
$poster_url = ( '' === $args['posterurl'] ) ? esc_url( 'https://' . $media_domain . '/' . $uid . '/thumbnails/thumbnail.jpg?time=' . $poster_time ) : $args['posterurl'];

$video_embed = '<div style="position: relative; padding-top: 56.25%"><iframe'
$video_embed = '<div class="cloudflare-stream" style="position: relative; padding-top: 56.25%"><iframe'
. ' src="' . esc_url( $src_uri )
. ( filter_var( $args['muted'], FILTER_VALIDATE_BOOLEAN ) ? 'muted=true&' : '' )
. ( filter_var( $args['loop'], FILTER_VALIDATE_BOOLEAN ) ? 'loop=true&' : '' )
Expand Down
4 changes: 2 additions & 2 deletions src/inc/class-cloudflare-stream-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class Cloudflare_Stream_Settings {
const OPTION_API_ACCOUNT = 'cloudflare_stream_api_account';
const OPTION_SIGNED_URLS = 'cloudflare_stream_signed_urls';
const OPTION_SIGNED_URLS_DURATION = 'cloudflare_stream_signed_urls_duration';
const OPTION_POSTER_TIME = 'cloudflare_stream_poster_time';
const OPTION_MEDIA_DOMAIN = 'cloudflare_stream_media_domain';
const OPTION_POSTER_TIME = 'cloudflare_stream_poster_time';
const STANDARD_MEDIA_DOMAINS = array( 'cloudflarestream.com', 'videodelivery.net' );

/**
Expand Down Expand Up @@ -94,8 +94,8 @@ public function action_admin_init() {
register_setting( self::SETTING_GROUP, self::OPTION_API_TOKEN );
register_setting( self::SETTING_GROUP, self::OPTION_SIGNED_URLS );
register_setting( self::SETTING_GROUP, self::OPTION_SIGNED_URLS_DURATION );
register_setting( self::SETTING_GROUP, self::OPTION_POSTER_TIME );
register_setting( self::SETTING_GROUP, self::OPTION_MEDIA_DOMAIN );
register_setting( self::SETTING_GROUP, self::OPTION_POSTER_TIME );

add_settings_section(
self::SETTING_SECTION_GENERAL,
Expand Down

0 comments on commit 3c553f1

Please sign in to comment.