Kirbytext add video tag

Hi,

I want to add videos in kirby, the same way i do add images. I have placed the video template.
So how I can can mix the video with images and text inside kirby text?

My code:

<?php snippet('header') ?>
<div id="receiver_ajax"></div>
<div id="transition_project"></div>
<main class="main" id="project" role="main">
  <a href="/#menu" id="close_menu">×</a>
  <div id="text">
    <div class="text">
      <h1><?php echo $page->title()->html() ?></h1>
      <?php echo $page->text()->kirbytext()->footnotes() ?>
      <?php
        $slideshow_video = $page->videos()->pluck('name', ',', true);
        foreach(str::split($slideshow_video) as $filename_video):

          $videos = array(
            $page->videos()->find($filename_video . '.mp4'),
            $page->videos()->find($filename_video . '.webm'),
            $page->videos()->find($filename_video . '.ogg'),
          );
          snippet('video', array(
            'videos' => $videos,
            'thumb'  => $page->images()->find($filename_video . '.jpg')
          ));
          endforeach
        ?>
    </div>
    <h3>Try the beta version of Adil 1.0.0!</h3>
    <br />
    <a class="download" href="img/cover_3.png" download>→ Download (Mac OS)</a>
  </div>
</main>

Could you please post your blueprint and/or what your page’s text file looks like?

yes: my blueprint looks like this:

title: download
pages: false
files:
  sortable: true
fields:
  title:
    label: Title
    type:  text
  text:
    label: Text
    type:  textarea

My pages text file looks like this:
(file: ohne-titel.mp4)
test

So you want to add the videos via a Kirbytag in a textarea field, but still output them in a video tag in different formats, right? Your best option in this case is a custom kirbytag that generates the video tag from files you feed it. Maybe this plugin can either be a starting point or maybe already does what you want: https://github.com/jbeyerstedt/kirby-kirbytag-html5video.

Then I don’t see how your template code relates to the content file?