Nowplaying track in embedded container

You have a question or need an advice about how to do something? Ask it here!
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Nowplaying track in embedded container

Post by friso »

I use a php script to display the current playing track, and also the albumart with it.
All works ok, exept when i use an embedded containter. Than it displays embedded container.

I know that it is possible within a stream, but why doesn't it work in my liveassist mode?

Thanx
Friso
User avatar
radio42
Site Admin
Posts: 9056
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

From where is your PHP script getting its data?
What is your PHP script doing? And why do you believe, that this is a ProppFrexx issue?
What do you mean by "it is possible within a stream, but why doesn't it work in my liveassist mode"?

Also check the general settings, section 'Streaming' to enable the 'Streaming Option' called 'Use Embedded Container Tracks' - if that is what you are looking for.
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

I hope this example gives a clear picture of what i am trying to explain.
When i start manually a track let's say in player A, then the track data artist - Title is written to a php file.
So far everything is good.

Now i create an embedded container with a jingle an a track.
After starting the artis - Title has the name embedded track and there is (of course) no album art.
So what i want is that the it solves the track data out of the embedded container.

Als the option "Use Embedded Container Tracks" is enabled.

I hope now my problem is clear.
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd
Did you see my reply above. I hope you understand my problem

Here you have my php script which i use for now playing.php

<meta http-equiv="refresh" content="15"><table border=0><tr style="font-size: 7.5pt; font-family: 'calibri';color:#000"><td><?php echo "<img src=data:image/jpg;base64,${currentalbumart} width='100' height='100' border='0' title='${currenttrackname}' >"; ?></td>
<td>NU in De Muziekavond<br><br>${currenttrackname}</td></tr></table><table width="260" border="0"><tr style="font-size: 7.5pt; font-family: 'calibri';color:#CCC"><td>${currentmoderatortext}</td></tr></table>

And here you have my command i use to write to the file.
OnDJAPlay EXEC_WRITE_PLAYLISTFILE \\ds713\web\frisotrip.nl\nowplaying.php|c:\nowplaying.php
User avatar
radio42
Site Admin
Posts: 9056
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

I am afraid that this is currently not possible.
I am also not sure, if it will be possible in the future.
As what ${currenttrackname}, title or ${currentmoderatortext} or even what album-art should be used, if the container contains e.g. 5 tracks?

Note, that you can well give a container a new title, artist etc. - just use the tag editor to do so...the name 'Embedded Container' is just the initial/default title being used.
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

But how is it possible that in nonstop modus i can use an embedded container and than the track in that container is parsed correctly.

I us the embedded container in live assist modus to combine a promo--jingle--track. To rename this container takes too much time when doing a live show.

In playerA for example you can see whats in the container so maybe it is possible to filter out the current track in that container and parse it thrue?

Friso
User avatar
radio42
Site Admin
Posts: 9056
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

It would also not be possible in 'nonstop'/automatic mode. And I can not see how that should work!

How do you create the embedded container in nonstop mode? Must be as in a script-line. Maybe you give an explicit title there?!
Else it would not be possible.
Also note, that you are using the specific 'OnDJAPlay' - what if the container is played in nonstop mode via DJB ?
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

I'm still not satisfied with the answer above.
Why can proppfrexx parse corectly a track that's in an embedded container thrue the stream, and not thrue a normal embedded container.
Can i use then a command that parses the tracks in an embedded container the same as it does in streaming.
See the setting "Streaming options---Use embedded container tracks" because that's just what i need in a live assist situation.

Friso
User avatar
radio42
Site Admin
Posts: 9056
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

Because the two functions are totally different things.
The one you are using is a macro in a playlist template file which is replaced by the tracks contained in the playback history. This is a non real time function internally and doesn't know anything about embedded items anymore.

The other is a streaming function which is a real time function and which is being triggered directly by the DJ Players and these are the only elements which know details about embedded containers.

So you might also use the global Streaming.OnSongTitleChanged event to update you web, eg via HTTP GET or POST commands. In that case you will also get the details about embedded tracks.
But the playlist history function doesn't know about this and as such can not resolve embedded content.
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

I understand what you mean. But now i'm thinking....... If i look in a player that has an embedded container loaded, i can see what's in it.
Also i can see i little arrow before it pointing to the currently playing track in that container. So one way or another it knows what is playing at the moment.
So isn't it possible that ther will be a macro or command to pull out that info to give me the now playing info i need to display on my website.

Thanx
Friso

Post Reply