Jump to content
C4 Forums | Control4

Recommended Posts

Posted

Hi

I'm writing a driver that can interpret the metadata part received from a device on the network.

I'm using example 2 as the basis of the SDK that C4 provides on Github (https://github.com/snap-one/docs-driverworks/tree/master/media_service_proxy/MSP By Numbers/2-NowPlaying).

I find myself stuck when I have to send the cover to the graphics, basically despite the URL being correct, the "UpdateMediaInfo" function only updates the Title Artist and Album part.

Could you help me?

Thanks


Posted

Driver is for Atterotech Bluetooth D6IO

I searched online but I didn't find it.

The only thing I'm missing is the part about sending the cover to the graphic designer, could you help me?

Posted

Of course, this is the function that takes care of updating the Nowplaying

function UpdateMediaInfo (T, AL, AR, URL)

    local args = {
        TITLE = T Or 'Title',
        ALBUM = AL OF 'Album'
        ARTIST = AR Or 'Artist',
        IMAGEURL = URL OF 'URL',
    }
    C4:SendToProxy(5001,'UPDATE_MEDIA_INFO', args, 'COMMAND' ,true)
end

and the image is this

400.jpg?hmac=dpRzm5U6VOlRCUWSvelJa0FM46o

 

Thanks for your help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.