title: How to get Video / Media Ressouce from flexform with Typoscript
body: <p>I'm using flexform to select background images for html section elements.</p>
  
  <p>Looks like this:
          dataWrap = |</p>
  
  <pre><code>    dataWrap.override.stdWrap.cObject = COA
      dataWrap.override.stdWrap.cObject {
          10 = TEXT
          10.dataWrap = &lt;section class="content {field:flexform_mdCol1} {field:flexform_mdCol2} {field:flexform_col21class}
          20 = TEXT
          20.value = " style="background-image: url(/
          30 = IMG_RESOURCE
          30 {
              file.import.data = field:flexform_mdCol3
          }
          40 = TEXT
          40.value = );"&gt;|&lt;/section&gt;
      }
      dataWrap.override.if.isTrue.field = flexform_mdCol3
  </code></pre>
  
  <p>Problem is that this doesn't work with Videos. I've created a second field (mdCol4) to select a mp4 Video and mdCol3 Field as poster and background for worst case. Looks like this, but doesn't work.</p>
  
  <pre><code>    dataWrap.override.stdWrap.cObject = COA
      dataWrap.override.stdWrap.cObject {
          10 = TEXT
          10.dataWrap = &lt;section class="content {field:flexform_mdCol1} {field:flexform_mdCol2} {field:flexform_col21class}
  
          20 = TEXT
          20.value = " style="background-image: url(/
          30 = IMG_RESOURCE
          30 {
              file.import.data = field:flexform_mdCol3
          }
          40 = TEXT
          40.value = );"&gt;
  
          50 = TEXT
          50.value = &lt;video width="1920" height="1080" autoplay loop muted playsinline poster="/
          60 = IMG_RESOURCE
          60 {
              file.import.data = field:flexform_mdCol3
          }
          70 = TEXT
          70.value = "&gt;
  
          80 = TEXT
          80.value = &lt;source src="/
          90 = IMG_RESOURCE
          90 {
              file.import.data = field:flexform_mdCol4
          }
          100 = TEXT
          100.value = " type="video/mp4"&gt;&lt;/video&gt;|&lt;/section&gt;
      }
      dataWrap.override.if.isTrue.field = flexform_mdCol4
  </code></pre>
  
  <p>Poster and Background showing up, but it seems IMG_RESOURCE doesn't work for videos and I couldn't find some simuliar.</p>
  
  <p>TYPO3 is 8.7.18. Is this a bug or am I just dumb? :)</p>
  
  <p>Any help is really appriciated. Thanks in advance!</p>