Thema: Delphi Album Art 3D

Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#2

Re: Album Art 3D

  Alt 13. Mär 2009, 20:56
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
  Mit Zitat antworten Zitat