- int DownsizeRating(Int32 rating) JS compatibleDownsizes 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) JS compatibleEnqueues the specified tracks and plays the first one immediately.Parameters
Name Description tracks The tracks to enqueue - void EnqueueLast(IEnumerable<NeonScriptTrack> tracks) JS compatibleEnqueues the specified tracks to be played last in the play queue.Parameters
Name Description tracks The tracks to enqueue - void EnqueueNext(IEnumerable<NeonScriptTrack> tracks) JS compatibleEnqueues the specified tracks to be played next in the play queue.Parameters
Name Description tracks The tracks to enqueue - bool GetBooleanValue(String key) JS compatibleGets a boolean value from the session properties by key.Parameters
Name Description key The key - int GetIntValue(String key) JS compatibleGets an integer value from the session properties by key.Parameters
Name Description key The key - string GetStringValue(String key) JS compatibleGets a string value from the session properties by key.Parameters
Name Description key The key - void Next() JS compatibleSkips to the next track in the play queue and plays it.
- void Pause() JS compatiblePauses the current playback.
- void Play(Int32 index) JS compatiblePlays the track at the specified index in the play queue.Parameters
Name Description index - void Previous() JS compatibleSkips 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) JS compatibleRates the currently active track with the specified rating value.Parameters
Name Description newRating The new rating - void Resume() JS compatibleResumes the current playback if it was paused.
- void SetAutoEnqueue(Boolean active) JS compatibleSets whether auto-enqueue should be active or not.Parameters
Name Description active True or false - void SetBooleanValue(String key, Boolean value) JS compatibleSets a boolean value in the session properties by key.Parameters
Name Description key The key value The value - void SetCrossfade(Boolean active) JS compatibleSets 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) JS compatibleSets 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) JS compatibleSets an integer value in the session properties by key.Parameters
Name Description key The key value The value - void SetPlayerVolume(Int32 newVolume) JS compatibleSets the player volume to the specified value (0-100).Parameters
Name Description newVolume The value of the valume - void SetPosition(Double newPosition) JS compatibleSets the position of the player to the specified value in seconds.Parameters
Name Description newPosition The new position - void SetStringValue(String key, String value) JS compatibleSets a string value in the session properties by key.Parameters
Name Description key The key value The value - void Stop() JS compatibleStops the current playback and resets the player.
- IEnumerable<NeonScriptTrack> TracksInPlayQueue() JS compatibleReturns all tracks in the play queue as a collection of NeonScriptTrack objects.
- int UpsizeRating(Int32 rating) JS compatibleUpsizes the rating value to a larger scale (e.g. from 3 stars to 5 stars).Parameters
Name Description rating The rating value - int ActivePlayQueueIndex() JS compatibleReturns the index of the currently active play queue in the play queue business.
- NeonScriptTrack ActiveTrack() JS compatibleReturns the currently active track in the player as a NeonScriptTrack object.
- bool AutoEnqueueActive() JS compatibleReturns whether auto-enqueue is currently active or not.
- bool CanPlayNext() JS compatibleChecks if the player can play the next track in the play queue.
- bool CanPlayPrevious() JS compatibleChecks if the player can play the previous track in the play queue.
- bool CrossfadeActive() JS compatibleReturns whether crossfade is currently active or not.
- double CurrentPosition() JS compatibleReturns the current position of the player in seconds.
- double Duration() JS compatibleReturns the duration of the currently active track in seconds.
- NeonPlayerState PlayerState() JS compatibleReturns the current player state as a NeonPlayerState enum value. 0 = Undefined 1 = Playing 2 = Paused 3 = Stopped
- int PlayerVolume() JS compatibleGet or set the current player volume as an integer value (0-100).
- bool ShuffleActive() JS compatibleReturns whether shuffle mode is currently active in the play queue.
- bool UsingLightTheme() JS compatibleReturns whether the application is using a light theme or not.
Scripting - Remote Playback Print
Created by: Mikael Stalvik
Modified on: Mon, 27 Oct, 2025 at 7:17 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.