CN114390349B - Video playing control method, device, terminal and storage medium - Google Patents

Video playing control method, device, terminal and storage medium Download PDF

Info

Publication number
CN114390349B
CN114390349B CN202011139627.7A CN202011139627A CN114390349B CN 114390349 B CN114390349 B CN 114390349B CN 202011139627 A CN202011139627 A CN 202011139627A CN 114390349 B CN114390349 B CN 114390349B
Authority
CN
China
Prior art keywords
video stream
video
playing
mode
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011139627.7A
Other languages
Chinese (zh)
Other versions
CN114390349A (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shenzhou Digital Cloud Information Technology Co ltd
Shenzhou Kuntai Xiamen Information Technology Co ltd
Original Assignee
Shenzhou Kuntai Xiamen Information Technology Co ltd
Beijing Shenzhou Digital Cloud Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhou Kuntai Xiamen Information Technology Co ltd, Beijing Shenzhou Digital Cloud Information Technology Co ltd filed Critical Shenzhou Kuntai Xiamen Information Technology Co ltd
Priority to CN202011139627.7A priority Critical patent/CN114390349B/en
Publication of CN114390349A publication Critical patent/CN114390349A/en
Application granted granted Critical
Publication of CN114390349B publication Critical patent/CN114390349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a video playing control method, a device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring a video stream object for storing video stream information when the video stream information is monitored and acquired by calling a video stream information acquisition callback function in a preset video play control class; by taking a video stream object as an input parameter, calling a preset play mode detection function, and detecting whether the current video play mode is a peer-to-peer network P2P play mode; if the current video playing mode is the peer-to-peer network P2P playing mode, the video stream is played in the peer-to-peer network P2P playing mode, and if the current video playing mode is the non-peer-to-peer network P2P playing mode, the video stream is played in the non-peer-to-peer network P2P playing mode. By the technical scheme provided by the embodiment of the invention, different playing modes can be utilized to play videos, so that the dynamic switching of the playing modes is realized, network resources are reasonably utilized, and the viewing experience of users is improved.

Description

Video playing control method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to a computer technology, in particular to a video playing control method, a video playing control device, a video playing control terminal and a video playing control storage medium.
Background
With the rapid development of computer technology, more and more users use terminals such as mobile phones and computers to watch live video broadcast through a network.
At present, after a client accesses a certain playing mode, the client can only play video in the playing mode. For example, video streams can only be played in peer-to-peer (P2P) play mode or in non-P2P play mode, such as content distribution network CDN (Content Delivery Network) play mode. However, if each video in the client is played in the P2P playing mode, there may be a delay phenomenon in each video, which reduces the user viewing experience. If each video is played synchronously in a non-P2P playing mode, such as a CDN playing mode, larger network bandwidth and server resources are consumed, and operation cost is increased.
Disclosure of Invention
The embodiment of the invention provides a video playing control method, a video playing control device, a video playing control terminal and a video storage medium, which are used for controlling the video to be played in different playing modes, so that the dynamic switching of the playing modes is realized, network resources are utilized more reasonably, and the watching experience of a user is improved.
In a first aspect, an embodiment of the present invention provides a video play control method, including:
When the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class, acquiring a video stream object for storing the video stream information;
By taking the video stream object as an input parameter, calling a preset play mode detection function, and detecting whether the current video play mode is a peer-to-peer network P2P play mode;
And if the current video playing mode is a peer-to-peer network P2P playing mode, controlling to play the video stream in the peer-to-peer network P2P playing mode, and if the current video playing mode is a non-peer-to-peer network P2P playing mode, controlling to play the video stream in the non-peer-to-peer network P2P playing mode.
In a second aspect, an embodiment of the present invention further provides a video play control device, including:
The video stream information monitoring module is used for acquiring a video stream object for storing video stream information when the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class;
The play mode detection module is used for calling a preset play mode detection function by taking the video stream object as an input parameter to detect whether the current video play mode is a peer-to-peer network P2P play mode or not;
And the video stream playing control module is used for controlling to play the video stream in the peer-to-peer network P2P playing mode if the current video playing mode is the peer-to-peer network P2P playing mode, and controlling to play the video stream in the non-peer-to-peer network P2P playing mode if the current video playing mode is the non-peer-to-peer network P2P playing mode.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
A memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video playback control method as provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a video playback control method as provided by any of the embodiments of the present invention.
The embodiments of the above invention have the following advantages or benefits:
By calling a video stream information acquisition function in a preset video play control class, whether the video stream information is acquired can be monitored in real time, and if yes, a video stream object for storing the video stream information can be acquired. And calling a preset play mode detection function by taking the video stream object as an input parameter, and detecting whether the current video play mode for playing the video stream is a peer-to-peer network P2P play mode or not. If the current video playing mode is the peer-to-peer network P2P playing mode, the video stream can be controlled to be played in the peer-to-peer network P2P playing mode, if the current video playing mode is the non-peer-to-peer network P2P playing mode, the video stream can be controlled to be played in the non-peer-to-peer network P2P playing mode, so that the video can be controlled to be played in different playing modes, all the videos are prevented from being played in the same playing mode, dynamic switching of the playing modes is realized, network resources can be utilized more reasonably, and user watching experience is improved.
Drawings
Fig. 1 is a flowchart of a video playing control method according to a first embodiment of the present invention;
Fig. 2 is a flowchart of a video playing control method according to a second embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a video playing control device according to a third embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a video playing control method according to a first embodiment of the present invention, where the embodiment is applicable to controlling playing of video in different playing modes. The method can be executed by a video playing control device, the device can be realized by software and/or hardware, and the device is integrated in a terminal carrying an Android system, such as an intelligent terminal of a smart phone, a tablet computer, a smart television or a notebook computer. As shown in fig. 1, the method specifically includes the following steps:
s110, when the video stream information is obtained through monitoring by calling a video stream information obtaining function in a preset video play control class, a video stream object for storing the video stream information is obtained.
The preset video playing control class may be a predefined class for controlling a video playing mode. The control logic of video playing is encapsulated into the preset video playing control class, so that the effect of low coupling and high cohesion can be realized by utilizing the preset video playing control class, and the development efficiency is improved. The video stream information acquisition function may refer to a function that the system makes a callback when video stream information is acquired. For example, the video stream information acquisition function may refer to a video stream information acquisition function onGetVideoStream in the system for acquiring video stream information. For example, the preset video play control class may inherit the basic core management class in advance, and rewrite the video stream information acquisition function in the basic core management class, so that the video stream information acquisition function in the preset video play control class implements a monitoring function of video stream information acquisition, where the basic core management class is used to provide a system callback function. For example, the preset video playback control class may be defined as follows:
class P2PManager(val mContext:Context):MZBaseManager(mContext){}
override fun onGetVideoStream(vodStreamInfo:VodStreamInfo)
Wherein P2PManager is the name of a preset video play control class, the class has a Context object mContext with an object type of Context, and the class inherits the basic core management class MZBaseManager, and in the preset video play control class, the video stream information acquisition function onGetVideoStream in the basic core management class MZBaseManager is rewritten by a manner of rewriting @ Override, and the acquisition logic of the video stream information is implemented in the video stream information acquisition function onGetVideoStream in the preset video play control class, so that the listening operation of the video stream information acquisition can be implemented by a manner of calling the video stream information acquisition function onGetVideoStream. When listening to the acquired video stream information, the system may encapsulate the acquired video stream information into a video stream object vodStreamInfo of the preset information type VodStreamInfo. The video stream information may refer to information related to video stream playing, and may include, but is not limited to, video stream playing address information and P2P tag field information P2pMeta.
Specifically, by calling a video stream acquisition function in a preset video play control class, whether video stream information is acquired or not can be monitored in real time, so that the play mode of the video can be controlled in real time when the video stream information is acquired. If the video stream information is currently acquired, the video stream information indicates that the video to be played currently exists, and at this time, a video stream object for storing the video stream information can be acquired.
S120, calling a preset play mode detection function by taking the video stream object as an input parameter, and detecting whether the current video play mode is a peer-to-peer network P2P play mode.
The peer-to-peer network P2P play mode may have a picture delay phenomenon, but occupies less network resources. The peer-to-peer network P2P play mode may refer to a play mode different from the P2P play mode, such as but not limited to a content delivery network CDN play mode. The CDN playing mode of the content delivery network can synchronously play video pictures, but consumes more network resources. The preset play mode detection function may be predefined, and is configured to detect whether the current video play mode corresponding to the video to be played is a P2P play mode. The developer can set the playing mode corresponding to each video based on the service requirement in advance, so that each video can be played by using a more suitable playing mode. For example, if the video to be played currently has relaxed requirements on picture synchronization, the playing mode of the video may be set to the peer-to-peer network P2P playing mode, so as to reduce the consumption of network resources. If the video to be played currently has strict requirements on picture synchronization, such as live broadcasting of a network video with a prize competition, the playing mode of the video can be set to a non-P2P playing mode, such as a CDN playing mode, so that a user can watch the video more in real time synchronization, and the user watching experience is improved.
For example, the preset play mode detection function may be defined as follows:
private fun checkP2p(vodStreamInfo:VodStreamInfo):Boolean
Wherein checkP p is the function name of the preset play mode detection function. The input parameter of the function is a video stream object vodStreamInfo of a preset information type VodStreamInfo, and the input parameter is a Boolean parameter, which is used for representing the detection result of the playing mode.
Specifically, by calling the preset play mode detection function checkP P with the video stream object vodStreamInfo for storing the acquired video stream information as an input parameter, it is detected whether the current video play mode is the P2P play mode. If the preset play mode detection function checkP P returns true, it indicates that the current video play mode is the P2P play mode. If the preset play mode detection function checkP P returns to false, it indicates that the current video play mode is the non-P2P play mode.
The preset play mode detection function may implement the function of detecting whether the current video play mode is the peer-to-peer network P2P play mode by the following steps S121 to S125:
S121, detecting whether a P2P label field in a video stream object is an empty field, if so, entering step S122; if not, the process advances to step S123.
The P2P tag field may be a field for storing P2P related information. Specifically, whether the P2P tag field P2pMeta in the video stream object vodStreamInfo is an empty field may be detected by calling if (vodstreaminfo.p2pmeta |=null).
S122, determining that the current video playing mode is a non-P2P playing mode.
Specifically, when the P2P tag field P2pMeta is a null field, it indicates that the information related to P2P does not exist in the obtained video stream information, so that the video cannot be played in the P2P playing mode, and at this time, the current video playing mode can be determined to be the non-P2P playing mode directly by returning to the false mode. Or when the P2P tag field P2pMeta is a non-null field and the P2P global switch state is an off state, it indicates that the video does not need to be played in the P2P play mode, and at this time, the current video play mode can be determined to be the non-P2P play mode directly by returning to the false mode.
S123, detecting whether a pre-configured P2P global switch state is an on state, if so, entering a step S124; if not, the process proceeds to step S122.
The P2P global switch state may be preconfigured based on service requirements, and is used to globally control whether each video is played in a non-P2P play mode. For example, when the P2P global switch state is in the off state, it indicates that each video to be played does not need to be played in the P2P playing mode. When the P2P global switch state is in the on state, it indicates that each video to be played is possible to play in the P2P play mode. The play mode of each video can be globally controlled based on the P2P global switch state, and the control efficiency is greatly improved.
Specifically, whether the P2P global switch state isP P switch in the pre-configured global switch configuration information config is an on state may be detected by calling if (vodvideaconfigmgr.getself (). Config.isp2pswitch). If the P2P global switch state is the on state true, that is, the above-mentioned judging condition is satisfied, it indicates that the current video playing mode is likely to be the P2P playing mode, and at this time, the judging can be continued by executing step S124. If the P2P global switch state is the off state false, that is, the above-mentioned judging condition is not satisfied, it indicates that the current video playing mode is unlikely to be the P2P playing mode, and at this time, step S122 may be executed in a returning manner to determine that the current video playing mode is the non-P2P playing mode.
For example, before detecting whether the P2P global switch state in the global switch configuration information is an on state, the method may further include: by calling if (vodvideoconfigmgr.getself (). Config |=null), it is detected whether the global switch configuration information is null information, and if it is null information, the flow proceeds directly to step S122. If the current video playing mode is the non-P2P playing mode, whether the P2P global switch state in the global switch configuration information is the on state is detected, so that the situation that the current video playing mode is the non-P2P playing mode can be detected more rapidly by detecting whether the global switch configuration information is the null information, and the control efficiency of video playing is further improved.
S124, detecting whether a P2P switch state in a pre-configured P2P label field is an on state, if so, entering a step S125; if not, the process proceeds to step S122.
The P2P switch status may be switch information for controlling a play mode stored in a video stream address, which is preconfigured based on a service requirement for each video stream. Specifically, whether the P2P switch state isP P in the P2P tag field P2pMeta is an on state can be detected by calling if (vodstreaminfo.p2pmeta.isp2p). If the P2P switch state is the on state true, that is, the above-mentioned determination condition is satisfied, the operation of step S124 is performed. If the P2P switch state is the off state false, that is, the above-mentioned judging condition is not satisfied, it indicates that the current video playing mode is not the P2P playing mode, and step S122 may be executed again at this time to determine that the current video playing mode is the non-P2P playing mode.
S125, determining that the current video playing mode is a P2P playing mode.
Specifically, when the P2P switch state is in the on state, it indicates that the video needs to be played in the P2P play mode, and at this time, it may be determined that the current video play mode is the P2P play mode by returning true.
S130, if the current video playing mode is the peer-to-peer network P2P playing mode, controlling to play the video stream in the peer-to-peer network P2P playing mode, and if the current video playing mode is the non-peer network P2P playing mode, controlling to play the video stream in the non-peer-to-peer network P2P playing mode.
Specifically, when the current video playing mode is detected to be the P2P playing mode, it indicates that the video needs to be played in the P2P playing mode, and at this time, a predefined preset P2P playing function can be called to control the playing of the video in the P2P playing mode by taking the video stream object as an input parameter, so as to reduce consumption of network resources. When the current video playing mode is detected to be the non-P2P playing mode, the video is indicated to be played in the non-P2P playing mode, at the moment, a pre-defined preset non-P2P playing function is called to control the video to play the video in the non-P2P playing mode by taking a video stream object as an input parameter, so that a user can watch the video more in real-time synchronization, and the user watching experience is improved. Wherein, the preset P2P play function and the preset non-P2P play function can be referred to in the following detailed description of the embodiments. According to the embodiment, a proper playing mode can be set for each video, all videos are prevented from being played in the same playing mode, and the playing modes are dynamically selected and switched between the P2P playing mode and the non-P2P playing mode, so that effective control of the video playing modes is achieved, network resources can be utilized more reasonably, and user watching experience is improved.
According to the technical scheme, whether the video stream information is acquired or not can be monitored in real time by calling a video stream information acquisition function in a preset video play control class, and if yes, a video stream object for storing the video stream information can be acquired. And calling a preset play mode detection function by taking the video stream object as an input parameter, and detecting whether the current video play mode for playing the video stream is a peer-to-peer network P2P play mode or not. If the current video playing mode is the peer-to-peer network P2P playing mode, the video stream can be controlled to be played in the peer-to-peer network P2P playing mode, if the current video playing mode is the non-peer-to-peer network P2P playing mode, the video stream can be controlled to be played in the non-peer-to-peer network P2P playing mode, so that the video can be controlled to be played in different playing modes, all the videos are prevented from being played in the same playing mode, dynamic switching of the playing modes is realized, network resources can be utilized more reasonably, and user watching experience is improved.
Based on the technical scheme, the method further comprises the following steps: if the current page state is detected to be in a closed state, stopping acquiring a video stream object for storing video stream information in the video stream information acquisition function so as to stop video playing operation; wherein the current page state is set to an on state when the current page is monitored to be created and set to an off state when the current page is monitored to exit.
Illustratively, a Boolean type Boolean global variable isFinish for storing the current page state may be predefined, such as: PRIVATE VAR ISFINISH Boolean=false, and initialize the variable to false, i.e., the current page is created, on. The embodiment can set the current page state to be an on state by calling a page creation function in a preset video play control class when the current page is found to be created. For example, in the preset video play control class, the page creation function onActivityCreate () in the basic core management class may be rewritten by the @ Override manner, so that a callback is made when the current page is created, i.e., when the current page is opened, and the current page state may be set to an on state by calling isFinish =false inside the page creation function.
The embodiment can set the current page state to be the closed state when the current page exit is monitored by calling the page exit function in the preset video play control class. For example, in the preset video play control class, the page exit function onActivityFinish () in the basic core management class may be rewritten by the @ Override mode, so that when the current page exits, i.e., when the current page is closed, a callback is performed, and in the page exit function, the current page state may be set to the closed state by calling isFinish =true.
Specifically, in the video stream information obtaining function onGetVideoStream, whether the current page state is in a closed state can be detected by calling if (isFinish), if the current page state is in a closed state, that is, if the judging condition is satisfied, it is indicated that the current page has been closed and is exited, and the video stream in the current page is not required to be replayed, at this time, the return mode can be directly called to stop obtaining the video stream object for storing the video stream information, so as to stop the video playing operation, thereby effectively avoiding the situation that the video starts to be played immediately after the page exits, and further effectively avoiding the problem of abnormal playing. If the current page state is in an on state, that is, the judging condition is not satisfied, the current page is indicated to be not closed and withdrawn, at this time, a video stream object for storing video stream information can be obtained to continue to execute normal video playing control operation, and the video stream in the current page is played, so that normal playing of the video can be ensured, and user experience is improved.
Example two
Fig. 2 is a flowchart of a video playing control method according to a second embodiment of the present invention, where, based on the above embodiments, when the current video playing mode is the peer-to-peer network P2P playing mode, the "control to play the video stream in the peer-to-peer network P2P playing mode" is optimized, and explanations of terms identical to or corresponding to the above embodiments are not repeated herein.
Referring to fig. 2, the video playing control method provided in this embodiment specifically includes the following steps:
S210, when the video stream information is obtained through monitoring by calling a video stream information obtaining function in a preset video play control class, obtaining a video stream object for storing the video stream information.
S220, calling a preset play mode detection function by taking the video stream object as an input parameter, and detecting whether the current video play mode is a peer-to-peer network P2P play mode.
S230, if the current video playing mode is the peer-to-peer network P2P playing mode, calling a preset P2P initializing function by taking the video stream object as an input parameter, initializing the P2P playing mode on the current page, and controlling to play the video stream based on the initializing result.
The preset P2P initialization function may be a predefined function for implementing an initialization logic function of P2P. For example, the preset P2P initialization function may be defined as:
private fun initP2PCallback(vodStreamInfo:VodStreamInfo)
Wherein initP2PCallback is a function name of a preset P2P initialization function, and an input parameter of the function is a video stream object vodStreamInfo of a preset information type VodStreamInfo. The function has a private authority modifier private so as to be accessed when the current page is initialized, and the privacy of the function is ensured.
Specifically, when the current video playing mode is the peer-to-peer network P2P playing mode, it indicates that the video stream can be played in the P2P playing mode, at this time, the preset P2P initializing function initP2PCallback can be called by taking the video stream object vodStreamInfo as an input parameter, the P2P playing mode is initialized on the current page, and the video stream is controlled to be played based on the initializing result, for example, when the P2P initializing is successful, the video stream is controlled to be played in the P2P playing mode, and when the P2P initializing fails, the video stream is controlled to be played in the non-P2P playing mode, thereby further ensuring that the video stream can be normally played in the P2P playing mode, avoiding the occurrence of P2P playing abnormality, and further improving the user viewing experience.
The preset P2P initialization function may implement the function of initializing the P2P playing mode for the current page and playing the video stream based on the initialization result by:
When the P2P service binding success is monitored, calling a preset P2P playing function by taking a video stream object as an input parameter, and controlling to play the video stream in a peer-to-peer network P2P playing mode; when the initialization failure, the P2P service binding failure or the failure rollback is monitored, the video stream object is used as an input parameter, a preset non-P2P playing function is called, and the video stream is controlled to be played in a P2P playing mode of the non-peer-to-peer network.
In the process of initializing the P2P, the basic initialization operation, the P2P service binding operation, and the like need to be completed. The preset P2P play function may be a predefined function for controlling the video player to play the video stream in the P2P play mode. For example, the preset P2P play function playP P may be defined as: private fun playP2P (vodStreamInfo: vodStreamInfo). The preset non-P2P play function may be a predefined function for controlling the video player to play the video stream in the non-P2P play mode. For example, the preset non-P2P play function playNormal may be defined as: private funplayNormal (vodStreamInfo: vodStreamInfo).
Specifically, in the preset video play control class, the initialization success callback function and the initialization failure callback function involved in the process of initializing the P2P in the basic core management class MZBaseManager can be rewritten in the @ Override mode. For example, whether the P2P service binding is successful may be monitored by calling the duplicate P2P service binding success function onBindSuccess. Whether the P2P initialization fails may be monitored by calling the duplicate initialization failure function onFailed. Whether the P2P service binding fails may be monitored by calling the duplicate P2P service binding failure function onBindSuccess. Whether the P2P initialization generates a failed rollback may be monitored by calling a duplicate callback failure function onRollback. When the P2P service binding is monitored to be successful, the P2P is indicated to be initialized successfully, and at the moment, a preset P2P playing function playP P can be called by taking a video stream object vodStreamInfo as an input parameter to control the playing of the video stream in a peer-to-peer network P2P playing mode. When the initialization failure, the P2P service binding failure or the failure rollback is monitored, the P2P integral initialization failure is indicated, at the moment, a preset non-P2P playing function playNormal is called by taking a video stream object vodStreamInfo as an input parameter, and the video stream is controlled to be played in a non-peer-to-peer network P2P playing mode, so that the video stream is controlled to be played in a peer-to-peer network P2P playing mode when the P2P integral initialization is successful, thereby realizing the dynamic switching between P2P playing and non-P2P playing, and further ensuring the normal P2P playing of the video.
Illustratively, the preset P2P play function implements the function of playing the video stream in the peer-to-peer network P2P play mode by:
Resetting the P2P state, and setting a P2P playing field in the video player as preset encryption information; setting a P2P switch state in the video player based on the P2P global switch state; converting a P2P tag field in a video stream object into a character string field in a JSON format, and setting the P2P tag field in a video player as the character string field; and calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the P2P playing mode, and calling the video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the P2P playing mode.
Specifically, the P2P state may be first reset by calling a P2P state reset function dyp2ploader.getinstance (). RESETCLINTESTATE () function in the system. Then, the P2P play field in the video player may be set to preset encryption information so as to avoid the case of performing P2P play by illegal hacking through validity check of P2P. For example, the application identifier dyp2p-appid-vod in the video player may be set to the encryption information FDSAFDASFASDFASD by calling the encryption information addition function vodPlayer.addPlayerOption ("dyp 2p-appid-vod", "FDSAFDASFASDFASD") in the system, and the certificate management key dyp2p-seckey-vod in the video player may be set to the encryption information ADFADFADFASDF by calling the encryption information addition function vodPlayer.addPlayerOption ("dyp 2p-seckey-vod", "ADFADFADFASDF") in the system. The P2P global switch state may then be set to the P2P switch state in the video player by:
When the P2P global switch state isP P switch is an on state, the P2P switch state dyp2P-global-vod-onoff in the video player may be set to 1. When the P2P global switch state isP ps switch is an off state, the P2P switch state dyp2P-global-vod-onoff in the video player may be set to 0, so that the P2P global switch state may be transmitted to the video player. Next, the P2P tag field P2pMeta in the video stream object vodStreamInfo can be assigned to the variable vodP2PMeta by calling val vodP2PMeta =vodstreaminfo.p2pmeta, and converted to the string field vodP2pMetaStr in JSON format by calling val vodP2pMetaStr =json.tojsonstring (vodP 2 PMeta), and the P2P tag field dyp2P-meta-vod in the video player can be set to the string field by calling the string addition function vodplayplayer.addplayoption ("dyp 2P-meta-vod", vodP2 pMetaStr) in the system, so that how the content of the P2P tag field changes can be seamlessly transmitted to the video player bottom layer for processing, and the P2P switch state can be set. Finally, the video stream object vodStreamInfo is used as an input parameter, the video stream playing address obtaining function val url= getVideoUrlByStream (vodStreamInfo) is called, the video stream playing address url corresponding to the P2P playing mode is obtained, the video stream playing address url is used as the input parameter, and the video playing function openVideoByUrl (url) is called, so that the video stream corresponding to the P2P playing mode can be played, and the playing mode of P2P is realized.
The preset non-P2P play function is implemented by the following steps:
Setting a P2P playing field in the video player as a null field; setting a P2P switch state in the video player based on the P2P global switch state; converting a P2P tag field in a video stream object into a character string field in a JSON format, and setting the P2P tag field in a video player as the character string field; and calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the non-P2P playing mode, and calling the video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the non-P2P playing mode.
Specifically, since the video stream is not played by the P2P, the P2P play field related to the P2P in the video player may be set to a null field, i.e., a null value. For example, the application identifier in the video player may be set to a null value by calling a null value information adding function vodPlayer.addPlayerOption ("dyp 2p-appid-vod", "") in the system, and the certificate management key in the video player may be set to a null value by calling a null value information adding function vodPlayer.addPlayerOption ("dyp 2p-seckey-vod", ") in the system. The P2P global switch state may then be set to the P2P switch state in the video player by:
When the P2P global switch state isP P switch is an on state, the P2P switch state dyp2P-global-vod-onoff in the video player may be set to 1. When the P2P global switch state isP ps switch is an off state, the P2P switch state dyp2P-global-vod-onoff in the video player may be set to 0, so that the P2P global switch state may be transmitted to the video player. Next, the P2P tag field P2pMeta in the video stream object vodStreamInfo can be assigned to the variable vodP2PMeta by calling val vodP2PMeta =vodstreaminfo.p2pmeta, and converted to the string field vodP2pMetaStr in JSON format by calling val vodP2pMetaStr =json.tojsonstring (vodP 2 PMeta), and the P2P tag field dyp2P-meta-vod in the video player can be set to the string field by calling the string addition function vodplayplayer.addplayoption ("dyp 2P-meta-vod", vodP2 pMetaStr) in the system, so that how the content of the P2P tag field changes can be seamlessly transmitted to the video player bottom layer for processing, and the P2P switch state can be set. Finally, the video stream object vodStreamInfo is used as an input parameter, the video stream playing address obtaining function val url= getVideoUrlByStream (vodStreamInfo) is called, the video stream playing address url corresponding to the non-P2P playing mode is obtained, the video stream playing address url is used as the input parameter, and the video playing function openVideoByUrl (url) is called, so that the video stream corresponding to the non-P2P playing mode can be played, and the playing mode of the non-P2P is realized.
S240, if the current video playing mode is the peer-to-peer network P2P playing mode, the video stream is played in the peer-to-peer network P2P playing mode.
Specifically, when the current video playing mode is the peer-to-peer network P2P playing mode, the video stream object vodStreamInfo is used as an input parameter to directly call the preset non-P2P playing function playNormal to control to play the video stream in the peer-to-peer network P2P playing mode, so that the video stream can be directly controlled to play in the peer-to-peer network P2P playing mode, and dynamic switching of the playing mode is realized.
According to the technical scheme, when the current video playing mode is the peer-to-peer network P2P playing mode, a preset P2P initializing function is called by taking a video stream object as an input parameter, the P2P playing mode is initialized on the current page, and playing of the video stream is controlled based on an initializing result, for example, when the P2P is successfully initialized, the video stream is controlled to be played in the P2P playing mode, and when the P2P is unsuccessfully initialized, the video stream is controlled to be played in the non-P2P playing mode, so that the video stream can be normally played in the P2P playing mode, abnormal P2P playing is avoided, and user watching experience is further improved.
The following is an embodiment of a video playback control apparatus provided in the embodiment of the present invention, which belongs to the same inventive concept as the video playback control method of the foregoing embodiments, and details that are not described in detail in the embodiment of the video playback control apparatus may refer to the embodiment of the foregoing video playback control method.
Example III
Fig. 3 is a schematic structural diagram of a video playing control device according to a third embodiment of the present invention, where the present embodiment is applicable to controlling playing of video in different playing modes. As shown in fig. 3, the apparatus specifically includes: a video stream information monitoring module 310, a play mode detection module 320, and a video stream play control module 330.
The video stream information monitoring module 310 is configured to acquire a video stream object for storing video stream information when the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class; the play mode detection module 320 is configured to invoke a preset play mode detection function by using the video stream object as an input parameter, to detect whether the current video play mode is a peer-to-peer network P2P play mode; the video stream playing control module 330 is configured to control to play the video stream in the peer-to-peer network P2P playing mode if the current video playing mode is the peer-to-peer network P2P playing mode, and control to play the video stream in the non-peer-to-peer network P2P playing mode if the current video playing mode is the non-peer-to-peer network P2P playing mode.
Optionally, the play mode detection module 320 includes a preset play mode detection function executing unit, configured to implement a function of detecting whether the current video play mode is a peer-to-peer network P2P play mode by:
Detecting whether a P2P tag field in a video stream object is an empty field; if the P2P label field is an empty field, determining that the current video playing mode is a non-P2P playing mode; if the P2P tag field is a non-null field, detecting whether a P2P global switch state which is configured in advance and a P2P switch state in the P2P tag field are in an on state or not; if the P2P global switch state and the P2P switch state are both in the on state, determining that the current video playing mode is a P2P playing mode; and if the P2P global switch state or the P2P switch state is in the off state, determining that the current video playing mode is a non-P2P playing mode.
Optionally, the video stream playing control module 330 includes:
A P2P play control unit, configured to: and calling a preset P2P initialization function by taking the video stream object as an input parameter, initializing a P2P playing mode of the current page, and controlling playing of the video stream based on an initialization result.
Optionally, the P2P play control unit includes: the preset P2P initialization function execution subunit is configured to initialize a P2P playing mode for a current page, and control a function of playing a video stream based on an initialization result, by:
when the P2P service binding success is monitored, calling a preset P2P playing function by taking a video stream object as an input parameter, and controlling to play the video stream in a peer-to-peer network P2P playing mode;
When the initialization failure, the P2P service binding failure or the failure rollback is monitored, the video stream object is used as an input parameter, a preset non-P2P playing function is called, and the video stream is controlled to be played in a P2P playing mode of the non-peer-to-peer network.
Optionally, the P2P play control unit further includes: the preset P2P play function execution subunit is configured to implement a function of controlling to play a video stream in a peer-to-peer network P2P play mode by:
Resetting the P2P state, and setting a P2P playing field in the video player as preset encryption information; setting a P2P switch state in the video player based on the P2P global switch state; converting a P2P tag field in a video stream object into a character string field in a JSON format, and setting the P2P tag field in a video player as the character string field; and calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the P2P playing mode, and calling the video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the P2P playing mode.
Optionally, the P2P play control unit further includes: the preset non-P2P playing function executing subunit is configured to implement a function of controlling playing of a video stream in a non-peer-to-peer network P2P playing mode by:
Setting a P2P playing field in the video player as a null field; setting a P2P switch state in the video player based on the P2P global switch state; converting a P2P tag field in a video stream object into a character string field in a JSON format, and setting the P2P tag field in a video player as the character string field; and calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the non-P2P playing mode, and calling the video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the non-P2P playing mode.
Optionally, the apparatus further comprises:
The video playing stopping module is used for stopping acquiring a video stream object for storing video stream information in the video stream information acquiring function if the current page state is detected to be in a closed state so as to stop video playing operation; wherein the current page state is set to an on state when the current page is monitored to be created and set to an off state when the current page is monitored to exit.
The video play control device provided by the embodiment of the invention can execute the video play control method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the video play control method.
It should be noted that, in the embodiment of the video playing control device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary terminal 12 suitable for use in implementing embodiments of the present invention. The terminal 12 shown in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the terminal 12 is in the form of a general purpose computing device. The components of the terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The terminal 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the terminal 12, and/or any devices (e.g., network card, modem, etc.) that enable the terminal 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the terminal 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the terminal 12 via the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with terminal 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a video play control method step provided in the present embodiment, the method includes:
When the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class, acquiring a video stream object for storing the video stream information;
by taking a video stream object as an input parameter, calling a preset play mode detection function, and detecting whether the current video play mode is a peer-to-peer network P2P play mode;
And if the current video playing mode is the peer-to-peer network P2P playing mode, controlling to play the video stream in the peer-to-peer network P2P playing mode, and if the current video playing mode is the non-peer-to-peer network P2P playing mode, controlling to play the video stream in the non-peer-to-peer network P2P playing mode.
Of course, it will be understood by those skilled in the art that the processor may also implement the technical solution of the video play control method provided in any embodiment of the present invention.
Example five
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the video play control method as provided by any embodiment of the present invention, the method comprising:
When the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class, acquiring a video stream object for storing the video stream information;
by taking a video stream object as an input parameter, calling a preset play mode detection function, and detecting whether the current video play mode is a peer-to-peer network P2P play mode;
And if the current video playing mode is the peer-to-peer network P2P playing mode, controlling to play the video stream in the peer-to-peer network P2P playing mode, and if the current video playing mode is the non-peer-to-peer network P2P playing mode, controlling to play the video stream in the non-peer-to-peer network P2P playing mode.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A video play control method, comprising:
When the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class, acquiring a video stream object for storing the video stream information;
By taking the video stream object as an input parameter, calling a preset play mode detection function, and detecting whether the current video play mode is a peer-to-peer network P2P play mode;
If the current video playing mode is a peer-to-peer network P2P playing mode, controlling to play the video stream in the peer-to-peer network P2P playing mode, and if the current video playing mode is a non-peer-to-peer network P2P playing mode, controlling to play the video stream in the non-peer-to-peer network P2P playing mode;
The preset play mode detection function realizes the function of detecting whether the current video play mode is a peer-to-peer network P2P play mode or not by the following steps:
Detecting whether a P2P tag field in the video stream object is an empty field;
If the P2P label field is an empty field, determining that the current video playing mode is a non-P2P playing mode;
If the P2P tag field is a non-null field, detecting whether a P2P global switch state which is configured in advance and a P2P switch state in the P2P tag field are in an on state or not;
If the P2P global switch state and the P2P switch state are both in an on state, determining that the current video playing mode is a P2P playing mode;
And if the P2P global switch state or the P2P switch state is in the off state, determining that the current video playing mode is a non-P2P playing mode.
2. The method of claim 1, wherein controlling playback of the video stream in the peer-to-peer network P2P playback mode comprises:
And calling a preset P2P initialization function by taking the video stream object as an input parameter, initializing a P2P playing mode of the current page, and controlling playing of the video stream based on an initialization result.
3. The method according to claim 2, wherein the preset P2P initialization function performs initialization of the P2P playing mode for the current page by:
when the P2P service binding success is monitored, calling a preset P2P playing function by taking the video stream object as an input parameter, and controlling to play the video stream in the peer-to-peer network P2P playing mode;
When the initialization failure, the P2P service binding failure or the failure rollback is monitored, the video stream object is used as an input parameter to call a preset non-P2P playing function, and the video stream is controlled to be played in the non-peer-to-peer network P2P playing mode.
4. A method according to claim 3, wherein the preset P2P play function implements a function of controlling the play of a video stream in the peer-to-peer network P2P play mode by:
Resetting the P2P state, and setting a P2P playing field in the video player as preset encryption information;
setting a P2P switch state in the video player based on the P2P global switch state;
converting a P2P tag field in the video stream object into a character string field in a JSON format, and setting the P2P tag field in the video player as the character string field;
And calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the P2P playing mode, and calling a video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the P2P playing mode.
5. A method according to claim 3, wherein the preset non-P2P play function implements a function of controlling the play of the video stream in the non-peer-to-peer network P2P play mode by:
setting a P2P playing field in the video player as a null field;
setting a P2P switch state in the video player based on the P2P global switch state;
converting a P2P tag field in the video stream object into a character string field in a JSON format, and setting the P2P tag field in the video player as the character string field;
And calling a video stream playing address acquisition function by taking the video stream object as an input parameter, acquiring a video stream playing address corresponding to the non-P2P playing mode, and calling a video playing function by taking the video stream playing address as the input parameter to play the video stream corresponding to the non-P2P playing mode.
6. The method of any one of claims 1-5, further comprising
If the current page state is detected to be in a closed state, stopping acquiring a video stream object for storing video stream information in the video stream information acquisition function so as to stop video playing operation;
wherein the current page state is set to an on state when the current page is monitored to be created and is set to an off state when the current page is monitored to exit.
7. A video playback control apparatus, comprising:
The video stream information monitoring module is used for acquiring a video stream object for storing video stream information when the video stream information is monitored and acquired by calling a video stream information acquisition function in a preset video play control class;
The play mode detection module is used for calling a preset play mode detection function by taking the video stream object as an input parameter to detect whether the current video play mode is a peer-to-peer network P2P play mode or not;
The video stream playing control module is used for controlling to play the video stream in the peer-to-peer network P2P playing mode if the current video playing mode is the peer-to-peer network P2P playing mode, and controlling to play the video stream in the peer-to-peer network P2P playing mode if the current video playing mode is the non-peer-to-peer network P2P playing mode;
The play mode detection module comprises a preset play mode detection function execution unit and is used for realizing the function of detecting whether the current video play mode is a peer-to-peer network P2P play mode or not through the following steps:
Detecting whether a P2P tag field in the video stream object is an empty field; if the P2P label field is an empty field, determining that the current video playing mode is a non-P2P playing mode; if the P2P tag field is a non-null field, detecting whether a P2P global switch state which is configured in advance and a P2P switch state in the P2P tag field are in an on state or not; if the P2P global switch state and the P2P switch state are both in an on state, determining that the current video playing mode is a P2P playing mode; and if the P2P global switch state or the P2P switch state is in the off state, determining that the current video playing mode is a non-P2P playing mode.
8. A terminal, the terminal comprising:
one or more processors;
A memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video playback control method of any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the video playback control method of any one of claims 1 to 6.
CN202011139627.7A 2020-10-22 2020-10-22 Video playing control method, device, terminal and storage medium Active CN114390349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011139627.7A CN114390349B (en) 2020-10-22 2020-10-22 Video playing control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011139627.7A CN114390349B (en) 2020-10-22 2020-10-22 Video playing control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114390349A CN114390349A (en) 2022-04-22
CN114390349B true CN114390349B (en) 2024-05-17

Family

ID=81193300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011139627.7A Active CN114390349B (en) 2020-10-22 2020-10-22 Video playing control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114390349B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918119A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN105721889A (en) * 2015-05-15 2016-06-29 乐视云计算有限公司 P2P data download method and device
CN105848011A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Video living broadcast method and device
CN108521577A (en) * 2018-04-11 2018-09-11 武汉斗鱼网络科技有限公司 A kind of video broadcasting method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120297405A1 (en) * 2011-05-17 2012-11-22 Splendorstream, Llc Efficiently distributing video content using a combination of a peer-to-peer network and a content distribution network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918119A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Video processing method based on iOS browser, and video processing apparatus based on iOS browser
CN105721889A (en) * 2015-05-15 2016-06-29 乐视云计算有限公司 P2P data download method and device
CN105848011A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Video living broadcast method and device
CN108521577A (en) * 2018-04-11 2018-09-11 武汉斗鱼网络科技有限公司 A kind of video broadcasting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114390349A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN108521608B (en) Video file processing method and device, terminal and storage medium
US11019119B2 (en) Web-based live broadcast
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
US10298721B2 (en) Method and system to determine a work distribution model for an application deployed on a cloud
RU2631137C2 (en) Connection of devices
WO2021185302A1 (en) Live streaming and configuration method based on cloud phones, and related apparatus and system
WO2016197862A1 (en) Data transmission method and apparatus, and intelligent television system
US10715860B1 (en) Video stream with additional content areas
US10728181B2 (en) Advanced message queuing protocol (AMQP) message broker and messaging client interactions via dynamic programming commands using message properties
JP2008159068A (en) Scaling and delivering distributed application
CN109275042B (en) Bullet screen message distribution method, bullet screen message distribution device, terminal and storage medium
CN113542757A (en) Image transmission method and device for cloud application, server and storage medium
WO2018014794A1 (en) Smart television system
US8954851B2 (en) Adding video effects for video enabled applications
CN111954072B (en) Multimedia playing method, device, multimedia player and medium
CN113784049B (en) Camera calling method of android system virtual machine, electronic equipment and storage medium
CN112354176A (en) Cloud game implementation method, cloud game implementation device, storage medium and electronic equipment
US11997095B2 (en) Content permission platform
US11868819B2 (en) System and method for constructing filter graph-based media processing pipelines in a browser
US20210051357A1 (en) Method and apparatus for providing video streams
CN114390349B (en) Video playing control method, device, terminal and storage medium
CN114025170A (en) Video playing method and device, computer equipment and computer readable storage medium
CN111324808B (en) Method and equipment for providing information flow
CN114003179B (en) Data processing method and device, electronic equipment and computer readable storage medium
WO2023169157A1 (en) Sub application running method and apparatus, electronic device, program product, and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20240422

Address after: Room 301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Applicant after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Applicant after: Shenzhou Kuntai (Xiamen) Information Technology Co.,Ltd.

Address before: 430070 room 007, A301, third floor, building B1, software industry phase 4.1, No. 1, Software Park East Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province (Wuhan area of free trade zone)

Applicant before: WUHAN DOUYU YULE NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant