[TYPO3-english] flvplayer2 and tt_news

Markus Deckmann Markus.Deckmann79 at web.de
Tue Jul 28 03:29:09 CEST 2009


Hi Christopher,

> I'm slightly too quick with the Send button. You have to remove 'url = 
> 1', yes, but that won't fix the problem.

In sourcecode of the flvplayer2-class the following line parse the "url 
= 1" syntax:

### Sourcecode ###
if($this->conf['url']){
                 $filePath = 
$this->cObj->stdWrap($this->conf['url'],$this->conf['url.']);
             } else {

                 // File path
                 $filePath = 
t3lib_div::getIndpEnv('TYPO3_SITE_URL').str_replace(PATH_site,'',t3lib_div::getFileAbsFileName($this->uploadDir 
. $this->conf['file']));
                 $filePath = 
str_replace(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST'),'',$filePath);
             }
##################

If I remove "url = 1" the if-statement always use the else-block for 
generating the filepath.


> In any case, change your object as follows:
> 
>>> plugin.tx_flvplayer_pi1 {
>>>     width = 550
>>>     height = 413
>>>     playerParams.autoStart = 0
>>>     #url = http://mydomain/fileadmin/videos/example.flv
>>>     url.cObject < temp.newsFileRecord
>>> }

Following TS-code will work in my case:

### TS-code ###
temp.newsFileRecord = RECORDS
temp.newsFileRecord {
	source = {GPvar:tx_ttnews|tt_news}
	source.insertData = 1
	tables = tt_news
	conf.tt_news = TEXT
	conf.tt_news.field = news_files
	wrap = http://mydomain/fileadmin/videos/|
}

plugin.tx_flvplayer_pi1 {
	width = 550
	height = 413
	playerParams.autoStart = 0
	url = 1
	url.cObject < temp.newsFileRecord
}
###############

The "url = 1"-syntax is needed to override the url-string from the 
flvplayer2-extension. This TS-code will use the FLV-file, defined in a 
tt_news-item and show it in flvplayer2. This allow to use flvplayer2 
into tt_news SINGLE items.

Thanks for your help. My videos will work now.

Ciao Markus


More information about the TYPO3-english mailing list