Comments (3)
The feature/http-frontend
branch has been deleted. Mopidy will probably change too much before we implement this to keep its "Hello, world" example around.
from mopidy.
Another example of an HTTP frontend, this time using CherryPy: https://github.com/jodal/mopidy/blob/feature/cherrypy-frontend/mopidy/frontends/cherrypyhttp.py
Example response:
{
"current_track": {
"album": {
"date": 2004,
"artists": [
{
"name": "High Contrast",
"uri": "spotify:artist:0bxHci3JIhhKA53n8rH3tT"
}
],
"uri": "spotify:album:3PCEo0HSPAlTaXcBRrVJmK",
"name": "High Society"
},
"name": "High Society",
"uri": "spotify:track:1pQMT2v6toMNnBmsGAcac9",
"length": 326000,
"track_no": 3,
"artists": [
{
"name": "High Contrast",
"uri": "spotify:artist:0bxHci3JIhhKA53n8rH3tT"
}
],
"date": 2004,
"bitrate": 320
},
"playback_state": "playing"
}
Typical response time for this view, which includes messaging with the core actor and indirectly the backend actor, is 3-6ms.
from mopidy.
Closing, as this was added in #235.
from mopidy.
Related Issues (20)
- building mopidy fails with a sphinx related error HOT 2
- Consider removing "duration missing before play" workaround in audio scanner
- no sound after station changed (from playlist) on archlinuxarm (armv7h) with gstreamer 1.22.1 HOT 4
- Mopidy freezed after choose TTS or Radio station HOT 1
- Music briefly plays after an extended period of inactivity HOT 1
- Add technical audio information to tracks HOT 7
- Error when browsing directories with the file extension HOT 3
- Playback breaks when changing track HOT 10
- tests: get coverage above 90% (currently it is 78%). HOT 1
- Changelog v3.5.0: python < 3.9 no longer supported
- "Could not find a text/html decoder to handle media" HOT 3
- Remove appsrc
- Expose playback errors to clients
- Backend.lookup should take a list of URIs HOT 1
- Switching the audio source gets mopidy to produce no sound though seems to play HOT 25
- Support setting tracklist options in mopidy.conf HOT 2
- Previous track is reported incorrectly after the second track HOT 3
- mopidy playback stops at every bufering error HOT 4
- Websocket error only when connecting to mopidy running as service HOT 2
- Use new GStreamer elements HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mopidy.