The present invention provides a method, device and computer equipment for improving the information security of a projectile screen. The method includes acquiring the information of a projectile screen, judging whether there is abnormal code information in the information of a projectile screen, converting abnormal code information into predetermined code information according to preset conversion rules if there is abnormal code information in the information of a projectile screen. The pre-formatted code information is information that is not executed in code form; the converted bullet screen information is displayed; thus, because the bullet screen information defaults to text information, when there is abnormal code information in the bullet screen information, the abnormal code information is converted to text information, then the abnormal code information will not be displayed when the bullet screen information is displayed. It shows that the malicious code can be shielded to ensure that the user can send or receive the bullet screen information by using the live broadcast platform, which can improve the user's participation.
【技术实现步骤摘要】
一种提高弹幕信息安全性的方法、装置及计算机设备
本专利技术属于直播视频流播放的
,尤其涉及一种提高弹幕信息安全性的方法、装置及计算机设备。
技术介绍
目前,随着直播行业的快速发展,直播受众也在不断的扩大中,各类型的直播内容也越来越丰富。观众可以在观看直播的同时也可以通过发送弹幕的方式参与评论与互动,从而极大的提升了用户的参与度,丰富了直播内容。一般来说,观众每发送一条弹幕,该弹幕则会发送到直播平台服务器,而直播平台服务器则会将该弹幕转发到该直播间的所有观众。然而一些非正常用户通过将弹框的广告代码掺杂在弹幕中,当直播平台服务器转发到每个观众时,浏览器则会将弹幕进行显示到观众页面上,然而弹幕中的代码则会被浏览器执行,从而在观众端弹出广告弹框,这种广告骚扰降低了用户的参与度,导致直播平台的用户量减少,也降低了直播平台的收益。
技术实现思路
针对现有技术存在的问题,本专利技术实施例提供了一种提高弹幕信息安全性的方法、装置及计算机设备,用于解决现有技术中用户在观看直播时,由于经常会接收到广告信息,导致直播平台的用户减少,进而导致直播平台收益降低的技术问题。本专利技术提供一种提高弹幕信息安全性的方法,所述方法包括:获取弹幕信息,判断所述弹幕信息中是否存在非正常代码信息;若所述弹幕信息中存在所述非正常代码信息,则按照预设的转换规则对所述非正常代码信息进行转换,将所述非正常代码信息转换为预定格式的代码信息,所述预定格式的代码信息为文本信息;显示转换后的弹幕信息。上述方案中,所述获取弹幕信息,包括:获取弹幕输入框中的所述弹幕信息,以及,利用网络套接字Socket调用接收函 ...
【技术保护点】
1.一种提高弹幕信息安全性的方法,其特征在于,所述方法包括:获取弹幕信息,判断所述弹幕信息中是否存在非正常代码信息;若所述弹幕信息中存在所述非正常代码信息,则按照预设的转换规则对所述非正常代码信息进行转换,将所述非正常代码信息转换为预定格式的代码信息,所述预定格式的代码信息为文本信息;显示转换后的弹幕信息。
【技术特征摘要】
1.一种提高弹幕信息安全性的方法,其特征在于,所述方法包括:获取弹幕信息,判断所述弹幕信息中是否存在非正常代码信息;若所述弹幕信息中存在所述非正常代码信息,则按照预设的转换规则对所述非正常代码信息进行转换,将所述非正常代码信息转换为预定格式的代码信息,所述预定格式的代码信息为文本信息;显示转换后的弹幕信息。2.如权利要求1所述的方法,其特征在于,所述获取弹幕信息,包括:获取弹幕输入框中的所述弹幕信息,以及,利用网络套接字Socket调用接收函数recv接收所述弹幕信息。3.如权利要求1所述的方法,其特征在于,所述非正常代码信息中包括有半角的特殊字符信息。4.如权利要求2所述的方法,其特征在于,所述利用网络套接字Socket调用recv函数接收所述弹幕信息后,还包括:将所述弹幕信息存储在预先建立的消息队列中,遍历所述消息队列。5.一种提高弹幕信息安全性的装置,其特征在于,所述装置包括:获取单元,用于获取弹幕信息,判断所述弹幕信息中是否存在非正常代码信息;转换单元,用于在所述弹幕信息中存在所述非正常代码信息的情况下,则按照预设的转换规则对所述非正常代码信息进行转换,将所述非正常代码信息转换为预定格式的代码信息,所述预定格式的代码信息为以代码形式被执行的...
【专利技术属性】
技术研发人员:周志刚,张文明,陈少杰,
申请(专利权)人:武汉斗鱼网络科技有限公司,
类型:发明
国别省市:湖北,42
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。