Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Album Art 3D (https://www.delphipraxis.net/130268-album-art-3d.html)

EWeiss 5. Mär 2009 18:06


Album Art 3D
 
weis vielleicht jemand wie die Cover von WMP an das Plugin übergeben werden?
Trotz übergabe von Titel usw.. zeigt es nicht die Cover an.

gruss Emil

EWeiss 13. Mär 2009 20:56

Re: Album Art 3D
 
Zitat:

Zitat von EWeiss
weis vielleicht jemand wie die Cover von WMP an das Plugin übergeben werden?
Trotz übergabe von Titel usw.. zeigt es nicht die Cover an.

gruss Emil

Knabbere immer noch daran an informationen zu kommen wie das funktioniert.
Hab das hier gefunden!

Code:
BSTR coverArtURL = NULL;
IWMPMetadataPicture* albumArt = NULL;


HRESULT result = Media3 -> getItemInfobyType( L"WM/Picture", NULL, 0,
(VARIANT*) &albumArt ); // the value of albumArt is junk
if ( albumArt && result == S_OK ) { 
    result = albumArt -> get_URL( &coverArtURL ); // crash
}
wenn das die art ist wie die Daten an das Plugin gelangen.
Wie würde dann das gegenteil davon aussehen ?
Also wie der WMP die Daten sendet.

Das Interface ist so ausgelegt
Delphi-Quellcode:
// *********************************************************************//
// Interface: IWMPMetadataPicture
// Flags:    (4416) Dual OleAutomation Dispatchable
// GUID:     {5C29BBE0-F87D-4C45-AA28-A70F0230FFA9}
// *********************************************************************//
  IWMPMetadataPicture = interface(IDispatch)
    ['{5C29BBE0-F87D-4C45-AA28-A70F0230FFA9}']
    function Get_mimeType: WideString; safecall;
    function Get_pictureType: WideString; safecall;
    function Get_Description: WideString; safecall;
    function Get_URL: WideString; safecall;
    property mimeType: WideString read Get_mimeType;
    property pictureType: WideString read Get_pictureType;
    property Description: WideString read Get_Description;
    property URL: WideString read Get_URL;
  end;
Sind aber alles getter denke nur von Plugins verwendbar oder ?
Ich will die Daten ja senden.

ach so das fehlt noch.

Delphi-Quellcode:
// *********************************************************************//
// Interface: IWMPMedia3
// Flags:    (4416) Dual OleAutomation Dispatchable
// GUID:     {F118EFC7-F03A-4FB4-99C9-1C02A5C1065B}
// *********************************************************************//
  IWMPMedia3 = interface(IWMPMedia2)
    ['{F118EFC7-F03A-4FB4-99C9-1C02A5C1065B}']
    function getAttributeCountByType(const bstrType: WideString; const bstrLanguage: WideString): Integer; safecall;
    function getItemInfoByType(const bstrType: WideString; const bstrLanguage: WideString;
                               lIndex: Integer): OleVariant; safecall;
  end;
gruss Emil

EWeiss 31. Mai 2015 14:01

AW: Album Art 3D
 
Ok ist schon Asbach der Thread aber letztendlich habe ich auch das geschafft zu klären.
Man soll also nicht zu schnell aufgeben. ;)

gruss


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz