![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
com.feedfm.unity-sdk
Advanced tools
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.feedfm.unity-sdk
package.openupm.com
com.feedfm.unity-sdk
com.feedfm.unity-sdk into name
0.0.1
into versionAlternatively, merge the snippet to Packages/manifest.json
{
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.feedfm.unity-sdk"
]
}
],
"dependencies": {
"com.feedfm.unity-sdk": "0.0.1"
}
}
To begin playing the music, create a new GameObject and attach the FeedPlayer.cs script to it. Then configure the player by setting token and secret and optional values like crossfade duration etc in the unity editor or by editing the script.
The included "Dancing Robot" demo shows an example on how to interact with FeedPlayer.cs. MusicPlayerView.cs manages the entire UI for the demo subscribing to and calling methods on a FeedPlayer object.
[SerializeField] FeedPlayer _feedPlayer = null;
private void Awake()
{
_feedPlayer.OnSession += (available, errMessage) =>
{
if (available)
{
_feedPlayer.Play();
}
else
{
Debug.Log(errMessage);
}
};
// Optional events...
}
_feedPlayer.OnStationChanged += station =>
{
Debug.Log(string.Format("New station {0} is set", station.Name));
};
_feedPlayer.OnPlayStarted += play =>
{
Debug.Log("play started "+play.AudioFile.TrackTitle);
};
_feedPlayer.OnPlayReadyForPlayback += play =>
{
Debug.Log(string.Format("play ready for playback {0}", play.AudioFile.TrackTitle));
};
_feedPlayer.OnStateChanged += state =>
{
Debug.Log(string.Format("State Changed to {0}", state));
};
_feedPlayer.OnProgressUpdate += (play, progress, duration) =>
{
Debug.Log(string.Format("{0}progress changed to {1} duration {2}", play.AudioFile.TrackTitle, progress, duration));
};
FeedPlayer.cs is responsible for retrieving music from the Feed.fm servers and playing them on the local device. The player can be assigned an active station from list of stations returned by the server.
To make sure the music begins when requested user should wait for OnPlayReadyForPlayback event before calling play().
Player methods are almost all asynchronous. Thus, the API is event based. Subscribe to the FeedPlayer.cs events to be notified of changes in the player state.
The player must successfully contact the Feed.fm servers to retrieve a list of available streaming stations and the OnSession helps with determining when music becomes available or playback.
To use this class, add the FeedPlayer to a GameObject in the scene. All dependencies will be handled automatically. You just need to make sure to set the 'token' and 'secret' values to what you were given on feed.fm.
The player has following events that can be subscribed to
StationDelegate OnStationChanged // A new station was set
SessionDelegate OnSession // A session is not available or unavailable.
StateHandler OnStateChanged // Player state has changed.
PlayHandler OnPlayReadyForPlayback // An Item is loaded and ready for playback.
PlayHandler OnPlayStarted // A song has started plaback
PlayHandler OnPlayCompleted // A song has completed playback.
ProgressHandler OnProgressUpdate // A event sent out every second to update the progress of the currently playing song.
FAQs
The unity sdk for https://www.feed.fm
The npm package com.feedfm.unity-sdk receives a total of 2 weekly downloads. As such, com.feedfm.unity-sdk popularity was classified as not popular.
We found that com.feedfm.unity-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.