Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Version 4.5 Room Configuration/Media Meta Data
#5
OK, I got the image download stuff working with the ids instead. So those are now:

Code:
<!ELEMENT CQCGW:QueryMediaArt EMPTY>
<!ATTLIST CQCGW:QueryMediaArt
          CQCGW:Moniker CDATA #REQUIRED
          CQCGW:MType (Music | Movie) #REQUIRED
          CQCGW:Size (Sml | Lrg) 'Sml'
          CQCGW:UID CDATA #REQUIRED
          CQCGW:SID CDATA #REQUIRED>

<!ELEMENT CQCGW:QueryMediaRendArt EMPTY>
<!ATTLIST CQCGW:QueryMediaRendArt
          CQCGW:Size (Sml | Lrg) 'Sml'
          CQCGW:Moniker CDATA #REQUIRED>

<!ELEMENT CQCGW:MediaImgData (#PCDATA)>
<!ATTLIST CQCGW:MediaImgData
          CQCGW:Bytes CDATA #REQUIRED
          CQCGW:Result (Failed | NoChanges | NewData) #REQUIRED
          CQCGW:SID CDATA ''
          CQCGW:Type (PNG | JPEG | BMP | Unknown) #REQUIRED>

You can still query current art from renderers (QuerymediaRendArt), but the old repo art query is now replaced by QueryMediaArt.

You provide the UID and the size specific id (empty if querying it for the first time, i.e. not just checking for changes but haven't gotten this image yet), so ignore what I said above about removing those size specific ids, you do need them because that lets me know if the image has changed since you asked last time you checked it or not. The UID lets me look up the overall image, and the size specific id will change if the image has changed.

In some repos, as I mentioned, the size specific ones are just the main UID with a size indicator added, or maybe not even that just the same ID, because both images are created from the same one, so if one changed they both changed. But in others, where there are separate thumbs and large art that be loaded, the ids can be different. You indicate media type and image size type as well.

The reply now has a Result value and, if doing the QueryMediaArt call and there is new data, you will get back the new size specific id which you can store away in your image cache for later use if you query the image again. If querying renderer art, the SID is not used in the reply message.

The Result value indicates if no image was found or it couldn't be loaded, or it was found but it's not changed since you last asked, or there is now data and a new SID being returned.
Dean Roddey
Explorans limites defectum
Reply


Messages In This Thread
Version 4.5 Room Configuration/Media Meta Data - by Dean Roddey - 06-16-2014, 06:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Media Center Plug-in potts.mike 19 17,171 12-15-2009, 04:02 PM
Last Post: damian.flynn

Forum Jump:


Users browsing this thread: 1 Guest(s)