Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mopidy
Search
Stein Magnus Jodal
May 05, 2012
Programming
270
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Mopidy
Introduction to Mopidy I held at the Iterate Weekly Breakfast Meeting 2010-03-10
Stein Magnus Jodal
May 05, 2012
More Decks by Stein Magnus Jodal
See All by Stein Magnus Jodal
Concurrency in Mopidy
jodal
1
150
DjangoCon Europe 2011
jodal
1
200
Guice
jodal
2
240
Introduksjon til Git
jodal
1
130
Terminalbruk
jodal
1
96
Hva alle utviklere må vite om tegnsettenkoding
jodal
1
2k
Other Decks in Programming
See All in Programming
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
120
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.5k
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
Creating Composable Callables in Contemporary C++
rollbear
0
160
RTSPクライアントを自作してみた話
simotin13
0
620
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
140
AI時代のUIはどこへ行く?その2!
yusukebe
22
7.4k
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
220
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.4k
OSもどきOS
arkw
0
580
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.8k
Featured
See All Featured
Believing is Seeing
oripsolob
1
150
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
Done Done
chrislema
186
16k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
Mind Mapping
helmedeiros
PRO
1
260
The Language of Interfaces
destraynor
162
27k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
240
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Transcript
Mopidy MPD server with Spotify support www.mopidy.com
«når skal vi starte på spotify mpd serveren da? :P»
Johannes, 2009-12-23
What is MPD?
What is MPD? Short for Music Player Daemon
What is MPD? Server - Protocol - Client
What is MPD? The server plays music from it's local
disk
What is MPD? The client controls playback and playlists, but
got nothing to do with the actual audio data
What is MPD? The protocol is badly documented and inconsistenly
used by the clients But it ain't that huge
What is Spotify?
What is Spotify? 99 kr per month in exchange for
all the music you'll ever need in high quality on PC and mobile Including: Windows, Mac, Linux, iPhone, Android, S60 Excluding: Beatles, Pink Floyd, Led Zeppelin, Frank Zappa
What is Spotify? Free ad-financed version available, but we're going
Premium iPhone, Android, S60 and all the open source solutions requires a Premium subscription
What is MPD+Spotify?
What is MPD+Spotify? Mopidy
What is MPD+Spotify? www.mopidy.com github.com/jodal/mopidy
Where to begin?
Where to begin? Extend existing MPD server? It's old, huge
and we're not C coders Not yet, at least
Where to begin? Reimplement then Just the server! No way
we're doing all those clients. And no way we're decoding music ourselves.
Where to begin? Scala and Actors? Enough to learn in
implementing an MPD server and Spotify integration
Where to begin? Scala and Actors? Python is known ground
Where to begin? Spotify integration?
Where to begin? Spotify integration? despotify is an open, reverse
engineered Spotify library C, Linux and OS X, not very active Python wrapper named spytify (thanks to Jørgen P. Tjernø)
Where to begin? Spotify integration? libspotify is the closed source,
but official library C, Linux 32-bit only (now 64-bit too) Python wrapper named pyspotify (thanks to Doug Winter)
Where to begin? Spotify integration? Lets do both! We don't
know what problems will arise, so we keep our options open
Architecture?
Architecture? Creating it as we walk, refactoring early and often
Architecture? Frontends - Backends - Mixers Clear APIs and loose
coupling
Architecture? Frontends work with protocols and parsing
Architecture? We got one frontend this far: Mpd{Server,Session,Handler}
Architecture? Backends work with playing music
Architecture? We got two backends: {Despotify,Libspotify}Backend
Architecture? And a third is underway: GstreamerBackend It plays music
from local disc, like the original MPD server (thanks to Thomas Adamcik)
Architecture? Mixers are the latest addition They work with volume
control
Architecture? We got two mixers: {Alsa,Osa}Mixer One for Linux and
one for OS X (the last one actually includes two lines of AppleScript)
Code?
Code? github.com/jodal/mopidy GPLv2 license
None
Tests?
Tests? 202 and counting Runs in 0.4s >100 new with
the gstreamer branch
Documentation?
Documentation? Lots! www.mopidy.com
None
Talk?
Talk? #mopidy at irc.freenode.net Currently eight humans* and a bot
* 6 Norwegians, 1 Swede, 1 Briton
Future?
Future? Version 0.1 We need to implement this release early,
release often thingy
Future? Replace libspotify with libopenspotify? Identical API, open source, adds
OS X and Windows support Should be a drop-in replacement with only benefits
Future? GstreamerBackend So we can replace the original MPD server
Future? Multiple backends at the same time Mix tracks from
Spotify and disk in the same playlist
Future? Bonjour/Avahi here-I-am Broadcast our existence so clients can automagically
find the server
Future? A non-MPD frontend?
Future? Icecast streams? Server streams music to somewhere else
Future? Squeezebox support? Deliver music to Squeezebox devices
Future? AirPort Express support? Deliver music to AirPort Express devices
Future? NAD/Denon mixer Control volume on amplifiers through RS-232
Future? Distribution infrastructure Python packaging, Debian packaging, Homebrew recipies, build
server
[email protected]
, 2010-03-09 www.mopidy.com