vhs icon indicating copy to clipboard operation
vhs copied to clipboard

v:media.video unknown type ""

Open timofo opened this issue 2 years ago • 0 comments

Hello,

with TYPO3 11.5.19 and vhs 6.1.2, i determine an error with v:media.video I get the error unknown type ""

In file /Classes/ViewHelpers/Media/VideoViewHelper.php in line 135 you have to make following change to make it work.

$src = mb_substr(GeneralUtility::getFileAbsFileName(ltrim($source,"/")), mb_strlen(CoreUtility::getSitePath()));

Original line:

$src = mb_substr(GeneralUtility::getFileAbsFileName($source), mb_strlen(CoreUtility::getSitePath()));

You have to remove the leading "/" in the source string. On the other hand, you get an empty string from getFileAbsFileName and the type is "" (empty)

timofo avatar Dec 06 '22 13:12 timofo