Thanks to visit codestin.com
Credit goes to github.com

Skip to content

YouTube & Vimeo video field for Silverstripe. Store video data for further manipulation. Enchant links with parameters through friendly interface, display thumbnails, fetching video data like title, description and more with no extra actions.

License

Notifications You must be signed in to change notification settings

goldfinch/video-field

Repository files navigation

🦅 Video Field for Silverstripe

Silverstripe Version Package Version Total Downloads License

YouTube & Vimeo video field for Silverstripe. Store video data for further manipulation. Enchant links with parameters through friendly interface, display thumbnails, fetching video data like title, description and more with no extra actions.

Install

composer require goldfinch/video-field

Usage

use Goldfinch\VideoField\Forms\VideoField;

private static $db = [
    'Video' => 'Video',
];

// ..

VideoField::create($this, 'Video')
<!-- template.ss -->

<!-- General -->
$Video.url
$Video.embedUrl
$Video.plainUrl
$Video.plainEmbedUrl
$Video.iframe
$Video.iframe(300,200)
$Video.thumbnailUrl
$Video.thumbnailUrl(standard)
$Video.thumbnail
$Video.thumbnail(standard)
<%-- $Video.dumpAllThumbnails --%>

<!-- Youtube (API oembed data) -->
$Video.hostData.title
$Video.hostData.author_name
$Video.hostData.author_url
$Video.hostData.type
$Video.hostData.height
$Video.hostData.width
$Video.hostData.version
$Video.hostData.provider_name
$Video.hostData.provider_url
$Video.hostData.thumbnail_height
$Video.hostData.thumbnail_width
$Video.hostData.thumbnail_url
$Video.hostData.html

<!-- Vimeo (API oembed data) -->
$Video.hostData.type
$Video.hostData.version
$Video.hostData.provider_name
$Video.hostData.provider_url
$Video.hostData.title
$Video.hostData.author_name
$Video.hostData.author_url
$Video.hostData.is_plus
$Video.hostData.account_type
$Video.hostData.html
$Video.hostData.width
$Video.hostData.height
$Video.hostData.duration
$Video.hostData.description
$Video.hostData.thumbnail_url
$Video.hostData.thumbnail_width
$Video.hostData.thumbnail_height
$Video.hostData.thumbnail_url_with_play_button
$Video.hostData.upload_date
$Video.hostData.video_id
$Video.hostData.uri

Previews

Video fields & settings

Video fields

License

The MIT License (MIT)

About

YouTube & Vimeo video field for Silverstripe. Store video data for further manipulation. Enchant links with parameters through friendly interface, display thumbnails, fetching video data like title, description and more with no extra actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published