'string', 'default' => 'youtube' ]; $attributes['youtubeUrl'] = [ 'type' => 'string', 'default' => '' ]; $attributes['videoUrl'] = [ 'type' => 'string', 'default' => '' ]; $attributes['videoId'] = [ 'type' => 'number', 'default' => 0 ]; // Poster for a self-hosted video; custom thumbnail for a YouTube facade. $attributes['posterUrl'] = [ 'type' => 'string', 'default' => '' ]; $attributes['posterId'] = [ 'type' => 'number', 'default' => 0 ]; $attributes['title'] = [ 'type' => 'string', 'default' => '' ]; $attributes['autoplay'] = [ 'type' => 'boolean', 'default' => false ]; $attributes['muted'] = [ 'type' => 'boolean', 'default' => false ]; $attributes['loop'] = [ 'type' => 'boolean', 'default' => false ]; $attributes['controls'] = [ 'type' => 'boolean', 'default' => true ]; $attributes['playsInline'] = [ 'type' => 'boolean', 'default' => true ]; $attributes['preload'] = [ 'type' => 'string', 'default' => 'metadata' ]; $attributes['startTime'] = [ 'type' => 'number', 'default' => 0 ]; $attributes['endTime'] = [ 'type' => 'number', 'default' => 0 ]; $attributes['privacyMode'] = [ 'type' => 'boolean', 'default' => true ]; // Click-to-load facade for YouTube. $attributes['lazyLoad'] = [ 'type' => 'boolean', 'default' => true ]; $attributes['relatedSameChannel'] = [ 'type' => 'boolean', 'default' => true ]; // Shows YouTube captions by default (cc_load_policy=1). $attributes['captions'] = [ 'type' => 'boolean', 'default' => false ]; $attributes['noDownload'] = [ 'type' => 'boolean', 'default' => false ]; return $attributes;