[mythtv-commits] mythtv/master commit: d51fd096b by Paul Harrison (paul-h)
MythTV
noreply at mythtv.org
Sun Dec 12 19:34:01 UTC 2010
Author: Paul Harrison <pharrison at mythtv.org>
Change Date: 2010-12-12T11:33:31-08:00
Push Date: 2010/12/12 11:33:56 -0800
Repository: mythtv
Branch: master
New Revision: d51fd096be54a809d053811d60da4a2655390f2a
Changeset: https://github.com/MythTV/mythtv/commit/d51fd096b
Log:
Allows a web page viewed in MythUIWebBrowser to control the music player.
This adds a MusicPlayer java script object that can control the music player.
The main use for this will be in MythNetVision to allow it to add audio only
feeds.
The object name is 'MusicPlayer' and currently has these functions.
Play() - Starts the music player.
Pause() - toggles the pause state of the music player.
Stop() - stops the music player.
SetVolume(int) - set the volume, takes a number between 0 and 100
GetVolume() - returns the volume
GetMetadata() - returns a string containing the current track details.
PlayFile(filename) - starts playing filename which should be a local file.
PlayURL(url) - starts playing url which can be an http url.
PlayTrack(trackid) - starts playing the track from the database with id trackid.
Modified:
mythtv/libs/libmythui/mythuiwebbrowser.cpp
mythtv/libs/libmythui/mythuiwebbrowser.h
More information about the mythtv-commits
mailing list