Extract functions from mappings
Add bindings for playing first occurrence of stream (fixes #1)