openhome / ohPlayer

ohPlayer is a full featured OpenHome media renderer licenced under an MIT licence
Other
42 stars 11 forks source link

Adjustment of ohplayer to new tidal login procedure #23

Open Dual01 opened 3 years ago

Dual01 commented 3 years ago

I used the dependencies matching ohNet 1.30.4077. When I compile the ohplayer, I get the following error related to ExampleMediaplayer which is due to the NewTidal login procedure:

ExampleMediaPlayer.cpp: In member function ‘void OpenHome::Av::ExampleMediaPlayer::RegisterPlugins(OpenHome::Environment&)’: ExampleMediaPlayer.cpp:331:58: error: no matching function for call to ‘OpenHome::Media::ProtocolFactory::NewTidal(OpenHome::Environment&, OpenHome::SslContext&, OpenHome::Brn, OpenHome::Av::MediaPlayer&)’ iMediaPlayer)); ^ ExampleMediaPlayer.cpp:331:58: note: candidate is: In file included from ExampleMediaPlayer.cpp:6:0: ../dependencies/Linux-armhf/ohMediaPlayer/include/OpenHome/Media/Protocol/ProtocolFactory.h:39:22: note: static OpenHome::Media::Protocol OpenHome::Media::ProtocolFactory::NewTidal(OpenHome::Environment&, OpenHome::SslContext&, const OpenHome::Brx&, const OpenHome::Brx&, const OpenHome::Brx&, std::vector&, OpenHome::Av::IMediaPlayer&) static Protocol* NewTidal(Environment& aEnv, SslContext& aSsl, const Brx& aPartnerId, const Brx& aClientId, const Brx& aClientSecret, std::vector& aAppDetails, Av::IMediaPlayer& aMediaPlayer); ^ ../dependencies/Linux-armhf/ohMediaPlayer/include/OpenHome/Media/Protocol/ProtocolFactory.h:39:22: note: candidate expects 7 arguments, 4 provided Makefile.armhf:115: recipe for target 'raspbian/objs/ExampleMediaPlayer.o' failed make[1]: [raspbian/objs/ExampleMediaPlayer.o] Error 1 make[1]: Leaving directory '/home/pi/ohPlayer/linux' Makefile:28: recipe for target 'raspbian' failed make: [raspbian] Error 2

Thus, it would be great to update the ExampleMediaplayer for the New Tidal login protocol.