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 PDFInfo
- 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
- request
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000012790 confirmation Methods 0.000 claims description 24
- 230000001960 triggered effect Effects 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 3
- 238000007726 management method Methods 0.000 description 44
- 238000013500 data storage Methods 0.000 description 5
- 238000013523 data management Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/637—Control signals issued by the client directed to the server or network components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/637—Control signals issued by the client directed to the server or network components
- H04N21/6371—Control signals issued by the client directed to the server or network components directed to network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking 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 includes: receiving a video sharing request sent by a first user terminal, where the video sharing request includes a user identification of a second user terminal; and allocating routing information of a video stream to be shared to the second user terminal for use in The second user terminal requests, acquires and plays the video stream currently played by the first user terminal and requested to be shared according to the routing information. The present invention can improve the convenience of video sharing and improve the user experience.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种视频分享方法、触发视频分享的方法、视频分享装置、应用功能实体及拨号软件系统。The present invention relates to the field of communication technologies, 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 technique
目前的视频分享方式基本上是通过发送视频链接的方式,将被分享的视频链接发送给被分享的用户。被分享的用户需要点击某个特定的链接,甚至于需要安装与分享者同样的视频应用才能打开分享的视频,这种方式降低了视频分享的便捷性,也降低了用户体验度。The current video sharing method basically sends the shared video link to the shared user by sending the video link. The shared user needs to click on a specific link, or even needs to install the same video application as the sharer to open the shared video, which reduces the convenience of video sharing and the user experience.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题之一,提供一种视频分享方法、触发视频分享的方法、视频分享装置、应用功能实体及拨号软件系统。The present invention aims to solve at least one of the technical problems existing in the prior art, and provides a video sharing method, a method for triggering video sharing, a video sharing device, an application functional entity and a dial-up software system.
为实现上述目的,本发明提供一种视频分享方法,该视频分享方法包括:To achieve the above object, the present invention provides a video sharing method, which includes:
接收第一用户终端发送的视频共享请求,所述视频共享请求包括第二用户终端的用户标识;receiving a video sharing request sent by the first user terminal, where the video sharing request includes a user identifier of the second user terminal;
向所述第二用户终端分配待共享的视频流的路由信息,以供所述第二用户终端根据所述路由信息,请求、获取并播放所述第一用户终端当前播放并请求共享的所述视频流。Allocate 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 currently played and requested to be shared by the first user terminal according to the routing information. video stream.
可选地,所述第一用户终端上预先安装有视频分享客户端,用户在所述第一用户终端当前正在播放所述视频流时通过所述视频分享客户端发送所述视频共享请求;Optionally, a video sharing client is pre-installed on the first user terminal, and the user sends the video sharing request through the video sharing client when the first user terminal is currently playing the video stream;
所述接收第一用户终端发送的视频共享请求,包括:The receiving a video sharing request sent by the first user terminal includes:
接收用户通过所述视频分享客户端发送的所述视频共享请求。The video sharing request sent by the user through the video sharing client is received.
可选地,所述视频分享客户端为拨号软件系统,用户在所述第一用户终端当前正在播放所述视频流时通过所述拨号软件系统发送所述视频共享请求;Optionally, the video sharing client is a dial-up software system, and the user sends the video sharing request through the dial-up 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:
接收用户通过所述拨号软件系统拨打预设的视频分享专用号码时所触发的呼叫请求,所述呼叫请求即为所述视频共享请求。A call request triggered when a user dials a preset dedicated video sharing number through the dialing software system is received, and the call request is the video sharing request.
可选地,所述向所述第二用户终端分配待分享的视频流的路由信息之前,还包括:Optionally, before allocating the routing information of the video stream to be shared to the second user terminal, the method further includes:
获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数;Obtain the video playback parameters of the video stream currently played by the first user terminal and requested to be shared;
获取所述第二用户终端的视频播放能力参数;acquiring the video playback capability parameter of the second user terminal;
基于所述视频流的视频播放参数和所述视频播放能力参数,确定所述路由信息,所述路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址;Determine the routing information based on the video playback parameter of the video stream and the video playback capability parameter, and the target acquisition address in the routing information includes 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 the video stream forwarding service to the first user terminal, and the video server is configured to provide the first user plane function through a data network gateway The entity provides the video stream required by the first user terminal.
可选地,所述基于所述视频流的视频播放参数和所述视频播放能力参数,确定所述路由信息,包括:Optionally, the determining of the routing information based on the video playback parameters of the video stream and the video playback capability parameters includes:
根据所述视频播放参数和所述视频播放能力参数,确定所述第二用户终端是否具备所述视频流的播放能力;determining whether the second user terminal has the playback capability of the video stream according to the video playback parameter and the video playback capability parameter;
若所述第二用户终端具备所述视频流的播放能力,则向所述第一用户平面功能实体发送所述视频流的转发状态配置请求,以供所述第一用户平面功能实体根据所述转发状态配置请求修改所述视频流的转发状态,并配置将所述视频流同时转发给所述第二用户终端的路由;If the second user terminal has the playback capability of the video stream, send a forwarding state configuration request of the video stream to the first user plane functional entity, so that the first user plane functional entity can use the The forwarding state configuration request modifies the forwarding state of the video stream, and configures a route for simultaneously forwarding the video stream to the second user terminal;
响应于所述第一用户平面功能实体的转发状态配置成功消息,确定出所述路由信息,所述路由信息的目标获取地址包括所述第一用户平面功能实体的入口地址。In response to the forwarding state configuration success message of the first user plane functional entity, the routing information is determined, and the target acquisition address of the routing information includes the entry address of the first user plane functional entity.
可选地,所述根据所述视频播放能力参数,确定所述第二用户终端是否具备所述视频流的播放能力之后,还包括:Optionally, after determining whether the second user terminal has the playback capability of the video stream according to the video playback capability parameter, the method further includes:
若所述第二用户终端不具备所述视频流的播放能力,则向所述数据网络网关发送路由配置请求,以供所述数据网络网关根据所述路由配置请求配置从所述数据网络网关到所述第二用户终端的路由;If the second user terminal does not have the ability to play the video stream, send a routing configuration request to the data network gateway, so that the data network gateway can configure a route from the data network gateway to the data network gateway according to the routing configuration request. the route of the second user terminal;
向所述视频服务器发送视频生成请求,以供所述视频服务器根据所述视频生成请求生成与所述第一用户终端当前播放的所述视频流的内容相同、且满足所述第二用户终端的播放能力的视频流;Send a video generation request to the video server, so that the video server can generate, according to the video generation request, the same content as the video stream currently played by the first user terminal and satisfy the requirements of the second user terminal. Play-capable video streams;
响应于所述数据网络网关的路由配置成功消息以及所述视频服务器的视频生成成功消息,确定出所述路由信息,所述路由信息的目标获取地址包括所述视频服务器的入口地址。In response to the routing configuration success message of the data network gateway and the video generation success message of the video server, the routing information is determined, and the target acquisition address of the routing information includes the entry address of the video server.
可选地,所述视频共享请求还包括所述视频流在终端本地的第一网络信息,所述视频流在终端本地的第一网络信息为所述拨号软件系统在自身被调出时获取;Optionally, the video sharing request further includes the local first network information of the video stream in the terminal, and the local first network information of the video stream in the terminal is obtained by the dial-up software system when it is called out;
所述获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数之前,还包括:Before acquiring the video playback parameters of the video stream currently played by the first user terminal and requested to be shared, the method further includes:
根据所述视频流在终端本地的第一网络信息,查询出所述视频流的来源信息,所述视频流的来源信息包括所述视频流在所述数据网络网关中的第二网络信息,所述第一网络信息与所述第二网络信息之间为映射关系;According to the local first network information of the video stream in the terminal, the source information of the video stream is queried, and the source information of the video stream includes the second network information of the video stream in the data network gateway. a mapping relationship between the first network information and the second network information;
向所述视频服务器发送鉴权请求,所述鉴权请求包括所述第二网络信息;sending an authentication request to the video server, where the authentication request includes the second network information;
所述获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数,包括:接收所述视频服务器在鉴权通过后发送的所述视频流的元数据,所述视频流的元数据包括所述视频流的视频播放参数。The acquiring the video playback parameters of the video stream currently played by the first user terminal and requested to share includes: receiving metadata of the video stream sent by the video server after authentication is passed, the video stream The metadata includes the video playback parameters of the video stream.
可选地,所述视频流的所述来源信息还包括所述视频服务器的标识;Optionally, the source information of the video stream further includes an identifier of the video server;
所述向所述视频服务器发送鉴权请求,包括:根据所述视频服务器的标识向所述视频服务器发送所述鉴权请求。The sending the authentication request to the video server includes: sending the authentication request to the video server according to the identification of the video server.
可选地,所述获取所述第二用户终端的视频播放能力参数之前,还包括:Optionally, before acquiring the video playback capability parameter of the second user terminal, the method further includes:
根据所述第二用户终端的用户标识,向核心网发起对所述第二用户终端的呼叫请求,其中呼叫类型为即时视频分享;according to the user identity of the second user terminal, initiate a call request to the second user terminal to the core network, where the call type is instant video sharing;
所述获取所述第二用户终端的视频播放能力参数,包括:接收所述核心网基于所述呼叫请求发送的会话建立确认消息,所述会话建立确认消息包括第二用户终端的视频播放能力参数。The acquiring the video playback capability parameter of the second user terminal includes: receiving a session establishment confirmation message sent by the core network based on the call request, where the session establishment confirmation message includes the video playback capability parameter of the second user terminal .
可选地,所述向所述第二用户终端分配待共享的视频流的路由信息,包括:Optionally, the allocating routing information of the video stream to be shared to the second user terminal includes:
基于所述会话建立确认消息向所述核心网返回会话建立成功消息,所述会话建立成功消息包括所述路由信息,以供所述核心网基于所述会话建立成功消息向所述第二用户终端发出振铃指令,所述振铃指令包括所述路由信息。A session establishment success message is returned to the core network based on the session establishment confirmation message, where the session establishment success message includes the routing information, so that the core network can send a session establishment success message to the second user terminal based on the session establishment success message A ringing instruction is issued, and the ringing instruction includes the routing information.
可选地,所述向所述第二用户终端分配待分享的视频流的路由信息之前,还包括:Optionally, before allocating the routing information of the video stream to be shared to the second user terminal, the method further includes:
获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数;Obtain the video playback parameters of the video stream currently played by the first user terminal and requested to be shared;
向第二用户终端发送所述视频流的视频播放参数,以供所述第二用户终端根据自身的视频播放能力参数和所述视频流的视频播放参数,判断自身是否具备该视频流的播放能力;Send the video playback parameters of the video stream to the second user terminal, so that the second user terminal can determine whether it has the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream. ;
获取所述第二用户终端在判断出自身是否具备该视频流的播放能力后返回的判断结果消息;obtaining a judgment result message returned by the second user terminal after judging whether it has the playback capability of the video stream;
根据所述判断结果消息,确定待共享的视频流的路由信息,所述路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址;According to the judgment result message, determine the routing information of the video stream to be shared, and the target acquisition address in the routing information includes 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 the video stream forwarding service to the first user terminal, and the video server is configured to provide the first user plane function through a data network gateway The entity provides the video stream required by the first user terminal.
可选地,所述根据所述判断结果消息,确定待共享的视频流的路由信息,包括:Optionally, determining the routing information of the video stream to be shared according to the judgment result message, including:
若该判断结果消息为表征第二用户终端具备该视频流的播放能力的消息,则向所述第一用户平面功能实体发送所述视频流的转发状态配置请求,以供所述第一用户平面功能实体根据所述转发状态配置请求修改所述视频流的转发状态,并配置将所述视频流同时转发给所述第二用户终端的路由;If the judgment result message is a message indicating that the second user terminal has the playback capability of the video stream, send a forwarding state configuration request of the video stream to the first user plane functional entity for the first user plane The 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;
响应于所述第一用户平面功能实体的转发状态配置成功消息,确定出所述路由信息,所述路由信息的目标获取地址包括所述第一用户平面功能实体的入口地址。In response to the forwarding state configuration success message of the first user plane functional entity, the routing information is determined, and the target acquisition address of the routing information includes the entry address of the first user plane functional entity.
可选地,所述根据所述判断结果消息,确定待共享的视频流的路由信息,还包括:Optionally, determining the routing information of the video stream to be shared according to the judgment result message, further comprising:
若该判断结果消息为表征第二用户终端不具备该视频流的播放能力的消息,则向所述数据网络网关发送路由配置请求,以供所述数据网络网关根据所述路由配置请求配置从所述数据网络网关到所述第二用户终端的路由;If the judgment result message is a message indicating that the second user terminal does not have the playback capability of the video stream, send a routing configuration request to the data network gateway, so that the data network gateway can configure the data network gateway according to the routing configuration request. a route from the data network gateway to the second user terminal;
向所述视频服务器发送视频生成请求,以供所述视频服务器根据所述视频生成请求生成与所述第一用户终端当前播放的所述视频流的内容相同、且满足所述第二用户终端的播放能力的视频流;Send a video generation request to the video server, so that the video server can generate, according to the video generation request, the same content as the video stream currently played by the first user terminal and satisfy the requirements of the second user terminal. Play-capable video streams;
响应于所述数据网络网关的路由配置成功消息以及所述视频服务器的视频生成成功消息,确定出所述路由信息,所述路由信息的目标获取地址包括所述视频服务器的入口地址。In response to the routing configuration success message of the data network gateway and the video generation success message of the video server, the routing information is determined, and the target acquisition address of the routing information includes the entry address of the video server.
为实现上述目的,本发明实施例还提供了一种视频分享装置,该装置括:To achieve the above purpose, an embodiment of the present invention also provides a video sharing device, the device includes:
接收模块,用于接收第一用户终端发送的视频共享请求,所述视频共享请求包括第二用户终端的用户标识;a receiving module, configured to receive a video sharing request sent by the first user terminal, where the video sharing request includes the user identifier of the second user terminal;
路由分配模块,用于向所述第二用户终端分配待共享的视频流的路由信息,以供所述第二用户终端根据所述路由信息,请求、获取并播放所述第一用户终端当前播放并请求共享的所述视频流。A routing allocation module, configured to allocate 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 current playing of the first user terminal according to the routing information and request the shared video stream.
可选地,该装置还包括:Optionally, the device also includes:
第一获取模块,用于获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数;获取所述第二用户终端的视频播放能力参数;a first acquiring module, configured to acquire the video playback parameters of the video stream currently played by the first user terminal and request to share; acquire the video playback capability parameters of the second user terminal;
路由确定模块,用于基于所述视频流的视频播放参数和所述视频播放能力参数,确定所述路由信息,所述路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址;A routing determination module, configured to determine the routing information based on the video playback parameters of the video stream and the video playback capability parameters, where the target acquisition address in the routing information includes the entry address of the first user plane functional entity or the video The entry address of the server;
其中,所述第一用户平面功能实体为用于向所述第一用户终端提供所述视频流的转发服务的功能实体,所述视频服务器用于通过数据网络网关向所述第一用户平面功能实体提供所述第一用户终端所需的所述视频流。The first user plane functional entity is a functional entity for providing the video stream forwarding service to the first user terminal, and the video server is configured to provide the first user plane function through a data network gateway The entity provides the video stream required by the first user terminal.
可选地,该装置还包括:Optionally, the device also includes:
第一获取模块,用于获取所述第一用户终端当前播放并请求共享的所述视频流的视频播放参数;a first acquisition module, configured to acquire the video playback parameters of the video stream currently played by the first user terminal and requested to be shared;
第一发送模块,用于向第二用户终端发送所述视频流的视频播放参数,以供所述第二用户终端根据自身的视频播放能力参数和所述视频流的视频播放参数,判断自身是否具备该视频流的播放能力;The first sending module is configured to send the video playback parameters of the video stream to the second user terminal, so that the second user terminal can determine whether it is based on its own video playback capability parameters and the video playback parameters of the video stream. Possess the playback capability of the video stream;
第二获取模块,用于获取所述第二用户终端在判断出自身是否具备该视频流的播放能力后返回的判断结果消息;a second obtaining module, configured to obtain a judgment result message returned by the second user terminal after judging whether it has the playback capability of the video stream;
路由确定模块,用于根据所述判断结果消息,确定待共享的视频流的路由信息,所述路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址;a routing determination module, configured to determine routing information of the video stream to be shared according to the judgment result message, where the target acquisition address in the routing information includes 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 the video stream forwarding service to the first user terminal, and the video server is configured to provide the first user plane function through a data network gateway The entity provides the video stream required by the first user terminal.
为实现上述目的,本发明实施例还提供了一种应用功能实体,该应用功能实体包括上述的视频分享装置。To achieve the above object, an embodiment of the present invention further provides an application function entity, where the application function entity includes the above video sharing apparatus.
为实现上述目的,本发明实施例还提供了一种触发视频分享的方法,该方法用于用户终端预先安装的拨号软件系统,该方法包括:To achieve the above purpose, an embodiment of the present invention also provides a method for triggering video sharing. The method is used in a dial-up software system pre-installed on a user terminal, and the method includes:
响应于在第一用户终端当前正在播放视频流时用户的调用操作,向用户提供拨号界面;In response to the user's calling operation when the first user terminal is currently playing the video stream, a dialing interface is provided to the user;
响应于用户在所述拨号界面拨打预设的视频分享专用号码,向视频分享装置发送视频共享请求,以触发所述视频分享装置实现上述的视频分享方法。In response to the user dialing the preset dedicated video sharing number on the dialing interface, a video sharing request is sent to the video sharing device to trigger the video sharing device to implement the above video sharing method.
可选地,所述向视频分享装置发送视频共享请求之前,还包括:Optionally, before the video sharing request is sent to the video sharing device, the method further includes:
响应于用户在所述拨号界面拨打预设的视频分享专用号码,获取所述第一用户终端的上一前台应用所播放的所述视频流在终端本地的第一网络信息。In response to the user dialing the preset dedicated video sharing number on the dialing interface, the terminal local first network information of the video stream played by the last foreground application of the first user terminal is acquired.
为实现上述目的,本发明实施例还提供了一种拨号软件系统,该拨号软件系统安装于用户终端,该拨号软件系统包括:To achieve the above purpose, the embodiment of the present invention also provides a dial-up software system, the dial-up software system is installed on the user terminal, and the dial-up software system includes:
调用响应模块,用于响应于在第一用户终端当前正在播放视频流时用户的调用操作,向用户提供拨号界面;a call response module, configured to provide a dialing interface to the user in response to the user's calling operation when the first user terminal is currently playing the video stream;
第二发送模块,用于响应于用户在所述拨号界面拨打预设的视频分享专用号码,向视频分享装置发送视频共享请求,以触发所述视频分享装置实现上述的视频分享方法。The second sending module is configured to send a video sharing request to the video sharing device in response to the user dialing the preset dedicated video sharing number on the dialing interface, so as to trigger the video sharing device to implement the above video sharing method.
可选地,该拨号软件系统还包括:Optionally, the dialing software system further includes:
第三获取模块,用于在所述第二发送模块向视频分享装置发送视频共享请求之前,响应于用户在所述拨号界面拨打预设的视频分享专用号码,获取所述第一用户终端的上一前台应用所播放的所述视频流在终端本地的第一网络信息。A third obtaining module, configured to obtain the user terminal's user terminal in response to the user dialing a preset dedicated video sharing number on the dialing interface before the second sending module sends a video sharing request to the video sharing device. The first network information local to the terminal of the video stream played by a foreground application.
本发明至少具有如下有益效果:The present invention has at least the following beneficial effects:
本发明所提供的视频分享方法、触发视频分享的方法、视频分享装置、应用功能实体及拨号软件系统的技术方案中,响应于第一用户终端的视频共享请求,向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据路由信息,请求、获取并播放第一用户终端当前播放并请求共享的视频流,第二用户终端无需安装特定的应用,也无需点击视频链接,即可实现第一用户终端共享的视频流的播放,从而提高了视频分享的便捷性,也提高了用户体验度。In the technical solutions of the video sharing method, the method for triggering video sharing, the video sharing device, the application function entity and the dial-up software system provided by the present invention, in response to the video sharing request of the first user terminal, an allocation to be shared is allocated to the second user terminal The routing information of the video stream, so that the second user terminal can request, obtain and play the video stream currently played and requested by the first user terminal according to the routing information. The second user terminal does not need to install a specific application or click the video link. , the video stream shared by the first user terminal can be played, thereby improving the convenience of video sharing and improving the user experience.
附图说明Description of drawings
图1为本发明实施例一提供的一种视频分享方法的流程图;1 is a flowchart of a video sharing method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种视频分享方法的流程图;2 is a flowchart of a video sharing method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种视频分享方法的流程图;3 is a flowchart of a video sharing method according to Embodiment 3 of the present invention;
图4为本发明实施例六提供的一种视频分享装置的组成框图。FIG. 4 is a block diagram of a video sharing apparatus according to Embodiment 6 of the present invention.
具体实施方式Detailed ways
为使本领域的技术人员更好地理解本发明的技术方案,下面结合附图对本发明提供的视频分享方法、触发视频分享的方法、视频分享装置、应用功能实体及拨号软件系统进行详细描述。In order to make those skilled in the art better understand the technical solutions of the present invention, the video sharing method, the method for triggering video sharing, the video sharing device, the application functional entity and the dialing software system provided by the present invention are described in detail below with reference to the accompanying drawings.
实施例一Example 1
图1为本发明实施例一提供的一种视频分享方法的流程图,如图1所示,该视频分享方法包括:FIG. 1 is a flowchart of a video sharing method according to Embodiment 1 of the present invention. As shown in FIG. 1 , the video sharing method includes:
步骤11、接收第一用户终端发送的视频共享请求,视频共享请求包括第二用户终端的用户标识。Step 11: Receive a video sharing request sent by the first user terminal, where the video sharing request includes the user identifier of the second user terminal.
步骤12、向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据路由信息,请求、获取并播放第一用户终端当前播放并请求共享的视频流。Step 12: Allocate 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 currently played and requested to be shared by the first user terminal according to the routing information.
本实施例所提供的视频分享方法,响应于第一用户终端的视频共享请求,向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据路由信息,请求、获取并播放第一用户终端当前播放并请求共享的视频流,第二用户终端无需安装特定的应用,也无需点击视频链接,即可实现第一用户终端共享的视频流的播放,从而提高了视频分享的便捷性,也提高了用户体验度。In the video sharing method provided in this embodiment, in response to the video sharing request of the first user terminal, routing information of the video stream to be shared is allocated to the second user terminal, so that the second user terminal can request, obtain and share the video stream according to the routing information. Playing the video stream currently played by the first user terminal and requesting to be shared, the second user terminal does not need to install a specific application or click a video link to play the video stream shared by the first user terminal, thereby improving the sharing of video. Convenience also improves user experience.
实施例二Embodiment 2
图2为本发明实施例二提供的一种视频分享方法的流程图,如图2所示,该视频分享方法基于应用功能实体实现,该视频分享方法包括:FIG. 2 is a flowchart of a video sharing method provided in Embodiment 2 of the present invention. As shown in FIG. 2 , the video sharing method is implemented based on an application function entity, and the video sharing method includes:
步骤21、应用功能实体接收第一用户终端发送的视频共享请求,该视频共享请求包括第二用户终端的用户标识以及待共享的视频流在终端本地的第一网络信息。Step 21: The application function entity receives a video sharing request sent by the first user terminal, where the video sharing request includes the user identifier of the second user terminal and the local first network information of the video stream to be shared in the terminal.
在本实施例中,在步骤21之前,第一用户终端当前正在播放某一视频流,视频服务器通过数据网络网关、第一用户终端对应的第一用户平面功能实体将该视频流的数据发送给该第一用户终端。In this embodiment, before
在本实施例中,当第一用户终端需要将当前正在播放的视频流分享给第二用户终端时,第一用户终端首先向应用功能实体(Application Function,简称:AF)发送视频共享请求。In this embodiment, when the first user terminal needs to share the currently playing video stream to the second user terminal, the first user terminal first sends a video sharing request to an application function entity (Application Function, AF for short).
步骤22、应用功能实体获取第一用户终端当前播放并请求共享的视频流的视频播放参数。Step 22: The application function entity acquires the video playback parameters of the video stream currently played by the first user terminal and requested to be shared.
具体地,应用功能实体从该视频流对应的视频服务器处获取该视频流的元数据,该视频流的元数据包括该视频流的视频播放参数,该视频播放参数包括但不限于:该视频流的编码格式、分辨率、编码率、音频参数等。Specifically, the application function entity obtains the metadata of the video stream from the video server corresponding to the video stream, the metadata of the video stream includes the video playback parameters of the video stream, and the video playback parameters include but are not limited to: the video stream The encoding format, resolution, encoding rate, audio parameters, etc.
步骤23、应用功能实体获取第二用户终端的视频播放能力参数。Step 23: The application function entity acquires the video playback capability parameter of the second user terminal.
其中,应用功能实体通过核心网与第二用户终端交互,以获取该第二用户终端的视频播放能力参数,该第二用户终端的视频播放能力参数包括但不限于:编解码格式、分辨率、编码率、音频参数等。Wherein, the application function entity interacts with the second user terminal through the core network to obtain video playback capability parameters of the second user terminal, and the video playback capability parameters of the second user terminal include but are not limited to: codec format, resolution, encoding rate, audio parameters, etc.
步骤24、应用功能实体基于待共享的视频流的视频播放参数和第二用户终端的视频播放能力参数,确定该待共享的视频流的路由信息,路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址。
其中,第一用户平面功能实体为用于向第一用户终端提供视频流的转发服务的功能实体,视频服务器用于通过数据网络网关向第一用户平面功能实体提供第一用户终端所需的视频流。The first user plane functional entity is a functional entity used to provide a video stream forwarding service to the first user terminal, and the video server is used to provide the first user plane functional entity with the video required by the first user terminal through the data network gateway. flow.
具体地,步骤24包括:Specifically, step 24 includes:
步骤241、根据待共享的视频流的视频播放参数和第二用户终端的视频播放能力参数,确定第二用户终端是否具备该视频流的播放能力,若是,则执行步骤242,否则执行步骤244。Step 241: Determine whether the second user terminal has the playback capability of the video stream according to the video playback parameters of the video stream to be shared and the video playback capability parameter of the second user terminal.
具体地,通过判断第二用户终端的视频播放能力参数是否与待共享的视频流的视频播放参数匹配,来确定第二用户终端是否具备该视频流的播放能力。若匹配,则确定第二用户终端具备该视频流的播放能力,否则确定第二用户终端不具备该视频流的播放能力。例如,若第二用户终端的视频播放能力参数与待共享的视频流的视频播放参数一致,即编解码格式一致、分辨率一致、编码率一致且音频参数一致,则判断为二者匹配,否则不匹配。Specifically, by judging whether the video playback capability parameter of the second user terminal matches the video playback parameter of the video stream to be shared, it is determined whether the second user terminal has the playback capability of the video stream. If it matches, it is determined that the second user terminal has the playback capability of the video stream; otherwise, it is determined that the second user terminal does not have the playback capability of the video stream. For example, if the video playback capability parameter of the second user terminal is the same as the video playback parameter of the video stream to be shared, that is, the codec format is the same, the resolution is the same, the encoding rate is the same, and the audio parameters are the same, it is determined that the two match, otherwise Mismatch.
步骤242、应用功能实体向第一用户平面功能实体发送待共享的视频流的转发状态配置请求,以供第一用户平面功能实体根据转发状态配置请求修改该视频流的转发状态,并配置将该视频流同时转发给第二用户终端的路由。Step 242: The application function 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 can modify the forwarding state of the video stream according to the forwarding state configuration request, and configure the The route of 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 playback capability of the video stream to be shared, the application function entity sends the to-be-shared video stream to the first user plane function entity for providing the forwarding service of the video stream. The forwarding state configuration request of the video stream, the request may include the session identifier of the video stream, the user identifier of the first user terminal, and the user identifier of the second user terminal, wherein the user identifier of the first user terminal can be based on the user identifier of the first user terminal. Video sharing request acquisition. The first user plane functional entity modifies the forwarding state of the video stream in response to the forwarding state configuration request from the application functional entity, and configures a route for simultaneously forwarding the video stream to the second user terminal.
其中,当第一用户终端和第二用户终端对应同一用户平面功能实体时,即第一用户平面功能实体能够向第一用户终端和第二用户终端提供相应服务,则第一用户平面功能实体修改该视频流的转发状态即为:将该视频流的转发状态从仅向第一用户终端转发该视频流的转发状态,修改为在向第一用户终端转发该视频流的同时,复制并转发一份相同的视频流给第二用户终端的转发状态。此种情形下,配置将视频流同时转发给第二用户终端的路由包括:建立从第一用户平面功能实体到第二用户终端的路由。Wherein, 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 The forwarding state of the video stream is: the forwarding state of the video stream is changed from the forwarding state of only forwarding the video stream to the first user terminal to the forwarding state of the video stream to the first user terminal, while copying and forwarding the video stream to the first user terminal. the forwarding state of the same video stream to the second user terminal. In this case, configuring a route for simultaneously forwarding the video stream to the second user terminal includes: establishing a route 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, then the first user plane functional entity Modifying the forwarding state of the video stream is: changing the forwarding state of the video stream from the forwarding state of only forwarding the video stream to the first user terminal, to modifying the forwarding state of the video stream to the first user terminal while copying a copy of the video stream. The same video stream is forwarded to the second user terminal through the second user plane functional entity. In this case, configuring a route for simultaneously forwarding the video stream to the second user terminal includes: establishing a route from the first user plane functional entity to the second user plane functional entity.
步骤243、应用功能实体响应于第一用户平面功能实体的转发状态配置成功消息,确定出待共享的视频流的路由信息,该路由信息包括第一用户平面功能实体的入口地址,并跳转至步骤25。Step 243: The application function 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 function entity, where the routing information includes the entry address of the first user plane function entity, and jumps to Step 25.
在本实施例中,第一用户平面功能实体在响应于应用功能实体的转发状态配置请求,修改该视频流的转发状态并配置将视频流同时转发给第二用户终端的路由之后,向应用功能实体返回转发状态配置成功消息。而后应用功能实体执行步骤243,在步骤243中,第一用户平面功能实体的入口地址可以是应用功能实体预先查询获取,也可以是第一用户平面功能实体返回的转发状态配置成功消息中携带有第一用户平面功能实体的入口地址,还可以是通过其他方式获取,本实施例对此不作限制。In this embodiment, the first user plane 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 in response to the forwarding state configuration request from the application functional entity, and then sends the application function The entity returns a forwarding status configuration success message. Then the application function entity executes step 243. In step 243, the entry address of the first user plane function entity may be obtained by the application function entity in advance, or it may be the forwarding state configuration success message returned by the first user plane function entity. The entry address of the first user plane functional entity may also be obtained in other ways, which is not limited in this embodiment.
步骤244、应用功能实体向数据网络网关发送路由配置请求,以供数据网络网关根据路由配置请求配置从数据网络网关到第二用户终端的路由。Step 244: The application function entity sends a 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.
在本实施例中,若应用功能实体确定第二用户终端不具备待共享的视频流的播放能力,则应用功能实体向用于提供该视频流的转发服务的数据网络网关发送路由配置请求,该请求可以包括该视频流的会话标识和第一用户终端的用户标识、第二用户终端的用户标识。数据网络网关响应于该路由配置请求,配置从数据网络网关到第二用户终端的路由。In this embodiment, if the application function entity determines that the second user terminal does not have the playback capability of the video stream to be shared, the application function entity sends a routing configuration request to the data network gateway for providing the forwarding service of the video stream, the The request may include the session identifier of the video stream, the user identifier of the first user terminal, and the 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 the route from the data network gateway to the second user terminal includes: establishing a route from the data network gateway to the first user plane functional entity routing.
当第一用户终端和第二用户终端对应不同用户平面功能实体时,即第一用户终端对应第一用户平面功能实体,第二用户终端对应第二用户平面功能实体,则配置从数据网络网关到第二用户终端的路由包括:建立从数据网络网关到第二用户平面功能实体的路由。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 configuration from the data network gateway to the The routing of the second user terminal includes establishing a route from the data network gateway to the second user plane functional entity.
步骤245、应用功能实体向视频服务器发送视频生成请求,以供视频服务器根据视频生成请求生成与第一用户终端当前播放的视频流的内容相同、且满足第二用户终端的播放能力的视频流。Step 245: The application function entity sends a video generation request to the video server, so that the video server can generate a video stream with the same content as the video stream currently played by the first user terminal and satisfying the playback 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 playback 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 can generate and match the video stream according to the video generation request. A video stream currently played by a user terminal has the same content and satisfies the playback capability of the second user terminal. The video generation request may include the session identifier of the video stream to be shared, the user identifier of the first user terminal, the user identifier of the second user terminal, the video playback capability parameter of the second user terminal, and the like.
在步骤245中,视频服务器接收到应用功能实体的视频生成请求后,基于该视频流的会话标识、第二用户终端视频播放能力参数,生成与该视频流的内容相同、且满足第二用户终端视频播放能力的视频流,例如生成与待共享的视频流的内容相同、且分辨率、编解码格式、编码率、音频参数与第二用户终端视频播放能力参数一致的视频流。视频服务器在响应于视频生成请求生成相应视频流后,视频服务器对该视频流进行缓存,等待第二用户终端的请求,并响应于第二用户终端的请求,通过数据网络网关、第二用户终端对应的用户平面功能实体向第二用户终端发送该视频流。In step 245, after the video server receives the video generation request from the application function entity, based on the session identifier of the video stream and the video playback capability parameter of the second user terminal, the video server generates the same content as the video stream and meets the requirements of the second user terminal. The video stream with video playback capability, for example, generates a video stream with the same content as the video stream to be shared, and the resolution, codec format, coding rate, and audio parameters are consistent with the video playback capability parameters of the second user terminal. After the video server generates the corresponding video stream in response to the video generation request, the video server caches the video stream, waits for the request of the second user terminal, and responds to the request of the second user terminal, through the data network gateway, the second user terminal The corresponding user plane functional entity sends the video stream to the second user terminal.
其中,步骤244和步骤245可以同时执行,也可以先后执行,且执行顺序不作限制。Wherein, step 244 and step 245 may be executed simultaneously or sequentially, and the execution order is not limited.
步骤246、应用功能实体响应于数据网络网关的路由配置成功消息以及视频服务器的视频生成成功消息,确定出该待共享的视频流的路由信息,该路由信息包括视频服务器的入口地址,并跳转至步骤25。Step 246: The application function entity determines the routing information of the video stream to be shared in response to the routing configuration success message of the data network gateway and the video generation success message of the video server, where the routing information includes the entry address of the video server, and jumps to Go to step 25.
在本实施例中,数据网络网关在响应于应用功能实体的路由配置请求,配置相应路由之后,向应用功能实体返回路由配置成功消息;视频服务器在响应于应用功能实体的视频生成请求生成相应视频流之后,向应用功能实体返回视频生成成功消息。而后,应用功能实体执行步骤246,在步骤246中,视频服务器的入口地址可以是应用功能实体预先查询获取,也可以是视频服务器返回的视频生成成功消息中携带有视频服务器的入口地址,还可以是通过其他方式获取,本实施例对此不作限制。In this embodiment, after configuring the corresponding route in response to the routing configuration request of the application function entity, the data network gateway returns a routing configuration success message to the application function entity; the video server generates the corresponding video in response to the video generation request of the application function entity After streaming, a video generation success message is returned to the application function entity. Then, the application function entity executes step 246. In step 246, the entry address of the video server may be acquired by the application function entity in advance, or the entry address of the video server is carried in the video generation success message returned by the video server, or is obtained in other ways, which is not limited in this embodiment.
步骤25、应用功能实体向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据该路由信息,请求、获取并播放第一用户终端当前播放并请求共享的视频流。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 can request, acquire and play the video stream currently played and requested to be shared by the first user terminal according to the routing information.
其中,该路由信息包括目标获取地址,第二用户终端通过访问目标获取地址,请求、获取并播放第一用户终端当前播放并请求共享的视频流。The routing information includes a target acquisition address, and the second user terminal requests, acquires and plays the video stream currently played and requested to be shared by the first user terminal by accessing the target acquisition address.
具体地,如前所述,在第二用户终端具备该视频流的播放能力的情形下,待共享的视频流的路由信息中目标获取地址包括第一用户平面功能实体的入口地址,则在步骤25中,第二用户终端获取到应用功能实体分配的该视频流的路由信息后,可以通过该第一用户平面功能实体的入口地址向第一用户平面功能实体请求获取相应的视频流,第一用户平面功能实体响应于该请求,根据预先配置的路由和该视频流对应的转发状态,在向第一用户终端转发该视频流的同时,复制并转发一份相同的视频流给第二用户终端,此时第二用户终端可以获取并播放该视频流。Specifically, as mentioned above, in the case where the second user terminal has the playback capability of the video stream, the target acquisition 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 In
在第二用户终端不具备该视频流的播放能力的情形下,待共享的视频流的路由信息中的目标获取地址包括视频服务器的入口地址,则在步骤25中,第二用户终端获取到应用功能实体分配的该视频流的路由信息后,可以通过该视频服务器的入口地址向视频服务器请求获取相应的视频流,视频服务器响应于该请求,将预先缓存的与待共享的视频流内容相同、且满足第二用户终端的视频播放能力的视频流,通过数据网络网关、第二用户终端对应的用户平面功能实体发送给第二用户终端,此时第二用户终端可以获取并播放相应的视频流。In the case where the second user terminal does not have the playback capability of the video stream, the target acquisition address in the routing information of the video stream to be shared includes the entry address of the video server, then in
本实施例所提供的视频分享方法,当第一用户终端需要向第二用户终端共享其当前正在播放的视频时,第一用户终端首先向应用功能实体发送视频共享请求,应用功能实体响应于视频共享请求,确定待共享的视频的路由信息,并向第二用户终端分配该路由信息,使得第二用户终端基于该路由信息请求、获取并播放待共享的视频,在此过程中,第二用户终端无需安装特定的应用,也无需点击视频链接,即可实现第一用户终端共享的视频流的播放,从而提高了视频分享的便捷性,也提高了用户体验度。In the video sharing method provided in this embodiment, when the first user terminal needs to share its currently playing video with the second user terminal, the first user terminal first sends a video sharing request to the application function entity, and the application function entity responds to the video sharing request, determine the routing information of the video to be shared, and assign the routing information to the second user terminal, so that the second user terminal requests, acquires and plays the video to be shared based on the routing information. The terminal does not need to install a specific application or click a video link, so that the video stream shared by the first user terminal can be played, thereby improving the convenience of video sharing and improving the user experience.
实施例三Embodiment 3
图3为本发明实施例三提供的一种视频分享方法的流程图,如图3所示,该视频分享方法包括:FIG. 3 is a flowchart of a video sharing method according to Embodiment 3 of the present invention. As shown in FIG. 3 , the video sharing method includes:
步骤31、应用功能实体接收第一用户终端发送的视频共享请求,该视频共享请求包括第二用户终端的用户标识以及待共享的视频流在终端本地的第一网络信息。Step 31: The application function entity receives a video sharing request sent by the first user terminal, where the video sharing request includes the user identifier of the second user terminal and the local first network information of the video stream to be shared in the terminal.
在本实施例中,视频服务器通过数据网络网关(Data Network Gate Way,简称:DNGW)、用户平面功能实体(User Plane Function,简称:UPF)将该视频流的数据发送给该第一用户终端,第一用户终端(User Equipment,简称:UE)当前正在播放该视频流。当第一用户终端需要将当前正在播放的视频流分享给第二用户终端时,第一用户终端首先向应用功能实体(Application Function,简称:AF)发送视频共享请求。其中,第一用户终端可以是移动终端,例如智能手机、平板电脑等,智能手机可以是5G智能手机。In this embodiment, the video server sends the data of the video stream to the first user terminal through a data network gateway (Data Network Gate Way, DNGW for short) and a user plane function (User Plane Function, UPF for short), The first user terminal (User Equipment, UE for short) is currently playing the video stream. When the first user terminal needs to share the currently playing video stream to the second user terminal, the first user terminal first sends a video sharing request to an application function entity (Application Function, AF for short). The first user terminal may be a mobile terminal, such as a smart phone, a tablet computer, etc., and the smart phone may be a 5G smart phone.
作为一种可选的实施方式,第一用户终端上预先安装有视频分享客户端,第一用户终端响应于在第一用户终端当前正在播放视频流时用户调用视频分享客户端的操作,调出并打开视频分享客户端,此时视频分享客户端作为终端的当前系统前台应用;步骤21具体包括:接收用户通过视频分享客户端发送的视频共享请求。其中,待共享的视频流在终端本地的第一网络信息为视频分享客户端在自身被调出时从上一系统前台应用处获取,上一系统前台应用即为视频分享客户端被调出前终端正在运行的应用,也即第一用户终端上播放所述视频流的应用。As an optional implementation manner, a video sharing client is pre-installed on the first user terminal, and the first user terminal calls out the video sharing client in response to the user's operation of invoking the video sharing client when the first user terminal is currently playing a video stream. Open the video sharing client, at this time the video sharing client is the current system foreground application of the terminal; Step 21 specifically includes: receiving a video sharing request sent by the user through the video sharing client. The first local network information of the video stream to be shared in the terminal is obtained from the foreground application of the previous system when the video sharing client is called out, and the foreground application of the previous system is the one before the video sharing client is called up. The application running on the terminal, that is, the application that plays 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 dial-up software system, the first user terminal is currently playing a video stream, and when the user of the first user terminal needs to share the currently playing video During streaming, the first user terminal calls out the dialing software system and enters the dialing interface of the dialing software system in response to the user's operation of calling the dialing software system when the first user terminal is currently playing the video stream. For example, the user can call up the preset operation list by long-pressing the interface on the playback interface of the video stream, and select the option to open the dial-up software system from the preset operation list, thereby triggering the call-up of the dial-up software system or the video stream. The video sharing option is preset in the playback interface of the video stream. When the user clicks the video sharing option, the dial-up software system is automatically triggered to call up the dial-up software system, or the user exits the playback interface of the current video stream and directly opens the dial-up software on the first user terminal. Software system. It should be noted that this embodiment does not limit the manner of calling the dial-up software system, as long as the dial-up software system can be called.
在被调出的拨号软件系统的拨号界面,用户可以通过输入并拨打预设的视频分享专用号码,或者在拨号界面被调出时自动生成预设的视频分享专用号码,以供用户确认是否拨打该号码。当用户通过拨号软件系统拨打预设的视频分享专用号码时,触发对应用功能实体的呼叫请求,应用功能实体接收第一用户终端的呼叫请求,该呼叫请求即为视频共享请求。其中,该预设的视频分享专用号码为应用功能实体对应的视频分享专用号码,该视频共享请求包括第二用户终端的用户标识以及待共享的视频流在终端本地的第一网络信息。In the dialing interface of the dialing software system that is called up, the user can input and dial the preset dedicated video sharing number, or automatically generate a preset dedicated video sharing number when the dialing interface is called out, so that the user can confirm whether to dial. the number. When the user dials the preset dedicated video sharing number through the dialing software system, a call request to the application function entity is triggered, and the application function entity receives the call request from the first user terminal, and the call request is a video sharing request. Wherein, the preset dedicated video sharing number is the dedicated video sharing number corresponding to the application function entity, and the video sharing request includes the user identification of the second user terminal and the local first network information of the video stream to be shared in the terminal.
作为一种可选的实施方式,拨号软件系统响应于用户在所述拨号界面拨打预设的视频分享专用号码,查找出自身被调用到终端的系统前台时上一个处于系统前台的应用,该上一个处于系统前台的应用即为第一用户终端上当前正在播放的视频流的应用,并通过该上一个处于系统前台的应用获取其当前正在播放的视频流在终端本地的第一网络信息。As an optional implementation manner, the dial-up software system, in response to the user dialing the preset dedicated video sharing number on the dial-up interface, finds out the last application that was in the system foreground when it was called to the system foreground of the terminal. An application in the foreground of the system is the application of the video stream currently being played on the first user terminal, and the last application in the foreground of the system obtains the local first network information of the video stream currently being played in the terminal.
其中,第二用户终端可以是移动终端,例如智能手机、平板电脑等,智能手机可以是5G智能手机,第二用户终端的用户标识可以是移动终端的终端号码,例如是手机号码;待共享的视频流在终端本地的第一网络信息包括源端口、源地址、该视频流的会话标识、目的端口、目的地址。其中,视频流在终端本地的源端口、源地址为用于转发该视频流的数据网络网关(DNGW)所对应的端口和IP地址,视频流在终端本地的目的端口、目的地址即为第一用户终端对应的端口和IP地址,待共享的视频流在终端本地的第一网络信息为拨号软件系统在自身被调出时获取。Wherein, the second user terminal may be a mobile terminal, such as a smart phone, a tablet computer, etc., the smart phone may be a 5G smart phone, and the user identity of the second user terminal may be the terminal number of the mobile terminal, such as a mobile phone number; The local first network information of the video stream in the terminal includes a source port, a source address, a session identifier of the video stream, a destination port, and a destination address. Wherein, the local source port and source address of the video stream in the terminal are the ports and IP addresses corresponding to the data network gateway (DNGW) used to forward the video stream, and the local destination port and destination address of the video stream in the terminal are the first The port and IP address corresponding to the user terminal, and the local first network information of the video stream to be shared in the terminal is obtained by the dial-up software system when it is called out.
可选地,视频共享请求包括待共享的视频流在终端本地的第一网络信息,第一用户终端在发送视频共享请求后,在等待应用功能实体的提示后再输入共享目标即第二用户终端的用户标识。而应用功能实体响应于该视频共享请求,向第一用户终端发送共享目标的输入提示,以供第一用户终端根据提示输入第二用户终端的用户标识,应用功能实体由此获得第二用户终端的用户标识。Optionally, the video sharing request includes the local first network information of the video stream to be shared in the terminal. After sending the video sharing request, the first user terminal waits for a prompt from the application function entity and then inputs the sharing target, that is, the second user terminal. user ID. In response to the video sharing request, the application function entity sends an input prompt of the sharing target to the first user terminal, so that the first user terminal can input the user ID of the second user terminal according to the prompt, and the application function entity obtains the second user terminal from this. user ID.
步骤32、应用功能实体向根据待共享的视频流在终端本地的第一网络信息,查询出该视频流的来源信息,该来源信息包括该视频流在对应的数据网络网关中的第二网络信息、当前为第一用户终端提供该视频流的转发服务的第一用户平面功能实体的标识和视频服务器的标识。Step 32: The application function entity queries the source information of the video stream according to the local first network information of the video stream to be shared in the 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 functional entity that currently provides the forwarding service of the video stream for the first user terminal and the identifier of the video server.
具体地,应用功能实体根据主叫信息(例如主叫号码)识别出第一用户终端的用户标识(例如第一用户终端的手机号码),并向统一数据存储功能实体(Unified DataRepository,简称:UDR)发送上述来源信息的查询请求,查询请求包括但不限于:第一用户终端的用户标识和该视频流的第一网络信息。Specifically, the application functional entity identifies the user identity of the first user terminal (such as the mobile phone number of the first user terminal) according to the calling information (such as the calling number), and reports to the Unified Data Repository (Unified Data Repository, UDR for short) ) sends a query request for the above source information, where the query request includes but is not limited to: the user ID of the first user terminal and the first network information of the video stream.
统一数据存储功能实体接收到应用功能实体的查询请求后,首先根据该视频流的会话标识、第一用户终端的用户标识查询出当前为第一用户终端提供该视频流的转发服务的第一用户平面功能实体(UPF)的标识,其中,第一用户平面功能实体(UPF)的标识可以是第一用户平面功能实体(UPF)的入口地址,也即访问地址。而后,统一数据存储功能实体根据第一网络信息查询出该视频流在用于转发该视频流的数据网络网关中的第二网络信息,其中,第二网络信息与第一网络信息之间为映射关系,该视频流在对应的数据网络网关中的第二网络信息包括源端口、源地址、该视频流的会话标识、目的端口、目的地址。其中,可以理解的是,视频流在该数据网络网关的源端口、源地址为用于提供该视频流的视频服务器所对应的端口和IP地址,视频流在该数据网络网关的目的端口、目的地址即为该数据网络网关对应的端口和IP地址。After the unified data storage function entity receives the query request from the application function entity, it firstly queries the first user currently providing the video stream forwarding service for the first user terminal according to the session identifier of the video stream and the user identifier of the first user terminal. The identifier of the plane functional entity (UPF), where the identifier of the first user plane functional entity (UPF) may be the entry address of the first user plane functional entity (UPF), that is, the access address. Then, the unified data storage function entity queries the second network information of the video stream in the data network gateway for forwarding the video stream according to the first network information, wherein the second network information and the first network information are mappings relationship, the second network information of the video stream in the corresponding data network gateway includes the source port, the source address, the session identifier of the video stream, the destination port, and the destination address. It can be understood that the source port and source address of the video stream on the data network gateway are the ports and IP addresses corresponding to the video server used to provide the video stream, and the destination port and destination address of the video stream on the data network gateway The address is the port and IP address corresponding to the data network gateway.
同时,统一数据存储功能实体根据该视频流在该数据网络网关的源端口、源地址查询出用于提供该视频流的视频服务器的标识,该标识可以是该视频服务器的入口地址,也即访问地址。At the same time, the unified data storage function entity queries the identification of the video server used to provide the video stream according to the source port and source address of the video stream in the data network gateway. address.
步骤33、应用功能实体向视频服务器发送鉴权请求,鉴权请求包括该视频流在对应的数据网络网关中的第二网络信息。Step 33: The application function 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, according to the pre-acquired identifier of the video server, the application function entity sends an authentication request to the video server corresponding to the identifier to request metadata corresponding to the video stream.
视频服务器接收到应用功能实体的鉴权请求后,响应于该鉴权请求对应用功能实体进行鉴权,以检查该应用功能实体是否向视频服务器订购过相应的视频分享服务或者是否与视频服务器预先约定有与视频分享服务相关的协议等,当检查出该应用功能实体已订购有视频分享服务时,则鉴权成功,否则鉴权失败。当鉴权失败时,视频服务器向应用功能实体返回鉴权失败消息,应用功能实体根据鉴权失败消息向第一用户终端返回拒绝分享视频的消息,结束流程。当鉴权成功时,视频服务器向应用功能实体返回鉴权成功消息,鉴权成功消息中包括第二网络信息对应的视频流的元数据,即执行步骤34。After receiving the authentication request from the application function entity, the video server authenticates the application function entity in response to the authentication request to check whether the application function entity has subscribed to the video server for corresponding video sharing services or whether It is agreed that there are protocols related to the video sharing service, etc. When it is checked that the application function entity has subscribed to the video sharing service, the authentication succeeds, otherwise the authentication fails. 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 ends. When the authentication succeeds, the video server returns an authentication success message to the application function entity, and the authentication success message includes the metadata of the video stream corresponding to the second network information, that is,
可选地,视频服务器接收到应用功能实体的鉴权请求后,还响应于该鉴权请求对第一用户终端进行鉴权,以检查该第一用户终端是否具有分享其当前正在播放的视频流的权限,若检查出第一用户终端具有相应权限,则鉴权成功,否则鉴权失败。Optionally, after receiving the authentication request from the application function entity, the video server also authenticates the first user terminal in response to the authentication request to check whether the first user terminal has the ability to share the video stream currently being played. If it is checked that the first user terminal has the corresponding authority, the authentication succeeds; otherwise, the authentication fails.
步骤34、应用功能实体接收视频服务器在鉴权通过后发送的该视频流的元数据。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: video content name, video playback parameters, description information of the video source, description information of the video content, link address of the video, generation time of the video, etc. The video playback parameters include, but are not limited to, the encoding format, resolution, encoding rate, audio parameters, and playback duration of the video stream.
步骤35、应用功能实体根据第二用户终端的用户标识,向核心网发起对第二用户终端的呼叫请求,其中呼叫类型为即时视频分享,呼叫请求中包含第一用户终端的用户标识。Step 35: The application function entity initiates a call request for 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.
步骤36、应用功能实体接收核心网基于该呼叫请求发送的会话建立确认消息,会话建立确认消息包括第二用户终端的视频播放能力参数。Step 36: 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 the video playback capability parameter of the second user terminal.
具体地,在步骤35中,应用功能实体根据第二用户终端的用户标识,通过核心网(例如5G核心网)中的统一数据管理功能实体(Unified Data Management,简称:UDM)向第二用户终端发起呼叫请求,统一数据管理功能实体将该呼叫请求发送到核心网中当前为第二用户终端提供接入服务的第二接入和移动管理功能实体(Access and MobilityManagement Function,简称:AMF)。Specifically, in
在步骤36中,应用功能实体接收核心网基于该呼叫请求发送的会话建立确认消息,包括:In
步骤361、核心网中的第二接入和移动管理功能实体基于该呼叫请求,与第二用户终端进行交互以获取第二用户终端的视频播放能力参数。Step 361: Based on the call request, the second access and mobility management functional entity in the core network interacts with the second user terminal to obtain video playback capability parameters of the second user terminal.
在步骤361中,第二接入和移动管理功能实体基于该呼叫请求识别出该呼叫请求的呼叫类型为即时视频分享后,与第二用户终端进行交互以获取第二用户终端的视频播放能力参数,其中该第二用户终端的视频播放能力参数包括但不限于:编解码格式、分辨率、编码率、音频参数等。In step 361, after identifying the call type of the call request as instant video sharing based on the call request, the second access and mobility management function entity interacts with the second user terminal to obtain the video playback capability parameter of the second user terminal , wherein the video playback capability parameters of the second user terminal include but are not limited to: codec format, resolution, code rate, audio parameters, and the like.
步骤362、第二接入和移动管理功能实体确定第二用户终端对应的第二会话管理功能实体,并向该第二会话管理功能实体发送该第二用户终端的视频播放能力参数。Step 362: The second access and mobility management function entity determines a second session management function entity corresponding to the second user terminal, and sends the video playback capability parameter of the second user terminal to the second session management function entity.
在步骤362中,第二会话管理功能实体(Session Management Function,简称:SMF)用于进行后续会话管理。In step 362, the second session management function entity (Session Management Function, SMF for short) is used for subsequent session management.
步骤363、第二会话管理功能实体确定第二用户终端对应的用户平面功能实体,并向应用功能实体发送会话建立确认消息,会话建立确认消息包括第二用户终端的视频播放能力参数。Step 363: The second session management function entity determines the user plane function entity corresponding to the second user terminal, and sends a session establishment confirmation message to the application function entity, where the session establishment confirmation message includes the video playback capability parameter of the second user terminal.
具体地,在步骤363中,第二会话管理功能实体确定用于为第二用户终端提供视频数据转发服务的用户平面功能实体(如第二用户平面功能实体或者第一用户平面功能实体),并向应用功能实体发送会话建立确认消息,会话建立确认消息包括但不限于:第二用户终端的视频播放能力参数和第二用户终端对应的用户平面功能实体的入口地址(即访问地址),第二用户终端对应的用户平面功能实体可以是第一用户平面功能实体或者第二用户平面功能实体,第一用户平面功能实体和第二用户平面功能实体为不同的用户平面功能实体(UPF)。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 Send a session establishment confirmation message to the application function entity. The session establishment confirmation message includes but is not limited to: the video playback capability parameter of the second user terminal and the entry address (that is, the access address) of the user plane function entity corresponding to the second user terminal. The user plane function entity corresponding to the user terminal may be the first user plane function entity or the second user plane function entity, and the first user plane function entity and the second user plane function entity are different user plane function entities (UPFs).
步骤37、应用功能实体基于待共享的视频流的视频播放参数和第二用户终端的视频播放能力参数,确定待共享的视频流的路由信息。Step 37: The application function entity determines the routing information of the video stream to be shared based on the video playback parameter of the video stream to be shared and the video playback capability parameter of the second user terminal.
其中,待共享的路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址,第一用户平面功能实体为用于向第一用户终端提供视频流的转发服务的功能实体,视频服务器用于通过数据网络网关向第一用户平面功能实体提供第一用户终端所需的视频流即待共享的视频流。Wherein, the target acquisition address in the routing information to be shared includes the entry address of the first user plane functional entity or the entry address of the video server, and the first user plane functional entity is a video stream forwarding service for providing the first user terminal. The functional entity, the video server is configured to provide the video stream required by the first user terminal, that is, the video stream to be shared, to the first user plane functional entity through the data network gateway.
具体地,关于该步骤37的具体描述可参见前述实施例二中对步骤24的描述,此处不再赘述。Specifically, for the specific description of this
步骤38、应用功能实体基于核心网的会话建立确认消息向核心网返回会话建立成功消息,会话建立成功消息包括上述待共享的视频流的路由信息。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, where the session establishment success message includes the routing information of the video stream to be shared.
具体地,在步骤36中,应用功能实体接收到核心网中第二会话管理功能实体的会话建立确认消息并执行步骤37后,在步骤38中,基于会话建立确认消息向核心网中第二会话管理功能实体返回会话建立成功消息,会话建立成功消息包括但不限于:待共享的视频流的路由信息。Specifically, in
步骤39、核心网基于应用功能实体的会话建立成功消息向第二用户终端发出振铃指令,振铃指令包括第一用户终端的用户标识、呼叫类型、上述待共享的视频流的路由信息。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, where the ringing instruction includes the user ID of the first user terminal, the call type, and the routing information of the video stream to be shared.
具体地,在步骤39中,核心网中第二会话管理功能实体接收到应用功能实体的会话建立成功消息后,若第二用户终端对应的用户平面功能实体为第二用户平面功能实体,该第二用户平面功能实体与第一用户终端对应的第一用户平面功能实体不同,则核心网中第二会话管理功能实体首先通知第二用户平面功能实体配置从第二用户平面功能实体到路由信息中的目标获取地址的路由,即建立从第二用户平面功能实体到第一用户平面功能实体的路由或者建立从第二用户平面功能实体到视频服务器的路由。而后,核心网中的第二会话管理功能实体响应于第二用户平面功能实体的相应的路由配置成功消息,向核心网中的第二接入和移动管理功能实体发送上述会话建立成功消息。核心网中的第二接入和移动管理功能实体响应于该会话建立成功消息,向第二用户终端发出振铃指令。Specifically, in
在步骤39中,核心网中第二会话管理功能实体接收到应用功能实体的会话建立成功消息后,若第二用户终端对应的用户平面功能实体为第一用户平面功能实体(即第一用户终端对应的用户平面功能实体),则第一用户平面功能实体无需配置相应路由,核心网中第二会话管理功能实体直接向核心网中的第二接入和移动管理功能实体发送上述会话建立成功消息。核心网中的第二接入和移动管理功能实体响应于该会话建立成功消息,向第二用户终端发出振铃指令。In
步骤40、第二用户终端响应于振铃指令进行振铃,并在终端屏幕上显示视频共享提示信息。Step 40: The second user terminal rings in response to the ringing instruction, and displays video sharing prompt information on the terminal screen.
例如,视频共享提示信息可以是文字信息,例如是“用户标识为xxx的用户邀请您观看xxx视频”的信息,如果第一用户终端的用户标识(手机号码)存在于第二用户终端的预设地址簿中,则文字信息中的用户标识可以替换为预设地址簿中相应的名称。For example, the video sharing prompt information can be text information, such as the information that "a user whose user ID is xxx invites you to watch xxx video", if the user ID (mobile phone number) of the first user terminal exists in the preset of the second user terminal In the address book, the user ID in the text message can be replaced with the corresponding name in the preset address book.
步骤41、第二用户终端响应于用户的接听操作,根据待共享视频流的路由信息请求、获取并播放相应的视频流,并结束流程。Step 41: In response to the user's answering operation, the second user terminal requests, acquires and plays the corresponding video stream according to the routing information of the video stream to be shared, and ends the process.
在本实施例中,第二用户终端振铃后,第二用户终端用户可以选择接听或选择拒绝接听,当用户选择接听时,执行步骤41。In this embodiment, after the second user terminal rings, the user of the second user terminal can choose to answer or choose to refuse to answer, and when the user chooses to answer,
具体地,如前所述,在第二用户终端具备该视频流的播放能力的情形下,待共享的视频流的路由信息的目标获取地址包括第一用户平面功能实体的入口地址,则在步骤41中,第二用户终端响应于用户的接听操作,根据待共享视频流的路由信息,通过该第一用户平面功能实体的入口地址向第一用户平面功能实体请求获取相应的视频流,第一用户平面功能实体响应于该请求,根据预先配置的路由和该视频流对应的转发状态,在向第一用户终端转发该视频流的同时,复制并转发一份相同的视频流给第二用户终端,此时第二用户终端可以获取并播放该视频流。Specifically, as mentioned above, in the case where the second user terminal has the playback capability of the video stream, the target acquisition 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 In
在第二用户终端不具备该视频流的播放能力的情形下,待共享的视频流的路由信息的目标获取地址包括视频服务器的入口地址,则在步骤41中,第二用户终端响应于用户的接听操作,根据待共享视频流的路由信息,通过该视频服务器的入口地址向视频服务器请求获取相应的视频流,视频服务器响应于该请求,将预先缓存的与待共享的视频流内容相同、且满足第二用户终端的视频播放能力的视频流,通过数据网络网关、第二用户终端对应的用户平面功能实体发送给第二用户终端,此时第二用户终端可以获取并播放相应的视频流。In the case where the second user terminal does not have the playback capability of the video stream, and the target acquisition address of the routing information of the video stream to be shared includes the entry address of the video server, in
在用户选择接听之后的一段时间后,当用户选择挂机时,第二用户终端响应于用户的挂机操作,向核心网中第二接入和移动管理功能实体返回第二用户终端的挂机消息,第二接入和移动管理功能实体向第二会话管理功能实体发送终止会话指令,第二会话管理功能实体与应用功能实体交互以终止本次会话。若路由信息中的目标获取地址包括第一用户平面功能实体的入口地址,则应用功能实体响应于终止本次会话的消息,通过与统一数据存储功能实体(UDR)、策略控制功能实体(PCF)、第一用户终端对应的第一会话管理功能实体(SMF)、第一用户平面功能实体进行交互,以终止本次视频分享;若路由信息中的目标获取地址包括视频服务器的入口地址,则应用功能实体响应于终止本次会话的消息,通过与视频服务器进行交互,以终止本次视频分享。After a period of time after the user chooses to answer, when the user chooses to hang up, the second user terminal responds to the user's on-hook operation and returns an on-hook message of the second user terminal to the second access and mobility management functional entity in the core network. The second access and mobility management function entity sends a session termination instruction to the second session management function entity, and the second session management function entity interacts with the application function entity to terminate the session. If the target acquisition address in the routing information includes the ingress address of the first user plane function entity, the application function entity responds to the message of terminating the session by communicating with the unified data storage function (UDR), policy control function (PCF) , the first session management function entity (SMF) corresponding to the first user terminal and the first user plane function entity interact to terminate this video sharing; if the target acquisition address in the routing information includes the entry address of the video server, then the application The functional entity terminates the current video sharing by interacting with the video server in response to the message of terminating the current session.
当用户选择拒绝接听时,第二用户终端响应于用户的拒绝接听操作,通过核心网向应用功能实体返回拒绝接听消息,应用功能实体向第一用户终端返回第二用户终端拒绝视频共享邀请的消息。具体而言,第二用户终端响应于用户的拒绝接听操作,向核心网中第二接入和移动管理功能实体返回第二用户终端的拒绝接听消息,第二接入和移动管理功能实体向第二会话管理功能实体发送终止会话指令,第二会话管理功能实体与应用功能实体交互以终止本次会话,应用功能实体基于终止本次会话的消息,向第一用户终端返回第二用户终端拒绝视频共享邀请的消息。同时,若路由信息中的目标获取地址包括第一用户平面功能实体的入口地址,则应用功能实体响应于终止本次会话的消息,通过与统一数据存储功能实体(UDR)、策略控制功能实体(PCF)、第一用户终端对应的第一会话管理功能实体(SMF)、第一用户平面功能实体进行交互,以终止本次视频分享;若路由信息中的目标获取地址包括视频服务器的入口地址,则应用功能实体响应于终止本次会话的消息,通过与视频服务器进行交互,以终止本次视频分享。When the user chooses to reject the answer, the second user terminal responds to the user's operation of rejecting the answer and returns a rejection message to the application function entity through the core network, and the application function entity returns to the first user terminal a message that the second user terminal rejects the video sharing invitation . Specifically, in response to the user's operation of rejecting the answer, the second user terminal returns a rejection message of the second user terminal to the second access and mobility management function entity in the core network, and the second access and mobility management function entity sends a message to the second user terminal. The second session management function entity sends a session termination instruction, the second session management function entity interacts with the application function entity to terminate the session, and the application function entity returns the second user terminal rejects video to the first user terminal based on the message of terminating the current session Share the invitation message. At the same time, if the target acquisition address in the routing information includes the entry address of the first user plane function entity, the application function entity responds to the message of terminating this session by communicating with the unified data storage function entity (UDR), the policy control function entity ( PCF), the first session management function entity (SMF) corresponding to the first user terminal, and the first user plane function entity interact to terminate this video sharing; if the target acquisition address in the routing information includes the entry address of the video server, Then, in response to the message of terminating this session, the application function entity terminates this video sharing by interacting with the video server.
作为一种可选的实施方式,第一用户终端当前正在播放的视频流是存储在本地的视频流,第一用户终端的本地文件系统为视频服务器。As an optional implementation manner, the video stream currently being played by the first user terminal is a locally stored video stream, and the local file system of the first user terminal is a video server.
本实施例所提供的视频分享方法,当第一用户终端需要向第二用户终端共享其当前正在播放的视频时,第一用户终端首先向应用功能实体发送视频共享请求,应用功能实体响应于视频共享请求,确定待共享的视频的路由信息,并向第二用户终端分配该路由信息,使得第二用户终端基于该路由信息请求、获取并播放待共享的视频,在此过程中,第二用户终端无需安装特定的应用,也无需点击视频链接,即可实现第一用户终端共享的视频流的播放,从而提高了视频分享的便捷性,也提高了用户体验度。In the video sharing method provided in this embodiment, when the first user terminal needs to share its currently playing video with the second user terminal, the first user terminal first sends a video sharing request to the application function entity, and the application function entity responds to the video sharing request, determine the routing information of the video to be shared, and assign the routing information to the second user terminal, so that the second user terminal requests, acquires and plays the video to be shared based on the routing information. The terminal does not need to install a specific application or click a video link, so that the video stream shared by the first user terminal can be played, thereby improving the convenience of video sharing and improving the user experience.
实施例四Embodiment 4
本公开实施例四还提供了一种视频分享方法,本实施例所提供的视频分享方法与前述实施例二的视频分享方法的区别在于:应用功能实体在获取到待共享的视频流的视频元数据之后,即步骤22之后,执行如下步骤;The fourth embodiment of the present disclosure also provides a video sharing method. The difference between the video sharing method provided in this embodiment and the video sharing method in the second embodiment is that the application function entity obtains the video element of the video stream to be shared. After the data, that is, after
步骤231a、应用功能实体向第二用户终端发送待共享的视频流的元数据,该元数据包括该视频流的视频播放参数,以供第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身是否具备该视频流的播放能力。Step 231a, the application function entity sends the metadata of the video stream to be shared to the second user terminal, where the metadata includes the video playback parameters of the video stream, so that the second user terminal can use the The video playback parameters of the video stream determine whether it has the playback capability of the video stream.
在步骤231a中,应用功能实体向第二用户终端发送待共享的视频流的元数据,以供第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身是否具备该视频流的播放能力。当第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身具备该视频流的播放能力时,向应用功能实体返回表征其具备该视频流的播放能力的第一判断结果消息;当第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身不具备该视频流的播放能力时,向应用功能实体返回表征其不具备该视频流的播放能力的第二判断结果消息,同时该第二判断结果消息中携带有第二用户终端的视频播放能力参数。In step 231a, the application function entity sends the metadata of the video stream to be shared to the second user terminal, so that the second user terminal can determine whether it is based on its own video playback capability parameters and the video playback parameters of the video stream to be shared. It has the playback capability of the video stream. When the second user terminal determines that it has the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream to be shared, it returns to the application function entity the first information indicating that it has the playback capability of the video stream. A judgment result message; when the second user terminal judges that it does not have the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream to be shared, it returns to the application function entity that it does not have the video playback capability. A second judgment result message of the playback capability of the video stream, and the second judgment result message carries the video playback capability parameter of the second user terminal.
步骤232a、应用功能实体获取第二用户终端在判断出自身是否具备该视频流的播放能力后返回的判断结果消息。Step 232a: The application function entity obtains a judgment result message returned by the second user terminal after judging whether it has the playback capability of the video stream.
其中,判断结果消息为表征第二用户终端具备该视频流的播放能力的第一判断结果消息,或者为表征第二用户终端不具备该视频流的播放能力的第二判断结果消息,当判断结果消息为第二判断结果消息时,则该判断结果消息中还携带有第二用户终端的视频播放能力参数。The judgment result message is the first judgment result message indicating that the second user terminal has the playback capability of the video stream, or the second judgment result message indicating that the second user terminal does not have the playback capability of the video stream. When the message is the second judgment result message, the judgment result message also carries the video playback capability parameter of the second user terminal.
步骤24a、应用功能实体根据上述第二用户终端的判断结果消息,确定待共享的视频流的路由信息。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.
具体地,步骤24a包括:Specifically, step 24a includes:
步骤242a、若该判断结果消息为表征第二用户终端具备该视频流的播放能力的消息,则应用功能实体向第一用户平面功能实体发送待共享的视频流的转发状态配置请求,以供第一用户平面功能实体根据转发状态配置请求修改该视频流的转发状态,并配置将该视频流同时转发给第二用户终端的路由。Step 242a: If the judgment result message is a message representing that the second user terminal has the playback capability of the video stream, the application function entity sends the forwarding state configuration request of the video stream to be shared to the first user plane function entity for the first user plane function entity. A 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.
其中,应用功能实体向第一用户平面功能实体发送待共享的视频流的转发状态配置请求,以供第一用户平面功能实体根据转发状态配置请求修改该视频流的转发状态,并配置将该视频流同时转发给第二用户终端的路由的步骤参见上述实施例二中对步骤242的描述,此处不再赘述。The application function 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 can modify the forwarding state of the video stream according to the forwarding state configuration request, and configure the video stream For the step of simultaneously forwarding the flow to the route of the second user terminal, reference may be made to the description of step 242 in the second embodiment, and details are not repeated here.
步骤243a、应用功能实体响应于第一用户平面功能实体的转发状态配置成功消息,确定出待共享的视频流的路由信息,该路由信息包括第一用户平面功能实体的入口地址,并跳转至步骤25。Step 243a, the application function entity determines the routing information of the video stream to be shared in response to the successful message of the forwarding state configuration of the first user plane function entity, the routing information includes the entry address of the first user plane function entity, and jumps to Step 25.
其中,关于步骤243a的描述可参见上述实施例二中对步骤243的描述,此处不再赘述。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.
步骤244a、若该判断结果消息为表征第二用户终端具备该视频流的播放能力的消息,则应用功能实体向数据网络网关发送路由配置请求,以供数据网络网关根据路由配置请求配置从数据网络网关到第二用户终端的路由。Step 244a, if the judgment result message is a message representing that the second user terminal has the playback 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 the slave data network according to the routing configuration request. The route from the gateway to the second user terminal.
其中,关于应用功能实体向数据网络网关发送路由配置请求,以供数据网络网关根据路由配置请求配置从数据网络网关到第二用户终端的路由的步骤的描述,可参见前述实施例二中对步骤244的描述,此处不再赘述。Wherein, for the description of the steps in which the application function entity sends a routing configuration request to the data network gateway for the data network gateway to configure the route from the data network gateway to the second user terminal according to the routing configuration request, please refer to the steps in the second embodiment above. 244, which will not be repeated here.
步骤245a、应用功能实体向视频服务器发送视频生成请求,以供视频服务器根据视频生成请求生成与第一用户终端当前播放的视频流的内容相同、且满足第二用户终端的播放能力的视频流。Step 245a: The application function entity sends a video generation request to the video server, so that the video server can generate a video stream with the same content as the video stream currently played by the first user terminal and satisfying the playback capability of the second user terminal according to the video generation request.
其中,关于步骤245a的描述可参见上述实施例二中对步骤245的描述,此处不再赘述。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.
步骤246a、应用功能实体响应于数据网络网关的路由配置成功消息以及视频服务器的视频生成成功消息,确定出该待共享的视频流的路由信息,该路由信息包括视频服务器的入口地址,并跳转至步骤25。Step 246a, the application function entity determines the routing information of the video stream to be shared in response to the routing configuration success message of the data network gateway and the video generation success message of the video server, the routing information includes the entry address of the video server, and jumps to Go to step 25.
其中,关于步骤246a的描述可参见上述实施例二中对步骤246的描述,此处不再赘述。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 related descriptions of this embodiment, reference may be made to the related descriptions in the foregoing second embodiment, which will not be repeated here.
实施例五Embodiment 5
本公开实施例五还提供了一种视频分享方法,本实施例所提供的视频分享方法与前述实施例三的视频分享方法的区别在于:应用功能实体在获取到待共享的视频流的视频元数据之后,即步骤34之后,执行如下步骤:The fifth embodiment of the present disclosure also provides a video sharing method. The difference between the video sharing method provided in this embodiment and the video sharing method in the third embodiment is that the application function entity obtains the video element of the video stream to be shared. After the data, that is, after
步骤35a、应用功能实体根据第二用户终端的用户标识,向核心网发起对第二用户终端的呼叫请求,其中呼叫类型为即时视频分享,呼叫请求中包含第一用户终端的用户标识和待共享的视频流的元数据。Step 35a, the application function entity initiates a call request for the second user terminal to the core network according to the user identity of the second user terminal, wherein the call type is instant video sharing, and the call request includes the user identity of the first user terminal and the to-be-shared The metadata of the video stream.
其中,步骤35a与上述实施例三中的步骤35的区别仅在于:在步骤35a中,呼叫请求中还包括待共享的视频流的元数据,关于该步骤35a的其他相关描述可参见上述实施例三中对步骤35的描述,此处不再赘述。The difference between step 35a and step 35 in the third embodiment above is only that: in step 35a, the call request also includes the metadata of the video stream to be shared. For other related descriptions of this step 35a, please refer to the above embodiment The description of
步骤36a、应用功能实体接收核心网基于该呼叫请求发送的会话建立确认消息,会话建立确认消息包括第二用户终端判断自身是否具备该视频流的播放能力的判断结果消息。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 judgment result message for the second user terminal to judge whether it has the playback capability of the video stream.
在步骤36a中,应用功能实体接收核心网基于该呼叫请求发送的会话建立确认消息,包括:In step 36a, the application function entity receives the session establishment confirmation message sent by the core network based on the call request, including:
步骤361a、核心网中的第二接入和移动管理功能实体基于该呼叫请求,与第二用户终端交互以将待共享的视频流的元数据发送给第二用户终端,并获取该第二用户终端判断自身是否具备该视频流的播放能力的判断结果消息。Step 361a: Based on the call request, the second access and mobility management functional entity in the core network interacts with the second user terminal to send the metadata of the video stream to be shared to the second user terminal, and obtains the second user terminal. A judgment result message for the terminal to judge whether it has the playback capability of the video stream.
在步骤361a中,第二接入和移动管理功能实体基于该呼叫请求识别出该呼叫请求的呼叫类型为即时视频分享后,与第二用户终端进行交互以将待共享的视频流的元数据发送给第二用户终端,以供第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身是否具备该视频流的播放能力。In step 361a, after identifying the call type of the call request as instant video sharing based on the call request, the second access and mobility management function entity interacts with the second user terminal to send the metadata of the video stream to be shared To the second user terminal, so that the second user terminal can determine whether it has the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream to be shared.
当第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身具备该视频流的播放能力时,则生成表征其具备该视频流的播放能力的第一判断结果消息;当第二用户终端根据自身的视频播放能力参数和待共享的视频流的视频播放参数,判断自身不具备该视频流的播放能力时,则生成表征其不具备该视频流的播放能力的第二判断结果消息,同时该第二判断结果消息中携带有第二用户终端的视频播放能力参数。When the second user terminal determines that it has the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream to be shared, it generates a first judgment result indicating that it has the playback capability of the video stream message; when the second user terminal judges that it does not have the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream to be shared, it generates a message indicating that it does not have the playback capability of the video stream. The second judgment result message, meanwhile, the second judgment result message carries the video playback capability parameter of the second user terminal.
步骤362a、第二接入和移动管理功能实体确定第二用户终端对应的第二会话管理功能实体,并向该第二会话管理功能实体发送该第二用户终端判断自身是否具备该视频流的播放能力的判断结果消息。Step 362a, the second access and mobility management function entity determines the second session management function entity corresponding to the second user terminal, and sends the second session management function entity to the second session management function entity to determine whether the second user terminal has the ability to play the video stream. Ability judgment result message.
在步骤362a中,第二会话管理功能实体(Session Management Function,简称:SMF)用于进行后续会话管理。In step 362a, a second session management function entity (Session Management Function, SMF for short) is used for subsequent session management.
步骤363a、第二会话管理功能实体确定第二用户终端对应的用户平面功能实体,并向应用功能实体发送会话建立确认消息,会话建立确认消息包括第二用户终端判断自身是否具备该视频流的播放能力的判断结果消息。Step 363a: The second session management function entity determines the user plane function entity corresponding to the second user terminal, and sends a session establishment confirmation message to the application function entity. The session establishment confirmation message includes the second user terminal judging whether it has the ability to play the video stream. Ability judgment result message.
具体地,在步骤363a中,第二会话管理功能实体确定用于为第二用户终端提供视频数据转发服务的用户平面功能实体(如第二用户平面功能实体或者第一用户平面功能实体),并向应用功能实体发送会话建立确认消息,会话建立确认消息包括但不限于:上述判断结果消息和第二用户终端对应的用户平面功能实体的入口地址(即访问地址),第二用户终端对应的用户平面功能实体可以是第一用户平面功能实体或者第二用户平面功能实体,第一用户平面功能实体和第二用户平面功能实体为不同的用户平面功能实体(UPF)。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 Send a session establishment confirmation message to the application function entity. The session establishment confirmation message includes but is not limited to: the above judgment result message and the entry address (that is, the access address) of the user plane function entity corresponding to the second user terminal, and the user interface corresponding to the second user terminal. The plane functional entity 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).
步骤37a、应用功能实体根据上述第二用户终端的判断结果消息,确定待共享的视频流的路由信息。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.
具体地,步骤37a包括:Specifically, step 37a includes:
步骤371a、若该判断结果消息为表征第二用户终端具备该视频流的播放能力的消息,则应用功能实体向第一用户平面功能实体发送待共享的视频流的转发状态配置请求,以供第一用户平面功能实体根据转发状态配置请求修改该视频流的转发状态,并配置将该视频流同时转发给第二用户终端的路由。Step 371a: If the judgment result message is a message representing that the second user terminal has the playback 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 for the first user plane function entity. A 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.
其中,关于步骤371a的描述可参见上述实施例四中对步骤242a的描述,此处不再赘述。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.
步骤372a、应用功能实体响应于第一用户平面功能实体的转发状态配置成功消息,确定出待共享的视频流的路由信息,该路由信息包括第一用户平面功能实体的入口地址,并跳转至步骤38。Step 372a, the application function entity determines the routing information of the video stream to be shared in response to the successful message of the forwarding state configuration of the first user plane function entity, the routing information includes the entry address of the first user plane function entity, and jumps to: Step 38.
其中,关于步骤372a的描述可参见上述实施例四中对步骤243a的描述,此处不再赘述。For the description of step 372a, reference may be made to the description of step 243a in the fourth embodiment, which is not repeated here.
步骤373a、若该判断结果消息为表征第二用户终端具备该视频流的播放能力的消息,则应用功能实体向数据网络网关发送路由配置请求,以供数据网络网关根据路由配置请求配置从数据网络网关到第二用户终端的路由。Step 373a, if the judgment result message is a message representing that the second user terminal has the playback 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 the slave data network according to the routing configuration request. The route from the gateway to the second user terminal.
其中,关于步骤373a的描述可参见上述实施例四中对步骤244a的描述,此处不再赘述。For the description of step 373a, reference may be made to the description of step 244a in the fourth embodiment, which is not repeated here.
步骤374a、应用功能实体向视频服务器发送视频生成请求,以供视频服务器根据视频生成请求生成与第一用户终端当前播放的视频流的内容相同、且满足第二用户终端的播放能力的视频流。Step 374a: The application function entity sends a video generation request to the video server, so that the video server can generate a video stream with the same content as the video stream currently played by the first user terminal and satisfying the playback capability of the second user terminal according to the video generation request.
其中,关于步骤374a的描述可参见上述实施例四中对步骤245a的描述,此处不再赘述。For the description of step 374a, reference may be made to the description of step 245a in the fourth embodiment, which is not repeated here.
步骤375a、应用功能实体响应于数据网络网关的路由配置成功消息以及视频服务器的视频生成成功消息,确定出该待共享的视频流的路由信息,该路由信息包括视频服务器的入口地址,并跳转至步骤38。Step 375a, the application function entity determines the routing information of the video stream to be shared in response to the routing configuration success message of the data network gateway and the video generation success message of the video server, and the routing information includes the entry address of the video server, and jumps to Go to step 38.
其中,关于步骤375a的描述可参见上述实施例四中对步骤246a的描述,此处不再赘述。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 related descriptions of this embodiment, reference may be made to the related descriptions in the foregoing third embodiment, which will not be repeated here.
实施例六Embodiment 6
图4为本发明实施例六提供的一种视频分享装置的组成框图,如图4所示,在本实施例中,视频分享装置包括接收模块401和路由分配模块402。FIG. 4 is a block diagram of a video sharing apparatus according to Embodiment 6 of the present invention. As shown in FIG. 4 , in this embodiment, the video sharing apparatus includes a receiving
其中,接收模块401用于接收第一用户终端发送的视频共享请求,视频共享请求包括第二用户终端的用户标识。The receiving
路由分配模块402用于向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据路由信息,请求、获取并播放第一用户终端当前播放并请求共享的视频流。The
可选地,如图4所示,该视频分享装置还包括第一获取模块403和路由确定模块404。其中,第一获取模块403用于获取第一用户终端当前播放并请求共享的视频流的视频播放参数;获取第二用户终端的视频播放能力参数。Optionally, as shown in FIG. 4 , the video sharing apparatus further includes a
路由确定模块404用于基于视频流的视频播放参数和视频播放能力参数,确定路由信息,路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址。The
其中,第一用户平面功能实体为用于向第一用户终端提供视频流的转发服务的功能实体,视频服务器用于通过数据网络网关向第一用户平面功能实体提供第一用户终端所需的视频流。The first user plane functional entity is a functional entity used to provide a video stream forwarding service to the first user terminal, and the video server is used to provide the first user plane functional entity with the video required by the first user terminal through the data network gateway. flow.
此外,本实施例所提供的视频分享装置用于实现上述实施例一至实施例三中任一实施例所提供的视频分享方法,关于该视频分享装置的其他相关描述可参见前述实施例一至实施例三中任一实施例的视频分享方法的描述,此处不再赘述。In addition, the video sharing apparatus provided in this embodiment is used to implement the video sharing method provided in any one of the foregoing Embodiments 1 to 3. For other related descriptions of the video sharing apparatus, please refer to the foregoing Embodiments 1 to 3 The description of the video sharing method in any one of the three embodiments will not be repeated here.
实施例七Embodiment 7
本发明实施例七还提供了一种视频分享装置,在本实施例中,该视频分享装置包括接收模块和路由分配模块。Embodiment 7 of the present invention further provides a video sharing device. In this embodiment, the video sharing device includes a receiving module and a routing distribution module.
其中,接收模块用于接收第一用户终端发送的视频共享请求,视频共享请求包括第二用户终端的用户标识。The receiving module is configured to receive a video sharing request sent by the first user terminal, where the video sharing request includes the user identifier of the second user terminal.
路由分配模块用于向第二用户终端分配待共享的视频流的路由信息,以供第二用户终端根据路由信息,向路由信息中的目标获取地址请求、获取并播放第一用户终端当前播放并请求共享的视频流。The route allocation module is used to allocate the route information of the video stream to be shared to the second user terminal, so that the second user terminal can request, obtain and play the target acquisition address in the route information according to the route information, obtain and play the current broadcast and playback of the first user terminal. Request a shared video stream.
可选地,该视频分享装置还包括:第一获取模块、第一发送模块、第二获取模块和路由确定模块。Optionally, the video sharing apparatus further includes: a first obtaining module, a first sending module, a second obtaining module and a route determining module.
其中,第一获取模块用于获取第一用户终端当前播放并请求共享的视频流的视频播放参数;第一发送模块用于向第二用户终端发送视频流的视频播放参数,以供第二用户终端根据自身的视频播放能力参数和视频流的视频播放参数,判断自身是否具备该视频流的播放能力;第二获取模块用于获取第二用户终端在判断出自身是否具备该视频流的播放能力后返回的判断结果消息;路由确定模块用于根据判断结果消息,确定待共享的视频流的路由信息,路由信息中的目标获取地址包括第一用户平面功能实体的入口地址或者视频服务器的入口地址。Wherein, the first acquiring module is used to acquire the video playback parameters of the video stream currently played by the first user terminal and requested to be shared; the first sending module is used to send the video playback parameters of the video stream to the second user terminal for the second user The terminal determines whether it has the playback capability of the video stream according to its own video playback capability parameters and the video playback parameters of the video stream; the second acquisition module is used to acquire the second user terminal when judging whether it has the playback capability of the video stream. The judgment result message returned later; the routing determination module is used to determine the routing information of the video stream to be shared according to the judgment result message, and the target acquisition address in the routing information includes 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 used to provide a video stream forwarding service to the first user terminal, and the video server is used to provide the first user plane functional entity with the video required by the first user terminal through the data network gateway. flow.
此外,本实施例所提供的视频分享装置用于实现上述实施例四或实施例五所提供的视频分享方法,关于该视频分享装置的其他相关描述可参见前述实施例四或实施例五的视频分享方法的描述,此处不再赘述。In addition, the video sharing device provided in this embodiment is used to implement the video sharing method provided in the fourth or fifth embodiment. For other related descriptions of the video sharing device, please refer to the video sharing in the foregoing fourth or fifth embodiment. The description of the method will not be repeated here.
实施例八Embodiment 8
本发明实施例还提供了一种应用功能实体,该应用功能实体包括上述实施例六或实施例七所提供的视频分享装置。An embodiment of the present invention further provides an application function entity, where the application function entity includes the video sharing apparatus provided in the sixth embodiment or the seventh embodiment.
实施例九Embodiment 9
本发明实施例还提供了一种触发视频分享的方法,该方法用于用户终端预先安装的拨号软件系统,该方法包括:An embodiment of the present invention also provides a method for triggering video sharing, the method is used in a dial-up software system pre-installed on a user terminal, and the method includes:
步骤501,响应于在第一用户终端当前正在播放视频流时用户的调用操作,向用户提供拨号界面。Step 501, in response to a user's calling operation when the first user terminal is currently playing a video stream, provide a dialing interface to the user.
步骤502,响应于用户在拨号界面拨打预设的视频分享专用号码,向视频分享装置发送视频共享请求,以触发视频分享装置实现上述任一实施例所提供的视频分享方法。Step 502 , in response to the user dialing the preset dedicated video sharing number on the dialing interface, send a video sharing request to the video sharing device to trigger the video sharing device to implement the video sharing method provided in any of the above embodiments.
作为一种可选的实施方式,在步骤502中,在向视频分享装置发送视频共享请求之前,该方法还包括:响应于用户在拨号界面拨打预设的视频分享专用号码,获取第一用户终端的上一前台应用所播放的视频流在终端本地的第一网络信息。As an optional implementation manner, in step 502, before sending the video sharing request to the video sharing device, the method further includes: in response to the user dialing the preset dedicated video sharing number on the dialing interface, obtaining the first user terminal The first network information local to the terminal of the video stream played by the last foreground application.
关于拨号软件系统触发视频分享的方法的具体相关描述可参见前述实施例三中相关的描述,此处不再赘述。For specific related descriptions of the method for triggering video sharing by the dial-up software system, reference may be made to the related descriptions in the foregoing third embodiment, which will not be repeated here.
实施例十Embodiment ten
本发明实施例还提供了一种拨号软件系统,该拨号软件系统安装于用户终端,该拨号软件系统包括:The embodiment of the present invention also provides a dial-up software system, the dial-up software system is installed on the user terminal, and the dial-up software system includes:
调用响应模块,用于响应于在第一用户终端当前正在播放视频流时用户的调用操作,向用户提供拨号界面。The invocation response module is configured to provide a dialing interface to the user in response to the invocation operation of the user when the first user terminal is currently playing the video stream.
第二发送模块,用于响应于用户在拨号界面拨打预设的视频分享专用号码,向视频分享装置发送视频共享请求,以触发视频分享装置实现上述任一实施例所提供的视频分享方法。The second sending module is configured to send a video sharing request to the video sharing device in response to the user dialing the preset dedicated video sharing number on the dialing interface, so as to trigger the video sharing device to implement the video sharing method provided in any of the above embodiments.
作为一种可选的实施方式,该拨号软件系统还包括:第三获取模块,用于在第二发送模块向视频分享装置发送视频共享请求之前,响应于用户在拨号界面拨打预设的视频分享专用号码,获取第一用户终端的上一前台应用所播放的视频流在终端本地的第一网络信息。As an optional implementation manner, the dialing software system further includes: a third acquiring module, configured to respond to the user dialing a preset video sharing on the dialing interface before the second sending module sends a video sharing request to the video sharing device The dedicated number is used to obtain the first network information local to the terminal of the video stream played by the last foreground application of the first user terminal.
在本实施例中,拨号软件系统用于实现上述的触发视频分享的方法,具体相关描述可参见前述实施例中对于触发视频分享的方法的描述,此处不再赘述。In this embodiment, the dial-up software system is used to implement the above-mentioned method for triggering video sharing. For specific related descriptions, refer to the description of the method for triggering video sharing in the foregoing embodiment, which will not be repeated here.
可以理解的是,以上实施方式仅仅是为了说明本发明的原理而采用的示例性实施方式,然而本发明并不局限于此。对于本领域内的普通技术人员而言,在不脱离本发明的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本发明的保护范围。It can be understood that the above embodiments are only exemplary embodiments adopted to illustrate the principle of the present invention, but the present invention is not limited thereto. For those skilled in the art, without departing from the spirit and essence of the present invention, various modifications and improvements can be made, and these modifications and improvements are also regarded as the protection scope of the present invention.
Claims (17)
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)
| 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)
| 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 |
-
2020
- 2020-10-20 CN CN202011122948.6A patent/CN112261490B/en active Active
Patent Citations (5)
| 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 |
|---|---|---|
| US11431811B2 (en) | Notifications of incoming messages | |
| US10599869B2 (en) | Separate privacy setting control for multiple application instances of a user | |
| CN109257509B (en) | Communication method, system, server and storage medium based on virtual number | |
| RU2532729C2 (en) | Method and service node for accessing video part of voice and video call and method of adding video part to voice call | |
| JP5842290B2 (en) | Session start protocol adapter | |
| US8565267B2 (en) | Web based unified communication system and method, and web communication manager | |
| US9049210B2 (en) | Data communication | |
| CN103379096A (en) | Internet and operator network service sharing method, service side and webpage gateway | |
| EP2671366B1 (en) | Determining a location address for shared data | |
| US9008287B2 (en) | Data communication | |
| CN110493479A (en) | Implementation method, communication equipment and the realization system of video frequency color ring | |
| US7474665B2 (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 | |
| EP3745670B1 (en) | Management of a communication session | |
| US9049310B2 (en) | Data communication | |
| WO2010075688A1 (en) | Method, apparatus and system for creating and joining ip multimedia subsystem (ims) group conference | |
| CN100568898C (en) | A Multimedia Call Center System Based on ParlayAPI | |
| US8938055B2 (en) | System and method for establishing data communication using pre-configured user data | |
| US7720974B2 (en) | Global routable and grid identification for audio provider in media session | |
| KR100527200B1 (en) | method and apparatus for offer conference service in exchange switch | |
| KR20060076007A (en) | Address book management system and its method in broadband integrated network | |
| CN117676479A (en) | Route configuration method, device, equipment and storage medium | |
| KR20130005641A (en) | Telephone system with general phone and internet phone with contents providing service and communication method usign the saem | |
| WO2016155541A1 (en) | Calling method, device and system for voice over internet protocol |
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 |