The following are methods all relative to the url:
http://computerName:port/MediaBrowserService
 
 
        /// <summary>
        /// Retrieves an item from MediaBrowser given an Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        UriTemplate = "/item?id={id}"
        MetadataItem GetItem(Guid id); 

        /// <summary>
        /// Gets the initial folders from the MediaBrowser startup screen
        /// </summary>
        /// <returns></returns>
        UriTemplate = "/startup"
        BasicCollectionItem GetStartUpFolders(); 

        /// <summary>
        /// Gets a collection/folder from the MediaBrowser library
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        UriTemplate = "/collection?id={id}"
        BasicCollectionItem GetCollection(Guid id); 

        /// <summary>
        /// Plays a specific item given its Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        UriTemplate = "/play?id={id}"
        bool PlayItem(Guid id); 

        /// <summary>
        /// Gets an object representing what is currently playing in Media Center
        /// </summary>
        /// <param name="waitForUpdate">determines whether to wait for the media center status to update before sending a response</param>
        /// <returns></returns>
        UriTemplate = "/nowplaying?wait={waitForUpdate}"
        NowPlayingItem GetNowPlaying(bool waitForUpdate); 

        /// <summary>
        /// Retrieves an image for a particular item
        /// </summary>
        /// <param name="id">Id of the MediaItem</param>
        /// <param name="imageType">The type of image</param>
        /// <param name="maxHeight">O or int.MaxValue to ignore</param>
        /// <param name="maxWidth">O or int.MaxValue to ignore</param>
        /// <returns></returns>
        UriTemplate = "/image?id={id}&imagetype={imageType}&maxheight={maxHeight}&maxwidth={maxWidth}"
        PictureItem GetImage(Guid id, ImageTypes imageType, int maxHeight, int maxWidth); 

        /// <summary>
        /// Sends a command for Media Center to perform
        /// </summary>
        /// <param name="command"></param>
        UriTemplate="/command?type={command}")]
        void SendCommand(CommandTypes command); 

        /// <summary>
        /// Seeks to a specific time (in seconds) for the currently playing item
        /// </summary>
        /// <param name="seconds">Time in seconds</param>
        UriTemplate = "/seek?duration={seconds}")]
        void Seek(int seconds); 

        /// <summary>
        /// Tells media Center to go to a specific screen
        /// </summary>
        /// <param name="screenType">The screen to go to</param>
        /// <param name="extraInfo">Any extra information for the screen in question</param>
        UriTemplate = "/screen?type={screenType}&params={extraInfo}")]
        void GoToScreen(ScreenType screenType, string extraInfo);
 
 
The following are all relative to the url:
http://computerName:port/MediaBrowserService/web
        /// <summary>
        /// Gets a web-based file that is stored in the MediaBrowserWS program data web directory
        /// </summary>
        /// <param name="type">Type of file; ie, [pages/css/js/other]</param>
        /// <param name="filename">The name of the file. Currently supporting [html;css;js;manifest;image types]</param>
        /// <returns></returns>
        UriTemplate = "/{type}/{filename}"
        Stream GetWebFileInDir(string type, string filename);

        /// <summary>
        /// Gets a html file or test file from the root Web directory
        /// </summary>
        /// <param name="filename">The name of the html file (/*.html and /test only supported in this method)</param>
        /// <returns></returns>
        UriTemplate = "/{filename}")
        Stream GetWebFile(string filename);

Last edited Aug 26, 2010 at 10:09 PM by evorgevol, version 1

Comments

No comments yet.