I started to close my work this week. Of course, I did not develop core technologies. I am mainly responsible for the repair and supplement of Web terminals, it mainly includes adding VLC players, RTSP video streams, and some JS details.
1. VLC
The video LAN client supports various formats and is mainly used as a tool for playing real-time videos on the platform. First, find the Wiki of VLC. The webplugin section contains quick-start text to learn some playback control methods. For the Web End, add a player to the webpage through the html object tag, and write the real-time monitored video in the target attribute. Some other parameters are used to control playback. However, it is very difficult to implement the video on the project web end. The called API is only suitable for the VLC library installed locally, asking others for the solution. Solution: use C language to call libvlc APIs at the backend, encapsulate the APIS, and then use the APIs in PHP.
2. RTSP
It is called the real-time stream transmission protocol, and platform videos are transmitted through this protocol. Find some public video addresses on the Internet and put them on the platform for testing. The effect is good.
3. js Learning
Three methods are added to listen to mouse actions, and javascript can get content through the ID attribute of the tag, and CSS gets the target through class. Urgently need to fill in JS-related Ah O (> rewrite <) O
4. node Learning
I mainly learned some APIs of TCP and HTTP in node. First try TCP communication and use Telnet for session. Use the net module to implement the functions of a chat room. Step 1: Use Net. createserver () to create a server object. The HTTP module in the previous article can also create a server module. Net is used to create a TCP server. The parameters are also used to listen for different events. Net listens for Connection events, while HTTP listens for requests. Connection listens to the stream data block 'data' and processes it.
The HTTP section mainly deals with forms. We learned this week to make front-end modifications. Next week.