hauer-heinrich / hh_video_extender Goto Github PK
View Code? Open in Web Editor NEWTYPO3 extension. Extends sys_file_reference video/media. Added attributes to select in content element (eg textmedia)
TYPO3 extension. Extends sys_file_reference video/media. Added attributes to select in content element (eg textmedia)
Hello together,
to output image credits at the end of a page, I use the following code for ce textmedia:
`lib.photocredits = FLUIDTEMPLATE
lib.photocredits {
[...]
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
10 {
table = tt_content
where.data = field:uid
orderBy = sorting
as = myrecords
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = assets
as = image
}
}
}
}
Fluid-Ausgabe:
<f:media file="{image}" width="150" height="150c" class="image"/>
{image.properties.copyright}`
This works for videos and images and would need to add the preview image to it.
I hope someone can help me with this.
Thanks a lot
Ulli
Hi,
just stumbled over a dependency problem with hh-video-extender, where I cannot update because there is no ^10.4.99 of TYPO3:
So
• typo3/cms-core: ^9.5.0 || ^10.4.99
• typo3/cms-fluid: ^9.5.0 || ^10.4.99
• typo3/cms-fluid-styled-content: ^9.5.0 || ^10.4.99
• typo3/cms-frontend: ^9.5.0 || ^10.4.99
should be
• typo3/cms-core: ^9.5.0 || ^10.4.0
• typo3/cms-fluid: ^9.5.0 || ^10.4.0
• typo3/cms-fluid-styled-content: ^9.5.0 || ^10.4.0
• typo3/cms-frontend: ^9.5.0 || ^10.4.0
I guess.
Greetings
This line:
https://github.com/Hauer-Heinrich/hh_video_extender/blob/master/ext_localconf.php#L23
has no effect, as there is no TYPO3\CMS\Core\FileReference class, but a class TYPO3\CMS\Core\Resource\FileReference
The class Classes/Resource/FileReference.php is wrong as well. Line https://github.com/Hauer-Heinrich/hh_video_extender/blob/master/Classes/Resource/FileReference.php#L11 should extend \TYPO3\CMS\Core\Resource\FileReference and not TYPO3\CMS\Core\FileReference (note that backslash that it should be at the beginning).
Besides that, the class contains an unknown method $this->initStorageObjects() over line https://github.com/Hauer-Heinrich/hh_video_extender/blob/master/Classes/Resource/FileReference.php#L28
Hi,
I wanted to update the extension to v1.6 (from 1.51) via composer but this didn't work.
"Nothing to Install" was the answer.
$ ddev composer update hauerheinrich/hh-video-extender
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Setting up TYPO3 environment and extensions.
I guess that happend because version 1.51 is higher than version 1.6 and so composer thinks that I already have the newest version? I think the correct version would have been version 1.5.1 or newer versions have to continue with version 1.52, ...
Another question I have: Will TYPO3 10.4 LTS be supported?
Describe the bug
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "hh_video_extender" in /app/vendor/hauerheinrich/hh-video-extender/ext_localconf.php line 8
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "hh_video_extender" in /app/vendor/hauerheinrich/hh-video-extender/Configuration/TCA/Overrides/sys_template.php line 8
Environment:
Additional context
Problem with PHP 8.2
Fix
change
if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey]['config']['typoScript'] === '0') {
in ext_localconf.php line 8 and sys_template.php line 8 to
if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey]) && $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey]['config']['typoScript'] === '0') {
Hi,
I wanted to include some videos and I added a preview_image
for each video. The poster
attribute with the image is not rendered, it's missing.
Can someone confirm this issue?
I use TYPO3 9.5.13 and the latest version of the hh_video_extender.
Hi,
it seems that webm does not support embeded subtitles into a webm file. Therefor you have to use external subtitles which can be added to a <video>
-tag with a <track>
-tag.
Is it possible to add subtitle support for videos?
Info: https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video
For example, save the subtitle in the same folder (or a subfolder which has to be configured) and load it into the code. The same function you use to add other video formats like webm, ogg.
Only questions remain:
How do you add multiple subtitles for different languages?
This would be a solution:
clip-name.en.vtt
clip-name.de.vtt
clip-name.fr.vtt
How to define the default subtitle?
There exists a default
attribut which indicats to the browser that this is the default subtitle file definition. How to define that so that it works for multilanguage?
I thought about adding the default option to the filename to indicate that this is the default subtitle, like this clip-name.de.default.vtt
. Problem: Does this work when the CE was translated into another language? On a French website the default subtitle schould be in French as well. (Of course the user can change the subtitle in the frontend, so maybe that would be a minor issue.)
A better way would be to list all available subtitles for a videofile in the backend and the editor can choose the default subtitle. But not sure if that is possible?
Hi, I haven't noticed it myself, but poster images assigned in the backend are no longer outputting in the frontend.
Can you confirm this and how exhausting is a fix?
Thanks a lot
Ulli
TYPO3 v12:
<video playsinline="" width="600" controls="" no-cookie="" class="video-embed-item" preload="metadata"><source src="/media/Videos/ar-expo.mp4" type="video/mp4"></video>
TYPO3 v11:
<video playsinline="" width="600" controls="" no-cookie="" class="video-embed-item" preload="metadata" poster="/media/Videos/poster-DR-kurzfilm.jpg"><source src="/media/Videos/ar-expo.mp4" type="video/mp4"></video>
TYPO3:
Additional context
PHP 8.1
Hey!
Just wanted to ask if you plan to support TYPO3 v12 and if yes if you got a time plan for that?
Thanks a lot!
Hi
I got the following error when I tried to install the extension on TYPO3 9.5.13 via composer:
bash-4.2$ composer req hauerheinrich/hh-video-extender
Using version ^0.1.5 for hauerheinrich/hh-video-extender
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for hauerheinrich/hh-video-extender ^0.1.5 -> satisfiable by hauerheinrich/hh-video-extender[0.1.5].
- hauerheinrich/hh-video-extender 0.1.5 requires fluid_styled_content ^9.5.0 || ^9.9.99 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
When I used "@dev" as version constraint, it worked.
bash-4.2$ composer req hauerheinrich/hh-video-extender:@dev
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing hauerheinrich/hh-video-extender (dev-master 58ad109): Cloning 58ad109007
Writing lock file
Not sure if that is an actual error or if this is the normal behaviour because the extension is labeled as "beta"?
Hi there,
thx for the extender. Is there a way to show the preview_image in the Backend Preview ? I can't resolve the Relations to it properly.
Thanks for any hint.
Stefan
Are there plans to support TYPO3 11.5 as well?
I would like to suggest to add the option for lazyloading a video. Maybe a toggle lazy loading: On/Off
?
This is not natively supported by the specs but it's possible with Javascript as described here:
https://ottball.com/lazy-loading-video/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.