Project

General

Profile

Actions

Feature #63395

closed

Html5 video poster preview image

Added by Werner Trunk almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2014-11-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:
Remote Sprint

Description

Hallo
I have created a patch for media content to enable Video preview image "poster" in media in the old fashion way.
So if there is an jpg image in the same folder with the same name as the video file it will be shown with the html5 poster attribute.


Files

videoposter.patch (992 Bytes) videoposter.patch Werner Trunk, 2014-11-28 11:07

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #67455: Video Content Element (mediace) needs a poster image. ClosedMichael Blunck2015-06-15

Actions
Related to TYPO3 Core - Feature #37073: additional html5 attributes in new media elementClosed2012-05-10

Actions
Actions #1

Updated by Werner Trunk almost 10 years ago

PS: the patch was created for 6.2.6

Actions #2

Updated by Benni Mack over 9 years ago

  • Target version set to 7.4 (Backend)
  • Sprint Focus set to On Location Sprint

Somebody can pick up the issue, add it to master and get it in. Should be easy.

Actions #3

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41608

Actions #4

Updated by Michael Oehlhof over 9 years ago

  • Assignee set to Michael Oehlhof
Actions #5

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41609

Actions #6

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41612

Actions #7

Updated by Werner Trunk over 9 years ago

Hallo
Update:
Sorry, it turned out due to internals of media elements it needs to be:
$poster = preg_replace('/.[^.]*$/', '.jpg', reset($conf['sources']));
instead of
$poster=preg_replace('/.[^.]*$/','.jpg',$conf['sources']1);
cause after change videos the index does not start at 1 any more.
Also if there are more then 1 video source with different names the name of the jpg poster file has to match the first video.

Actions #8

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41612

Actions #9

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41654

Actions #10

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41654

Actions #11

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #12

Updated by Anja Leichsenring over 9 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint
Actions #13

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41608

Actions #14

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41608

Actions #15

Updated by Gerrit Code Review over 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41608

Actions #16

Updated by Michael Oehlhof over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #17

Updated by Werner Trunk over 9 years ago

hello,

in gerrit #41608 and in the commit 3e9cec79 there is:
$conf['sources']1

please see above #note-8 and gerrit #41654 :
reset($conf['sources'])

since I had errors with [1] in a real world project, is this meant to be ?

Actions #18

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF