/// <summary>
        /// Play a movie with MovingPictures by ID.
        /// </summary>
        /// <param name="movieId">A MovingPictures movie id.</param>
        /// <param name="resume">Ask to resume movie?</param>
        /// <param name="startPosition">Position from which the video should start in seconds (e.g. StartPosition=180 will start the episode 3 minutes into the video). Will be ignored if AskToResume is true.</param>
        public static void PlayMovie(int movieId, bool resume, int startPosition = 0)
        {
            DBMovieInfo movie = DBMovieInfo.Get(movieId);

            if (movie == null)
            {
                WifiRemote.LogMessage("Could not find MovingPictures movie with id " + movieId.ToString(), WifiRemote.LogType.Info);
            }
            else
            {
                PlayMovie(movie, resume, startPosition);
            }
        }
        /// <summary>
        /// Create a PlayListItem from a given movie id
        /// </summary>
        /// <param name="movieId">id of movie</param>
        /// <returns>PlayListItem object from movie id</returns>
        internal static MediaPortal.Playlists.PlayListItem CreatePlaylistItem(int movieId)
        {
            DBMovieInfo movie = DBMovieInfo.Get(movieId);

            if (movie == null)
            {
                WifiRemote.LogMessage("Could not find MovingPictures movie with id " + movieId.ToString(), WifiRemote.LogType.Info);
            }
            else
            {
                PlayListItem item = new PlayListItem();
                item.FileName    = movie.LocalMedia[0].FullPath;
                item.Description = movie.Title;
                item.Duration    = movie.LocalMedia[0].Duration / 1000;
                return(item);
            }
            return(null);
        }