Commit Graph

5245 Commits

Author SHA1 Message Date
Thomas Adamcik
56b9724ffc Merge pull request #715 from geigerzaehler/gst-buffer
Pause gstreamer when buffering
2014-05-08 22:07:13 +02:00
Stein Magnus Jodal
1c15de4c3f docs: flake8 no longer requires any arguments 2014-05-07 20:46:20 +02:00
Stein Magnus Jodal
9c3ddcd3c8 flake8: Test everything by default, exclude .tox 2014-05-07 20:35:03 +02:00
Stein Magnus Jodal
b754885064 Fix all import order warnings 2014-05-07 20:08:43 +02:00
Stein Magnus Jodal
a4ca3655ad tox: Make flake8 test import order 2014-05-07 19:59:20 +02:00
Stein Magnus Jodal
2979de0f94 http: Polish Mopidy-HTTP Zeroconf service
Builds upon #725 to:

- Remove extra config for Mopidy-HTTP Zeroconf service
- Refactor Zeroconf setup code in the HTTP frontend a bit
- Add documentation
2014-05-06 23:20:14 +02:00
Stein Magnus Jodal
1b5c21452f Merge wlcx/feature/zeroconf-announce-mopidy into develop 2014-05-06 23:16:26 +02:00
Stein Magnus Jodal
9ffceaf3d2 local: Add missing file 2014-05-06 23:16:19 +02:00
Stein Magnus Jodal
c7b3f4a978 local: Created needed dirs when scanning (fix #703) 2014-05-06 22:59:16 +02:00
Stein Magnus Jodal
7ae9a045df Merge trygveaa/fix/bug-703-library-ensure-directory-exists into develop 2014-05-06 22:36:51 +02:00
Stein Magnus Jodal
5c8daad0ea docs: Update changelog 2014-05-06 22:33:11 +02:00
Stein Magnus Jodal
9d4bcf21bc Merge pull request #722 from trygveaa/develop
network: Respond to messages before closing connections
2014-05-06 22:28:55 +02:00
Stein Magnus Jodal
f6556ffafc travis: Use 2.7_with_system_site_packages so tox with sitepackages=true can find gst/glib/etc 2014-05-03 12:10:27 +02:00
Stein Magnus Jodal
acca9752af docs: Use badges from Shields.io 2014-05-03 12:10:27 +02:00
Trygve Aaberge
4220aa30ec local: Ensure directory for library exists (fixes #703) 2014-05-03 02:15:14 +02:00
Sam Willcocks
05089fba3b Update tests to add zeroconf-websocket config option 2014-04-27 17:50:41 +01:00
Sam Willcocks
f54377eb8a Update default http config to add new zeroconf-websocket option 2014-04-27 17:37:51 +01:00
Sam Willcocks
9c402274bf Merge branch 'develop' into feature/zeroconf-announce-mopidy 2014-04-27 04:51:46 +01:00
Sam Willcocks
4e8f1c7d54 Add extra zeroconf stuff in http to announce mopidy-http as it's own service
This is intended to help clients using the websocket api discover mopidy
2014-04-27 03:30:16 +01:00
Stein Magnus Jodal
b587b47e86 docs: Remove client screenshot to not grow packages with 3.5MB 2014-04-26 22:50:06 +02:00
Trygve Aaberge
d62ad966af network: Respond to messages before closing connections
This makes a connection tell the actor to stop the connection, instead
of stopping it itself. This is preferable, because other messages sent
to the actor that is not processed yet, may now send data to the client.

E.g. it makes this work:
$ echo status | nc localhost 6600
2014-04-25 06:11:01 +02:00
Stein Magnus Jodal
203b13aad7 docs: Add missing image 2014-04-19 14:16:23 +02:00
Stein Magnus Jodal
a311f3ca08 docs: Add Apollo player to web client list 2014-04-19 11:43:54 +02:00
Thomas Scholtes
2b7ff237b8 Add tests for Audio buffering 2014-04-03 21:43:56 +02:00
Thomas Scholtes
1e16817e39 Don’t start playing automatically when buffer is full
Previously, when `Audio.pause_playback()` was called while buffering, the audio
actor would switch back to the playing state when the buffer was full.
2014-04-03 20:30:41 +02:00
Thomas Scholtes
d42ebd1fec Set buffer properties of gstreamer pipeline
Manually set the `playbin2` buffer properties to their default values. The
default values are not documented but hard-coded in gstreamer [1].

This is a starting point for making these properties configurable. For example
we might want higher values on system with unsteady network connection.

[1]: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst/playback/gsturidecodebin.c?h=0.10#n1714
2014-03-31 12:29:04 +02:00
Thomas Scholtes
4d287697e4 Pause gstreamer when buffering
When the `playbin2` pipeline is in `PLAYING` state and its buffer is empty the
pipeline will consume arriving data immediately. If the source is an HTTP
stream this leads to choppy playback. To fix this we pause playing when the
buffer is nearly empty and wait for it to fill up until we resume playing. This
approach is recommended in the gstreamer manual [1].

We might want to extract the hard-coded 10% mark and make it configurable.

[1]: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-buffering.html
2014-03-31 12:29:04 +02:00
Stein Magnus Jodal
ed918fc7ff core: Fix shadowed import
Catched by new stricter flake8
2014-03-31 09:53:54 +02:00
Stein Magnus Jodal
adb817ecfe docs: Fix typo 2014-03-31 09:49:34 +02:00
Stein Magnus Jodal
ae63cc633c docs: Fix typo 2014-03-31 09:47:45 +02:00
Stein Magnus Jodal
9f6610a144 docs: Add page for the Debian package 2014-03-29 22:14:06 +01:00
Stein Magnus Jodal
afbd9895bf docs: Make 'mopidy config' more prominent 2014-03-29 21:14:45 +01:00
Stein Magnus Jodal
5583ca5aba New flake8 version with new checks to conform to 2014-03-29 20:47:42 +01:00
Stein Magnus Jodal
9db9def367 docs: Should install gstreamer0.10-alsa before using alsasink 2014-03-29 20:27:52 +01:00
Stein Magnus Jodal
95a051abf8 docs: Add Mopidy-Podcast-{gpodder.net,iTunes} 2014-03-23 09:26:35 +01:00
Stein Magnus Jodal
52b6676fb2 Merge remote-tracking branch 'dz0ny/patch-1' into develop
Conflicts:
	docs/ext/external.rst

Fixes #710
2014-03-11 09:40:04 +01:00
Janez Troha
9b1ec31fd1 Add: YouTube extension 2014-03-07 12:02:15 +01:00
Stein Magnus Jodal
c267e0b740 docs: Update changelog 2014-03-02 09:04:45 +01:00
Stein Magnus Jodal
db7aff4512 utils: Tweak docstrings from PR#707 2014-03-02 09:00:47 +01:00
Stein Magnus Jodal
957036c899 Merge pull request #707 into develop
Improve scan performance for remote filesystems
2014-03-02 08:34:54 +01:00
Stein Magnus Jodal
061ff00a39 tests: Don't depend on the order of random sequences 2014-02-28 01:17:53 +01:00
Thomas Adamcik
7386dd30b6 utils: Remove old find_files 2014-02-26 23:53:12 +01:00
Thomas Adamcik
78f727b9be local: Update how scanner work is done to improve remote FS support.
This changes the scanner to prefetch all the files+mtimes using our new
threaded finder. Hopefully making scanning against remote filesystems
somewhat less painful.
2014-02-26 23:31:11 +01:00
Thomas Adamcik
5b7a6065e7 util: Add find_mtimes helper 2014-02-26 23:27:44 +01:00
Thomas Adamcik
4e332da3ed utils: Update find to be threaded.
This is needed to speedup searches when using network mounted directories where
we are heavily IO bound.
2014-02-26 23:10:08 +01:00
Stein Magnus Jodal
590ce19148 docs: Add Mopidy-TuneIn 2014-02-25 10:09:24 +01:00
Stein Magnus Jodal
ad86b0caef package: Include tox.ini in packages 2014-02-17 14:25:35 +01:00
Stein Magnus Jodal
fbf932325f docs: Update testing docs 2014-02-17 12:51:02 +01:00
Stein Magnus Jodal
be0f1ee704 docs: Add link to coveralls.io 2014-02-17 12:51:02 +01:00
Stein Magnus Jodal
daf07a8edc travis: Use tox to run both tests, docs build, and flake8 linting 2014-02-17 12:51:02 +01:00