Enable the embedded player to automatically download the lyrics

Source: Internet
Author: User

Reprinted please indicate the source and the author contact: http://blog.csdn.net/mimepp
Contact information: Yu Tao <yut616 at Sohu dot com>

 

The display of the lyrics is very necessary for a media player, especially for products with network functions. If you need to manually find the lyrics yourself, it is not enough to make full use of its network functions.

If you can enable it to automatically download the lyrics, it will be a cool feature.

 

Here, we will describe the automatic download feature of the lyrics of "", which is worth embedding in the product for reference.

 

Captured data packets:

1. Send an http get request based on artist and title:

 

GET/dll/lyricsvr. dll? Sh? Artist = 730068006500 & Title = e26caf652b73 & flags = 0 HTTP/1.1 <br/> Referer: http://ttlrccnc.qianqian.com/<br/> Accept: image/GIF, image/X-xbitmap, image/jpg, image/pjpeg, text/html, text/XML, */* <br/> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) <br/> HOST: ttlccnc.qianqian.com <br/> connection: keep-alive <br/> cache-control: no-Cache </P> <p> HTTP/1.1 200 OK <br/> connection: Close <br/> con Tent-type: text/html; charset = UTF-8 <br/> Content-Length: 179 <br/> date: Fri, 26 Jun 2009 01:45:51 GMT <br/> Server: apache 1.3.29 </P> <p> <? XML version = "1.0" encoding = "UTF-8"?> <Br/> <result> <br/>. & lt; LRC id = "7956" artist = "s. h. e. "Title = "......... "> </LRC> <br/>. <LRC id = "235751" artist = "s.h.e" Title = "......... "> </LRC> <br/> </result> </P> <p> 

 

2. Send an http get request based on the obtained lyrics list ID:

GET/dll/lyricsvr. dll? DL? Id = 7956 & code = 2013547666 & CI = Require HTTP/1.1 <br/> Referer: http://ttlrccnc.qianqian.com/<br/> Accept: image/GIF, image/X-xbitmap, image/jpg, image/pjpeg, text/html, text/XML, */* <br/> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) <br/> HOST: ttlccnc.qianqian.com <br/> connection: keep-alive <br/> cache-control: no-Cache </P> <p> HTTP/1.1 200 OK <br/> connection: Close <br/> tt-title: Done <br/> tt-URL: response <br/> response <br/> Content-Type: text/html; charset = UTF-8 <br/> Content-Length: 2218 <br/> date: Fri, 26 Jun 2009 01:45:56 GMT <br/> Ser <br/> ver: apache 1.3.29 </P> <p> [Ti: ......] <br/> [AR: s.h.e] <br/> [Al:...] <br/> [by: 253057646] </P> <p>. 54] ...... -s.h.e <br/> [00: 06. 82] <br/> [00: 08. 47] ...... <br/> [00: 10. 81] <br/> [00: 16. 87] ...... qq... 253057646 <br/>. 99] <br/> [00: 30. 54] SELINA :.................................... <br/> [00: 34. 44] ...... .... <br/> [00: 38. 40] ...... <br/> ........... <br/> [00: 45. 33] <br/> [00: 45. 68] Hebe :.................................... <br/> [00: 49. 31] ...... <br/> [00: 53. 65] ...... .... <br/> [0: 01. 95] <br/> [0: 03. 48] ELLA :.................................... ...... <br/> [0: 07. 12] ...... <br/> [0: 10. 73] Hebe :.................................... ...... <br/> [0: 14. 54] ...... <br/> [0: 18. 13] <br/>. 68] SELINA :.................................... ...... <br/> [0: 22. 13] ...... <br/> [0: 25. 67] ELLA :.................................... ...... <br/> [0: 29. 76] ...... <br/> [0: 33. 27] <br/> [0: 33. 93] s.h.e :.................................... .................. <br/> [0: 41. 22]... ............. <br/> [0: 50. 61] <br/> [0: 57. 95] ELLA :.................................... <br/> [02: 02. 59] ...... <br/> [02: 06. 80] ...... .... <br/> [02: 14. 58] <br/> [02: 16. 43] SELINA :.............. <br/> ....... <br/> [02: 18. 37] ELLA :..................... <br/> [0: 20. 38] Hebe :................................. <br/> [02: 23. 79] SELINA :..................... <br/> [0: 25. 79] ELLA :..................... <br/> [0: 27. 79] Hebe :.................................... <br/> [02: 31. 39] <br/> [02: 31. 66] ELLA :..................... <br/> [0: 33. 15] Hebe :..................... <br/> [0: 35. 36] SELINA :................................. <br/> [0: 38. <br/> 81] ELLA :..................... <br/> [0: 41. 11] Hebe :..................... <br/> [02: 42. 88] SELINA :.................................... <br/> [0: 46. 76] <br/> [0: 46. 97] La la <br/>. 43] s.h.e :.................................... .................. <br/> [0: 11. 51] ...... ............. <br/> [0: 21. 23] La la <br/>. 41] s.h.e :.................. <br/> [0: 40. 68] <br/>. 52] ...... qq... 253057646 </P> <p> 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.