Bug #23910
closed
Autostart for Flash Videos does not work
Added by Janos about 14 years ago.
Updated about 6 years ago.
Description
If you create a CE from type "Media" select an *.flv video file, Check Use Player (only for Shockwave Flash)" and Render Type "Shockwave Flash Browser Plugin". For additional parameter set the option "autoPlay" to "On".
After reloading the page in FE the *.flv file wount start to play until you press the play button.
There is a parameter missmatch betwenn the backend configuration "autoPlay=true|false" and the flvplayer.swf , it listen to "autoStart=true".
An solution could be to change the AS-Code from flvplayer.swf
https://svn.typo3.org/TYPO3v4/Core/trunk/typo3/contrib/flashmedia/src/flvplayer.as
Line: 65
from:
if(_root.autoStart "true") {
to:
if(_root.autoPlay "true") {
(issue imported from #M16214)
Files
Hi Janos,
another idea (from #21829): In sysext/cms/flexform_media.xml change the line that says (was line 136 for me at TYPO3 4.4):
<numIndex index="1">autoPlay</numIndex>
to
<numIndex index="1">autoStart</numIndex>
Which is the "right" solution?
Hello Christopher,
i don't know which is the better solution. In my eyes both are correct, but for a better compatibility it would be better to change the flvplayer.swf. So there would be no change in the CE "media".
But at least i think Steffen Kamper had to decide this, he created this player.
regards Janos
I think changing files in the contrib/ folder is no good idea, because these changes will be lost, when the files are updated to a new version.
Therefore I would prefer the solution from #21829.
However, please make a patch file out of the needed changes!
To get your patch integrated, please send it to the Core List!
Check out the guidelines at http://typo3.org/teams/core/core-mailinglist-rules/
If you have further questions, don't hesitate to ask!
Ok,
I'll trie to create the patch with the solution from 0012988. But this will take some time, maybe at the end of this week.
If i have a question, i will ask.
Hello Christopher,
now i created a patch with the solution from 0012988. Can you please check if the patch is correct or not?
This is my first time patch.
Hi Janos,
nearly perfect! :-)
You should only change one thing : Please create the patch from TYPO3 "rootlevel", so that the path in the first line looks like typo3/sysext/cms/flexform_media.xml
Then you can send it to Core List as describe in my above post!
Ok,
but only one more question bevore i send the mail.
What is meant by: Also add the tag "pending in core list" to the bug?
For completeness I've attached an updated version of the patch.
In the top of this page there is the section called "Tags". In the list of available tags you can choose and then add the tag "Pending in Core List".
That way one can quickly get an overview about those issues.
Christopher, in principle you're right that typo3/contrib/ is 3rd party and should not be touch.
The flashmedia player is different, as it was created by Steffen Kamper, so we have full control over it.
Will try to find sb. rebuilding the swf, otherwise will ask himself.
Why I prefer this solution: The autoPlay value will still remain in all flexform fields in database and autoStart will only be created additionally.
Hello Steffen,
If you want i can publish the compiled SWF file tomorow. I've done it already for our project.
Janos, this would be great!
Please verify also with Quicktime if it works with autoPlay or autoStart,
otherwise i'm fine with recompilation.
Hello Steffen,
i think this solution should not have any effect for the QT player, because we recompiled the flvplayer.swf.
I've tested the QT-player and it also works fine.
Committed to svn
4_3 rev 9289
4_4 rev 9290
trunk rev 9291
- Target version deleted (
0)
Strange... cannot find that change anymore in the repository...
- Status changed from Resolved to Closed
Also available in: Atom
PDF