How to realize online song ordering / online music in the development of Wechat public platform message interface
Editor to share with you how to achieve online song ordering / online music in the development of Wechat public platform message interface. I hope you will get something after reading this article. Let's discuss it together.
First, access to music resources
Baidu has a music interface.
Http://box.zhangmen.baidu.com/x?op=12&count=1&title= is about $$Qi Qin $in winter.
The returned result is
This XML file does not appear to have any style information associated with it. The document tree is shown below.181470618147061d1cae9f7634c5aa3d54d7b1b1ad4c5b79b6e97ffmp35710896192
Second, docking with Wechat
The music message format is as follows
Parameter description
ToUserName receiver account (received OpenID) FromUserName developer WeChat CreateTime message creation time MsgType musicMusicUrl music link HQMusicUrl high-quality music link, WIFI environment gives priority to play music FuncFlag bit 0x0001 is marked, Star has just received the message.
Third, the realization of core program
IV. Effect demonstration
Need to add Wechat public account Fangbi Studio, you can see the relevant instructions
1. Send "order song" plus song name, such as "order song most dazzling national style", return to the specified song.
The song plays smoothly in the WIFI environment and has a good experience.
This is the interface of successful song ordering.
This is the display of the top column.
This is the music playback interface.
After reading this article, I believe you have a certain understanding of "how to realize online song ordering / online music in the development of Wechat public platform message interface". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!