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
Development
Improvement Suggestions
Last.fm and external players
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="Symphy" data-source="post: 203673" data-attributes="member: 55478"><p><strong>Started on:</strong> 2007-11-12</p><p><strong>last update:</strong> 2007-11-12</p><p></p><p><strong>Summary:</strong></p><p>Code change to allow the use of last.fm radio with an external player like PureAudio.</p><p></p><p><strong>Area:</strong></p><p>Last.fm radio</p><p></p><p><strong>Description:</strong></p><p>A small change in code will allow the last.fm radio to be used in conjunction with any external player supporting webstreams. Currently the last.fm radio hooks directly into the BASS player:</p><p>[CODE]BassMusicPlayer.Player.LastFMSync += new BassAudioEngine.LastFMSyncReceived(OnLastFMSyncReceived);[/CODE]</p><p>Now when moving this:</p><p>[CODE]public delegate void LastFMSyncReceived(object sender, DateTime syncTime);</p><p></p><p>public event LastFMSyncReceived LastFMSync;[/CODE]</p><p>from the BassAudioEngine class to the IPlayer class, this call can be changed into:</p><p>[CODE]g_Player.Player.LastFMSync += new IPlayer.LastFMSyncReceived(OnLastFMSyncReceived);[/CODE]</p><p></p><p>This will do the trick. The external player is then responsible for raising LastFMSync. No further changes are needed for the BASS player as far as i can see.</p><p></p><p>Regards,</p><p>Symphy</p></blockquote><p></p>
[QUOTE="Symphy, post: 203673, member: 55478"] [b]Started on:[/b] 2007-11-12 [b]last update:[/b] 2007-11-12 [b]Summary:[/b] Code change to allow the use of last.fm radio with an external player like PureAudio. [b]Area:[/b] Last.fm radio [b]Description:[/b] A small change in code will allow the last.fm radio to be used in conjunction with any external player supporting webstreams. Currently the last.fm radio hooks directly into the BASS player: [CODE]BassMusicPlayer.Player.LastFMSync += new BassAudioEngine.LastFMSyncReceived(OnLastFMSyncReceived);[/CODE] Now when moving this: [CODE]public delegate void LastFMSyncReceived(object sender, DateTime syncTime); public event LastFMSyncReceived LastFMSync;[/CODE] from the BassAudioEngine class to the IPlayer class, this call can be changed into: [CODE]g_Player.Player.LastFMSync += new IPlayer.LastFMSyncReceived(OnLastFMSyncReceived);[/CODE] This will do the trick. The external player is then responsible for raising LastFMSync. No further changes are needed for the BASS player as far as i can see. Regards, Symphy [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Last.fm and external players
Contact us
RSS
Top
Bottom