- int DownsizeRating(Int32 rating) Downsizes the rating value to a smaller scale (e.g. from 5 stars to 3 stars).Parameters
Name Description rating The rating value - void EnqueueAndPlay(IEnumerable<NeonScriptTrack> tracks) Enqueues the specified tracks and plays the first one immediately.Parameters
Name Description tracks The tracks to enqueue - void EnqueueLast(IEnumerable<NeonScriptTrack> tracks) Enqueues the specified tracks to be played last in the play queue.Parameters
Name Description tracks The tracks to enqueue - void EnqueueNext(IEnumerable<NeonScriptTrack> tracks) Enqueues the specified tracks to be played next in the play queue.Parameters
Name Description tracks The tracks to enqueue - bool GetBooleanValue(String key) Gets a boolean value from the session properties by key.Parameters
Name Description key The key - int GetIntValue(String key) Gets an integer value from the session properties by key.Parameters
Name Description key The key - string GetStringValue(String key) Gets a string value from the session properties by key.Parameters
Name Description key The key - void Next() Skips to the next track in the play queue and plays it.
- void Pause() Pauses the current playback.
- void Play(Int32 index) Plays the track at the specified index in the play queue.Parameters
Name Description index - void Previous() Skips to the previous track in the play queue and plays it.
- void RateCurrentTrack(Int32 newRating) obsoleteRates the currently active track with the specified rating value.Parameters
Name Description newRating The new rating - Task RateCurrentTrackAsync(Int32 newRating) Rates the currently active track with the specified rating value. (Async version)Parameters
Name Description newRating The new rating - void RateCurrentTrackSync(Int32 newRating) Rates the currently active track with the specified rating value.Parameters
Name Description newRating The new rating - void Resume() Resumes the current playback if it was paused.
- void SetAutoEnqueue(Boolean active) Sets whether auto-enqueue should be active or not.Parameters
Name Description active True or false - void SetBooleanValue(String key, Boolean value) Sets a boolean value in the session properties by key.Parameters
Name Description key The key value The value - void SetCrossfade(Boolean active) Sets whether crossfade should be active or not.Parameters
Name Description active True or false - void SetCurrentTrackAsFavourite(Boolean isFavourite) obsoleteSets the current track as favourite or not, depending on the isFavourite parameter.Parameters
Name Description isFavourite True or false - Task SetCurrentTrackAsFavouriteAsync(Boolean isFavourite) Sets the current track as favourite or not, depending on the isFavourite parameter. (Async version)Parameters
Name Description isFavourite True or false - Task SetCurrentTrackAsFavouriteSync(Boolean isFavourite) Sets the current track as favourite or not, depending on the isFavourite parameter.Parameters
Name Description isFavourite True or false - void SetIntValue(String key, Int32 value) Sets an integer value in the session properties by key.Parameters
Name Description key The key value The value - void SetPlayerVolume(Int32 newVolume) Sets the player volume to the specified value (0-100).Parameters
Name Description newVolume The value of the valume - void SetPosition(Double newPosition) Sets the position of the player to the specified value in seconds.Parameters
Name Description newPosition The new position - void SetStringValue(String key, String value) Sets a string value in the session properties by key.Parameters
Name Description key The key value The value - void Stop() Stops the current playback and resets the player.
- IEnumerable<NeonScriptTrack> TracksInPlayQueue() Returns all tracks in the play queue as a collection of NeonScriptTrack objects.
- int UpsizeRating(Int32 rating) Upsizes the rating value to a larger scale (e.g. from 3 stars to 5 stars).Parameters
Name Description rating The rating value - int ActivePlayQueueIndex() Returns the index of the currently active play queue in the play queue business.
- NeonScriptTrack ActiveTrack() Returns the currently active track in the player as a NeonScriptTrack object.
- bool AutoEnqueueActive() Returns whether auto-enqueue is currently active or not.
- bool CanPlayNext() Checks if the player can play the next track in the play queue.
- bool CanPlayPrevious() Checks if the player can play the previous track in the play queue.
- bool CrossfadeActive() Returns whether crossfade is currently active or not.
- double CurrentPosition() Returns the current position of the player in seconds.
- double Duration() Returns the duration of the currently active track in seconds.
- NeonPlayerState PlayerState() Returns the current player state as a NeonPlayerState enum value. 0 = Undefined 1 = Playing 2 = Paused 3 = Stopped
- int PlayerVolume() Get or set the current player volume as an integer value (0-100).
- bool ShuffleActive() Returns whether shuffle mode is currently active in the play queue.
- bool UsingLightTheme() Returns whether the application is using a light theme or not.
Scripting - Remote Playback Print
Created by: Mikael Stalvik
Modified on: Tue, 19 Aug, 2025 at 4:30 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.