The actual encoding scheme from media reference to the values in the bars is quite complex involving CRC, convolution, and puncturing. The reference is just a lookup in a database that Spotify maintains, so it requires a network connection to resolve. Enter the media reference, a short sequence encoding a specific URI, generally under 40 bits. Since many URIs on Spotify are pretty long (one example being spotify :show:3NRV0mhZa8xeRT0EyLPaIp which clocks in at 218 bits), some mechanism is needed to compress the URIs down to something more manageable. Many visual encoding schemes encode some URI ( Uniform Resource Identifier) that provides a unique identifier for that specific song, album, or artist when decoded. ![]() Several lines are centered on the Spotify logo with eight different heights, storing information in octal. Spotify offers a little picture that, when scanned, opens almost anything searchable with Spotify. ![]() If you’re like, such an encoding will pique your curiosity, and you might set out to figure out how they work. If you’ve used Spotify, you might have noticed a handy little code that it can generate that looks like a series of bars of different heights.
0 Comments
Leave a Reply. |