PHP code example of schnti / video

1. Go to this page and download the library: Download schnti/video library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

schnti / video example snippets


<div class="video-container disabled">
    <div class="embed-container" style="display: none">
        <iframe data-src="https://example.com/embed/…"></iframe>
    </div>
     snippet('video-consent', [
        'service'     => 'Example',
        'text'        => 'Click the button to load the embed. …',
        'button'      => 'Load embed',
        'icon'        => url('assets/images/icon.svg'),
        'buttonClass' => 'btn btn-primary',
        'link'        => 'https://example.com/…',
    ]) 

return [
  'schnti.video.cache'  => true, // remember failed poster lookups (default)
  'schnti.video.showId' => true, // show the video id below the notice
];