CN112261490B - Video sharing method and device, application function entity and dialing software system - Google Patents

Video sharing method and device, application function entity and dialing software system Download PDF

Info

Publication number
CN112261490B
CN112261490B CN202011122948.6A CN202011122948A CN112261490B CN 112261490 B CN112261490 B CN 112261490B CN 202011122948 A CN202011122948 A CN 202011122948A CN 112261490 B CN112261490 B CN 112261490B
Authority
CN
China
Prior art keywords
video
user terminal
video stream
user
functional entity
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.)
Active
Application number
CN202011122948.6A
Other languages
Chinese (zh)
Other versions
CN112261490A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011122948.6A priority Critical patent/CN112261490B/en
Publication of CN112261490A publication Critical patent/CN112261490A/en
Application granted granted Critical
Publication of CN112261490B publication Critical patent/CN112261490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6371Control signals issued by the client directed to the server or network components directed to network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a video sharing method, a method for triggering video sharing, a video sharing device, an application function entity and a dialing software system. The video sharing method comprises the following steps: receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal; and distributing routing information of the video stream to be shared to the second user terminal so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the routing information. The method and the device can improve the convenience of video sharing and improve the user experience.

Description

Video sharing method and device, application function entity and dialing software system
Technical Field
The invention relates to the technical field of communication, in particular to a video sharing method, a method for triggering video sharing, a video sharing device, an application function entity and a dialing software system.
Background
The current video sharing mode is to send the shared video link to the shared user basically by sending the video link. Shared users need to click a certain specific link, even the shared video can be opened by installing the same video application as the sharer, the mode reduces the convenience of video sharing, and the user experience degree is also reduced.
Disclosure of Invention
The invention aims to at least solve one of the technical problems in the prior art and provides a video sharing method, a method for triggering video sharing, a video sharing device, an application function entity and a dialing software system.
In order to achieve the above object, the present invention provides a video sharing method, including:
receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal;
and distributing routing information of the video stream to be shared to the second user terminal so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the routing information.
Optionally, a video sharing client is pre-installed on the first user terminal, and a user sends the video sharing request through the video sharing client when the first user terminal is currently playing the video stream;
the receiving of the video sharing request sent by the first user terminal includes:
and receiving the video sharing request sent by the user through the video sharing client.
Optionally, the video sharing client is a dialing software system, and the user sends the video sharing request through the dialing software system when the first user terminal is currently playing the video stream;
the receiving the video sharing request sent by the user through the video sharing client includes:
and receiving a call request triggered when a user dials a preset video sharing special number through the dialing software system, wherein the call request is the video sharing request.
Optionally, before the allocating the routing information of the video stream to be shared to the second user terminal, the method further includes:
acquiring video playing parameters of the video stream which is currently played and requested to be shared by the first user terminal;
acquiring a video playing capability parameter of the second user terminal;
determining the routing information based on the video playing parameters of the video stream and the video playing capability parameters, wherein a target acquisition address in the routing information comprises an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
Optionally, the determining the routing information based on the video playing parameter of the video stream and the video playing capability parameter includes:
determining whether the second user terminal has the playing capability of the video stream according to the video playing parameter and the video playing capability parameter;
if the second user terminal has the playing capability of the video stream, sending a forwarding state configuration request of the video stream to the first user plane functional entity, so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for simultaneously forwarding the video stream to the second user terminal;
and determining the routing information in response to the forwarding state configuration success message of the first user plane functional entity, wherein the target acquisition address of the routing information comprises the entry address of the first user plane functional entity.
Optionally, after determining whether the second user terminal has the playing capability of the video stream according to the video playing capability parameter, the method further includes:
if the second user terminal does not have the playing capability of the video stream, sending a routing configuration request to the data network gateway so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request;
sending a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request;
and responding to the routing configuration success message of the data network gateway and the video generation success message of the video server, and determining the routing information, wherein the target acquisition address of the routing information comprises the entry address of the video server.
Optionally, the video sharing request further includes first network information of the video stream in the local terminal, where the first network information of the video stream in the local terminal is acquired when the dialing software system is called out by itself;
before the obtaining of the video playing parameter of the video stream currently played and requested to be shared by the first user terminal, the method further includes:
inquiring source information of the video stream according to first network information of the video stream in a local terminal, wherein the source information of the video stream comprises second network information of the video stream in the data network gateway, and a mapping relation is formed between the first network information and the second network information;
sending an authentication request to the video server, wherein the authentication request comprises the second network information;
the obtaining of the video playing parameter of the video stream currently played and requested to be shared by the first user terminal includes: and receiving metadata of the video stream sent by the video server after the authentication is passed, wherein the metadata of the video stream comprises video playing parameters of the video stream.
Optionally, the source information of the video stream further includes an identification of the video server;
the sending of the authentication request to the video server includes: and sending the authentication request to the video server according to the identifier of the video server.
Optionally, before the obtaining the video playing capability parameter of the second user terminal, the method further includes:
initiating a call request to a second user terminal to a core network according to the user identification of the second user terminal, wherein the call type is instant video sharing;
the acquiring of the video playing capability parameter of the second user terminal includes: and receiving a session establishment confirmation message sent by the core network based on the call request, wherein the session establishment confirmation message comprises a video playing capability parameter of the second user terminal.
Optionally, the allocating, to the second user terminal, routing information of a video stream to be shared includes:
and returning a session establishment success message to the core network based on the session establishment confirmation message, wherein the session establishment success message comprises the routing information, so that the core network sends a ringing instruction to the second user terminal based on the session establishment success message, and the ringing instruction comprises the routing information.
Optionally, before the allocating the routing information of the video stream to be shared to the second user terminal, the method further includes:
acquiring video playing parameters of the video stream which is currently played and requested to be shared by the first user terminal;
sending the video playing parameters of the video stream to a second user terminal, so that the second user terminal can judge whether the second user terminal has the playing capability of the video stream according to the video playing capability parameters of the second user terminal and the video playing parameters of the video stream;
obtaining a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream;
determining routing information of a video stream to be shared according to the judgment result message, wherein a target acquisition address in the routing information comprises an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
Optionally, the determining, according to the judgment result message, the routing information of the video stream to be shared includes:
if the judgment result message is a message representing that a second user terminal has the playing capability of the video stream, sending a forwarding state configuration request of the video stream to the first user plane functional entity so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for simultaneously forwarding the video stream to the second user terminal;
and determining the routing information in response to the forwarding state configuration success message of the first user plane functional entity, wherein the target acquisition address of the routing information comprises the entry address of the first user plane functional entity.
Optionally, the determining, according to the judgment result message, the routing information of the video stream to be shared further includes:
if the judgment result message is a message representing that the second user terminal does not have the playing capability of the video stream, sending a routing configuration request to the data network gateway so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request;
sending a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request;
and responding to the routing configuration success message of the data network gateway and the video generation success message of the video server, and determining the routing information, wherein the target acquisition address of the routing information comprises the entry address of the video server.
In order to achieve the above object, an embodiment of the present invention further provides a video sharing apparatus, including:
the video sharing method comprises the steps that a receiving module is used for receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal;
and the route distribution module is used for distributing the route information of the video stream to be shared to the second user terminal so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the route information.
Optionally, the apparatus further comprises:
a first obtaining module, configured to obtain a video playing parameter of the video stream that is currently played and requested to be shared by the first user terminal; acquiring a video playing capability parameter of the second user terminal;
a route determining module, configured to determine the routing information based on a video playing parameter of the video stream and the video playing capability parameter, where a target acquisition address in the routing information includes an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
Optionally, the apparatus further comprises:
a first obtaining module, configured to obtain a video playing parameter of the video stream that is currently played and requested to be shared by the first user terminal;
the first sending module is used for sending the video playing parameters of the video stream to a second user terminal so that the second user terminal can judge whether the second user terminal has the playing capability of the video stream according to the video playing capability parameters of the second user terminal and the video playing parameters of the video stream;
the second obtaining module is used for obtaining a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream;
a route determining module, configured to determine, according to the determination result message, route information of a video stream to be shared, where a target acquisition address in the route information includes an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
In order to achieve the above object, an embodiment of the present invention further provides an application function entity, where the application function entity includes the video sharing apparatus.
In order to achieve the above object, an embodiment of the present invention further provides a method for triggering video sharing, where the method is used for a dialing software system pre-installed in a user terminal, and the method includes:
responding to the calling operation of a user when the first user terminal is playing the video stream currently, and providing a dialing interface for the user;
and responding to a preset video sharing special number dialed by a user on the dialing interface, and sending a video sharing request to a video sharing device so as to trigger the video sharing device to realize the video sharing method.
Optionally, before sending the video sharing request to the video sharing apparatus, the method further includes:
and responding to a preset video sharing special number dialed by a user on the dialing interface, and acquiring local first network information of the video stream played by the last foreground application of the first user terminal.
In order to achieve the above object, an embodiment of the present invention further provides a dialing software system, where the dialing software system is installed in a user terminal, and the dialing software system includes:
the calling response module is used for responding to calling operation of a user when the first user terminal plays the video stream currently and providing a dialing interface for the user;
and the second sending module is used for responding to a preset video sharing special number dialed by a user on the dialing interface and sending a video sharing request to the video sharing device so as to trigger the video sharing device to realize the video sharing method.
Optionally, the dialing software system further includes:
and the third obtaining module is used for responding to a user dialing a preset video sharing special number on the dialing interface before the second sending module sends a video sharing request to the video sharing device, and obtaining the local first network information of the video stream played by the last foreground application of the first user terminal.
The invention has at least the following beneficial effects:
in the technical scheme of the video sharing method, the method for triggering video sharing, the video sharing device, the application function entity and the dialing software system, the routing information of the video stream to be shared is distributed to the second user terminal in response to the video sharing request of the first user terminal, so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the routing information, and the second user terminal can play the video stream shared by the first user terminal without installing specific application or clicking a video link, so that the video sharing convenience is improved, and the user experience degree is also improved.
Drawings
Fig. 1 is a flowchart of a video sharing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a video sharing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a video sharing method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a video sharing apparatus according to a sixth embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the video sharing method, the method for triggering video sharing, the video sharing apparatus, the application function entity and the dialing software system provided by the present invention are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a flowchart of a video sharing method according to an embodiment of the present invention, and as shown in fig. 1, the video sharing method includes:
step 11, receiving a video sharing request sent by a first user terminal, where the video sharing request includes a user identifier of a second user terminal.
And step 12, distributing the routing information of the video stream to be shared to the second user terminal, so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the routing information.
The video sharing method provided by the embodiment is used for responding to a video sharing request of a first user terminal, distributing routing information of a video stream to be shared to a second user terminal so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the routing information, and the second user terminal can play the video stream shared by the first user terminal without installing a specific application or clicking a video link, so that the video sharing convenience is improved, and the user experience degree is also improved.
Example two
Fig. 2 is a flowchart of a video sharing method according to a second embodiment of the present invention, and as shown in fig. 2, the video sharing method is implemented based on an application function entity, and the video sharing method includes:
step 21, the application function entity receives a video sharing request sent by the first user terminal, where the video sharing request includes a user identifier of the second user terminal and first network information of the video stream to be shared in the local terminal.
In this embodiment, before step 21, the first user terminal currently plays a certain video stream, and the video server sends data of the video stream to the first user terminal through the data network gateway and the first user plane functional entity corresponding to the first user terminal.
In this embodiment, when a first user terminal needs to share a currently playing video stream to a second user terminal, the first user terminal first sends a video sharing request to an Application Function (AF).
Step 22, the application function entity obtains the video playing parameters of the video stream which is currently played and requested to be shared by the first user terminal.
Specifically, the application function entity obtains metadata of the video stream from a video server corresponding to the video stream, where the metadata of the video stream includes video playing parameters of the video stream, and the video playing parameters include, but are not limited to: the encoding format, resolution, encoding rate, audio parameters, etc. of the video stream.
And step 23, the application function entity acquires the video playing capability parameter of the second user terminal.
The application function entity interacts with the second user terminal through the core network to obtain the video playing capability parameter of the second user terminal, where the video playing capability parameter of the second user terminal includes but is not limited to: codec format, resolution, coding rate, audio parameters, etc.
And step 24, the application functional entity determines the routing information of the video stream to be shared based on the video playing parameter of the video stream to be shared and the video playing capability parameter of the second user terminal, wherein the target acquisition address in the routing information comprises the entry address of the first user plane functional entity or the entry address of the video server.
The first user plane functional entity is a functional entity for providing a forwarding service of a video stream to the first user terminal, and the video server is used for providing the video stream required by the first user terminal to the first user plane functional entity through the data network gateway.
Specifically, step 24 comprises:
step 241, determining whether the second user terminal has the playing capability of the video stream according to the video playing parameter of the video stream to be shared and the video playing capability parameter of the second user terminal, if so, executing step 242, otherwise, executing step 244.
Specifically, whether the second user terminal has the video playing capability is determined by judging whether the video playing capability parameter of the second user terminal is matched with the video playing parameter of the video stream to be shared. And if so, determining that the second user terminal has the playing capability of the video stream, otherwise, determining that the second user terminal does not have the playing capability of the video stream. For example, if the video playing capability parameter of the second user terminal is consistent with the video playing parameter of the video stream to be shared, that is, the encoding and decoding formats are consistent, the resolutions are consistent, the encoding rate is consistent, and the audio parameters are consistent, it is determined that the two are matched, otherwise, it is not matched.
Step 242, the application functional entity sends a forwarding state configuration request of the video stream to be shared to the first user plane functional entity, so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request, and configures a route for forwarding the video stream to the second user terminal at the same time.
In this embodiment, if the application function entity determines that the second user terminal has the playing capability of the video stream to be shared, the application function entity sends a forwarding state configuration request of the video stream to be shared to a first user plane function entity for providing a forwarding service of the video stream, where the request may include a session identifier of the video stream, a user identifier of the first user terminal, and a user identifier of the second user terminal, where the user identifier of the first user terminal may be obtained according to the video sharing request of the first user terminal. The first user plane functional entity responds to the forwarding state configuration request of the application functional entity, modifies the forwarding state of the video stream, and configures a route for simultaneously forwarding the video stream to the second user terminal.
When the first user terminal and the second user terminal correspond to the same user plane functional entity, that is, the first user plane functional entity can provide corresponding services to the first user terminal and the second user terminal, the first user plane functional entity modifies the forwarding state of the video stream, that is, the forwarding state of the video stream is: and changing the forwarding state of the video stream from the forwarding state of only forwarding the video stream to the first user terminal to the forwarding state of copying and forwarding the same video stream to the second user terminal while forwarding the video stream to the first user terminal. In this case, configuring a route for simultaneously forwarding the video stream to the second user terminal includes: a route is established from the first user plane functional entity to the second user terminal.
When the first user terminal and the second user terminal correspond to different user plane functional entities, that is, the first user terminal corresponds to the first user plane functional entity, and the second user terminal corresponds to the second user plane functional entity, the forwarding state of the video stream modified by the first user plane functional entity is: and modifying the forwarding state of the video stream from the forwarding state of forwarding the video stream only to the first user terminal to the forwarding state of copying the same video stream and forwarding the same video stream to the second user terminal through the second user plane functional entity while forwarding the video stream to the first user terminal. In this case, configuring a route for simultaneously forwarding the video stream to the second user terminal includes: a route is established from the first user plane functional entity to the second user plane functional entity.
Step 243, the application functional entity determines the routing information of the video stream to be shared in response to the forwarding state configuration success message of the first user plane functional entity, where the routing information includes the entry address of the first user plane functional entity, and jumps to step 25.
In this embodiment, after responding to the forwarding state configuration request of the application function entity, the first user plane function entity modifies the forwarding state of the video stream and configures a route for simultaneously forwarding the video stream to the second user terminal, and then returns a forwarding state configuration success message to the application function entity. Then, the application function entity performs step 243, and in step 243, the entry address of the first user plane function entity may be obtained by the application function entity through pre-query, or may be obtained by the first user plane function entity through other manners, where the forwarding state configuration success message returned by the first user plane function entity carries the entry address of the first user plane function entity.
Step 244, the application function entity sends a route configuration request to the data network gateway, so that the data network gateway configures a route from the data network gateway to the second user terminal according to the route configuration request.
In this embodiment, if the application function entity determines that the second user terminal does not have the playing capability of the video stream to be shared, the application function entity sends a routing configuration request to a data network gateway for providing a forwarding service of the video stream, where the request may include a session identifier of the video stream, a user identifier of the first user terminal, and a user identifier of the second user terminal. The data network gateway configures a route from the data network gateway to the second user terminal in response to the route configuration request.
Specifically, when the first user terminal and the second user terminal correspond to the same user plane functional entity, configuring a route from the data network gateway to the second user terminal includes: a route is established from the data network gateway to the first user plane functional entity.
When the first user terminal and the second user terminal correspond to different user plane functional entities, that is, the first user terminal corresponds to the first user plane functional entity, and the second user terminal corresponds to the second user plane functional entity, configuring a route from the data network gateway to the second user terminal includes: a route is established from the data network gateway to the second user plane functional entity.
Step 245, the application function entity sends a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request.
In this embodiment, if the application function entity determines that the second user terminal does not have the playing capability of the video stream to be shared, the application function entity further sends a video generation request to the video server, so that the video server generates, according to the video generation request, a video stream that has the same content as the video stream currently played by the first user terminal and that satisfies the playing capability of the second user terminal. The video generation request may include a session identifier of a video stream to be shared, a user identifier of the first user terminal, a user identifier of the second user terminal, a video playing capability parameter of the second user terminal, and the like.
In step 245, after receiving the video generation request of the application function entity, the video server generates a video stream that has the same content as the video stream and satisfies the video playing capability of the second user terminal, for example, a video stream that has the same content as the video stream to be shared and has resolution, codec format, encoding rate, and audio parameter that are consistent with the video playing capability parameter of the second user terminal, based on the session identifier of the video stream and the video playing capability parameter of the second user terminal. After responding to the video generation request, the video server generates a corresponding video stream, caches the video stream, waits for the request of the second user terminal, responds to the request of the second user terminal, and sends the video stream to the second user terminal through the data network gateway and the user plane functional entity corresponding to the second user terminal.
Step 244 and step 245 may be executed simultaneously or sequentially, and the execution order is not limited.
Step 246, the application functional entity determines the routing information of the video stream to be shared in response to the successful message of the routing configuration of the data network gateway and the successful message of the video generation of the video server, where the routing information includes the entry address of the video server, and jumps to step 25.
In this embodiment, after responding to the route configuration request of the application function entity and configuring the corresponding route, the data network gateway returns a route configuration success message to the application function entity; and after responding to the video generation request of the application functional entity to generate the corresponding video stream, the video server returns a video generation success message to the application functional entity. Then, the application function entity executes step 246, and in step 246, the entry address of the video server may be obtained by the application function entity through a pre-query, or may be obtained by the video server in a video generation success message returned by the video server, where the entry address carries the entry address of the video server, or may be obtained by other manners, which is not limited in this embodiment.
And step 25, the application function entity allocates the routing information of the video stream to be shared to the second user terminal, so that the second user terminal requests, acquires and plays the video stream which is currently played and requested to be shared by the first user terminal according to the routing information.
The second user terminal requests, acquires and plays the video stream which is currently played and requested to be shared by the first user terminal by accessing the target acquisition address.
Specifically, as described above, in a case that the second user terminal has the playing capability of the video stream, the destination obtaining address in the routing information of the video stream to be shared includes the entry address of the first user plane functional entity, then in step 25, after the second user terminal obtains the routing information of the video stream allocated by the application functional entity, the second user terminal may request to obtain a corresponding video stream from the first user plane functional entity through the entry address of the first user plane functional entity, and the first user plane functional entity responds to the request, and copies and forwards an identical video stream to the second user terminal while forwarding the video stream to the first user terminal according to the preconfigured route and the forwarding state corresponding to the video stream, where at this time, the second user terminal may obtain and play the video stream.
In the case that the second user terminal does not have the playing capability of the video stream, the destination obtaining address in the routing information of the video stream to be shared includes an entry address of the video server, then in step 25, after the second user terminal obtains the routing information of the video stream allocated by the application function entity, the second user terminal may request the video server to obtain a corresponding video stream through the entry address of the video server, and in response to the request, the video server sends the video stream, which is cached in advance, has the same content as the video stream to be shared and meets the video playing capability of the second user terminal, to the second user terminal through the data network gateway and the user plane function entity corresponding to the second user terminal, and at this time, the second user terminal may obtain and play the corresponding video stream.
According to the video sharing method provided by the embodiment, when a first user terminal needs to share a video which is currently played to a second user terminal, the first user terminal firstly sends a video sharing request to an application function entity, the application function entity responds to the video sharing request, determines routing information of the video to be shared, and distributes the routing information to the second user terminal, so that the second user terminal obtains and plays the video to be shared based on the routing information request.
EXAMPLE III
Fig. 3 is a flowchart of a video sharing method according to a third embodiment of the present invention, and as shown in fig. 3, the video sharing method includes:
step 31, the application function entity receives a video sharing request sent by the first user terminal, where the video sharing request includes a user identifier of the second user terminal and first network information of the video stream to be shared in the local terminal.
In this embodiment, the video server sends the Data of the video stream to the first User terminal through a Data Network gateway (DNGW, for short) and a User Plane Function (UPF, for short), where the first User terminal (UE, for short) is currently playing the video stream. When a first user terminal needs to share a currently playing video stream to a second user terminal, the first user terminal first sends a video sharing request to an Application Function (AF). The first user terminal may be a mobile terminal, such as a smart phone, a tablet computer, and the like, and the smart phone may be a 5G smart phone.
As an optional implementation manner, a video sharing client is pre-installed on a first user terminal, the first user terminal responds to an operation that a user calls the video sharing client when the first user terminal is currently playing a video stream, calls out and opens the video sharing client, and the video sharing client serves as a current system foreground application of the terminal; the step 21 specifically includes: and receiving a video sharing request sent by a user through a video sharing client. The first network information of the video stream to be shared in the local terminal is acquired from a previous system foreground application when the video sharing client is called out, the previous system foreground application is an application which is running on the terminal before the video sharing client is called out, namely the application for playing the video stream on the first user terminal.
As an optional implementation manner, the video sharing client pre-installed on the first user terminal is a dialing software system, the first user terminal currently plays a video stream, and when a user of the first user terminal needs to share the currently playing video stream, the first user terminal calls an operation of the dialing software system in response to that the user calls the dialing software system when the first user terminal currently plays the video stream, calls out the dialing software system, and enters a dialing interface of the dialing software system. For example, a user may call a preset operation list in a manner of pressing the interface for a long time on a playing interface of a video stream, and select an option for opening a dialing software system from the preset operation list, thereby triggering the call of the dialing software system, or the playing interface of the video stream is preset with a video sharing option, and the user automatically triggers the call of the dialing software system by clicking the video sharing option, thereby calling the dialing software system, or the user quits the playing interface of the current video stream, and directly opens the dialing software system on the first user terminal. It should be noted that, in this embodiment, the manner of invoking the dialing software system is not limited as long as the dialing software system can be invoked.
In the called dialing interface of the dialing software system, a user can input and dial a preset video sharing special number, or the preset video sharing special number is automatically generated when the dialing interface is called, so that the user can confirm whether to dial the number. When a user dials a preset video sharing special number through a dialing software system, a call request to an application function entity is triggered, the application function entity receives the call request of a first user terminal, and the call request is a video sharing request. The preset video sharing special number is a video sharing special number corresponding to the application function entity, and the video sharing request comprises a user identifier of the second user terminal and first network information of a video stream to be shared in the local terminal.
As an optional implementation manner, in response to a user dialing a preset video sharing dedicated number on the dialing interface, the dialing software system finds an application on a system foreground when the dialing software system is called to the system foreground of the terminal, where the previous application on the system foreground is an application of a video stream currently being played on the first user terminal, and obtains first network information of the video stream currently being played at the terminal local through the previous application on the system foreground.
The second user terminal may be a mobile terminal, such as a smart phone, a tablet computer, and the like, the smart phone may be a 5G smart phone, and the user identifier of the second user terminal may be a terminal number of the mobile terminal, such as a mobile phone number; the first network information of the video stream to be shared in the local terminal comprises a source port, a source address, a session identification of the video stream, a destination port and a destination address. The source port and the source address of the video stream in the local terminal are a port and an IP address corresponding to a Data Network Gateway (DNGW) for forwarding the video stream, the destination port and the destination address of the video stream in the local terminal are a port and an IP address corresponding to the first user terminal, and first network information of the video stream to be shared in the local terminal is acquired when the dialing software system is called out.
Optionally, the video sharing request includes first network information of the video stream to be shared locally at the terminal, and after the first user terminal sends the video sharing request, the first user terminal waits for a prompt of the application function entity and then inputs a user identifier of the sharing target, that is, the second user terminal. And the application function entity responds to the video sharing request, sends an input prompt of a sharing target to the first user terminal so that the first user terminal can input the user identification of the second user terminal according to the prompt, and the application function entity obtains the user identification of the second user terminal.
Step 32, the application function entity queries the source information of the video stream according to the first network information of the video stream to be shared in the local terminal, where the source information includes the second network information of the video stream in the corresponding data network gateway, the identifier of the first user plane function entity currently providing the forwarding service of the video stream for the first user terminal, and the identifier of the video server.
Specifically, the application function entity identifies a user identifier (for example, a mobile phone number of the first user terminal) of the first user terminal according to the calling information (for example, a calling number), and sends a query request of the source information to a Unified Data storage function entity (UDR), where the query request includes, but is not limited to: a user identification of the first user terminal and first network information of the video stream.
After receiving the query request of the application function entity, the unified data storage function entity queries an identifier of a first user plane function entity (UPF) that currently provides forwarding service for the video stream for the first user terminal according to the session identifier of the video stream and the user identifier of the first user terminal, where the identifier of the first user plane function entity (UPF) may be an entry address, that is, an access address, of the first user plane function entity (UPF). Then, the unified data storage functional entity queries second network information of the video stream in a data network gateway for forwarding the video stream according to the first network information, where a mapping relationship exists between the second network information and the first network information, and the second network information of the video stream in the corresponding data network gateway includes a source port, a source address, a session identifier of the video stream, a destination port, and a destination address. It can be understood that the source port and the source address of the video stream at the data network gateway are a port and an IP address corresponding to a video server for providing the video stream, and the destination port and the destination address of the video stream at the data network gateway are the port and the IP address corresponding to the data network gateway.
Meanwhile, the unified data storage functional entity queries an identifier of a video server for providing the video stream according to the source port and the source address of the video stream at the data network gateway, where the identifier may be an entry address of the video server, that is, an access address.
Step 33, the application functional entity sends an authentication request to the video server, where the authentication request includes the second network information of the video stream in the corresponding data network gateway.
Specifically, the application functional entity sends an authentication request to the video server corresponding to the identifier according to the identifier of the video server acquired in advance, so as to request the metadata corresponding to the video stream.
After receiving an authentication request of an application function entity, a video server authenticates the application function entity in response to the authentication request to check whether the application function entity subscribes a corresponding video sharing service to the video server or whether a protocol related to the video sharing service is agreed with the video server in advance, and when the video server checks that the application function entity subscribes the video sharing service, the authentication is successful, otherwise the authentication is failed. When the authentication fails, the video server returns an authentication failure message to the application function entity, and the application function entity returns a message of refusing to share the video to the first user terminal according to the authentication failure message, and the process is ended. When the authentication is successful, the video server returns an authentication success message to the application function entity, where the authentication success message includes the metadata of the video stream corresponding to the second network information, that is, step 34 is executed.
Optionally, after receiving the authentication request of the application function entity, the video server further authenticates the first user terminal in response to the authentication request to check whether the first user terminal has the right to share the video stream currently being played, if it is checked that the first user terminal has the corresponding right, the authentication is successful, otherwise, the authentication fails.
And step 34, the application function entity receives the metadata of the video stream sent by the video server after the authentication is passed.
The metadata of the video stream includes, but is not limited to: the video content name, video playing parameters, description information of a video source, description information of video content, a link address of the video, the generation time of the video and the like. The video playing parameters include, but are not limited to: the encoding format, resolution, encoding rate, audio parameters, playback duration, etc. of the video stream.
And step 35, the application function entity initiates a call request to the second user terminal to the core network according to the user identifier of the second user terminal, wherein the call type is instant video sharing, and the call request includes the user identifier of the first user terminal.
And step 36, the application function entity receives a session establishment confirmation message sent by the core network based on the call request, wherein the session establishment confirmation message includes the video playing capability parameter of the second user terminal.
Specifically, in step 35, the application Function entity initiates a call request to the second user terminal through a Unified Data Management Function entity (UDM) in a core network (e.g. a 5G core network) according to the user identifier of the second user terminal, and the Unified Data Management Function entity sends the call request to a second Access and Mobility Management Function entity (AMF) currently providing an Access service for the second user terminal in the core network.
In step 36, the application function entity receives a session establishment confirmation message sent by the core network based on the call request, including:
step 361, the second access and mobility management functional entity in the core network interacts with the second user terminal based on the call request to obtain the video playing capability parameter of the second user terminal.
In step 361, the second access and mobility management functional entity, after recognizing that the call type of the call request is instant video sharing based on the call request, interacts with the second user terminal to obtain a video playing capability parameter of the second user terminal, where the video playing capability parameter of the second user terminal includes but is not limited to: codec format, resolution, coding rate, audio parameters, etc.
Step 362, the second access and mobility management functional entity determines a second session management functional entity corresponding to the second user terminal, and sends the video playing capability parameter of the second user terminal to the second session management functional entity.
In step 362, a second Session Management Function (SMF) is used for subsequent Session Management.
Step 363, the second session management functional entity determines a user plane functional entity corresponding to the second user terminal, and sends a session establishment confirmation message to the application functional entity, where the session establishment confirmation message includes the video playing capability parameter of the second user terminal.
Specifically, in step 363, the second session management function entity determines a user plane function entity (such as the second user plane function entity or the first user plane function entity) for providing the video data forwarding service for the second user terminal, and sends a session establishment confirmation message to the application function entity, where the session establishment confirmation message includes, but is not limited to: the video playing capability parameter of the second user terminal and the entry address (i.e. access address) of the user plane functional entity corresponding to the second user terminal, the user plane functional entity corresponding to the second user terminal may be the first user plane functional entity or the second user plane functional entity, and the first user plane functional entity and the second user plane functional entity are different user plane functional entities (UPFs).
And step 37, the application function entity determines the routing information of the video stream to be shared based on the video playing parameter of the video stream to be shared and the video playing capability parameter of the second user terminal.
The target obtaining address in the routing information to be shared includes an entry address of a first user plane functional entity or an entry address of a video server, the first user plane functional entity is a functional entity for providing a forwarding service of a video stream to a first user terminal, and the video server is used for providing the video stream required by the first user terminal, i.e. the video stream to be shared, to the first user plane functional entity through a data network gateway.
Specifically, for a detailed description of this step 37, reference may be made to the description of step 24 in the foregoing second embodiment, and details are not repeated here.
And step 38, the application function entity returns a session establishment success message to the core network based on the session establishment confirmation message of the core network, wherein the session establishment success message comprises the routing information of the video stream to be shared.
Specifically, after the application function entity receives the session establishment confirmation message of the second session management function entity in the core network and performs step 37 in step 36, in step 38, a session establishment success message is returned to the second session management function entity in the core network based on the session establishment confirmation message, where the session establishment success message includes but is not limited to: routing information of the video stream to be shared.
And step 39, the core network sends a ringing instruction to the second user terminal based on the session establishment success message of the application function entity, wherein the ringing instruction comprises the user identifier of the first user terminal, the call type and the routing information of the video stream to be shared.
Specifically, in step 39, after the second session management functional entity in the core network receives the session establishment success message of the application functional entity, if the user plane functional entity corresponding to the second user terminal is the second user plane functional entity, and the second user plane functional entity is different from the first user plane functional entity corresponding to the first user terminal, the second session management functional entity in the core network first notifies the second user plane functional entity to configure a route from the second user plane functional entity to the target acquisition address in the routing information, that is, establish a route from the second user plane functional entity to the first user plane functional entity or establish a route from the second user plane functional entity to the video server. And then, the second session management functional entity in the core network responds to the corresponding routing configuration success message of the second user plane functional entity, and sends the session establishment success message to the second access and mobility management functional entity in the core network. And the second access and mobile management functional entity in the core network responds to the session establishment success message and sends a ringing instruction to the second user terminal.
In step 39, after the second session management functional entity in the core network receives the session establishment success message of the application functional entity, if the user plane functional entity corresponding to the second user terminal is the first user plane functional entity (i.e. the user plane functional entity corresponding to the first user terminal), the first user plane functional entity does not need to configure a corresponding route, and the second session management functional entity in the core network directly sends the session establishment success message to the second access and mobility management functional entity in the core network. And the second access and mobile management functional entity in the core network responds to the session establishment success message and sends a ringing instruction to the second user terminal.
And step 40, the second user terminal rings in response to the ringing instruction and displays the video sharing prompt information on the terminal screen.
For example, the video sharing prompt message may be text message, such as "the user with user id xxx invites you to watch xxx video", and if the user id (mobile phone number) of the first user terminal exists in the preset address book of the second user terminal, the user id in the text message may be replaced with a corresponding name in the preset address book.
And step 41, the second user terminal responds to the answering operation of the user, acquires and plays the corresponding video stream according to the routing information request of the video stream to be shared, and ends the process.
In this embodiment, after the second user terminal rings, the user of the second user terminal can choose to listen or choose to refuse to listen, and when the user chooses to listen, step 41 is executed.
Specifically, as described above, in a case where the second user terminal has the playing capability of the video stream, the target obtaining address of the routing information of the video stream to be shared includes the entry address of the first user plane functional entity, then in step 41, the second user terminal requests the first user plane functional entity to obtain a corresponding video stream through the entry address of the first user plane functional entity according to the routing information of the video stream to be shared by responding to the answering operation of the user, and the first user plane functional entity copies and forwards an identical video stream to the second user terminal according to the preconfigured route and the forwarding state corresponding to the video stream while forwarding the video stream to the first user terminal, where at this time, the second user terminal can obtain and play the video stream.
In step 41, the second user terminal responds to the answering operation of the user, and requests the video server to acquire a corresponding video stream through the entry address of the video server according to the routing information of the video stream to be shared, and the video server responds to the request, and sends the video stream which is cached in advance, has the same content as the video stream to be shared and meets the video playing capability of the second user terminal to the second user terminal through the data network gateway and the user plane functional entity corresponding to the second user terminal, and at this time, the second user terminal can acquire and play the corresponding video stream.
After a period of time after the user selects answering, when the user selects hanging up, the second user terminal responds to the hanging up operation of the user and returns the hanging up message of the second user terminal to the second access and mobile management functional entity in the core network, the second access and mobile management functional entity sends a session termination instruction to the second session management functional entity, and the second session management functional entity interacts with the application functional entity to terminate the session. If the target acquisition address in the routing information comprises an entry address of a first user plane functional entity, the application functional entity responds to a message for terminating the session, and interacts with a unified data storage functional entity (UDR), a policy control functional entity (PCF), a first session management functional entity (SMF) corresponding to a first user terminal and the first user plane functional entity to terminate the video sharing; and if the target acquisition address in the routing information comprises the entry address of the video server, the application function entity responds to the message for terminating the session and interacts with the video server to terminate the video sharing.
When the user selects to reject answering, the second user terminal responds to the operation of rejecting answering of the user, and returns an answering rejection message to the application function entity through the core network, and the application function entity returns a message that the second user terminal rejects the video sharing invitation to the first user terminal. Specifically, the second user terminal responds to the answer rejection operation of the user, and returns an answer rejection message of the second user terminal to a second access and mobility management functional entity in the core network, the second access and mobility management functional entity sends a session termination instruction to a second session management functional entity, the second session management functional entity interacts with an application functional entity to terminate the session, and the application functional entity returns a message that the second user terminal rejects the video sharing invitation to the first user terminal based on the message that terminates the session. Meanwhile, if the target acquisition address in the routing information comprises an entry address of the first user plane functional entity, the application functional entity responds to the message for terminating the session, and interacts with a unified data storage functional entity (UDR), a policy control functional entity (PCF), a first session management functional entity (SMF) corresponding to the first user terminal and the first user plane functional entity to terminate the video sharing; and if the target acquisition address in the routing information comprises the entry address of the video server, the application function entity responds to the message for terminating the session and interacts with the video server to terminate the video sharing.
As an alternative embodiment, the video stream currently being played by the first user terminal is a video stream stored locally, and the local file system of the first user terminal is a video server.
According to the video sharing method provided by the embodiment, when a first user terminal needs to share a video which is currently played to a second user terminal, the first user terminal firstly sends a video sharing request to an application function entity, the application function entity responds to the video sharing request, determines routing information of the video to be shared, and distributes the routing information to the second user terminal, so that the second user terminal obtains and plays the video to be shared based on the routing information request.
Example four
The fourth embodiment of the present disclosure further provides a video sharing method, where the difference between the video sharing method provided in this embodiment and the video sharing method of the second embodiment is: after the application functional entity obtains the video metadata of the video stream to be shared, namely after step 22, the following steps are executed;
231a, the application function entity sends metadata of the video stream to be shared to the second user terminal, where the metadata includes video playing parameters of the video stream, so that the second user terminal can determine whether the second user terminal has the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameters of the video stream to be shared.
In step 231a, the application function entity sends metadata of the video stream to be shared to the second user terminal, so that the second user terminal determines whether the second user terminal has the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared. When the second user terminal judges that the second user terminal has the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared, a first judgment result message representing that the second user terminal has the playing capability of the video stream is returned to the application function entity; when the second user terminal judges that the second user terminal does not have the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared, a second judgment result message for representing that the second user terminal does not have the playing capability of the video stream is returned to the application function entity, and meanwhile, the second judgment result message carries the video playing capability parameter of the second user terminal.
Step 232a, the application function entity obtains a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream.
The judgment result message is a first judgment result message representing that the second user terminal has the playing capability of the video stream, or a second judgment result message representing that the second user terminal does not have the playing capability of the video stream, and when the judgment result message is the second judgment result message, the judgment result message also carries the video playing capability parameter of the second user terminal.
And step 24a, the application function entity determines the routing information of the video stream to be shared according to the judgment result message of the second user terminal.
Specifically, step 24a includes:
step 242a, if the determination result message is a message indicating that the second user terminal has the playing capability of the video stream, the application function entity sends a forwarding state configuration request of the video stream to be shared to the first user plane function entity, so that the first user plane function entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for forwarding the video stream to the second user terminal at the same time.
For the step of the application functional entity sending the forwarding state configuration request of the video stream to be shared to the first user plane functional entity, so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request, and configures a route for simultaneously forwarding the video stream to the second user terminal, refer to the description of step 242 in the second embodiment, which is not described herein again.
Step 243a, the application functional entity determines the routing information of the video stream to be shared in response to the forwarding state configuration success message of the first user plane functional entity, where the routing information includes the entry address of the first user plane functional entity, and jumps to step 25.
For the description of step 243a, reference may be made to the description of step 243 in the second embodiment, and details are not repeated here.
Step 244a, if the judgment result message is a message indicating that the second user terminal has the playing capability of the video stream, the application function entity sends a routing configuration request to the data network gateway, so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request.
For a description of the step of sending, by the application function entity, the route configuration request to the data network gateway, so that the data network gateway configures the route from the data network gateway to the second user terminal according to the route configuration request, reference may be made to the description of step 244 in the foregoing embodiment two, which is not described herein again.
Step 245a, the application function entity sends a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request.
For the description of step 245a, reference may be made to the description of step 245 in the second embodiment, and details are not repeated here.
Step 246a, the application functional entity determines the routing information of the video stream to be shared in response to the successful message of the routing configuration of the data network gateway and the successful message of the video generation of the video server, where the routing information includes the entry address of the video server, and jumps to step 25.
For the description of step 246a, reference may be made to the description of step 246 in the second embodiment, and details are not repeated here.
In addition, for other relevant descriptions of this embodiment, reference may be made to the relevant descriptions of the second embodiment, which are not repeated herein.
EXAMPLE five
The fifth embodiment of the present disclosure further provides a video sharing method, where the difference between the video sharing method provided in this embodiment and the video sharing method in the third embodiment is: after acquiring the video metadata of the video stream to be shared, i.e. after step 34, the application functional entity performs the following steps:
step 35a, the application function entity initiates a call request to the second user terminal to the core network according to the user identifier of the second user terminal, wherein the call type is instant video sharing, and the call request includes the user identifier of the first user terminal and metadata of the video stream to be shared.
Wherein, the step 35a is different from the step 35 in the third embodiment only in that: in step 35a, the call request further includes metadata of the video stream to be shared, and for other relevant descriptions of step 35a, reference may be made to the description of step 35 in the third embodiment, which is not described herein again.
Step 36a, the application function entity receives a session establishment confirmation message sent by the core network based on the call request, where the session establishment confirmation message includes a result message of determining whether the second user terminal has the playing capability of the video stream.
In step 36a, the application function entity receives a session establishment confirmation message sent by the core network based on the call request, including:
step 361a, the second access and mobility management functional entity in the core network interacts with the second user terminal based on the call request to send the metadata of the video stream to be shared to the second user terminal, and obtains a result message of judging whether the second user terminal has the playing capability of the video stream.
In step 361a, after recognizing that the call type of the call request is instant video sharing based on the call request, the second access and mobility management functional entity interacts with the second user terminal to send metadata of the video stream to be shared to the second user terminal, so that the second user terminal determines whether the second user terminal has the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared.
When the second user terminal judges that the second user terminal has the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared, generating a first judgment result message representing that the second user terminal has the playing capability of the video stream; when the second user terminal judges that the second user terminal does not have the playing capability of the video stream according to the video playing capability parameter of the second user terminal and the video playing parameter of the video stream to be shared, a second judgment result message representing that the second user terminal does not have the playing capability of the video stream is generated, and meanwhile, the second judgment result message carries the video playing capability parameter of the second user terminal.
Step 362a, the second access and mobility management functional entity determines a second session management functional entity corresponding to the second user terminal, and sends a result message of determining whether the second user terminal has the playing capability of the video stream to the second session management functional entity.
In step 362a, a second Session Management Function (SMF) is used for subsequent Session Management.
Step 363a, the second session management functional entity determines a user plane functional entity corresponding to the second user terminal, and sends a session establishment confirmation message to the application functional entity, where the session establishment confirmation message includes a result message of the second user terminal determining whether the second user terminal has the playing capability of the video stream.
Specifically, in step 363a, the second session management function entity determines a user plane function entity (such as the second user plane function entity or the first user plane function entity) for providing the video data forwarding service for the second user terminal, and sends a session establishment confirmation message to the application function entity, where the session establishment confirmation message includes but is not limited to: the determination result message and an entry address (i.e. an access address) of a user plane functional entity corresponding to the second user terminal, where the user plane functional entity corresponding to the second user terminal may be a first user plane functional entity or a second user plane functional entity, and the first user plane functional entity and the second user plane functional entity are different user plane functional entities (UPFs).
And step 37a, the application function entity determines the routing information of the video stream to be shared according to the judgment result message of the second user terminal.
Specifically, step 37a includes:
step 371a, if the judgment result message is a message indicating that the second user terminal has the playing capability of the video stream, the application function entity sends a forwarding state configuration request of the video stream to be shared to the first user plane function entity, so that the first user plane function entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for forwarding the video stream to the second user terminal at the same time.
For the description of step 371a, reference may be made to the description of step 242a in the fourth embodiment, and details are not repeated here.
Step 372a, the application functional entity determines the routing information of the video stream to be shared in response to the forwarding state configuration success message of the first user plane functional entity, where the routing information includes the entry address of the first user plane functional entity, and jumps to step 38.
For the description of step 372a, reference may be made to the description of step 243a in the fourth embodiment, and details are not repeated here.
Step 373a, if the judgment result message is a message indicating that the second user terminal has the playing capability of the video stream, the application functional entity sends a routing configuration request to the data network gateway, so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request.
For the description of step 373a, reference may be made to the description of step 244a in the above fourth embodiment, which is not repeated herein.
In step 374a, the application function entity sends a video generation request to the video server, so that the video server generates, according to the video generation request, a video stream that has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal.
For the description of step 374a, reference may be made to the description of step 245a in the fourth embodiment, and details are not repeated here.
Step 375a, the application functional entity determines the routing information of the video stream to be shared in response to the successful message of the routing configuration of the data network gateway and the successful message of the video generation of the video server, where the routing information includes the entry address of the video server, and jumps to step 38.
For the description of step 375a, reference may be made to the description of step 246a in the fourth embodiment, and details are not repeated here.
In addition, for other relevant descriptions of this embodiment, reference may be made to the relevant descriptions in the third embodiment, which are not repeated herein.
EXAMPLE six
Fig. 4 is a block diagram of a video sharing device according to a sixth embodiment of the present invention, and as shown in fig. 4, in this embodiment, the video sharing device includes a receiving module 401 and a routing module 402.
The receiving module 401 is configured to receive a video sharing request sent by a first user terminal, where the video sharing request includes a user identifier of a second user terminal.
The route allocating module 402 is configured to allocate route information of a video stream to be shared to the second user terminal, so that the second user terminal requests, acquires, and plays the video stream that is currently played and requested to be shared by the first user terminal according to the route information.
Optionally, as shown in fig. 4, the video sharing apparatus further includes a first obtaining module 403 and a route determining module 404. The first obtaining module 403 is configured to obtain a video playing parameter of a video stream that is currently played and requested to be shared by a first user terminal; and acquiring the video playing capability parameter of the second user terminal.
The route determining module 404 is configured to determine routing information based on the video playing parameter and the video playing capability parameter of the video stream, where a target obtaining address in the routing information includes an entry address of the first user plane functional entity or an entry address of the video server.
The first user plane functional entity is a functional entity for providing a forwarding service of a video stream to the first user terminal, and the video server is used for providing the video stream required by the first user terminal to the first user plane functional entity through the data network gateway.
In addition, the video sharing device provided in this embodiment is used to implement the video sharing method provided in any one of the first to third embodiments, and for other relevant descriptions of the video sharing device, reference may be made to the description of the video sharing method provided in any one of the first to third embodiments, and details are not repeated here.
EXAMPLE seven
The seventh embodiment of the present invention further provides a video sharing device, and in this embodiment, the video sharing device includes a receiving module and a route allocating module.
The receiving module is used for receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal.
The route distribution module is used for distributing the route information of the video stream to be shared to the second user terminal, so that the second user terminal can obtain the address request from the target in the route information and obtain and play the video stream which is currently played and requested to be shared by the first user terminal according to the route information.
Optionally, the video sharing apparatus further includes: the device comprises a first acquisition module, a first sending module, a second acquisition module and a route determination module.
The first acquisition module is used for acquiring video playing parameters of a video stream which is currently played and requested to be shared by a first user terminal; the first sending module is used for sending the video playing parameters of the video stream to the second user terminal so that the second user terminal can judge whether the second user terminal has the playing capability of the video stream according to the video playing capability parameters of the second user terminal and the video playing parameters of the video stream; the second obtaining module is used for obtaining a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream; and the route determining module is used for determining the route information of the video stream to be shared according to the judgment result message, wherein the target acquisition address in the route information comprises the entry address of the first user plane functional entity or the entry address of the video server.
The first user plane functional entity is a functional entity for providing a forwarding service of a video stream to the first user terminal, and the video server is used for providing the video stream required by the first user terminal to the first user plane functional entity through the data network gateway.
In addition, the video sharing device provided in this embodiment is configured to implement the video sharing method provided in the fourth embodiment or the fifth embodiment, and for other relevant descriptions of the video sharing device, reference may be made to the description of the video sharing method provided in the fourth embodiment or the fifth embodiment, and details are not repeated here.
Example eight
The embodiment of the present invention further provides an application function entity, where the application function entity includes the video sharing device provided in the sixth embodiment or the seventh embodiment.
Example nine
The embodiment of the invention also provides a method for triggering video sharing, which is used for a dialing software system pre-installed on a user terminal and comprises the following steps:
step 501, in response to a user's call operation while the first user terminal is currently playing a video stream, a dialing interface is provided to the user.
Step 502, in response to a user dialing a preset video sharing dedicated number on a dialing interface, sending a video sharing request to a video sharing device to trigger the video sharing device to implement the video sharing method provided in any of the embodiments.
As an optional implementation manner, in step 502, before sending the video sharing request to the video sharing apparatus, the method further includes: and responding to a preset video sharing special number dialed by a user on a dialing interface, and acquiring local first network information of a video stream played by a previous foreground application of the first user terminal on the terminal.
For a specific description of the method for triggering video sharing by the dialing software system, reference may be made to the description in the third embodiment, and details are not repeated here.
Example ten
The embodiment of the invention also provides a dialing software system, which is installed on the user terminal and comprises:
and the calling response module is used for responding to the calling operation of the user when the video stream is played at the first user terminal, and providing a dialing interface for the user.
The second sending module is configured to respond to a user dialing a preset video sharing special number on a dialing interface, and send a video sharing request to the video sharing device, so as to trigger the video sharing device to implement the video sharing method provided in any one of the embodiments.
As an optional implementation, the dialing software system further includes: and the third obtaining module is used for responding to the user dialing the preset video sharing special number on the dialing interface before the second sending module sends the video sharing request to the video sharing device, and obtaining the local first network information of the video stream played by the last foreground application of the first user terminal.
In this embodiment, the dialing software system is used to implement the method for triggering video sharing, and specific relevant descriptions may refer to the description of the method for triggering video sharing in the foregoing embodiment, which is not repeated herein.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (17)

1. A video sharing method, comprising:
receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal;
distributing routing information of a video stream to be shared to the second user terminal, so that the second user terminal requests, acquires and plays the video stream which is currently played and requested to be shared by the first user terminal according to the routing information;
a video sharing client is pre-installed on the first user terminal, and a user sends the video sharing request through the video sharing client when the first user terminal is currently playing the video stream;
the receiving of the video sharing request sent by the first user terminal includes:
receiving the video sharing request sent by a user through the video sharing client;
the video sharing client is a dialing software system, and a user sends the video sharing request through the dialing software system when the first user terminal is playing the video stream currently;
the receiving the video sharing request sent by the user through the video sharing client includes:
receiving a call request triggered when a user dials a preset video sharing special number through the dialing software system, wherein the call request is the video sharing request;
before the allocating the routing information of the video stream to be shared to the second user terminal, the method further includes:
acquiring video playing parameters of the video stream which is currently played and requested to be shared by the first user terminal;
acquiring a video playing capability parameter of the second user terminal;
determining the routing information based on the video playing parameters of the video stream and the video playing capability parameters, wherein a target acquisition address in the routing information comprises an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
2. The video sharing method according to claim 1, wherein the determining the routing information based on the video playing parameter of the video stream and the video playing capability parameter comprises:
determining whether the second user terminal has the playing capability of the video stream according to the video playing parameter and the video playing capability parameter;
if the second user terminal has the playing capability of the video stream, sending a forwarding state configuration request of the video stream to the first user plane functional entity, so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for simultaneously forwarding the video stream to the second user terminal;
and determining the routing information in response to the forwarding state configuration success message of the first user plane functional entity, wherein the target acquisition address of the routing information comprises the entry address of the first user plane functional entity.
3. The video sharing method according to claim 2, wherein after determining whether the second user terminal has the playing capability of the video stream according to the video playing capability parameter, the method further comprises:
if the second user terminal does not have the playing capability of the video stream, sending a routing configuration request to the data network gateway so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request;
sending a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request;
and responding to the routing configuration success message of the data network gateway and the video generation success message of the video server, and determining the routing information, wherein the target acquisition address of the routing information comprises the entry address of the video server.
4. The video sharing method according to claim 3, wherein the video sharing request further includes first network information of the video stream locally at the terminal, and the first network information of the video stream locally at the terminal is acquired by the dial-up software system when the dial-up software system calls itself out;
before the obtaining of the video playing parameter of the video stream currently played and requested to be shared by the first user terminal, the method further includes:
inquiring source information of the video stream according to first network information of the video stream in a local terminal, wherein the source information of the video stream comprises second network information of the video stream in the data network gateway, and a mapping relation is formed between the first network information and the second network information;
sending an authentication request to the video server, wherein the authentication request comprises the second network information;
the obtaining of the video playing parameter of the video stream currently played and requested to be shared by the first user terminal includes: and receiving metadata of the video stream sent by the video server after the authentication is passed, wherein the metadata of the video stream comprises video playing parameters of the video stream.
5. The video sharing method according to claim 4, wherein the source information of the video stream further includes an identification of the video server;
the sending of the authentication request to the video server includes: and sending the authentication request to the video server according to the identifier of the video server.
6. The video sharing method according to claim 4, wherein before the obtaining the video playing capability parameter of the second user terminal, the method further comprises:
initiating a call request to a second user terminal to a core network according to the user identification of the second user terminal, wherein the call type is instant video sharing;
the acquiring of the video playing capability parameter of the second user terminal includes: and receiving a session establishment confirmation message sent by the core network based on the call request, wherein the session establishment confirmation message comprises a video playing capability parameter of the second user terminal.
7. The video sharing method according to claim 6, wherein the allocating, to the second user terminal, routing information of the video stream to be shared includes:
and returning a session establishment success message to the core network based on the session establishment confirmation message, wherein the session establishment success message comprises the routing information, so that the core network sends a ringing instruction to the second user terminal based on the session establishment success message, and the ringing instruction comprises the routing information.
8. The video sharing method according to claim 1, wherein before the allocating the routing information of the video stream to be shared to the second user terminal, the method further comprises:
acquiring video playing parameters of the video stream which is currently played and requested to be shared by the first user terminal;
sending the video playing parameters of the video stream to a second user terminal, so that the second user terminal can judge whether the second user terminal has the playing capability of the video stream according to the video playing capability parameters of the second user terminal and the video playing parameters of the video stream;
obtaining a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream;
determining routing information of a video stream to be shared according to the judgment result message, wherein a target acquisition address in the routing information comprises an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
9. The video sharing method according to claim 8, wherein the determining, according to the determination result message, the routing information of the video stream to be shared includes:
if the judgment result message is a message representing that a second user terminal has the playing capability of the video stream, sending a forwarding state configuration request of the video stream to the first user plane functional entity so that the first user plane functional entity modifies the forwarding state of the video stream according to the forwarding state configuration request and configures a route for simultaneously forwarding the video stream to the second user terminal;
and determining the routing information in response to the forwarding state configuration success message of the first user plane functional entity, wherein the target acquisition address of the routing information comprises the entry address of the first user plane functional entity.
10. The video sharing method according to claim 9, wherein the determining, according to the determination result message, the routing information of the video stream to be shared further includes:
if the judgment result message is a message representing that the second user terminal does not have the playing capability of the video stream, sending a routing configuration request to the data network gateway so that the data network gateway configures a route from the data network gateway to the second user terminal according to the routing configuration request;
sending a video generation request to the video server, so that the video server generates a video stream which has the same content as the video stream currently played by the first user terminal and meets the playing capability of the second user terminal according to the video generation request;
and responding to the routing configuration success message of the data network gateway and the video generation success message of the video server, and determining the routing information, wherein the target acquisition address of the routing information comprises the entry address of the video server.
11. A video sharing apparatus, comprising:
the video sharing method comprises the steps that a receiving module is used for receiving a video sharing request sent by a first user terminal, wherein the video sharing request comprises a user identifier of a second user terminal;
the route distribution module is used for distributing the route information of the video stream to be shared to the second user terminal so that the second user terminal can request, acquire and play the video stream which is currently played and requested to be shared by the first user terminal according to the route information;
further comprising:
a first obtaining module, configured to obtain a video playing parameter of the video stream that is currently played and requested to be shared by the first user terminal; acquiring a video playing capability parameter of the second user terminal;
a route determining module, configured to determine the routing information based on a video playing parameter of the video stream and the video playing capability parameter, where a target acquisition address in the routing information includes an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
12. The video sharing apparatus according to claim 11, further comprising:
a first obtaining module, configured to obtain a video playing parameter of the video stream that is currently played and requested to be shared by the first user terminal;
the first sending module is used for sending the video playing parameters of the video stream to a second user terminal so that the second user terminal can judge whether the second user terminal has the playing capability of the video stream according to the video playing capability parameters of the second user terminal and the video playing parameters of the video stream;
the second obtaining module is used for obtaining a judgment result message returned by the second user terminal after judging whether the second user terminal has the playing capability of the video stream;
a route determining module, configured to determine, according to the determination result message, route information of a video stream to be shared, where a target acquisition address in the route information includes an entry address of a first user plane functional entity or an entry address of a video server;
the first user plane functional entity is a functional entity for providing a forwarding service of the video stream to the first user terminal, and the video server is configured to provide the video stream required by the first user terminal to the first user plane functional entity through a data network gateway.
13. An application function entity, comprising the video sharing apparatus according to claim 11 or 12.
14. A method for triggering video sharing is characterized in that the method is used for a dialing software system pre-installed in a user terminal, and the method comprises the following steps:
responding to the calling operation of a user when the first user terminal is playing the video stream currently, and providing a dialing interface for the user;
responding to a preset video sharing special number dialed by a user on the dialing interface, and sending a video sharing request to a video sharing device to trigger the video sharing device to realize the video sharing method according to any one of the claims 1 to 10.
15. The method according to claim 14, wherein before sending the video sharing request to the video sharing device, further comprising:
and responding to a preset video sharing special number dialed by a user on the dialing interface, and acquiring local first network information of the video stream played by the last foreground application of the first user terminal.
16. A software dialing system installed in a user terminal, the software dialing system comprising:
the calling response module is used for responding to calling operation of a user when the first user terminal plays the video stream currently and providing a dialing interface for the user;
a second sending module, configured to send a video sharing request to a video sharing device in response to a user dialing a preset video sharing private number on the dialing interface, so as to trigger the video sharing device to implement the video sharing method according to any one of claims 1 to 10.
17. The dialing software system of claim 16, further comprising:
and the third obtaining module is used for responding to a user dialing a preset video sharing special number on the dialing interface before the second sending module sends a video sharing request to the video sharing device, and obtaining the local first network information of the video stream played by the last foreground application of the first user terminal.
CN202011122948.6A 2020-10-20 2020-10-20 Video sharing method and device, application function entity and dialing software system Active CN112261490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011122948.6A CN112261490B (en) 2020-10-20 2020-10-20 Video sharing method and device, application function entity and dialing software system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011122948.6A CN112261490B (en) 2020-10-20 2020-10-20 Video sharing method and device, application function entity and dialing software system

Publications (2)

Publication Number Publication Date
CN112261490A CN112261490A (en) 2021-01-22
CN112261490B true CN112261490B (en) 2022-04-26

Family

ID=74244364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011122948.6A Active CN112261490B (en) 2020-10-20 2020-10-20 Video sharing method and device, application function entity and dialing software system

Country Status (1)

Country Link
CN (1) CN112261490B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489309A (en) * 2008-01-18 2009-07-22 希姆通信息技术(上海)有限公司 Method and double mode double standby terminal for implementing video sharing service
CN101707686A (en) * 2009-10-30 2010-05-12 中兴通讯股份有限公司 Method and system for sharing video between mobile terminals
CN104717559A (en) * 2013-12-13 2015-06-17 中国电信股份有限公司 Method, video server and system for sharing online video
CN105872618A (en) * 2015-11-16 2016-08-17 乐视致新电子科技(天津)有限公司 Video resource sharing method and system, and related devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325173B (en) * 2011-08-30 2013-12-11 重庆抛物线信息技术有限责任公司 Mixed audio and video sharing method and system
WO2013173479A1 (en) * 2012-05-15 2013-11-21 H4 Engineering, Inc. High quality video sharing systems
CN103647991A (en) * 2013-12-23 2014-03-19 乐视致新电子科技(天津)有限公司 Method and system for sharing video in intelligent television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489309A (en) * 2008-01-18 2009-07-22 希姆通信息技术(上海)有限公司 Method and double mode double standby terminal for implementing video sharing service
CN101707686A (en) * 2009-10-30 2010-05-12 中兴通讯股份有限公司 Method and system for sharing video between mobile terminals
CN104717559A (en) * 2013-12-13 2015-06-17 中国电信股份有限公司 Method, video server and system for sharing online video
CN105872618A (en) * 2015-11-16 2016-08-17 乐视致新电子科技(天津)有限公司 Video resource sharing method and system, and related devices
WO2017084318A1 (en) * 2015-11-16 2017-05-26 乐视控股(北京)有限公司 Video resource sharing method and system, and related device

Also Published As

Publication number Publication date
CN112261490A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
AU2018208684B2 (en) User controlled call management
US8565267B2 (en) Web based unified communication system and method, and web communication manager
RU2532729C2 (en) Method and service node for accessing video part of voice and video call and method of adding video part to voice call
KR100629088B1 (en) Distributed Call System
JP2012090250A (en) Multi-layer stack platform for cloud communications
CN1984373B (en) System and method for providing multimedia contents in a communication system
US20110131276A1 (en) Method and System for Automatically Storing a Communication Session
US8804936B2 (en) Shared media access for real time first and third party media control
US9008287B2 (en) Data communication
US8983043B2 (en) Data communication
EP2671366B1 (en) Determining a location address for shared data
AU2003200825B2 (en) Apparatus and method for compulsively receiving multi-calls over internet protocol phones in internet protocol telephony system
CN112261490B (en) Video sharing method and device, application function entity and dialing software system
JP2003324524A (en) Private telephone exchange system, terminal, server and gateway
KR20100130208A (en) Distribution of a call to all terminals connected to one gateway
CN110545527B (en) Call forwarding method, video communication server and calling terminal
CN114244812A (en) Voice communication method, device, electronic equipment and computer readable medium
US8938055B2 (en) System and method for establishing data communication using pre-configured user data
US8804928B2 (en) System and method for allowing virtual private network users to obtain presence status and/or location of others on demand
WO2012052705A1 (en) Data communication
KR100596003B1 (en) Method for providing barge-in service and IP switch using the method
CN117676479A (en) Route configuration method, device, equipment and storage medium
CN116708380A (en) Method, device and system for executing call related service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant