Video-on-demand method, network equipment and terminal

文档序号:1173043 发布日期:2020-09-18 浏览:7次 中文

阅读说明:本技术 视频点播方法、网络设备和终端 (Video-on-demand method, network equipment and terminal ) 是由 李晖 贾宝军 邢雨桐 于 2020-06-16 设计创作,主要内容包括:本发明实施例提供一种视频点播方法、网络设备和终端,涉及通信领域,用于点播视频,节省终端的内存资源。该方法包括:终端向网络设备发送邀请INVITE消息;INVITE消息用于点播视频,INVITE消息包括服务设备标识和视频标识;网络设备接收终端发送的邀请INVITE消息;网络设备向服务设备标识对应的服务设备发送视频请求消息;视频请求消息包括视频标识;网络设备接收服务设备发送的视频流地址,并根据视频流地址向终端发送视频标识对应的视频;视频流地址为视频的存储地址;终端播放网络设备发送的视频;视频为视频标识对应的视频,且视频为服务设备标识对应的服务设备存储的视频。本发明用于点播视频。(The embodiment of the invention provides a video on demand method, network equipment and a terminal, relates to the field of communication, and aims to play video and save memory resources of the terminal. The method comprises the following steps: the terminal sends INVITE message to the network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the network equipment receives an INVITE message sent by a terminal; the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises a video identifier; the network equipment receives the video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video; the terminal plays a video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier. The invention is used for video on demand.)

1. A video-on-demand method, comprising:

the network equipment receives an INVITE message sent by a terminal; the INVITE message comprises a service device identifier and a video identifier;

the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises the video identification;

the network equipment receives a video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video.

2. The video-on-demand method according to claim 1, wherein the INVITE message further includes a terminal identification; before the network device sends the video request message to the service device corresponding to the service device identifier, the method further includes:

and the network equipment determines that the terminal has opened the video-on-demand service according to the terminal identification.

3. The video-on-demand method according to claim 2, wherein the method further comprises:

if the network equipment determines that the terminal does not open the video-on-demand service, returning a rejection message to the terminal; the rejection message is used for indicating that the terminal does not open the video on demand service.

4. A video-on-demand method, comprising:

the terminal sends INVITE message to the network device; the INVITE message is used for requesting videos, and comprises a service equipment identifier and a video identifier;

the terminal plays the video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service equipment corresponding to the service equipment identifier.

5. The video-on-demand method according to claim 4, wherein the method further comprises:

the terminal receives a rejection message sent by the network equipment; the rejection message is used for indicating that the terminal does not open the video on demand service.

6. A network device, comprising:

a receiving module, configured to receive an INVITE message sent by a terminal; the INVITE message comprises a service device identifier and a video identifier;

a sending module, configured to send a video request message to the service device corresponding to the service device identifier received by the receiving module; the video request message comprises the video identification;

the receiving module is further configured to receive a video stream address sent by the service device, and send a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video.

7. The network device of claim 6, wherein the INVITE message further comprises a terminal identification; the network device further comprises a verification module;

and the checking module is used for determining that the video-on-demand service has been opened by the terminal according to the terminal identification.

8. The network device of claim 7, further comprising:

when the checking module determines that the terminal does not open the video-on-demand service, the sending module returns a rejection message to the terminal; the rejection message is used for indicating that the terminal does not open the video on demand service.

9. A terminal, comprising:

a sending module, configured to send an INVITE message to a network device; the INVITE message is used for requesting videos, and comprises a service equipment identifier and a video identifier;

the playing module is used for playing the video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service equipment corresponding to the service equipment identifier.

10. The terminal of claim 9, further comprising a receiving module;

the receiving module is configured to receive a rejection message sent by the network device; the rejection message is used for indicating that the terminal does not open the video on demand service.

11. A network device comprising a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through the bus; the processor executes the computer-executable instructions stored by the memory when the network device is running to cause the network device to perform the video-on-demand method of any one of claims 1-3.

12. A computer-readable storage medium comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the video-on-demand method of any one of claims 1-3.

13. A terminal comprising a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through the bus; the processor executes the computer-executable instructions stored by the memory when the terminal is running to cause the terminal to perform the video-on-demand method according to any one of claims 4 to 5.

14. A computer-readable storage medium comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the video-on-demand method of any one of claims 4-5.

Technical Field

The present invention relates to the field of communications, and in particular, to a video-on-demand method, a network device, and a terminal.

Background

With the development of network technology, the network speed is faster and faster, various network-based video services are rapidly developed, and video operators are gradually increased. However, the current video-on-demand service is generally implemented by software or hardware developed by each video operator, such as an Application (APP) or a television box, when a terminal uses the APP to play a video, the video APP developed by the video operator needs to be installed in the terminal, and the installation of various video APPs needs to occupy memory resources of the terminal, which easily causes a shortage of memory resources of the terminal.

Disclosure of Invention

The embodiment of the invention provides a video-on-demand method, network equipment and a terminal, which are used for on-demand video and saving the memory resource of the terminal.

In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:

in a first aspect, a video-on-demand method is provided, including: the network equipment receives an INVITE message sent by a terminal; the INVITE message includes a service device identification and a video identification; the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises a video identifier; the network equipment receives the video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is the storage address of the video.

In a second aspect, a video-on-demand method is provided, including: the terminal sends INVITE message to the network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the terminal plays a video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier.

In a third aspect, a network device is provided, including: a receiving module, configured to receive an INVITE message sent by a terminal; the INVITE message includes a service device identification and a video identification; the sending module is used for sending a video request message to the service equipment corresponding to the service equipment identifier received by the receiving module; the video request message comprises a video identifier; the receiving module is also used for receiving the video stream address sent by the service equipment and sending the video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is the storage address of the video.

In a fourth aspect, a terminal is provided, including: a sending module, configured to send an INVITE message to a network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the playing module is used for playing the video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier.

In a fifth aspect, a network device is provided, which includes: a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; when the network device is running, the processor executes the computer-executable instructions stored by the memory to cause the network device to perform the video-on-demand method as provided by the first aspect.

In a sixth aspect, a computer-readable storage medium is provided, comprising: the computer executes instructions that, when executed on a computer, cause the computer to perform the video-on-demand method as provided by the first aspect.

In a seventh aspect, a terminal is provided, including: a memory, a processor, a bus, and a communication interface; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus; the processor executes the computer-executable instructions stored by the memory when the terminal is operating to cause the terminal to perform the video-on-demand method as provided by the second aspect.

In an eighth aspect, there is provided a computer-readable storage medium comprising: the computer executes instructions that, when executed on a computer, cause the computer to perform the video-on-demand method as provided by the second aspect.

The video-on-demand method provided by the embodiment of the invention comprises the following steps: the terminal sends INVITE message to the network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the network equipment receives an INVITE message sent by a terminal; the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises a video identifier; the network equipment receives the video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video; the terminal plays a video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier. The terminal initiates the call request (INVITE message) by using the built-in dialing function, realizes the video on demand by adding the service equipment identifier and the video identifier in the call request, does not need to install various video software, and effectively saves the memory resource of the terminal.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic diagram of a communication architecture according to an embodiment of the present invention;

fig. 2 is a first flowchart of a video-on-demand method according to an embodiment of the present invention;

fig. 3 is a flowchart illustrating a second video-on-demand method according to an embodiment of the present invention;

fig. 4 is a third schematic flowchart of a video-on-demand method according to an embodiment of the present invention;

fig. 5 is a fourth schematic flowchart of a video-on-demand method according to an embodiment of the present invention;

fig. 6 is a first schematic structural diagram of a network device according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present invention;

fig. 8 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;

fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention;

fig. 10 is a schematic structural diagram of another network device according to an embodiment of the present invention;

fig. 11 is a schematic structural diagram of another terminal according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.

It should be noted that, in the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that, when the difference is not emphasized, the intended meaning is consistent.

For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.

A voice over long-term evolution (VoLTE) is a high-speed wireless communication standard for mobile phones and data terminals, and the VoLTE is based on an Internet Protocol (IP) multimedia subsystem (IMS) network, and a configuration file specially made for a Control Plane (CP) and a Media Plane (MP) of a voice service is used in the LTE network as a data stream to be transmitted in the LTE data bearer network, so that a high-quality voice communication service can be established by effectively using a bandwidth. Based on the characteristics of large bandwidth and high rate of VoLTE, the terminal can already realize high definition video call (ViLTE) at present, and the video call between the terminals can be realized without installing additional software.

As shown in fig. 1, an embodiment of the present invention provides a communication architecture, which includes a terminal 01, a network device 02, and a service device 03.

The terminal 01 can perform data interaction, voice call or video call with other communication devices. Terminal 01 may be a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a terminal in a 5G network or a terminal in a future evolved Public Land Mobile Network (PLMN) network, etc.

The network device 02 can provide data transmission services for other communication devices and establish a call connection for them. The network device 02 may be a communication device provided by a telecom operator, such as an independent processing device, and can process and forward a call request of the terminal 01; also, for example, an apparatus is composed of an IMS network device, a Mobility Management Entity (MME), a Home Subscriber Server (HSS), and the like.

The service device 03 may provide content services, such as voice services or video services, for other communication devices. The service device 03 may be a server used by a content service provider to provide content services, such as one server in a server cluster (composed of multiple servers), a chip in the server, a system on chip in the server, or implemented by a Virtual Machine (VM) deployed on a physical machine.

According to the communication architecture, the embodiment of the invention provides a video on demand method, which can realize video on demand through a VoLTE function of a terminal. As shown in fig. 2, includes:

s101, the terminal sends an INVITE message to the network equipment.

The INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier.

Specifically, the terminal may be the terminal 01 shown in fig. 1. In the embodiment of the invention, the INVITE message is a request message sent by the terminal to the network device when the terminal actually initiates a call request. The sending procedure of the INVITE message may be: a terminal calls a dialing function of a User Interface (UI), and a calling number is input into the dialing interface; when the terminal dials the calling number, the terminal sends an INVITE message to the network device, and the INVITE message realizes the calling of the terminal. It should be noted that the number carried in the INVITE message is different from the number carried in the INVITE message in the normal call request, and the INVITE message is used for video on demand, so the number carried in the INVITE message may be composed of a service device identifier and a video identifier.

Illustratively, the number dialed by the terminal in the embodiment of the present invention is different from a normal telephone number, where the number dialed by the terminal may be composed of the service device identifier and the video identifier, for example, the number dialed by the terminal may be 1218800001, where 12188 is the service device identifier and 00001 is the video identifier. Of course, 1218800001 is merely exemplary, and the number dialed by the terminal may be different depending on the service device identification and the video identification. For example, when the service device identifier is 12189 and the video identifier is 02222, the number dialed by the terminal may be 1218902222, i.e., the INVITE message includes 1218902222. The service device identifier and the video identifier are only exemplary, and in practice, the service device identifier and the video identifier are not limited to 5-bit components, and those skilled in the art may set the service device identifier according to the number of the service devices and set the video identifier according to the number of the videos, which is not limited in the embodiment of the present invention.

It should be noted that, the process of the terminal initiating the dialing request may be realized not only by the terminal user manually dialing through the dialing function of the terminal, but also by the terminal calling the dialing function by scanning the two-dimensional code, for example, the two-dimensional code includes the bracket code 1218902222, the terminal may scan the two-dimensional code to call the dialing function, and the called dialing interface has already input the number 1218902222. Of course, the terminal user may also implement the process of the dialing request by other methods, which is not limited in this embodiment of the present invention.

S102, the network equipment receives the INVITE message sent by the terminal.

Specifically, the network device may be the network device 02 shown in fig. 1. In a possible implementation, the network device may be a separate processing device provided by a telecommunications carrier; in another possible implementation, the network device may also be composed of multiple entity devices provided by a telecom operator.

The network device may be a processing device provided by a telecommunications carrier and located in a core network, and may receive a call request initiated by a terminal and process the call request. Of course, the network device may also be composed of multiple entity devices provided by a telecommunications carrier, such as a proxy-call session control function (P-CSCF), an interrogating-call session control function (I-CSCF), a serving-call session control function (S-CSCF), and an HSS, and the multiple entity devices process a call request initiated by a terminal.

S103, the network equipment sends a video request message to the service equipment corresponding to the service equipment identification.

Wherein the video request message includes a video identification.

Specifically, the service device here may be the service device 03 shown in fig. 1. In a possible implementation manner, if the network device is an independent processing device provided by a telecom operator, the network device may obtain the service device identifier carried by the network device by parsing the INVITE message. The network device may store a correspondence between the service device identifier and the service device, where the correspondence includes the service device identifier, the service device, and the service device address, as shown in table 1 below:

TABLE 1

Service device Service device identification Service device address
Service equipment one 12188 137.163.127.184
Service equipment 2 12189 137.164.127.187
Service equipment III 16535 167.192.134.124
Service equipment four 16531 167.192.134.129

As shown in table 1 above, if the network device determines that the service device identifier carried in the INVITE message is 12188, the corresponding service device is a first service device, and the address of the first service device is 137.163.127.184, the network device may send a video request message to the first service device according to the address of the first service device, where the video identifier carried in the video request message is the video identifier in the INVITE message. The video request message is used for acquiring a video stream address of a video corresponding to the video identifier.

In an optional implementation manner, the telecommunications carrier may further provide a storage device, where the storage device is configured to store a correspondence between the service device identifier and the service device. After obtaining the service device identifier, the processing device may query the storage device for the address of the corresponding service device.

In another possible implementation manner, if the network device is composed of a P-CSCF, an S-CSCF, and a DNS, as shown in fig. 3, the process of the network device processing the INVITE message includes:

s201, the terminal sends an INVITE message to the P-CSCF.

Wherein the INVITE message includes a service device identification and a video identification.

And S202, the P-CSCF sends an INVITE message to the S-CSCF.

Specifically, the S-CSCF here is the S-CSCF to which the terminal belongs, and the S-CSCF is already determined when the terminal performs authentication registration, and the determination process of the S-CSCF is not described herein again.

S203, the S-CSCF sends a domain name resolution request message to a domain name server DNS.

The domain name resolution request message at least comprises a service equipment identifier.

Specifically, after the S-CSCF receives the INVITE message, it may determine a number consisting of a service device identifier and a video identifier, such as 1218902222, by parsing the INVITE message. The S-CSCF may send the serving device identifier to a Domain Name Server (DNS), and the DNS server determines an address of the serving device corresponding to the serving device identifier.

Certainly, the domain name resolution request message may further include a video identifier, and the S-CSCF may send both the service device identifier and the video identifier to the DNS, but the DNS only queries the service device identifier to determine the address of the service device corresponding to the service device identifier.

And S204, the DNS returns a domain name resolution response message to the S-CSCF.

Wherein the domain name resolution response message includes an address of the serving device.

Specifically, the DNS stores therein a correspondence between an address of the service device and an identifier of the service device. The DNS may determine the address of its corresponding service device according to the service device identifier in the domain name resolution request message, such as service device identifier 12189, and its corresponding service device address may be 137.164.127.187.

S205, the S-CSCF sends a video request message to the service equipment.

Wherein the video request message includes a video identification.

Specifically, after receiving the domain name resolution response message, the S-CSCF may determine an address of the service device corresponding to the service device identifier, and send a video request message to the service device, where if the address of the service device is 137.164.127.187, the S-CSCF may send the video request message to the service device with the address of 137.164.127.187, and request the service device to return a video stream address of a video corresponding to the video identifier.

It should be noted that the above-mentioned network device is composed of a P-CSCF, an S-CSCF, and a DNS only for example, and in practice, the network device may further include other core network entity devices provided by a telecommunications carrier, such as an HSS, which is not limited to this embodiment of the present invention.

And S104, the network equipment receives the video stream address sent by the service equipment and sends the video corresponding to the video identifier to the terminal according to the video stream address.

Wherein, the video stream address is the storage address of the video.

Specifically, when the network device is an independent processing device, the service device may receive a video request message sent by the processing device; when the network device is composed of a P-CSCF, an S-CSCF and a DNS, the service device can receive a video request message sent by the S-CSCF.

The service device stores the corresponding relationship between the video identifier and the video stream address, as shown in table 2 below:

TABLE 2

Video identification Video stream address
00001 rtsp://137.164.127.187/vod/mp4:00001
00002 rtsp://137.164.127.187/vod/mp4:00002
00003 rtsp://137.164.127.187/vod/mp4:00003

As shown in the above table, if the video identifier is 00001, the video stream address corresponding to the video identifier is rtsp://137.164.127.187/vod/mp4:00001, and after the service device determines the video stream address corresponding to the video identifier, the service device may send the video stream address to the network device. It should be noted that when the network device is a stand-alone processing device, the video stream address may be sent to the processing device; the processing device can download the corresponding video according to the video stream address, encode the downloaded video, and send the encoded video to the terminal. When the network equipment consists of the P-CSCF, the S-CSCF and the DNS, the service equipment can send the video stream address to the S-CSCF; and the S-CSCF downloads the corresponding video according to the video stream address, codes the downloaded video, and sends the coded video to the terminal through the P-CSCF.

It should be noted that the network device performs video encoding in a segmented manner, that is, a complete video is divided into a plurality of video segments, the network device encodes the plurality of video segments to obtain a plurality of encoded video data, and the plurality of encoded video data are sequentially sent to the terminal. The encoding process of the video by the network device in this embodiment is the same as that of the video encoding process in the prior art, and is not described herein again. The video downloaded by the network device according to the video stream address may be stored locally in the service device or in the cloud server, which is not limited in the embodiment of the present invention. When the video is stored locally in the service equipment, the network equipment downloads the video from the service equipment; and when the video is stored in the cloud server, the network equipment downloads the video from the cloud server according to the video stream address.

In an alternative, the service device may also send video to the network device instead of the video streaming address. Certainly, when the service device sends the video to the network device, the service device also needs to split the video into a plurality of video segments, encode the plurality of video segments, and then send the encoded video segments to the network device.

S105, the terminal plays the video sent by the network equipment.

The video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier.

Specifically, the terminal may receive a plurality of video segments which are sent by the network device and subjected to encoding processing, decode the plurality of video segments which are subjected to encoding processing by the terminal to obtain a plurality of video segments which are split by a video, and play the plurality of video segments.

It should be noted that the terminal needs to play the video segments according to the sequence of the video segments, so as to implement complete playing of the video.

The video on demand method provided by the embodiment of the invention realizes video on demand through the dialing function of the terminal, reduces the process that the current terminal realizes video on demand by depending on video APP, and saves the memory resource of the terminal; and the video on demand is realized through the dialing function of the terminal, so that frequent operation during the video APP on demand is avoided, and the video on demand flow is simplified.

Optionally, the INVITE message further includes a terminal identifier. As shown in fig. 4, before step S103, the method further includes:

s301, the network equipment determines that the terminal has opened the video-on-demand service according to the terminal identification.

Specifically, the terminal identifier may be an International Mobile Subscriber Identity (IMSI) of the terminal. The HSS is used to store subscription data of the terminal in the communication network provided by the telecommunications carrier. Therefore, in this step, no matter the network device is an independent processing device or a device composed of P-CSCF, S-CSCF, and DNS, the network device can query the HSS according to the terminal identifier, thereby determining whether the terminal activates the video on demand service.

It should be noted that, when the network device is an independent processing device, the processing device may query the HSS for the subscription data of the terminal, so as to determine whether to activate the video on demand service; when the network device is composed of a P-CSCF, an S-CSCF and a DNS, the subscription data of the terminal can be inquired and completed from the HSS by the S-CSCF. Of course, in an alternative implementation, the network device may include an HSS in addition to the P-CSCF, the S-CSCF, and the DNS.

Optionally, as shown in fig. 5, before step S103, the method further includes:

s302, if the network equipment determines that the terminal does not open the video-on-demand service, a rejection message is returned to the terminal.

The reject message is used for indicating that the terminal does not open the video on demand service.

Specifically, if the network device does not inquire the information of the terminal subscribed video on demand service when inquiring the HSS according to the terminal identifier, it is determined that the terminal does not open the video on demand service. At this time, the network device returns a rejection message to the terminal, indicating that the terminal does not open the video-on-demand service.

It should be noted that, because the video on demand of the embodiment of the present invention is implemented by the terminal through the dialing function, the rejection message returned to the terminal by the network device may be a voice message, for example, after the terminal receives the rejection message, the voice message "you have not opened the video on demand service" is played. Certainly, after determining that the terminal does not open the vod service, the network device may hang up the call request of the terminal, and send a short message to the terminal to indicate that the terminal does not open the vod service, where the content of the short message may be "you have not opened the vod service.

In the embodiment, the network equipment divides the terminal into the terminal which opens the video on demand service and the terminal which does not open the video on demand service according to the terminal identification, and when the terminal does not open the video on demand service, the terminal is limited to carry out video on demand, so that the terminal can be effectively managed and classified.

Optionally, the video request message may further include a terminal identifier, and the service device may further store a correspondence between the terminal identifier and the member level, as shown in table 3 below:

TABLE 3

Terminal identification Membership grade Remarks for note
460030912121021 General members Free video on demand (video with advertisement)
460030912121022 Silver member Free video on demand (video without advertisement)
460030912121023 Golden member Requesting all video (video without advertisement)

As shown in the above table, after the service device obtains the terminal identifier by parsing the video request message, the service device may determine the member level of the corresponding terminal according to the terminal identifier, where if the terminal identifier is 460030912121023, the member level of the terminal corresponding to the terminal identifier is a golden member. Of course, the service device may also classify the video corresponding to the member level of the terminal, such as setting the video as a free video, a member video, and the like. When the terminal is a common member, only free videos can be requested, if the videos requested by the terminal are member videos, the service equipment sends a response message to the network equipment, and the response message is used for indicating that the member level of the terminal does not have the authority of playing the corresponding videos; when the terminal is a golden member, the terminal can not only order free videos, but also order member videos.

It should be noted that the response message sent by the service device to the network device may be sent to the terminal by the network device, and the process of sending the response message to the terminal by the network device is consistent with the process of sending the reject message to the terminal, and both may be implemented by a voice message and a short message, which are not described herein again. When the terminal plays the video, the video may include advertisement content, and the silver member is set only to cancel the advertisement when the terminal plays the video, and does not have the right to request the member video. It should be understood by those skilled in the art that when a general member requests video, the free video played by the general member may include advertisements, and when a golden member requests video, the member video (free video) played by the golden member does not include advertisements. The member level and the corresponding authority are only exemplary, and those skilled in the art can modify the member level and the corresponding authority as required, and the embodiment of the present invention is not limited thereto.

According to the embodiment, the on-demand permission is distributed to the terminal according to the member grade of the terminal, the income increase of a telecom operator can be realized, and the personalized customization of the on-demand service of the terminal is realized.

Optionally, when the terminal interrupts playing the video on demand (for example, hangs up a call), the terminal may send a play suspension message to the network device, so as to instruct the terminal to suspend playing of the video. The play abort message may include a video play node, where the video play node is configured to indicate a time point of video play, such as video play to 00: 05: 13, namely when the video is played for 5 minutes and 13 seconds, the terminal hangs up the call, and the video playing node records as 00: 05: 13. after receiving the play suspension message, the network device may send a play recording message to the service device, where the play recording message includes a video play node. After receiving the play record message, the service device may store the video play node, the video identifier, and the terminal identifier, and establish a correspondence relationship between the terminal identifier, the video identifier, and the video play node, as shown in table 4 below:

TABLE 4

Terminal identification Video identification Video playing node
460030912121021 00001 00:05:13
460030912121021 00002 00:49:27
460030912121023 00003 01:05:11

As shown in table 4, when the terminal initiates a call request again, if the call request of the terminal is the same as the call request of the last time, and if the INVITE message includes the number 1218800001, the service device, after receiving the video request sent by the network device, first queries the correspondence between the terminal identifier, the video identifier, and the video playing node stored in the service device. If the corresponding relation stores the terminal identification carried in the video request message, inquiring whether the terminal plays the video with the video identification of 00001 according to the terminal identification; and if the terminal plays the video corresponding to the video identifier, determining a video playing node of the video. After determining the video playing node, the service device may send a video stream address of the video to the network device, where the video stream address carries the video playing node. When the network equipment downloads the corresponding video according to the video stream address, the network equipment can skip the video data before the video playing node, encode the video data after the video playing node and send the encoded video data to the terminal. When playing the encoded video data, the terminal can skip the video playing in the time period before the video playing node, thereby realizing that the terminal continuously plays the played video according to the playing record.

The embodiment can enable the terminal to realize continuous playing of the played video according to the playing record, avoid the terminal from repeatedly playing the same content, and save the time for the terminal user to watch the video.

Optionally, the above-mentioned embodiment provides a video-on-demand method, and those skilled in the art can think that the video-on-demand method is used to implement on-demand of voice services, such as on-demand of voice services like a novel, a whisper and a comment, through a dial request. The difference is that the resources stored in the service equipment are different, video resources are stored in the service equipment when video is requested, and voice resources such as a voice novel, a phase sound and an comment are stored in the service equipment when voice service is requested.

The video-on-demand method provided by the embodiment of the invention comprises the following steps: the terminal sends INVITE message to the network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the network equipment receives an INVITE message sent by a terminal; the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises a video identifier; the network equipment receives the video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video; the terminal plays a video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier. The terminal initiates the call request (INVITE message) by using the built-in dialing function, realizes the video on demand by adding the service equipment identifier and the video identifier in the call request, does not need to install various video software, and effectively saves the memory resource of the terminal.

According to the video-on-demand method, as shown in fig. 6, an embodiment of the present invention provides a network device 40, including:

a receiving module 401, configured to receive an INVITE message sent by a terminal; the INVITE message includes a service device identification and a video identification.

A sending module 402, configured to send a video request message to the service device corresponding to the service device identifier received by the receiving module 401; the video request message includes a video identification.

The receiving module 401 is further configured to receive a video stream address sent by the service device, and send a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is the storage address of the video.

Optionally, the INVITE message further includes a terminal identifier. As shown in fig. 7, network device 40 also includes a verification module 403.

And the checking module 403 is configured to determine that the terminal has activated the vod service according to the terminal identifier.

Optionally, when the checking module 403 determines that the terminal does not open the vod service, the sending module 402 returns a reject message to the terminal; the rejection message is used for indicating that the terminal does not open the video on demand service.

As shown in fig. 8, an embodiment of the present invention further provides a terminal 50, including:

a sending module 501, configured to send an INVITE message to a network device; the INVITE message is for video on demand and includes a service device identification and a video identification.

A playing module 502, configured to play a video sent by a network device; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier.

Optionally, as shown in fig. 9, the terminal 50 further includes a receiving module 503.

A receiving module 503, configured to receive a rejection message sent by a network device; the rejection message is used for indicating that the terminal does not open the video on demand service.

It should be noted that the video sent by the network device is actually implemented by the receiving module 503, the playing module 402 is only used for playing the video, that is, the receiving module 403 is also used for receiving the video sent by the network device, and the playing module 402 is used for playing the video received by the receiving module 403.

The embodiment of the invention provides a network device and a terminal, comprising: the terminal sends INVITE message to the network device; the INVITE message is used for requesting video, and comprises a service equipment identifier and a video identifier; the network equipment receives an INVITE message sent by a terminal; the network equipment sends a video request message to the service equipment corresponding to the service equipment identification; the video request message comprises a video identifier; the network equipment receives the video stream address sent by the service equipment and sends a video corresponding to the video identifier to the terminal according to the video stream address; the video stream address is a storage address of the video; the terminal plays a video sent by the network equipment; the video is the video corresponding to the video identifier, and the video is the video stored by the service device corresponding to the service device identifier. The terminal initiates the call request (INVITE message) by using the built-in dialing function, realizes the video on demand by adding the service equipment identifier and the video identifier in the call request, does not need to install various video software, and effectively saves the memory resource of the terminal.

As shown in fig. 10, an embodiment of the present invention further provides another network device, which includes a memory 61, a processor 62, a bus 63, and a communication interface 64; the memory 61 is used for storing computer execution instructions, and the processor 62 is connected with the memory 61 through a bus 63; when the network device is operating, the processor 62 executes computer-executable instructions stored by the memory 61 to cause the network device to perform the video-on-demand method as provided in the above-described embodiments.

In particular implementations, processor 62(62-1 and 62-2) may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 10, for example, as one embodiment. And as an example, the terminal may include a plurality of processors 62, such as processor 62-1 and processor 62-2 shown in fig. 10. Each of the processors 62 may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). Processor 62 may refer herein to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).

The memory 61 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory 61 may be separate and coupled to the processor 62 via a bus 63. The memory 61 may also be integrated with the processor 62.

In a specific implementation, the memory 61 is used for storing data in the present application and computer-executable instructions corresponding to software programs for executing the present application. The processor 62 may perform various functions of the network device by running or executing software programs stored in the memory 61, and by invoking data stored in the memory 61.

The communication interface 64 is any device, such as a transceiver, for communicating with other devices or communication networks, such as a control system, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 64 may include a receiving unit to implement the receiving function and a transmitting unit to implement the transmitting function.

The bus 63 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an extended ISA (enhanced industry standard architecture) bus, or the like. The bus 63 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.

An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the video-on-demand method provided in the foregoing embodiment.

The embodiment of the invention also provides a computer program, which can be directly loaded into the memory and contains software codes, and the computer program can realize the video-on-demand method provided by the embodiment after being loaded and executed by the computer.

As shown in fig. 11, the embodiment of the present invention further provides another terminal, which includes a memory 71, a processor 72, a bus 73, and a communication interface 74; the memory 71 is used for storing computer execution instructions, and the processor 72 is connected with the memory 71 through a bus 73; when the terminal is operating, the processor 72 executes the computer-executable instructions stored by the memory 71 to cause the terminal to perform the video-on-demand method as provided in the above-described embodiments.

In particular implementations, processor 72(72-1 and 72-2) may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 11, for example, as one embodiment. And as an example, the terminal may include a plurality of processors 72, such as processor 72-1 and processor 72-2 shown in fig. 11. Each of the processors 72 may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). Processor 72 may refer herein to one or more devices, circuits, and/or processing cores that process data (e.g., computer program instructions).

The memory 71 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 71 may be self-contained and coupled to the processor 72 via a bus 73. The memory 71 may also be integrated with the processor 72.

In a specific implementation, the memory 71 is used for storing data in the present application and computer-executable instructions corresponding to software programs for executing the present application. The processor 72 may perform various functions of the terminal by running or executing software programs stored in the memory 71 and calling data stored in the memory 71.

The communication interface 74 is any device, such as a transceiver, for communicating with other devices or communication networks, such as a control system, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 74 may include a receiving unit to implement a receiving function and a transmitting unit to implement a transmitting function.

The bus 73 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an extended ISA (enhanced industry standard architecture) bus, or the like. The bus 73 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.

An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the video-on-demand method provided in the foregoing embodiment.

The embodiment of the invention also provides a computer program, which can be directly loaded into the memory and contains software codes, and the computer program can realize the video-on-demand method provided by the embodiment after being loaded and executed by the computer.

Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation. For example, various elements or components may be combined or may be integrated into another device, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种直播交互方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类