[TYPO3-english] YouTube videos with media element
Lorenz Ulrich
lorenz-typo3 at visol.ch
Tue Jun 5 20:06:27 CEST 2012
Hi everyone
I compared the handling of 4.6 and 4.7 to get one step further in this
problem:
- TYPO3 4.6 has a flag "Use Player (Flash only)". When this is checked,
TYPO3 tries to play a video with the Flash Player.
- This "TYPO3 Media Player" (contrib/flashmedia/swfplayer.swf) cannot
play YouTube videos.
- Unchecking the Player checkbox in 4.6 sets the YouTube/v URL itself as
player (typo3\sysext\cms\tslib\content\class.tslib_content_media.php, l.
188). The YouTube player is correctly rendered then.
- The option to deactive the player is missing in TYPO3 4.7. Therefore
the YouTube player itself will never be rendered and YouTube videos
cannot be played with the Media element in 4.7.
Can someone confirm that?
I just googled about using the FlowPlayer to play YouTube videos. But
obiously this is only possible with a commercial plugin
(http://flowplayer.electroteque.org/youtube). So basically my conclusion
would be that we need to have back the SWF rendering with the YouTube
SWF as player.
Side note: Funnily Vimeo videos seem to work...
Thanks for sharing your opinions on that.
Best regards,
Lorenz
Am 25.05.2012 11:59, schrieb Lorenz Ulrich:
> Hi Chris
>
> Thanks for your investigation. I'm currently working on a 4.7 migration
> and seem to have the same problem. Youtube videos don't work. Did you
> come closer to solve the problem?
>
> Best regards,
>
> Lorenz
>
> Am 16.05.2012 13:25, schrieb Chris Müller:
>> Hi Kay,
>>
>> I pasted the YouTube share url into the field "Path or URL to fallback
>> video source" and let all other field untouched but get the flash player
>> in frontend. But then I got only an empty flash player. I switched to
>> the render type "Native HTML Embed Element" but this has also no
>> effects. I tried also the various input fields to paste the youtube url.
>> Nothing happens.
>>
>> Then I digged into the code. The correct place is "Path or URL to
>> fallback video source". The YouTube URL is later correctly changed from
>> the youtu.be to the to the youtube/v/ syntax.
>>
>> I ended in the method tslib_content_Multimedia->render().
>> I got the filename (the Youtube URL) in the render() method and then it
>> calls $GLOBALS['TSFE']->tmpl->getFileName(). This method only works with
>> local files, so the output is empty.
>>
>> So it seems urls from youtube, vimeo, etc. aren't working.
>>
>> Regards,
>> Chris.
>>
>> Am 15.05.2012 12:02, schrieb Kay Strobach:
>>> Hi,
>>>
>>> theoretically you can add the video url to the media field and disabling
>>> all players should let you show the video.
>>>
>>> Regards
>>> Kay
>>>
>>> Am 15.05.2012 11:57, schrieb Daniel Huf:
>>>> Hi Chris,
>>>>
>>>> I didn't find more infos than this...
>>>>
>>>> http://lists.typo3.org/pipermail/typo3-project-v4/2012-January/thread.html#3267
>>>>
>>>>
>>>>
>>>>
>>>> Keep us informed ;)
>>>>
>>>> Daniel
>>>>
>>>> On 5/15/12 11:41 AM, Chris Müller wrote:
>>>>> Hi,
>>>>>
>>>>> it is possible to use the new media element in TYPO3 4.7 to include
>>>>> YouTube videos? I didn't find a field which I can use to include the
>>>>> video link.
>>>>>
>>>>> Regards,
>>>>> Chris.
>>>>
>>>
>>>
>>
>
More information about the TYPO3-english
mailing list