当前位置:网站首页>RTMP streaming platform easydss video on demand interface search bar development label fuzzy query process introduction

RTMP streaming platform easydss video on demand interface search bar development label fuzzy query process introduction

2022-06-24 12:24:00 Tsingsee green rhino video

EasyDSS Video on demand interface of video platform , At present, the search bar can perform fuzzy query on file names , In the new update , We need to add a fuzzy query to the file label , Improve user experience .

After thinking and analyzing , This function is mainly realized by the server receiving the parameters of the search bar , Make verification judgment 、 Assign values to labels after splicing parameters “labels”.

Finally, the database query statements are spliced :

SELECT * FROM "vod_files"  WHERE (dir_id in ('o6SX08qGR')) AND labels like '%ten;%' OR name like '%ten%'

After testing, we found that , Implementing this requirement in the above way will result in searching for files in unauthorized directories , Here's the picture :

After checking the code, we found that , This problem is caused by incorrect splicing of database query statements , So we modify the query statement to :

SELECT * FROM "vod_files"  WHERE (dir_id in ('o6SX08qGR')) AND ((labels like '% football ;%') OR (name like '% football %'))

The test results are shown in the following figure , You can get the desired results more accurately :

EasyDSS There is no need to install plug-ins to watch video streaming live broadcast on the video platform , Web pages can be played directly , Enter the platform through the browser to configure , For users , Convenient and controllable , There is no need to build another server , Have a great advantage .

Play a RTMP Protocol streaming media needs to go through the following steps : handshake , Set up a network connection , Set up network flow , Play . Only one network connection can be established between the server and the client , But based on this connection, you can create many network flows , This is also RTMP A feature of Streaming Protocol . Because many project teams have requirements for streaming , Therefore, we often encounter these situations , I will introduce you EasyDSS, That is, a streaming media server suitable for streaming platform .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/06/20210602191027218Z.html