samcreate / apollo-player Goto Github PK
View Code? Open in Web Editor NEWA Mopidy fronted community driven playlist. Driven by Node.js, Backbone.js, and Require.js
A Mopidy fronted community driven playlist. Driven by Node.js, Backbone.js, and Require.js
I just installed Apollo and I can login with Twitter just fine. Mopidy also works completely fine with another frontend (musicbox in this case).
When using Apollo I can't search for tracks at all. The logs mention this:
TypeError: Cannot call method 'search' of undefined
at Player.search (/Users/mischa/mopidy/Apollo-Player/controllers/player.js:154:24)
at callbacks (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:164:37)
at param (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:138:11)
at param (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:135:11)
at pass (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:173:5)
at Object.router (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:33:10)
at next (/Users/mischa/mopidy/Apollo-Player/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at SessionStrategy.strategy.pass (/Users/mischa/mopidy/Apollo-Player/node_modules/passport/lib/middleware/authenticate.js:318:9)
at /Users/mischa/mopidy/Apollo-Player/node_modules/passport/lib/strategies/session.js:61:12
GET /api/player/search/test 500 25ms
Any help to solve this is greatly appreciated! ^.^ Apollo looks great!
I'm running on Mac OS with node installed by homebrew in case that's relevant. I can prodive more information if needed.
Using the readme step by step the $npm install fails with this log:
npm ERR! Couldn't read dependencies.
npm ERR! Error: No 'name' field found in package.json
npm ERR! at /usr/share/npm/lib/utils/read-json.js:253:13
npm ERR! at /usr/share/npm/lib/utils/read-json.js:166:33
npm ERR! at P (/usr/share/npm/lib/utils/read-json.js:142:41)
npm ERR! at /usr/share/npm/lib/utils/read-json.js:108:7
npm ERR! at [object Object].<anonymous> (fs.js:115:5)
npm ERR! at [object Object].emit (events.js:64:17)
npm ERR! at afterRead (fs.js:1117:12)
npm ERR! at Object.wrapper [as oncomplete] (fs.js:254:17)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /opt/mopidy/Apollo-Player/npm-debug.log npm
npm ERR!
npm ERR! System Linux 2.6.32-16-pve
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /opt/mopidy/Apollo-Player
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No 'name' field found in package.json
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/mopidy/Apollo-Player/npm-debug.log
npm not ok
I've fixed it by updating node version from the one mantained by canonical to this one:
https://launchpad.net/~chris-lea/+archive/ubuntu/node.js
Hope it helps.
Regards.
The opposite of the bomb feature, the "high five" would notify the user that another person likes the current song.
Hello, is this still in development?
Unfortunately, no album artworks are displayed.
Is there a way to fix that?
Otherwise, the Apollo-Player is awesome!
example: [unplayable] Earth Angel
spotify:track:3iQaSx6G50ptbEnzgsaQQy
Hi,
The play/pause button doesnt show for me. Do I need to use a certain user name (@) when coming to the application or is this a configuration?
Thanks
The boo track should be something that can be set by the user in config.js
Currently, we manually are setting a flag based on a hard coded time (based on the boo tracks total playtime minus 500 milliseconds)
https://github.com/samcreate/Apollo-Player/blob/master/controllers/player.js#L214-L217
""""""""""drive.js""""""""""""""""
var MenuView=Backbone.View.extend({
render:function(){
this.$el.html("this is menu part");
return this;
}
});
var ContentView=Backbone.View.extend({
render:function(){
this.$el.html("This is content view");
return this;
}
});
var AppLaoutView=Marionette.LayoutView.extend({
template:$("#inputtemplate"),
render:function(){
this.$el.html("this is layout view");
},
regions:{
menu:"#menu",
content:"#content"
}
});
var applayout=new AppLaoutView({el:"#inputcontent"});
applayout.render();
applayout.getRegion('menu').show(new MenuView());
applayout.getRegion('content').show(new ContentView());
//////////////////////////////////////////////////////////////////////////////
""""""""input.html"""""""""""""
//////////////////////////////////////////////////////////////////////
""""""""""""""""" error"""""""""""""""""""""""""""
backbone.marionette.min.js:21 Uncaught constructor {name: "Error", message: "An "el" #menu must exist in DOM", stack: "Error: An "el" #menu must exist in DOM↵ at cons… at file:///C:/nodehttp/final/js/driver.js:127:29"}message: "An "el" #menu must exist in DOM"name: "Error"stack: "Error: An "el" #menu must exist in DOM↵ at constructor._ensureElement (file:///C:/nodehttp/Bookstore/Source%20Code/js/Libraries/backbone.marionette.min.js:21:13472)↵ at constructor.show (file:///C:/nodehttp/Bookstore/Source%20Code/js/Libraries/backbone.marionette.min.js:21:11800)↵ at file:///C:/nodehttp/final/js/driver.js:127:29"proto: Error
_ensureElement @ backbone.marionette.min.js:21
show @ backbone.marionette.min.js:21
(anonymous) @ driver.js:127
////////////////////////////////
can u solve me with this code how to invoke a region
If you search for a track, you should only be able to see results that are not in the current playlist. This works with exception to the currently playing track.
The shortly upcoming Mopidy 0.19 release lets web clients be installed as Mopidy extensions. This makes it possible to install a web client simply by running e.g. pip install Mopidy-Lux
and restarting Mopidy. No configuration changes needed. No git clone
or download-and-unzip.
Multiple web clients can be installed at the same time, as each client is hosted with a prefix, e.g. Mopidy-Lux on http://localhost:6680/lux/
. Mopidy provides a list of all installed web clients on http://localhost:6680/mopidy/
.
Mopidy 0.19 hasn't been released yet, but this feature is complete and available in our develop branch. We want web client authors to start working on making all the web clients pip-installable.
The main sources of information is:
We'll be happy to help you get this working nicely. Let us know if you run into problems.
need to handle when a user's session has expired to redirect them to login again on ajax calls.
This app is nearly perfect, but it's lacking the main feature of all the other GUIs for Mopidy: playlist browsing. Being able to see who added what to the queue and then being able to vote to skip is great.
https://github.com/dirkgroenen/Mopify
Hi there,
I don't know how active this project still is, but I've been trying to install it on my rasp2 running archlinux arm.
When I first ran npm install it quit with saying that there was no phantomjs binary for my system and I should install it globally which I did via pacman.
Now it complains it is not the correct version. My version is 2.0.0 and somehow it needs 1.9.19 and won't continue without it:
> phantomjs@1.9.19 install /home/alarm/.config/mopidy/httpfrontends/Apollo-Player/node_modules/phantomjs
> node install.js
Found PhantomJS at /usr/bin/phantomjs ...verifying
PhantomJS detected, but wrong version 2.0.0 @ /usr/bin/phantomjs.
Unexpected platform or architecture: linux/arm
It seems there is no binary available for your platform/architecture
Try to install PhantomJS globally
npm WARN Apollo@1.0.0 No repository field.
npm WARN Apollo@1.0.0 No license field.
npm ERR! Linux 4.1.15-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v5.3.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! phantomjs@1.9.19 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.19 install script 'node install.js'.
...
I haven't found any reference to version 1.9.19 anywhere so I don't know how to manually fix it.
Any help would be appreciated!
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.