Beispiel #1
0
        public AimpActionResult GetFileInfo(IAimpString fileUri, ref IAimpFileInfo fileInfo)
        {
            var file = fileUri.GetData().Replace(CustomFileSystem.sMySchemePrefix, string.Empty);

            if (File.Exists(file))
            {
                fileInfo.Album = "test";
            }

            return(AimpActionResult.Ok);
        }
Beispiel #2
0
 public void UpdateAimpFileInfo(IAimpFileInfo fileInfo)
 {
     fileInfo.FileName = Playback.Scheme + WebpageUrl;
     fileInfo.Title    = Title;
     fileInfo.Duration = Duration;
     fileInfo.Album    = Album;
     if (fileInfo.AlbumArt == null)
     {
         fileInfo.AlbumArt = new System.Drawing.Bitmap(1, 1);
     }
 }
Beispiel #3
0
 public AimpActionResult GetFileInfo(IAimpStream stream, ref IAimpFileInfo fileInfo)
 {
     fileInfo = null;
     System.Diagnostics.Debugger.Break();
     return(new AimpActionResult(ActionResultType.OK));
 }
Beispiel #4
0
 public AimpActionResult GetFileInfo(Stream stream, ref IAimpFileInfo fileInfo)
 {
     throw new System.NotImplementedException();
 }
Beispiel #5
0
        public AimpActionResult <Bitmap> Show(IAimpFileInfo fileInfo)
        {
            var image = Properties.Resources.front;

            return(new AimpActionResult <Bitmap>(ActionResultType.OK, image));
        }
Beispiel #6
0
 public ActionResultType GetFileInfo(Stream stream, ref IAimpFileInfo fileInfo)
 {
     //fileInfo = null;
     return(ActionResultType.OK);
 }
Beispiel #7
0
 public AimpActionResult GetFileInfo(IAimpStream stream, ref IAimpFileInfo fileInfo)
 {
     return(new AimpActionResult(ActionResultType.OK));
 }
Beispiel #8
0
        //public ActionResultType GetFileInfo(string fileUri, ref IAimpFileInfo fileInfo)
        //{
        //    fileInfo.Artist = "test";
        //    //fileInfo = null;
        //    return ActionResultType.OK;
        //}

        public AimpActionResult GetFileInfo(string fileUri, ref IAimpFileInfo fileInfo)
        {
            fileInfo.Artist = "test";
            //fileInfo = null;
            return(new AimpActionResult(ActionResultType.OK));
        }
Beispiel #9
0
        public AimpActionResult <Bitmap> Get(IAimpFileInfo fileInfo, IAimpAlbumArtSearchOptions options)
        {
            var image = Properties.Resources.front;

            return(new AimpActionResult <Bitmap>(ActionResultType.OK, image));
        }