# ablocks/2.11.0/includes/blocks/video/attributes.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.11.0. 107 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.11.0/code/includes/blocks/video/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.11.0/raw/includes/blocks/video/attributes.php
- Modified: 2025-12-28T14:24:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.11.0/code/includes/blocks/video/attributes.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use ABlocks\Controls\CssFilter;

$attributes = [
	'block_id'        => [
		'type'        => 'string',
		'default'     => '',
	],
	'blockVersion' => array(
		'type' => 'number',
		'default' => '',
	),
	'videoSource'     => [
		'type'        => 'string',
		'default'     => 'youtube',
	],
	'videoStartTime'  => [
		'type'        => 'number',
		'default'     => 0,
	],
	'videoEndTime'    => [
		'type'        => 'number',
		'default'     => 0,
	],
	'videoUrl'         => [
		'type'        => 'string',
		'default'     => '',
	],
	'selfHostedURL'   => [
		'type'        => 'string',
		'default'     => ''
	],
	'externalLink'    => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'autoplay'        => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'mute'            => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'loop'            => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'playerControl'   => [
		'type'        => 'boolean',
		'default'     => true,
	],
	'downloadButton'  => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'vimeoURL'        => [
		'type'        => 'string',
		'default'     => 'https://vimeo.com/1034907087',
	],
	'youtubeURL'      => [
		'type'        => 'string',
		'default'     => 'https://www.youtube.com/watch?v=oh0NDa_oVuI&ab_channel=aBlocks',
	],
	'privacyMode'     => [
		'type'        => 'boolean',
		'default'     => false,
	],
	'introTitle'      => [
		'type'        => 'boolean',
		'default'     => true,
	],
	'introPortrait'   => [
		'type'        => 'boolean',
		'default'     => true,
	],
	'introByline'     => [
		'type'        => 'boolean',
		'default'     => true,
	],
	'poster'          => [
		'type'        => 'string',
		'default'     => '',
	],
	'preload'         => [
		'type'        => 'string',
		'default'     => 'metadata',
	],
	'aspectRatio'     => [
		'type'        => 'string',
		'default'     => '1.77777',
	],
];

$attributes = array_merge(
	$attributes,
	CssFilter::get_attribute( 'cssFilter' )
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );


```
