home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
Last.TV a combination of Last.FM and Youtube, YOUR OWN MTV !
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dipunm" data-source="post: 111382" data-attributes="member: 23758"><p>hey, ive been using this site alot, its grown on me cos it plays newer songs that lastfm for me and theres just 1 thing im a little poorly about, thats the way that the website uses a timeout function to change the music, ive looked into it and discovered that there is a much better and easier way to do it.... </p><p></p><p>heres a few lines of code that may help...</p><p></p><p>function getFlashMovieObject(movieName)</p><p>{</p><p> if (window.document[movieName]) </p><p> {</p><p> return window.document[movieName];</p><p> }</p><p> if (navigator.appName.indexOf("Microsoft Internet")==-1)</p><p> {</p><p> if (document.embeds && document.embeds[movieName])</p><p> return document.embeds[movieName]; </p><p> }</p><p> else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)</p><p> {</p><p> return document.getElementById(movieName);</p><p> }</p><p>}</p><p></p><p>var player=getFlashMovieObject("player");</p><p></p><p>player.SetVariable("playnext", "1");</p><p></p><p>by doing this, upon arrival of the end of a youtube clip, the player will run a javascript function called gotoNext()</p><p></p><p>make this function and all should be automatic from there, just a little heads up, thanx for the site, hope this helps</p></blockquote><p></p>
[QUOTE="dipunm, post: 111382, member: 23758"] hey, ive been using this site alot, its grown on me cos it plays newer songs that lastfm for me and theres just 1 thing im a little poorly about, thats the way that the website uses a timeout function to change the music, ive looked into it and discovered that there is a much better and easier way to do it.... heres a few lines of code that may help... function getFlashMovieObject(movieName) { if (window.document[movieName]) { return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; } else // if (navigator.appName.indexOf("Microsoft Internet")!=-1) { return document.getElementById(movieName); } } var player=getFlashMovieObject("player"); player.SetVariable("playnext", "1"); by doing this, upon arrival of the end of a youtube clip, the player will run a javascript function called gotoNext() make this function and all should be automatic from there, just a little heads up, thanx for the site, hope this helps [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Listen Music
Last.TV a combination of Last.FM and Youtube, YOUR OWN MTV !
Contact us
RSS
Top
Bottom