[go: up one dir, main page]

CN103379381B - Video broadcasting method based on WAP gateway, WAP gateway and system - Google Patents

Video broadcasting method based on WAP gateway, WAP gateway and system Download PDF

Info

Publication number
CN103379381B
CN103379381B CN201210112113.1A CN201210112113A CN103379381B CN 103379381 B CN103379381 B CN 103379381B CN 201210112113 A CN201210112113 A CN 201210112113A CN 103379381 B CN103379381 B CN 103379381B
Authority
CN
China
Prior art keywords
video
request
wap gateway
access request
video playback
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210112113.1A
Other languages
Chinese (zh)
Other versions
CN103379381A (en
Inventor
郝年朋
吴丽梅
欧阳新志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210112113.1A priority Critical patent/CN103379381B/en
Publication of CN103379381A publication Critical patent/CN103379381A/en
Application granted granted Critical
Publication of CN103379381B publication Critical patent/CN103379381B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种基于WAP网关的视频播放方法、WAP网关及系统,其方法包括:WAP网关在接收到终端浏览器的访问请求时,对访问请求进行判断;当访问请求为视频播放请求时,根据视频播放请求从服务提供服务器获取视频资源;对视频资源进行处理后,发送给终端浏览器。本发明通过在WAP网关中增加VO视频处理模块对视频资源进行压缩、转码、缓存等处理流程,节约了无线带宽的占用,减少了请求视频服务提供服务器的交互和等待时间,并采用轮询均衡分发请求机制转发视频请求,在无线信道忙时降低码流,闲时增加码流,同时可根据用户终端属性动态调整码流,从而减轻了网关处理负担,增强了用户视频播放体验。

The present invention relates to a video playback method based on a WAP gateway, a WAP gateway and a system. The method includes: when the WAP gateway receives an access request from a terminal browser, it judges the access request; when the access request is a video playback request, According to the video playback request, the video resource is obtained from the service provider server; after the video resource is processed, it is sent to the terminal browser. The invention saves the occupation of wireless bandwidth by adding a VO video processing module to the WAP gateway to compress, transcode, cache and other processing processes of video resources, and reduces the interaction and waiting time of requesting video service provider servers, and adopts polling The balanced distribution request mechanism forwards video requests, reduces the bit rate when the wireless channel is busy, and increases the bit rate when the wireless channel is idle. At the same time, the bit rate can be dynamically adjusted according to the attributes of the user terminal, thereby reducing the processing burden of the gateway and enhancing the user's video playback experience.

Description

基于WAP网关的视频播放方法、WAP网关及系统Video playing method, WAP gateway and system based on WAP gateway

技术领域 technical field

本发明涉及无线通讯技术领域,尤其涉及一种基于WAP(WirelessApplication Protocol,无线应用协议)网关的视频播放方法、WAP网关及系统。The present invention relates to the technical field of wireless communication, in particular to a video playing method based on a WAP (Wireless Application Protocol, wireless application protocol) gateway, a WAP gateway and a system.

背景技术 Background technique

随着移动通信技术的发展,使用WAP协议浏览网页的终端日益普遍。目前常见的WAP浏览流程为:用户在终端浏览器中点击门户首页后,终端发起请求至WAP网关,WAP网关返回服务提供商(SP)的响应,终端根据响应内容中的图片、CSS(Cascading Style Sheet,级联样式表,又称风格样式表)样式等相关链接自动发起后续请求。With the development of mobile communication technology, terminals using the WAP protocol to browse webpages are increasingly common. The current common WAP browsing process is: after the user clicks the portal home page in the terminal browser, the terminal initiates a request to the WAP gateway, and the WAP gateway returns a response from the service provider (SP). Sheet, cascading style sheet, also known as style style sheet) style and other related links automatically initiate follow-up requests.

然而,随着现在高性能终端的不断涌现,用户已经不满足于仅仅访问内容相对单调的页面或图片,视频播放对于用户更有吸引力,但是,现有的WAP浏览模式却无法满足用户对视频播放的需求,其存在以下缺陷:However, with the continuous emergence of high-performance terminals, users are no longer satisfied with only visiting pages or pictures with relatively monotonous content. Video playback is more attractive to users. However, the existing WAP browsing mode cannot satisfy users' desire for video The demand for playback has the following defects:

1、相对于普通页面,视频文件播放资源较大,传输时占用较多的终端用户侧无线带宽;1. Compared with ordinary pages, video files have larger playback resources and occupy more wireless bandwidth on the end user side during transmission;

2、对于视频服务提供商的响应,WAP网关针对视频文件的下载并不能有效地减少流量,对于一些较大的、用户频繁访问的视频资源,造成网络带宽和网关处理负担的增加;2. Regarding the response from the video service provider, the download of video files by the WAP gateway cannot effectively reduce the traffic. For some larger video resources frequently accessed by users, the network bandwidth and gateway processing burden increase;

3、WAP网关没有动态调整无线信道码流传输速率,信道资源紧张时影响了用户体验感受;3. The WAP gateway does not dynamically adjust the transmission rate of the wireless channel code stream, which affects the user experience when channel resources are tight;

3、WAP网关没有根据终端属性合理有效地传输视频资源,影响了用户体验感受。3. The WAP gateway does not transmit video resources reasonably and effectively according to the terminal attributes, which affects the user experience.

发明内容 Contents of the invention

本发明的主要目的在于提供一种基于WAP网关的视频播放方法、WAP网关及系统,旨在减少WAP视频播放占用的无线带宽,增强用户视频播放体验。The main purpose of the present invention is to provide a video playback method, WAP gateway and system based on a WAP gateway, aiming at reducing the wireless bandwidth occupied by WAP video playback and enhancing user video playback experience.

为了达到上述目的,本发明提出一种基于WAP网关的视频播放方法,包括:In order to achieve the above object, the present invention proposes a video playing method based on WAP gateway, comprising:

WAP网关在接收到终端浏览器的访问请求时,对所述访问请求进行判断;When the WAP gateway receives the access request of the terminal browser, it judges the access request;

当所述访问请求为视频播放请求时,根据所述视频播放请求从服务提供服务器获取视频资源;When the access request is a video play request, obtain video resources from a service providing server according to the video play request;

对所述视频资源进行处理后,发送给所述终端浏览器。After the video resource is processed, it is sent to the terminal browser.

优选地,该方法还包括:Preferably, the method also includes:

当所述访问请求为视频播放请求时,判断所述视频播放请求是否对应有本地的缓存视频资源;若是,则When the access request is a video playback request, determine whether the video playback request corresponds to a local cached video resource; if so, then

将所述缓存视频资源发送给所述终端浏览器;否则Send the cached video resource to the terminal browser; otherwise

执行根据所述视频播放请求从服务提供服务器获取视频资源的步骤。Execute the step of acquiring video resources from the service providing server according to the video playing request.

优选地,所述对访问请求进行判断的步骤包括:Preferably, the step of judging the access request includes:

解析所述访问请求,获取所述访问请求的URL或文件后缀;Analyzing the access request to obtain the URL or file suffix of the access request;

将所述访问请求的URL或文件后缀与所述WAP网关本地保存的视频类列表进行匹配;Matching the URL or file suffix of the access request with the video class list locally stored by the WAP gateway;

若所述视频类列表中存在与所述访问请求的URL或文件后缀对应的视频名单,则判断所述访问请求为视频播放请求;否则,为非视频播放请求。If there is a video list corresponding to the URL or file suffix of the access request in the video category list, it is judged that the access request is a video playback request; otherwise, it is a non-video playback request.

优选地,所述对访问请求进行判断的步骤之后还包括:Preferably, after the step of judging the access request, it also includes:

当所述访问请求为非视频播放请求时,将所述非视频播放请求转发给所述服务提供服务器;When the access request is a non-video playback request, forwarding the non-video playback request to the service providing server;

接收所述服务提供服务器返回的响应数据;receiving the response data returned by the service providing server;

对所述响应数据进行解析,获取所述响应数据的内容类型;Analyzing the response data to obtain the content type of the response data;

根据所述内容类型,再次判断所述访问请求是否为视频播放请求;若是,则返回根据所述视频播放请求从服务提供服务器获取视频资源的步骤,同时断开与所述服务提供服务器的响应链路;否则According to the content type, judge again whether the access request is a video playback request; if so, return to the step of obtaining video resources from the service provider server according to the video playback request, and disconnect the response chain with the service provider server at the same time road; otherwise

将所述响应数据转发给所述终端浏览器。Forwarding the response data to the terminal browser.

优选地,所述WAP网关对所述视频资源进行处理包括:对所述视频资源进行压缩、转码和/或缓存。Preferably, the processing of the video resource by the WAP gateway includes: compressing, transcoding and/or caching the video resource.

优选地,所述WAP网关根据所述视频播放请求从服务提供服务器获取视频资源的步骤具体包括:Preferably, the step of the WAP gateway obtaining video resources from the service provider server according to the video playback request specifically includes:

所述WAP网关采用轮询方式均衡分发所述视频播放请求,从服务提供服务器获取视频资源。The WAP gateway evenly distributes the video playback requests in a polling manner, and acquires video resources from the service providing server.

优选地,该方法还包括:Preferably, the method also includes:

根据无线信道资源占用属性、用户终端属性和/或帧属性,动态调整信道码流。According to the wireless channel resource occupancy attributes, user terminal attributes and/or frame attributes, the channel code stream is dynamically adjusted.

本发明还提出一种播放视频的WAP网关,包括:主控模块和VO视频处理模块,其中:The present invention also proposes a WAP gateway for playing videos, including: a main control module and a VO video processing module, wherein:

所述主控模块,用于在接收到终端浏览器的访问请求时,对所述访问请求进行判断;当所述访问请求为视频播放请求时,将所述视频播放请求转发给所述VO视频处理模块;以及将所述VO视频处理模块返回的视频资源转发给所述终端浏览器;The main control module is configured to judge the access request when receiving the access request from the terminal browser; when the access request is a video playback request, forward the video playback request to the VO video processing module; and forwarding the video resource returned by the VO video processing module to the terminal browser;

所述VO视频处理模块,用于当所述访问请求为视频播放请求时,根据所述视频播放请求从服务提供服务器获取视频资源,并对所述视频资源进行处理后,发送给所述主控模块。The VO video processing module is configured to obtain a video resource from a service provider server according to the video playback request when the access request is a video playback request, process the video resource, and send it to the main controller module.

优选地,所述VO视频处理模块,还用于当所述访问请求为视频播放请求时,判断所述视频播放请求是否对应有本地的缓存视频资源;若是,则将所述缓存视频资源通过所述主控模块转发给所述终端浏览器;否则根据所述视频播放请求从服务提供服务器获取视频资源。Preferably, the VO video processing module is further configured to determine whether the video playback request corresponds to a local cached video resource when the access request is a video playback request; if so, pass the cached video resource through the The main control module forwards it to the terminal browser; otherwise, the video resource is obtained from the service providing server according to the video playback request.

优选地,所述主控模块,还用于解析所述访问请求,获取所述访问请求的URL或文件后缀;将所述访问请求的URL或文件后缀与所述WAP网关本地保存的视频类列表进行匹配;若所述视频类列表中存在与所述访问请求的URL或文件后缀对应的视频名单,则判断所述访问请求为视频播放请求;否则,为非视频播放请求。Preferably, the main control module is also used for parsing the access request, obtaining the URL or file suffix of the access request; combining the URL or file suffix of the access request with the video category list stored locally by the WAP gateway Matching; if there is a video list corresponding to the URL or file suffix of the access request in the video class list, then it is judged that the access request is a video playback request; otherwise, it is a non-video playback request.

优选地,所述主控模块,还用于当所述访问请求为非视频播放请求时,将所述非视频播放请求转发给所述服务提供服务器;接收所述服务提供服务器返回的响应数据;对所述响应数据进行解析,获取所述响应数据的内容类型;根据所述内容类型,再次判断所述访问请求是否为视频播放请求;若是,则将视频播放请求转发至所述VO视频处理模块,同时断开与所述服务提供服务器的响应链路;否则将所述响应数据转发给所述终端浏览器。Preferably, the main control module is further configured to forward the non-video playback request to the service provider server when the access request is a non-video playback request; receive the response data returned by the service provider server; The response data is analyzed to obtain the content type of the response data; according to the content type, it is judged again whether the access request is a video playback request; if so, the video playback request is forwarded to the VO video processing module , while disconnecting the response link with the service providing server; otherwise, forwarding the response data to the terminal browser.

优选地,所述主控模块,还用于以轮询均衡分发机制将所述视频播放请求转发给所述VO视频处理模块,同时在所述视频播放请求中携带终端的相关属性参数;Preferably, the main control module is further configured to forward the video playback request to the VO video processing module through a round-robin balanced distribution mechanism, and at the same time carry relevant attribute parameters of the terminal in the video playback request;

所述VO视频处理模块,还用于根据所述终端的相关属性参数动态调整信道码流。The VO video processing module is further configured to dynamically adjust the channel code stream according to the relevant attribute parameters of the terminal.

优选地,所述VO视频处理模块对所述视频资源进行处理包括:对所述视频资源进行压缩、转码和/或缓存。Preferably, the processing of the video resource by the VO video processing module includes: compressing, transcoding and/or caching the video resource.

优选地,所述主控模块,还用于根据所述视频播放请求中是否设置视频SP白名单和/或访问文件后缀列表,来转发所述视频播放请求至所述VO视频处理模块。Preferably, the main control module is further configured to forward the video playback request to the VO video processing module according to whether a video SP whitelist and/or an access file suffix list is set in the video playback request.

本发明还提出一种播放视频的系统,包括WAP网关以及均与所述WAP网关连接的终端浏览器和服务提供服务器,其中,所述WAP网关为如上所述的WAP网关。The present invention also proposes a system for playing video, including a WAP gateway, a terminal browser and a service providing server both connected to the WAP gateway, wherein the WAP gateway is the above-mentioned WAP gateway.

本发明提出的一种基于WAP网关的视频播放方法、WAP网关及系统,在WAP网关中增加VO(Video Object,视频对象)视频处理模块对视频资源进行压缩、转码、缓存等处理流程,节约了无线带宽的占用,减少了请求视频服务提供服务器的交互和等待时间,并采用轮询均衡分发请求机制转发视频请求,在无线信道忙时降低码流,闲时增加码流,同时可根据用户终端属性动态调整码流,从而减轻了网关处理负担,增强了用户视频播放体验。A kind of video playing method based on WAP gateway, WAP gateway and system that the present invention proposes, increase VO (Video Object, video object) video processing module in WAP gateway and carry out processing procedures such as compression, transcoding, cache to video resource, save It reduces the occupation of wireless bandwidth, reduces the interaction and waiting time of the requesting video service provider server, and uses the round-robin balanced distribution request mechanism to forward video requests, reduces the bit rate when the wireless channel is busy, and increases the bit rate when the wireless channel is idle. The terminal attribute dynamically adjusts the code stream, thereby reducing the processing burden of the gateway and enhancing the user's video playback experience.

附图说明 Description of drawings

图1是本发明基于WAP网关的视频播放方法一实施例的流程示意图;Fig. 1 is the schematic flow chart of an embodiment of the video playing method based on WAP gateway of the present invention;

图2是本发明基于WAP网关的视频播放方法一实施例中对访问请求进行判断的流程示意图;Fig. 2 is a schematic flow diagram of judging an access request in an embodiment of a video playing method based on a WAP gateway in the present invention;

图3是本发明基于WAP网关的视频播放方法另一实施例的流程示意图;Fig. 3 is the schematic flow chart of another embodiment of the video playing method based on WAP gateway of the present invention;

图4是本发明基于WAP网关的视频播放方法再一实施例的流程示意图;Fig. 4 is the schematic flow chart of another embodiment of the video playing method based on WAP gateway of the present invention;

图5是本发明播放视频的WAP网关一实施例的结构示意图;Fig. 5 is the structural representation of an embodiment of the WAP gateway of playing video of the present invention;

图6是本发明播放视频的系统一实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of a system for playing videos according to the present invention.

为了使本发明的技术方案更加清楚、明了,下面将结合附图作进一步详述。In order to make the technical solution of the present invention clearer and clearer, it will be further described below in conjunction with the accompanying drawings.

具体实施方式 detailed description

本发明实施例的解决方案主要是:WAP网关的主控模块在接收到终端浏览器的访问请求时,对该访问请求进行筛选判断,若为视频播放请求,则转发给WAP网关的VO视频处理模块,从服务提供服务器获取视频资源,并由VO视频处理模块将获取的视频资源进行压缩、解码转换、码流调整、缓存等处理后,再经主控模块发送给终端浏览器,若为非视频播放请求,则由WAP网关的主控模块直接将访问请求转发给服务提供服务器,获取相应的响应数据。The solution of the embodiment of the present invention is mainly: when the main control module of the WAP gateway receives the access request of the terminal browser, the access request is screened and judged, and if it is a video playback request, it is forwarded to the VO video processing of the WAP gateway. module, which obtains video resources from the service provider server, and the VO video processing module compresses, decodes and converts, streams adjusts, and caches the obtained video resources, and then sends them to the terminal browser through the main control module. For a video playback request, the main control module of the WAP gateway directly forwards the access request to the service provider server to obtain corresponding response data.

在终端发起视频播放请求后,WAP网关传统处理方式是将视频资源从视频服务提供服务器下载获取后转发给终端,对于一些较大的、用户频繁访问的视频资源,则造成网络带宽和网关处理负担的增加。After the terminal initiates a video playback request, the traditional processing method of the WAP gateway is to download the video resource from the video service provider server and forward it to the terminal. For some large video resources frequently accessed by users, it will cause network bandwidth and gateway processing burden. increase.

本发明修改了WAP网关处理视频播放请求时纯粹下载的方式,在WAP网关中增加VO视频处理模块对视频资源的压缩、转码、缓存等流程,并引入软件状态下轮询均衡分发请求机制转发视频请求至VO视频处理模块,无线信道忙时降低码流,闲时增加码流,根据用户终端属性动态调整码流,从而增强用户视频播放体验。The present invention modifies the way of pure downloading when the WAP gateway processes the video playback request, adds VO video processing module to the WAP gateway to compress, transcode, cache and other processes of video resources, and introduces the polling and balancing distribution request mechanism forwarding in the software state The video request is sent to the VO video processing module. The bit rate is reduced when the wireless channel is busy, and the bit rate is increased when the wireless channel is idle. The bit rate is dynamically adjusted according to the attributes of the user terminal, thereby enhancing the user's video playback experience.

具体地,如图1所示,本发明一实施例提出一种基于WAP网关的视频播放方法,包括:Specifically, as shown in Figure 1, an embodiment of the present invention proposes a video playback method based on a WAP gateway, including:

步骤S101,WAP网关在接收到终端浏览器的访问请求时,对访问请求进行判断;Step S101, when the WAP gateway receives the access request from the terminal browser, it judges the access request;

本实施例在传统的WAP网关基础上引入了VO视频处理模块,本实施例WAP网关包括主控模块以及VO视频处理模块,所述VO视频处理模块与主控模块基于超文本传输协议(HTTP)进行数据传输。WAP网关通过主控模块接收终端浏览器发送的浏览门户网页、图片或视频等的访问请求,并对访问请求进行筛选判断,判断该访问请求是否为视频播放请求。The present embodiment introduces the VO video processing module on the basis of the traditional WAP gateway. The WAP gateway of the present embodiment includes a main control module and a VO video processing module. The VO video processing module and the main control module are based on the hypertext transfer protocol (HTTP) for data transfer. The WAP gateway receives the access request sent by the terminal browser through the main control module to browse portal web pages, pictures or videos, etc., and screens and judges the access request to determine whether the access request is a video playback request.

主控模块在判断访问请求是否为视频播放请求时,可以根据解析出的访问请求的URL或文件后缀与WAP网关本地保存的视频类列表中的视频名单是否匹配来判断,若匹配,则判断为视频播放请求,否则,为非视频播放请求。When the main control module judges whether the access request is a video playback request, it can judge whether the URL or file suffix of the parsed access request matches the video list in the video class list stored locally by the WAP gateway. If it matches, it is judged as Video playback request, otherwise, it is a non-video playback request.

步骤S102,当访问请求为视频播放请求时,根据视频播放请求从服务提供服务器获取视频资源;Step S102, when the access request is a video play request, obtain video resources from the service providing server according to the video play request;

当WAP网关的主控模块判断终端的访问请求为视频播放请求时,将此视频播放请求转发至VO视频处理模块,其他非视频类请求则可直接转发至服务提供服务器。When the main control module of the WAP gateway judges that the access request of the terminal is a video playback request, it forwards the video playback request to the VO video processing module, and other non-video requests can be directly forwarded to the service provider server.

为了减少网络带宽和防止传输信道流量拥挤,并降低VO视频处理模块的处理负担,主控模块可以将视频播放请求采用轮询方式均衡分发至VO视频处理模块,同时携带终端的视频相关属性参数,比如无线信道资源占用属性、用户终端屏幕尺寸以及帧等属性。In order to reduce the network bandwidth and prevent the traffic congestion of the transmission channel, and reduce the processing burden of the VO video processing module, the main control module can evenly distribute the video playback request to the VO video processing module in a round-robin manner, and at the same time carry the video-related attribute parameters of the terminal, For example, attributes such as wireless channel resource occupancy attributes, user terminal screen size, and frames.

VO视频处理模块将主控模块发来的视频播放请求转发给服务提供服务器,获取视频资源,同时可以通过终端的视频相关属性参数动态调整信道码流,提高视频播放的用户体验。The VO video processing module forwards the video playback request sent by the main control module to the service provider server to obtain video resources. At the same time, it can dynamically adjust the channel code stream through the video-related attribute parameters of the terminal to improve the user experience of video playback.

步骤S103,对视频资源进行处理后,发送给终端浏览器。Step S103, after processing the video resource, send it to the terminal browser.

VO视频处理模块获取到视频资源后,对视频资源进行编解码、码流调整、压缩等处理,对top视频源进行缓存处理,其中,压缩可节约无线带宽的占用、缓存可节约请求视频服务提供服务器的交互和等待时间。After the VO video processing module obtains the video resources, it performs codec, code stream adjustment, compression and other processing on the video resources, and performs cache processing on the top video source. Among them, the compression can save the occupation of wireless bandwidth, and the cache can save the request for video service provision Server interaction and wait times.

之后,VO视频处理模块将处理后视频资源转发给主控模块;主控模块收到VO视频处理模块转发的视频数据后,再将视频数据转发至用户终端浏览器,用户终端即可播放视频。After that, the VO video processing module forwards the processed video resources to the main control module; after receiving the video data forwarded by the VO video processing module, the main control module forwards the video data to the user terminal browser, and the user terminal can play the video.

具体实施过程中,如图2所示,上述步骤S101中对访问请求进行判断的步骤包括:In the specific implementation process, as shown in Figure 2, the steps of judging the access request in the above step S101 include:

步骤S1011,解析访问请求,获取访问请求的URL(Uniform ResourceLocator,统一资源定位符)或文件后缀;Step S1011, analyzing the access request to obtain the URL (Uniform Resource Locator, Uniform Resource Locator) or file suffix of the access request;

步骤S1012,将访问请求的URL或文件后缀与所述WAP网关本地保存的视频类列表进行匹配;Step S1012, matching the URL or file suffix of the access request with the video category list stored locally by the WAP gateway;

步骤S1013,判断视频类列表中是否存在与所述访问请求的URL或文件后缀对应的视频名单,若是,则进入步骤S1014;否则,进入步骤S1015;Step S1013, determine whether there is a video list corresponding to the URL or file suffix of the access request in the video class list, if so, then enter step S1014; otherwise, enter step S1015;

步骤S1014,访问请求为视频播放请求;Step S1014, the access request is a video playback request;

步骤S1015,访问请求为非视频播放请求。Step S1015, the access request is not a video playback request.

本实施例在传统的WAP网关基础上引入了VO视频处理模块,VO视频处理模块从视频服务提供服务器获取视频资源,经过压缩、缓存、转码等操作后返回给WAP网关的主控模块,主控模块将视频数据转发给用户终端,减少了终端侧占用的无线带宽、服务提供商侧的网络带宽,以及WAP网关与服务提供商之间的交互次数和等待时间,有效增强了用户体验感受;同时主控模块会根据无线信道资源占用程度、用户终端屏幕尺寸、帧等属性,通知VO视频处理模块动态调整码流,大大提高了视频播放的用户体验以及带宽的节约。This embodiment introduces a VO video processing module on the basis of the traditional WAP gateway. The VO video processing module obtains video resources from the video service provider server, and returns to the main control module of the WAP gateway after operations such as compression, caching, and transcoding. The control module forwards the video data to the user terminal, which reduces the wireless bandwidth occupied by the terminal side, the network bandwidth on the service provider side, and the number of interactions and waiting time between the WAP gateway and the service provider, effectively enhancing the user experience; At the same time, the main control module will notify the VO video processing module to dynamically adjust the code stream according to the wireless channel resource occupation degree, user terminal screen size, frame and other attributes, which greatly improves the user experience of video playback and saves bandwidth.

如图3所示,本发明另一实施例提出一种基于WAP网关的视频播放方法,在上述实施例的基础上,在上述步骤S101之后还包括:As shown in Figure 3, another embodiment of the present invention proposes a video playback method based on a WAP gateway. On the basis of the above-mentioned embodiment, after the above-mentioned step S101, it also includes:

步骤S104,当访问请求为非视频播放请求时,将非视频播放请求转发给服务提供服务器;Step S104, when the access request is a non-video playback request, forward the non-video playback request to the service providing server;

步骤S105,接收服务提供服务器返回的响应数据;Step S105, receiving the response data returned by the service providing server;

步骤S106,对响应数据进行解析,获取响应数据的内容类型;Step S106, analyzing the response data to obtain the content type of the response data;

步骤S107,根据内容类型,再次判断访问请求是否为视频播放请求;若是,则进入步骤步骤S102,同时断开与服务提供服务器的响应链路;否则,进入步骤S108;Step S107, according to the content type, judge again whether the access request is a video playback request; if so, enter step S102, and disconnect the response link with the service providing server at the same time; otherwise, enter step S108;

步骤S108,将响应数据转发给终端浏览器。Step S108, forwarding the response data to the terminal browser.

本实施例与上述实施例的区别在于,本实施例在WAP网关的主控模块判断终端浏览器发来的访问请求为非视频播放请求时,在收到服务提供服务器返回的响应数据后,根据响应数据再次判断访问请求是否视频播放请求。The difference between this embodiment and the above-mentioned embodiment is that in this embodiment, when the main control module of the WAP gateway judges that the access request sent by the terminal browser is a non-video playback request, after receiving the response data returned by the service provider server, according to The response data judges again whether the access request is a video playback request.

具体地,针对部分仅仅通过URL视频名单、视频文件后缀不能判断是否为视频类请求时,则根据服务提供服务器返回给终端的响应数据,解析出响应数据的内容类型(content-type),根据响应数据的内容类型判断终端的访问请求是否为视频类服务请求,即是否匹配WAP网关视频类content-type列表,若匹配,则再次将此视频播放请求转至VO视频处理模块,同时断开之前与服务提供服务器的响应链路,以节约带宽、减少资源占用;若不匹配,则直接将服务提供服务器返回的响应数据转发给终端浏览器。Specifically, when it is not possible to judge whether it is a video request only through the URL video list and video file suffix, the content type (content-type) of the response data is parsed out according to the response data returned by the service provider server to the terminal, and according to the response The content type of the data judges whether the access request of the terminal is a video service request, that is, whether it matches the video content-type list of the WAP gateway. The response link of the service provider server to save bandwidth and reduce resource occupation; if there is no match, the response data returned by the service provider server is directly forwarded to the terminal browser.

本实施例WAP网关的主控模块与VO视频处理模块基于HTTP协议通信,将传统的浏览器下载式的视频播放请求更改为VO进行缓存、压缩等操作,减少了终端侧占用的无线带宽以及服务提供商侧的网络带宽,并增加了WAP网关主控模块与VO视频处理模块交互功能,增加了压缩、码流调整、编解码,减少了WAP网关与服务提供商之间的交互次数和等待时间,有效增强了用户体验感受;同时,针对部分仅仅通过URL视频名单、视频文件后缀不能判断是否为视频类请求的情形,则根据服务提供服务器返回给终端的响应数据,再次判断终端的访问请求是否为视频类服务请求,提高了系统的整体性能,进一步提高了用户的体验效果。The main control module of the WAP gateway in this embodiment communicates with the VO video processing module based on the HTTP protocol, and changes the traditional browser download video playback request to VO for caching, compression and other operations, reducing the wireless bandwidth occupied by the terminal side and the service Provider-side network bandwidth, and increase the interactive function between WAP gateway main control module and VO video processing module, increase compression, code stream adjustment, codec, reduce the number of interactions and waiting time between WAP gateway and service provider , which effectively enhances the user experience; at the same time, for some situations where it is not possible to judge whether it is a video request only through the URL video list and video file suffix, it is judged again whether the terminal’s access request is based on the response data returned to the terminal by the service provider server. Serving requests for videos improves the overall performance of the system and further improves the user experience.

如图4所示,本发明再一实施例提出一种基于WAP网关的视频播放方法,在上述第一实施例的基础上,在上述步骤S101之后还包括:As shown in Figure 4, another embodiment of the present invention proposes a video playback method based on a WAP gateway. On the basis of the above-mentioned first embodiment, after the above-mentioned step S101, it also includes:

步骤S109,当访问请求为视频播放请求时,判断视频播放请求是否对应有本地的缓存视频资源;若是,则进入步骤S110;否则进入步骤S102;Step S109, when the access request is a video playback request, determine whether the video playback request corresponds to a local cached video resource; if so, proceed to step S110; otherwise, proceed to step S102;

步骤S110,将缓存视频资源发送给终端浏览器。Step S110, sending the cached video resource to the terminal browser.

本实施例与上述第一实施例的区别在于,本实施例中VO视频处理模块在转发视频播放请求至服务提供服务器之前,需要判断该视频播放请求所请求的视频内容是否在本地已有缓存。The difference between this embodiment and the above-mentioned first embodiment is that in this embodiment, the VO video processing module needs to determine whether the video content requested by the video playback request has been cached locally before forwarding the video playback request to the service provider server.

如果该视频播放请求所请求的视频内容为已缓存的内容,则VO视频处理模块返回缓存内容至主控模块,再由主控模块将缓存内容转发至终端浏览器;若为未缓存,则VO视频处理模块从服务提供服务器获取视频资源,进行压缩、转码、缓存等操作,同时将压缩或转码后的数据经主控模块转发至终端。If the video content requested by the video playback request is cached content, the VO video processing module returns the cached content to the main control module, and then the main control module forwards the cached content to the terminal browser; if it is not cached, the VO The video processing module obtains video resources from the service provider server, performs operations such as compression, transcoding, and caching, and forwards the compressed or transcoded data to the terminal through the main control module.

此外,基于本实施例的上述方案的扩展,还可以由WAP网关的主控模块增加视频SP白名单,比如www.youku.com,主控模块针对白名单中的SP,将视频播放请求转发至VO视频处理模块;或者WAP网关的主控模块增加访问文件后缀列表,比如flv、mp4等,针对文件后缀列表的视频播放请求才转发至VO视频处理模块。In addition, based on the expansion of the above-mentioned solution of this embodiment, the video SP whitelist can also be added by the main control module of the WAP gateway, such as www.youku.com, and the main control module forwards the video playback request to the SP in the white list. The VO video processing module; or the main control module of the WAP gateway increases the access file suffix list, such as flv, mp4, etc., and the video playback request for the file suffix list is forwarded to the VO video processing module.

相比现有技术,WAP网关在收到终端发起的视频播放请求时,将视频资源从视频服务提供商下载获取后转发给终端,对于一些较大的、用户频繁访问的视频资源,造成网络带宽和网关处理负担的增加的弊端,本实施例修改了WAP网关处理视频播放请求时纯粹下载的方式,增加VO视频处理模块对视频资源的压缩、转码、缓存等流程,并引入软件状态下轮询均衡分发请求机制转发视频请求至VO视频处理模块、无线信道忙时降低码流、闲时增加码流、根据用户终端属性动态调整码流,从而增强用户视频播放体验;同时,对于已有缓存的视频资源,则直接根据视频播放请求将缓存资源转发给终端浏览器,无需向服务提供服务器请求获取,从而减少了数据传输时间,进一步增强了用户视频播放体验。Compared with the existing technology, when the WAP gateway receives the video playback request initiated by the terminal, it downloads the video resource from the video service provider and forwards it to the terminal. For some large video resources frequently accessed by users, the network bandwidth is greatly reduced. And the disadvantage of the increase of the gateway processing burden, this embodiment has modified the pure download mode when the WAP gateway handles the video playback request, increases the processes such as compression, transcoding, and buffering of video resources by the VO video processing module, and introduces the next round of software status The query balance distribution request mechanism forwards the video request to the VO video processing module, reduces the bit rate when the wireless channel is busy, increases the bit rate when the wireless channel is idle, and dynamically adjusts the bit rate according to the user terminal attributes, thereby enhancing the user's video playback experience; at the same time, for the existing cache video resources, the cached resources are directly forwarded to the terminal browser according to the video playback request, without requesting the service provider server, thereby reducing the data transmission time and further enhancing the user's video playback experience.

如图5所示,本发明还提出一种播放视频的WAP网关,包括:主控模块501和VO视频处理模块502,其中:As shown in Figure 5, the present invention also proposes a WAP gateway for playing videos, including: a main control module 501 and a VO video processing module 502, wherein:

所述主控模块501,用于在接收到终端浏览器的访问请求时,对所述访问请求进行判断;当所述访问请求为视频播放请求时,将所述视频播放请求转发给所述VO视频处理模块502;以及将所述VO视频处理模块502返回的视频资源转发给所述终端浏览器;The main control module 501 is configured to, when receiving an access request from a terminal browser, judge the access request; when the access request is a video playback request, forward the video playback request to the VO A video processing module 502; and forwarding the video resource returned by the VO video processing module 502 to the terminal browser;

所述VO视频处理模块502,用于当所述访问请求为视频播放请求时,根据所述视频播放请求从服务提供服务器获取视频资源,并对所述视频资源进行处理后,发送给所述主控模块501。The VO video processing module 502 is configured to obtain a video resource from a service provider server according to the video play request when the access request is a video play request, process the video resource, and send it to the host control module 501.

所述主控模块501,还用于当所述访问请求为非视频播放请求时,将所述非视频播放请求转发给所述服务提供服务器;接收所述服务提供服务器返回的响应数据;对所述响应数据进行解析,获取所述响应数据的内容类型;根据所述内容类型,再次判断所述访问请求是否为视频播放请求;若是,则将视频播放请求转发至所述VO视频处理模块502,同时断开与所述服务提供服务器的响应链路;否则将所述响应数据转发给所述终端浏览器。The main control module 501 is further configured to forward the non-video playback request to the service provider server when the access request is a non-video playback request; receive the response data returned by the service provider server; The response data is analyzed to obtain the content type of the response data; according to the content type, it is judged again whether the access request is a video playback request; if so, the video playback request is forwarded to the VO video processing module 502, At the same time disconnect the response link with the service providing server; otherwise, forward the response data to the terminal browser.

本实施例在传统的WAP网关基础上引入了VO视频处理模块502,所述VO视频处理模块502与主控模块501基于超文本传输协议进行数据传输。WAP网关通过主控模块501接收终端浏览器发送的浏览门户网页、图片或视频等的访问请求,并对访问请求进行筛选判断,判断该访问请求是否为视频播放请求。This embodiment introduces a VO video processing module 502 on the basis of the traditional WAP gateway, and the VO video processing module 502 and the main control module 501 perform data transmission based on the hypertext transfer protocol. The WAP gateway receives the access request sent by the terminal browser through the main control module 501 to browse portal pages, pictures or videos, and screens and judges the access request to determine whether the access request is a video playback request.

主控模块501在判断访问请求是否为视频播放请求时,可以根据解析出的访问请求的URL或文件后缀与WAP网关本地保存的视频类列表中的视频名单是否匹配来判断,若匹配,则判断为视频播放请求,否则,为非视频播放请求。When judging whether the access request is a video playback request, the main control module 501 can judge whether the URL or file suffix of the parsed access request matches the video list in the video class list stored locally by the WAP gateway, and if it matches, then judge It is a video playback request, otherwise, it is a non-video playback request.

当WAP网关的主控模块501判断终端的访问请求为视频播放请求时,将此视频播放请求转发至VO视频处理模块502,其他非视频类请求则可直接转发至服务提供服务器。When the main control module 501 of the WAP gateway determines that the terminal's access request is a video playback request, it forwards the video playback request to the VO video processing module 502, and other non-video requests can be directly forwarded to the service provider server.

为了减少网络带宽和防止传输信道流量拥挤,并降低VO视频处理模块502的处理负担,主控模块501可以将视频播放请求采用轮询方式均衡分发至VO视频处理模块502,同时携带终端的视频相关属性参数,比如无线信道资源占用属性、用户终端屏幕尺寸以及帧等属性。In order to reduce the network bandwidth and prevent the traffic congestion of the transmission channel, and reduce the processing burden of the VO video processing module 502, the main control module 501 can evenly distribute the video playback requests to the VO video processing module 502 in a round-robin manner, and at the same time carry the video related information of the terminal. Attribute parameters, such as wireless channel resource occupancy attributes, user terminal screen size, and frame attributes.

VO视频处理模块502将主控模块501发来的视频播放请求转发给服务提供服务器,获取视频资源,同时可以通过终端的视频相关属性参数动态调整信道码流,提高视频播放的用户体验。The VO video processing module 502 forwards the video playback request sent by the main control module 501 to the service provider server to obtain video resources. At the same time, it can dynamically adjust the channel code stream through the video-related attribute parameters of the terminal to improve the user experience of video playback.

VO视频处理模块502获取到视频资源后,对视频资源进行编解码、码流调整、压缩等处理,对top视频源进行缓存处理,其中,压缩可节约无线带宽的占用、缓存可节约请求视频服务提供服务器的交互和等待时间。After the VO video processing module 502 acquires the video resource, it performs codec, code stream adjustment, compression and other processing on the video resource, and performs cache processing on the top video source, wherein the compression can save the occupation of wireless bandwidth, and the cache can save the request video service Provides server interaction and wait times.

之后,VO视频处理模块502将处理后视频资源转发给主控模块501;主控模块501收到VO视频处理模块502转发的视频数据后,再将视频数据转发至用户终端浏览器,用户终端即可播放视频。Afterwards, the VO video processing module 502 forwards the processed video resources to the main control module 501; after the main control module 501 receives the video data forwarded by the VO video processing module 502, it forwards the video data to the user terminal browser, and the user terminal immediately Video can be played.

进一步的,本实施例在WAP网关的主控模块501判断终端浏览器发来的访问请求为非视频播放请求时,在收到服务提供服务器返回的响应数据后,根据响应数据再次判断访问请求是否视频播放请求。Further, in this embodiment, when the main control module 501 of the WAP gateway judges that the access request sent by the terminal browser is a non-video playback request, after receiving the response data returned by the service provider server, it is judged again according to the response data whether the access request is Video playback request.

具体地,针对部分仅仅通过URL视频名单、视频文件后缀不能判断是否为视频类请求时,则根据服务提供服务器返回给终端的响应数据,解析出响应数据的内容类型(content-type),根据响应数据的内容类型判断终端的访问请求是否为视频类服务请求,即是否匹配WAP网关视频类content-type列表,若匹配,则再次将此视频播放请求转至VO视频处理模块502,同时断开之前与服务提供服务器的响应链路,以节约带宽、减少资源占用;若不匹配,则直接将服务提供服务器返回的响应数据转发给终端浏览器。Specifically, when it is not possible to judge whether it is a video request only through the URL video list and video file suffix, the content type (content-type) of the response data is parsed out according to the response data returned by the service provider server to the terminal, and according to the response The content type of the data judges whether the access request of the terminal is a video class service request, that is, whether it matches the WAP gateway video class content-type list, and if it matches, the video playback request is forwarded to the VO video processing module 502 again, and the before disconnection The response link with the service provider server to save bandwidth and reduce resource occupation; if there is no match, the response data returned by the service provider server will be directly forwarded to the terminal browser.

进一步的,所述VO视频处理模块502,还用于当所述访问请求为视频播放请求时,判断所述视频播放请求是否对应有本地的缓存视频资源;若是,则将所述缓存视频资源通过所述主控模块501转发给所述终端浏览器;否则根据所述视频播放请求从服务提供服务器获取视频资源。Further, the VO video processing module 502 is also used to determine whether the video playback request corresponds to a local cached video resource when the access request is a video playback request; if so, pass the cached video resource through The main control module 501 forwards it to the terminal browser; otherwise, the video resource is obtained from the service provider server according to the video playback request.

具体地,VO视频处理模块502在转发视频播放请求至服务提供服务器之前,需要判断该视频播放请求所请求的视频内容是否在本地已有缓存。Specifically, before the VO video processing module 502 forwards the video play request to the service providing server, it needs to determine whether the video content requested by the video play request has been cached locally.

如果该视频播放请求所请求的视频内容为已缓存的内容,则VO视频处理模块502返回缓存内容至主控模块501,再由主控模块501将缓存内容转发至终端浏览器;若为未缓存,则VO视频处理模块502从服务提供服务器获取视频资源,进行压缩、转码、缓存等操作,同时将压缩或转码后的数据经主控模块501转发至终端。If the requested video content of the video playback request is cached content, then the VO video processing module 502 returns the cached content to the main control module 501, and then the main control module 501 forwards the cached content to the terminal browser; if it is not cached , the VO video processing module 502 obtains video resources from the service provider server, performs operations such as compression, transcoding, and caching, and simultaneously forwards the compressed or transcoded data to the terminal through the main control module 501.

此外,基于本实施例的上述方案的扩展,还可以由WAP网关的主控模块501增加视频SP白名单,比如www.youku.com,主控模块501针对白名单中的SP,将视频播放请求转发至VO视频处理模块502;或者WAP网关的主控模块501增加访问文件后缀列表,比如flv、mp4等,针对文件后缀列表的视频播放请求才转发至VO视频处理模块502。In addition, based on the expansion of the above-mentioned solution of this embodiment, the main control module 501 of the WAP gateway can also add a video SP whitelist, such as www.youku.com, and the main control module 501 will send the video playback request to the SP in the whitelist. Forward to the VO video processing module 502; or the main control module 501 of the WAP gateway increases the access file suffix list, such as flv, mp4, etc., and the video playback request for the file suffix list is forwarded to the VO video processing module 502.

相比现有技术,WAP网关在收到终端发起的视频播放请求时,将视频资源从视频服务提供商下载获取后转发给终端,对于一些较大的、用户频繁访问的视频资源,造成网络带宽和网关处理负担的增加的弊端,本实施例修改了WAP网关处理视频播放请求时纯粹下载的方式,增加VO视频处理模块502对视频资源的压缩、转码、缓存等流程,并引入软件状态下轮询均衡分发请求机制转发视频请求至VO视频处理模块502、无线信道忙时降低码流、闲时增加码流、根据用户终端属性动态调整码流,从而增强用户视频播放体验;同时,对于已有缓存的视频资源,则直接根据视频播放请求将缓存资源转发给终端浏览器,无需向服务提供服务器请求获取,从而减少了数据传输时间,进一步增强了用户视频播放体验。Compared with the existing technology, when the WAP gateway receives the video playback request initiated by the terminal, it downloads the video resource from the video service provider and forwards it to the terminal. For some large video resources frequently accessed by users, the network bandwidth is greatly reduced. And the disadvantage of the increase of the gateway processing burden, this embodiment has modified the pure download mode when the WAP gateway handles the video playback request, increases the VO video processing module 502 to processes such as compression, transcoding, and buffering of video resources, and introduces The round-robin balanced distribution request mechanism forwards the video request to the VO video processing module 502, reduces the bit rate when the wireless channel is busy, increases the bit rate when the wireless channel is idle, and dynamically adjusts the bit rate according to the attributes of the user terminal, thereby enhancing the user's video playback experience; If there are cached video resources, the cached resources are directly forwarded to the terminal browser according to the video playback request, without requesting the service provider server, thereby reducing the data transmission time and further enhancing the user's video playback experience.

如图6所示,本发明还提出一种播放视频的系统,包括WAP网关601以及均与所述WAP网关601连接的终端浏览器600和服务提供服务器602,其中,所述WAP网关601与终端浏览器600和服务提供服务器602之间进行交互实现视频播放的原理请参照上述各实施例,在此不再赘述。As shown in Figure 6, the present invention also proposes a system for playing video, including a WAP gateway 601 and a terminal browser 600 and a service providing server 602 that are all connected to the WAP gateway 601, wherein the WAP gateway 601 and the terminal Please refer to the foregoing embodiments for the principle of interaction between the browser 600 and the service providing server 602 to realize video playback, and details are not repeated here.

本发明实施例基于WAP网关的视频播放方法、WAP网关及系统,WAP网关的主控模块与VO视频处理模块基于HTTP协议通信,将传统的浏览器下载式的视频播放请求更改为VO进行缓存、压缩等操作,减少了终端侧占用的无线带宽以及服务提供商侧的网络带宽。并增加了WAP网关主控模块与VO视频处理模块交互功能,增加了压缩、码流调整、编解码,并对top视频资源缓存操作,减少了WAP网关与服务提供商之间的交互次数和等待时间,有效增强了用户体验感受。The embodiment of the present invention is based on the video playback method of the WAP gateway, the WAP gateway and the system, the main control module of the WAP gateway and the VO video processing module communicate based on the HTTP protocol, and the traditional browser download type video playback request is changed to VO for caching, Operations such as compression reduce the wireless bandwidth occupied by the terminal side and the network bandwidth occupied by the service provider side. And increase the interactive function between WAP gateway main control module and VO video processing module, increase compression, code stream adjustment, codec, and cache operation of top video resources, reduce the number of interactions and waiting between WAP gateway and service provider time, effectively enhancing the user experience.

以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (13)

1.一种基于无线应用协议WAP网关的视频播放方法,其特征在于,包括:1. A video playing method based on a wireless application protocol WAP gateway, characterized in that, comprising: WAP网关在接收到终端浏览器的访问请求时,对所述访问请求进行判断;When the WAP gateway receives the access request of the terminal browser, it judges the access request; 当所述访问请求为视频播放请求时,根据所述视频播放请求从服务提供服务器获取视频资源;When the access request is a video play request, obtain video resources from a service providing server according to the video play request; 对所述视频资源进行处理后,发送给所述终端浏览器;After processing the video resource, send it to the terminal browser; 所述对访问请求进行判断的步骤之后还包括:After the step of judging the access request, it also includes: 当所述访问请求为非视频播放请求时,将所述非视频播放请求转发给所述服务提供服务器;When the access request is a non-video playback request, forwarding the non-video playback request to the service providing server; 接收所述服务提供服务器返回的响应数据;receiving the response data returned by the service providing server; 对所述响应数据进行解析,获取所述响应数据的内容类型;Analyzing the response data to obtain the content type of the response data; 根据所述内容类型,再次判断所述访问请求是否为视频播放请求;若是,则返回根据所述视频播放请求从服务提供服务器获取视频资源的步骤,同时断开与所述服务提供服务器的响应链路;否则According to the content type, judge again whether the access request is a video playback request; if so, return to the step of obtaining video resources from the service provider server according to the video playback request, and disconnect the response chain with the service provider server at the same time road; otherwise 将所述响应数据转发给所述终端浏览器。Forwarding the response data to the terminal browser. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 当所述访问请求为视频播放请求时,判断所述视频播放请求是否对应有本地的缓存视频资源;若是,则When the access request is a video playback request, determine whether the video playback request corresponds to a local cached video resource; if so, then 将所述缓存视频资源发送给所述终端浏览器;否则Send the cached video resource to the terminal browser; otherwise 执行根据所述视频播放请求从服务提供服务器获取视频资源的步骤。Execute the step of acquiring video resources from the service providing server according to the video playing request. 3.根据权利要求1所述的方法,其特征在于,所述对访问请求进行判断的步骤包括:3. The method according to claim 1, wherein the step of judging the access request comprises: 解析所述访问请求,获取所述访问请求的统一资源定位符URL或文件后缀;Analyzing the access request to obtain the Uniform Resource Locator URL or file suffix of the access request; 将所述访问请求的URL或文件后缀与所述WAP网关本地保存的视频类列表进行匹配;Matching the URL or file suffix of the access request with the video class list locally stored by the WAP gateway; 若所述视频类列表中存在与所述访问请求的URL或文件后缀对应的视频名单,则判断所述访问请求为视频播放请求;否则,为非视频播放请求。If there is a video list corresponding to the URL or file suffix of the access request in the video category list, it is judged that the access request is a video playback request; otherwise, it is a non-video playback request. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述WAP网关对所述视频资源进行处理包括:对所述视频资源进行压缩、转码和/或缓存。4. The method according to any one of claims 1-3, wherein the WAP gateway processing the video resource comprises: compressing, transcoding and/or caching the video resource. 5.根据权利要求4所述的方法,其特征在于,所述WAP网关根据所述视频播放请求从服务提供服务器获取视频资源的步骤具体包括:5. The method according to claim 4, wherein said WAP gateway obtains a video resource from a service provider server according to said video playback request and specifically comprises: 所述WAP网关采用轮询方式均衡分发所述视频播放请求,从服务提供服务器获取视频资源。The WAP gateway evenly distributes the video playback requests in a polling manner, and acquires video resources from the service providing server. 6.根据权利要求5所述的方法,其特征在于,还包括:6. The method according to claim 5, further comprising: 根据无线信道资源占用属性、用户终端属性和/或帧属性,动态调整信道码流。According to the wireless channel resource occupancy attributes, user terminal attributes and/or frame attributes, the channel code stream is dynamically adjusted. 7.一种播放视频的WAP网关,其特征在于,包括:主控模块和视频优化VO视频处理模块,其中:7. A WAP gateway for playing video, comprising: a master control module and a video optimization VO video processing module, wherein: 所述主控模块,用于在接收到终端浏览器的访问请求时,对所述访问请求进行判断;当所述访问请求为视频播放请求时,将所述视频播放请求转发给所述VO视频处理模块;以及将所述VO视频处理模块返回的视频资源转发给所述终端浏览器;The main control module is configured to judge the access request when receiving the access request from the terminal browser; when the access request is a video playback request, forward the video playback request to the VO video processing module; and forwarding the video resource returned by the VO video processing module to the terminal browser; 所述VO视频处理模块,用于当所述访问请求为视频播放请求时,根据所述视频播放请求从服务提供服务器获取视频资源,并对所述视频资源进行处理后,发送给所述主控模块;The VO video processing module is configured to obtain a video resource from a service provider server according to the video playback request when the access request is a video playback request, process the video resource, and send it to the main controller module; 所述主控模块,还用于当所述访问请求为非视频播放请求时,将所述非视频播放请求转发给所述服务提供服务器;接收所述服务提供服务器返回的响应数据;对所述响应数据进行解析,获取所述响应数据的内容类型;根据所述内容类型,再次判断所述访问请求是否为视频播放请求;若是,则将视频播放请求转发至所述VO视频处理模块,同时断开与所述服务提供服务器的响应链路;否则将所述响应数据转发给所述终端浏览器。The main control module is further configured to forward the non-video playback request to the service provider server when the access request is a non-video playback request; receive the response data returned by the service provider server; Response data is parsed to obtain the content type of the response data; according to the content type, judge whether the access request is a video playback request again; if so, forward the video playback request to the VO video processing module, and disconnect Open a response link with the service providing server; otherwise forward the response data to the terminal browser. 8.根据权利要求7所述的WAP网关,其特征在于,8. The WAP gateway according to claim 7, characterized in that, 所述VO视频处理模块,还用于当所述访问请求为视频播放请求时,判断所述视频播放请求是否对应有本地的缓存视频资源;若是,则将所述缓存视频资源通过所述主控模块转发给所述终端浏览器;否则根据所述视频播放请求从服务提供服务器获取视频资源。The VO video processing module is also used to determine whether the video playback request corresponds to a local cached video resource when the access request is a video playback request; if so, pass the cached video resource through the main control The module is forwarded to the terminal browser; otherwise, the video resource is obtained from the service provider server according to the video playback request. 9.根据权利要求7所述的WAP网关,其特征在于,9. WAP gateway according to claim 7, is characterized in that, 所述主控模块,还用于解析所述访问请求,获取所述访问请求的URL或文件后缀;将所述访问请求的URL或文件后缀与所述WAP网关本地保存的视频类列表进行匹配;若所述视频类列表中存在与所述访问请求的URL或文件后缀对应的视频名单,则判断所述访问请求为视频播放请求;否则,为非视频播放请求。The main control module is also used for parsing the access request, obtaining the URL or file suffix of the access request; matching the URL or file suffix of the access request with the video class list locally stored by the WAP gateway; If there is a video list corresponding to the URL or file suffix of the access request in the video category list, it is judged that the access request is a video playback request; otherwise, it is a non-video playback request. 10.根据权利要求7所述的WAP网关,其特征在于,10. WAP gateway according to claim 7, is characterized in that, 所述主控模块,还用于以轮询均衡分发机制将所述视频播放请求转发给所述VO视频处理模块,同时在所述视频播放请求中携带终端的相关属性参数;The main control module is further configured to forward the video playback request to the VO video processing module through a round-robin balanced distribution mechanism, and at the same time carry relevant attribute parameters of the terminal in the video playback request; 所述VO视频处理模块,还用于根据所述终端的相关属性参数动态调整信道码流。The VO video processing module is further configured to dynamically adjust the channel code stream according to the relevant attribute parameters of the terminal. 11.根据权利要求7-10中任一项的所述WAP网关,其特征在于,11. The WAP gateway according to any one of claims 7-10, characterized in that, 所述VO视频处理模块对所述视频资源进行处理包括:对所述视频资源进行压缩、转码和/或缓存。The processing of the video resource by the VO video processing module includes: compressing, transcoding and/or caching the video resource. 12.根据权利要求11所述的WAP网关,其特征在于,12. The WAP gateway according to claim 11, characterized in that, 所述主控模块,还用于根据所述视频播放请求中是否设置视频服务提供商SP白名单和/或访问文件后缀列表,来转发所述视频播放请求至所述VO视频处理模块。The main control module is further configured to forward the video playback request to the VO video processing module according to whether a video service provider SP whitelist and/or an access file suffix list are set in the video playback request. 13.一种播放视频的系统,其特征在于,包括WAP网关以及均与所述WAP网关连接的终端浏览器和服务提供服务器,其中,所述WAP网关为权利要求7-12中任一项所述的WAP网关。13. A system for playing video, characterized in that it comprises a WAP gateway and a terminal browser and a service providing server that are all connected to the WAP gateway, wherein the WAP gateway is any one of claims 7-12 The WAP gateway described above.
CN201210112113.1A 2012-04-17 2012-04-17 Video broadcasting method based on WAP gateway, WAP gateway and system Expired - Fee Related CN103379381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210112113.1A CN103379381B (en) 2012-04-17 2012-04-17 Video broadcasting method based on WAP gateway, WAP gateway and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210112113.1A CN103379381B (en) 2012-04-17 2012-04-17 Video broadcasting method based on WAP gateway, WAP gateway and system

Publications (2)

Publication Number Publication Date
CN103379381A CN103379381A (en) 2013-10-30
CN103379381B true CN103379381B (en) 2016-12-14

Family

ID=49463865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210112113.1A Expired - Fee Related CN103379381B (en) 2012-04-17 2012-04-17 Video broadcasting method based on WAP gateway, WAP gateway and system

Country Status (1)

Country Link
CN (1) CN103379381B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015066911A1 (en) * 2013-11-11 2015-05-14 华为技术有限公司 Method and device for sending information
CN104601535B (en) * 2014-05-08 2017-12-15 腾讯科技(深圳)有限公司 Method for processing video frequency and system
CN106293929B (en) * 2015-06-11 2020-10-27 联想(北京)有限公司 Data processing method and first electronic device
CN108322809A (en) * 2017-01-16 2018-07-24 北京视联动力国际信息技术有限公司 The method and system that control video file plays under depending on networking under a kind of internet
CN107276901A (en) * 2017-05-27 2017-10-20 上海斐讯数据通信技术有限公司 The system and method and wireless router and terminal of integration application
CN107248989B (en) * 2017-06-09 2020-01-14 浙江宇视科技有限公司 Monitoring video processing method and device
CN109089175B (en) * 2017-06-14 2022-04-22 中兴通讯股份有限公司 Video cache acceleration method and device
CN109547824B (en) * 2018-11-27 2020-09-15 亦非云互联网技术(上海)有限公司 Video service method and system, storage medium and VPN server
CN109600662A (en) * 2018-11-27 2019-04-09 成都品果科技有限公司 A kind of video broadcasting method and system
CN111225243B (en) * 2020-01-20 2021-02-02 中南大学 A video block scheduling method and system
CN113259771B (en) * 2020-02-12 2022-08-26 北京达佳互联信息技术有限公司 Video playing method, device, system, electronic equipment and storage medium
CN111432231B (en) * 2020-04-26 2023-04-07 中移(杭州)信息技术有限公司 Content scheduling method of edge network, home gateway, system and server
CN111970573A (en) * 2020-07-27 2020-11-20 西安万像电子科技有限公司 Cloud game method and system
CN113747213A (en) * 2021-09-06 2021-12-03 合肥润东通信科技股份有限公司 System and method for realizing high-efficiency forwarding of DVB (digital video broadcasting) video based on coaxial gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006028419A1 (en) * 2004-09-07 2006-03-16 Mei Kwang Kevin Chia Method and system for controlling information access from a website via web or wap access
CN1992603A (en) * 2005-12-30 2007-07-04 萧学文 Method and system for implementing data-transmission under wireless network environment
CN101056321A (en) * 2007-05-29 2007-10-17 中兴通讯股份有限公司 A method for improving the performance of the radio application protocol gateway
WO2010040292A1 (en) * 2008-10-10 2010-04-15 华为技术有限公司 Multimedia messaging service realizing method and communication system and multimedia message router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006028419A1 (en) * 2004-09-07 2006-03-16 Mei Kwang Kevin Chia Method and system for controlling information access from a website via web or wap access
CN1992603A (en) * 2005-12-30 2007-07-04 萧学文 Method and system for implementing data-transmission under wireless network environment
CN101056321A (en) * 2007-05-29 2007-10-17 中兴通讯股份有限公司 A method for improving the performance of the radio application protocol gateway
WO2010040292A1 (en) * 2008-10-10 2010-04-15 华为技术有限公司 Multimedia messaging service realizing method and communication system and multimedia message router

Also Published As

Publication number Publication date
CN103379381A (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN103379381B (en) Video broadcasting method based on WAP gateway, WAP gateway and system
JP6944485B2 (en) Requests for multiple chunks to a network node based on a single request message
US8670456B2 (en) Method and system for transparently transcoding a multicast stream
KR100324974B1 (en) Internet convolution audio/video server
CN104796796B (en) Improve the fault-tolerant method of the HLS streaming players of Android platform
CN102055718B (en) Method, device and system for layering request content in http streaming system
WO2011088640A1 (en) Method for mobile terminal to browse multimedia resource and corresponding system and communication system
US8656443B2 (en) Method and system for providing dynamic time slice encoding for complete internet anywhere
JP2005057771A (en) Multimedia data processing apparatus and method for home media gateway with improved thin client system
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
US20110162027A1 (en) Method and system for utilizing switched digital video (sdv) for delivering dynamically encoded video content
CN112543357A (en) Streaming media data transmission method based on DASH protocol
CN117596232A (en) Method, device and system for fast starting streaming media
CN113891176B (en) HLS-based on-demand flow control method, device, equipment and storage medium
EP3039636A1 (en) Generating frame chunking for video fast starts
CN107615774A (en) Receiving device, sending device and data processing method
KR20160102683A (en) Proxy server for cloud streaming service, cloud streaming system and method using the same
KR20160097957A (en) Cloud computing system using cache and method using the same
US11392643B2 (en) Validation of documents against specifications for delivery of creatives on a video delivery system
CN111355979B (en) Online audio rapid playing method
KR101087599B1 (en) Transmission Control Method for Hypertext Transfer Protocol Streaming Video Service
KR102050736B1 (en) Cloud streaming system and apparatus for caching date in the system
CN105359485B (en) Method for obtaining content part of multimedia content by client terminal
JP5627413B2 (en) Broadcast receiving apparatus and broadcast receiving system
CN101465861B (en) Systems, methods and computer programming products for transmitting and/or receiving media streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161214

CF01 Termination of patent right due to non-payment of annual fee