![]() |
How to: Stream music to your Linux PC from a phone via Bluetooth OBEX
Hey everyone, here's a quick script I came up with for playing music wirelessly on a Linux PC from your N900 (or any device that supports BT OBEX). All it does it pre-buffer it a bit in a temp directory, and then it passes the file to a media player (but don't try to seek back and forth). You either have to use a CLI or register the script with your PC's desktop manager somehow.
Code:
#! /bin/sh This example uses VLC but you can change the last line to use your media player of choice. So you mount your device via BT OBEX, open a terminal and cd to /home/username/.gvfs/devicename/path/to/music/ (your path may be different, this is what it is in Ubuntu) (note that on an N900 you may have to customize your OBEX root symlinks to access the MicroSD) Then enter: ~/obexplay musicfilename.mp3 And in a few seconds the music will start playing! |
All times are GMT. The time now is 09:21. |
vBulletin® Version 3.8.8