[mythtv-commits] mythtv/master commit: 07f5db2a2 by Paul Harrison (paul-h)

MythTV noreply at mythtv.org
Tue Dec 14 15:49:11 UTC 2010


      Author:  Paul Harrison <pharrison at mythtv.org>
 Change Date:  2010-12-14T06:52:34-08:00
   Push Date:  2010/12/14 07:48:53 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  07f5db2a286fd12ab02cc20cd7bb8ebccced7257
   Changeset:  https://github.com/MythTV/mythtv/commit/07f5db2a2

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