Media Players

Sup guys, long time no chat (no internet...for 3 months... makes jack a dull boy) Since I had no net for a while I had some spare time and so I decided to try my hand at making DesktopX objects and started making a media player among other things...now all is working as planned EXCEPT I can't figure out how to get the song title to stay inside a set part of the media player and scroll back and forth...I looked at the gadget media player settings to get an idea of what to do but that only made it scroll back and forth across the screen not the media player. Here's a picture of the player (minus the extras) I need the text to scroll across the black part at the bottom...any help would be greatly appreciated



Thanks in advance.
2,205 views 4 replies
Reply #1 Top
Hi Raven,

First create a back-plate for the scrollable area. This should be either black or transparent and placed in the area you want the scrolling text to appear, place it in the area you want and make it a child of the object you already have.

Then create a text object for your scrolling media information. Place it over the back-plate you just created, make the background transparent and make it a child of the back-plate object.

Now when you have a new media item to display set the text of that text object to that description.

Now to make it scroll you need to create a scripted timer to move the text, one pixel at a time to the new position of the text but because its a child of the back-plate object it will be clipped by the region of the back-plate.

If you want the text to cycle repetitively you may need to create two text objects that fit end-to-end so that the start of one can be seen at the same time as the end of the other. This can be achieved by cloning the original object when its required.

Regards
Wolfie
Reply #2 Top
Assuming you have general knowledge of making objects. If you would like to use this method and need help email me.

You could just use the built in scroll feature of DX media. To do this make a new object. On general page under additional abilities click add. Add DXplayer. then configure dxplayer Click Default. Where it says player button click drop down window and click text display. click clip name. At bottom click on Display.Uncheck "use built in destopx text" under alignment check scroll. use the width and height to set area for the text to scroll.

Hope this helps.
Reply #4 Top
I gotta try this! Thanks.