Movatterモバイル変換


[0]ホーム

URL:


CN109218740B - Display method, storage medium, electronic device and system of double-screen video stream - Google Patents

Display method, storage medium, electronic device and system of double-screen video stream
Download PDF

Info

Publication number
CN109218740B
CN109218740BCN201710515634.4ACN201710515634ACN109218740BCN 109218740 BCN109218740 BCN 109218740BCN 201710515634 ACN201710515634 ACN 201710515634ACN 109218740 BCN109218740 BCN 109218740B
Authority
CN
China
Prior art keywords
double
video stream
video
screen video
screen
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
CN201710515634.4A
Other languages
Chinese (zh)
Other versions
CN109218740A (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.)
Shanghai Shirui Information Technology Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co LtdfiledCriticalWuhan Douyu Network Technology Co Ltd
Priority to CN201710515634.4ApriorityCriticalpatent/CN109218740B/en
Publication of CN109218740ApublicationCriticalpatent/CN109218740A/en
Application grantedgrantedCritical
Publication of CN109218740BpublicationCriticalpatent/CN109218740B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a display method, a storage medium, electronic equipment and a system of a double-screen video stream, and relates to the field of live video display. The method comprises the following steps: the client pre-loads the double-screen video stream according to the double-screen video stream address; the client sets the hard decoding resolution of the video player and closes the log printing function of the player; after a client creates a video loading object matched with the double-screen video stream address, controlling a video player to obtain the video loading object, and loading the double-screen video stream in the video loading object according to the video stream address; the client displays the video player on the user interface, and the double-screen video stream is played through the video player. The method and the device can realize smooth switching from playing the single-screen video stream to playing the double-screen video stream, and remarkably improve user experience.

Description

Display method, storage medium, electronic device and system of double-screen video stream
Technical Field
The invention relates to the field of live video display, in particular to a display method, a storage medium, electronic equipment and a system of a double-screen video stream.
Background
With the rapid development of the live broadcast industry, more and more users enjoy watching live broadcast, and the watching requirements of the users on the live broadcast are higher and higher. Currently, in order to attract more users, a method for displaying a dual-screen video stream has been proposed, in which at least 2 live videos of main broadcasts (called as webmaster PK) are displayed simultaneously in the same live broadcast room.
Taking a 2-bit anchor as an example, the existing live video concurrent display method is as follows: the client adds 1 player (i.e. 2 players in total), each player playing an anchor video stream. And when the main player is successfully established, loading respective video streams instantly and simultaneously.
However, the live video concurrent display method has the following defects:
the multiple players load the video streams, so that the bandwidth and the memory occupancy rate of the client are remarkably increased, the requirement on the network speed of the client is high, and when the network speed of the client is lower than the requirement, the client switches from playing the single-frequency video stream to playing the multi-screen video stream, the display interface is blocked and is not smooth enough, so that the user experience is reduced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention solves the technical problems that: how to smoothly play the dual-screen video stream in 1 video player. The method and the device can realize smooth switching from playing the single-screen video stream to playing the double-screen video stream, and remarkably improve user experience.
In order to achieve the above object, the present invention provides a method for displaying a dual-screen video stream, comprising the steps of:
step A: the video streaming module of the client pre-loads the double-screen video streaming according to the double-screen video streaming address sent by the server; after the loading is finished, the video streaming module sends a loading completion notification to the client, and the client confirms to receive the loading completion notification and turns to the step B;
and B: the client detects whether the double-screen video stream address exists or not, if so, the step C is carried out, and if not, the information that the double-screen video stream address does not exist is displayed;
and C: the client sets the hard decoding resolution of the video player, closes the log printing function of the player and goes to step D;
step D: after the client creates a video loading object matched with the double-screen video stream address, controlling the video player to obtain the video loading object, loading the double-screen video stream in the video loading object according to the video stream address, and turning to the step E;
step E: the client displays the video player on the user interface, and the double-screen video stream is played through the video player.
The storage medium provided by the invention is stored with a computer program, and the computer program realizes the display method of the double-screen video stream when being executed by a processor.
The electronic equipment provided by the invention comprises a memory and a processor, wherein a computer program running on the processor is stored in the memory, and the processor realizes the display method of the double-screen video stream when executing the computer program.
The invention provides a display system of double-screen video stream, which comprises a double-screen video stream preloading module, a double-screen video stream detection module, a video player setting module, a double-screen video stream loading module and a double-screen video stream playing module, wherein the double-screen video stream preloading module, the double-screen video stream detection module, the video player setting module, the double-screen video stream loading module and the double-screen video stream playing module are arranged on a client;
the dual-screen video stream preloading module is used for: the video streaming module of the control client pre-loads the double-screen video streaming according to the double-screen video streaming address sent by the server; after the loading is finished, controlling the video stream module to send a loading completion notice to the client, confirming to receive the loading completion notice, and sending a double-screen video stream detection signal to the double-screen video stream detection module;
the double-screen video stream detection module is used for: after receiving the double-screen video stream detection signal, detecting whether a double-screen video stream address exists or not, if so, sending a video player setting signal to a video player setting module, and otherwise, displaying information that the double-screen video stream address does not exist;
the video player setting module is used for: after receiving a video player setting signal, setting the hard decoding resolution of the video player, closing the log printing function of the player, and sending a double-screen video stream loading signal to a double-screen video stream loading module;
the double-screen video stream loading module is used for: after receiving the double-screen video stream loading signal, creating a video loading object matched with the double-screen video stream address, controlling a video player to acquire the video loading object, loading the double-screen video stream in the video loading object according to the video stream address, and sending a double-screen video stream playing signal to a double-screen video stream playing module;
the double-screen video stream playing module is used for: and after receiving the double-screen video stream playing signal, displaying a video player on the user interface, and playing the double-screen video stream through the video player.
Compared with the prior art, the invention has the advantages that:
it can be known from S1 to S7 of the present invention that, after acquiring the address of the dual-screen video stream, the present invention does not immediately load the dual-screen video stream, but pre-loads the dual-screen video stream through the video stream module, and the dual-screen video stream is loaded through the player only after the pre-loading is completed; the preloading can make the loading when the double-spelling video stream is more smooth, and then make the player switch from playing the single screen video stream to playing the double screen video stream, can perfectly transition, the situation that can not appear blocking and not smooth. Therefore, the method and the device can realize smooth switching from playing the single-screen video stream to playing the double-screen video stream, and remarkably improve user experience.
Meanwhile, the invention can play the double-screen video stream only by 1 video player, thereby obviously reducing the bandwidth, memory occupancy rate and network speed requirements of the client and further improving the user experience.
Drawings
FIG. 1 is a flowchart illustrating a method for displaying a dual-screen video stream according to an embodiment of the present invention;
fig. 2 is a connection block diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, a method for displaying a dual-screen video stream according to an embodiment of the present invention includes the following steps:
s1: and after the client acquires the video definition variable according to the video definition of the live broadcast room, the client sends the video definition variable to the server and goes to S2.
S2: the server sends the double-screen video stream address matched with the video definition variable to the client (so as to perfectly adapt to the configuration of the client), the double-screen video stream address is 2 video stream addresses, each video stream address corresponds to the live broadcast content of one anchor, and the process goes to S3.
S3: the client acquires the existing video stream module by using the function operationPlayerBy, the video stream module preloads the double-screen video stream according to the address of the double-screen video stream, after the loading is completed (the loading completion standard is that the video stream module detects that the resolution of the video stream changes), the video stream module sends a loading completion notification to the client, and the client confirms that the loading completion notification is received and goes to S4.
In S3, the video streaming module sends a loading completion notification to the client, and the process of receiving the loading completion notification by the client includes: the client acquires a monitoring notice by using an addObserver function in the notification center, acquires the notification center, registers the monitoring notice in the notification center, the name of the monitoring notice is the same as that of the loading completion notice, and confirms to receive the loading completion notice when the monitoring notice monitors that the notice with the same name is sent out.
S4: and in order to ensure that the double-screen video stream can be normally played, the client needs to detect whether the double-screen video stream address exists, if so, the S5 is turned to, otherwise, the information of the double-screen video stream address does not exist is displayed, and the operation is finished.
S5: the client sets the hard decoding resolution (typically 1920 pixels) of the video player using the setplaylayerontionvalue function, and in order to improve the performance of the video player, the client turns off the journaling print function of the player, and goes to S6.
S6: after the client creates a video loading object matched with the address of the double-screen video stream, controlling a video player to pull the video stream by using a function applyPlayerBy: and acquiring a video loading object, loading the double-screen video stream in the video loading object according to the video stream address, and turning to S7.
S7: after the background color and the scaling mode (a scaling mode, generally an adaptive mode mpmoviescalingmeaspectfill) of the video player are set by the client, the video player is displayed on the user interface, and the dual-screen video stream is played through the video player.
As can be seen from S1 to S7, after the address of the dual-screen video stream is obtained, the dual-screen video stream is not immediately loaded, but the dual-screen video stream is preloaded by the video stream module, and the dual-screen video stream is loaded by the player only after the preloading is completed; because the double-screen video stream is preloaded before loading, the situation of blocking and unsmooth playing of the double-screen video stream can be avoided when the player switches from playing the single-screen video stream to playing the double-screen video stream. Therefore, the embodiment of the invention can realize smooth switching from playing the single-screen video stream to playing the double-screen video stream, and remarkably improve the user experience.
Meanwhile, the embodiment of the invention can play the double-screen video stream only by 1 video player, thereby obviously reducing the bandwidth, memory occupancy rate and network speed requirements of the client and further improving the user experience.
The embodiment of the invention also provides a storage medium, wherein a computer program is stored on the storage medium, and when being executed by a processor, the computer program realizes the display method of the double-screen video stream. The storage medium includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk.
Referring to fig. 2, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement the above-mentioned method for displaying a dual-screen video stream.
The invention provides a display system of double-screen video stream, which comprises a double-screen video stream address acquisition module, a double-screen video stream preloading module, a double-screen video stream detection module, a video player setting module, a double-screen video stream loading module and a double-screen video stream playing module which are arranged on a client.
The double-screen video stream address acquisition module is used for: before the double-screen video stream preloading module works, after a video definition variable is obtained according to the video definition of a live broadcast room, the video definition variable is sent to a server side; and acquiring a double-screen video stream address which is returned by the server and matched with the video definition variable.
The dual-screen video stream preloading module is used for: the video streaming module of the control client pre-loads the double-screen video streaming according to the double-screen video streaming address sent by the server; after the loading is finished (the loading finishing standard is that the video streaming module detects that the resolution ratio of the video streaming changes), the video streaming module is controlled to send a loading finishing notice to the client, the loading finishing notice is confirmed to be received, and a double-screen video streaming detection signal is sent to the double-screen video streaming detection module;
the double-screen video stream detection module is used for: after receiving the double-screen video stream detection signal, detecting whether a double-screen video stream address exists or not, if so, sending a video player setting signal to a video player setting module, and otherwise, displaying information that the double-screen video stream address does not exist;
the video player setting module is used for: after receiving a video player setting signal, setting the hard decoding resolution of the video player, closing the log printing function of the player, and sending a double-screen video stream loading signal to a double-screen video stream loading module;
the double-screen video stream loading module is used for: after receiving the double-screen video stream loading signal, creating a video loading object matched with the double-screen video stream address, controlling a video player to acquire the video loading object, loading the double-screen video stream in the video loading object according to the video stream address, and sending a double-screen video stream playing signal to a double-screen video stream playing module;
the double-screen video stream playing module is used for: after receiving a double-screen video stream playing signal, setting the background color and the expansion mode of a video player; and displaying the video player on the user interface, and playing the double-screen video stream through the video player.
It should be noted that: in the system provided in the embodiment of the present invention, when performing inter-module communication, only the division of each functional module is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above described functions.
Further, the present invention is not limited to the above-mentioned embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (8)

CN201710515634.4A2017-06-292017-06-29Display method, storage medium, electronic device and system of double-screen video streamActiveCN109218740B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710515634.4ACN109218740B (en)2017-06-292017-06-29Display method, storage medium, electronic device and system of double-screen video stream

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710515634.4ACN109218740B (en)2017-06-292017-06-29Display method, storage medium, electronic device and system of double-screen video stream

Publications (2)

Publication NumberPublication Date
CN109218740A CN109218740A (en)2019-01-15
CN109218740Btrue CN109218740B (en)2022-01-04

Family

ID=64976518

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710515634.4AActiveCN109218740B (en)2017-06-292017-06-29Display method, storage medium, electronic device and system of double-screen video stream

Country Status (1)

CountryLink
CN (1)CN109218740B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109788303B (en)*2019-01-282020-12-04广州酷狗计算机科技有限公司Live video stream pushing method and device, electronic equipment and storage medium
CN110368689B (en)*2019-07-192021-08-06腾讯科技(深圳)有限公司Game interface display method, system, electronic equipment and storage medium
CN111586446A (en)*2020-04-132020-08-25微梦创科网络科技(中国)有限公司Method, device and system for seamless switching of media streams

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1967499A (en)*2006-04-242007-05-23华为技术有限公司Journal output system and output method
CN103905783A (en)*2012-12-252014-07-02杭州海康威视数字技术股份有限公司Method and device for performing decoding and displaying on video stream
CN105635828A (en)*2014-10-282016-06-01腾讯科技(深圳)有限公司Play control method, play control device and electronic equipment comprising play control device
CN105915999A (en)*2016-04-192016-08-31乐视控股(北京)有限公司Video play method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7656461B2 (en)*2003-03-272010-02-02Sony CorporationMethod of and apparatus for utilizing video buffer in a multi-purpose fashion to extend the video buffer to multiple windows
CN101472154A (en)*2007-12-272009-07-01深圳华为通信技术有限公司Method for switching digital channel and device for processing digital video
US9615126B2 (en)*2011-06-242017-04-04Google Technology Holdings LLCIntelligent buffering of media streams delivered over internet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1967499A (en)*2006-04-242007-05-23华为技术有限公司Journal output system and output method
CN103905783A (en)*2012-12-252014-07-02杭州海康威视数字技术股份有限公司Method and device for performing decoding and displaying on video stream
CN105635828A (en)*2014-10-282016-06-01腾讯科技(深圳)有限公司Play control method, play control device and electronic equipment comprising play control device
CN105915999A (en)*2016-04-192016-08-31乐视控股(北京)有限公司Video play method and system

Also Published As

Publication numberPublication date
CN109218740A (en)2019-01-15

Similar Documents

PublicationPublication DateTitle
CN108012161B (en)Video live broadcast method, system and terminal equipment
US11978423B2 (en)Methods, systems, and media for managing output of an HDMI source
CN104125482B (en)A kind of flow media playing method and device
CN111711833B (en)Live video stream push control method, device, equipment and storage medium
US9473549B2 (en)Method of playing internet video and related electronic device
US20170171278A1 (en)Method and electronic device for continuously playing video
US7953452B2 (en)Cellular multiscreen system
CN109218740B (en)Display method, storage medium, electronic device and system of double-screen video stream
US20170171509A1 (en)Method and electronic apparatus for realizing two-person simultaneous live video
JP2007013568A5 (en)
CN106851427A (en)A kind of transfer control method and device of live video of playing
US9538247B2 (en)Method and system for image alteration
US20210014573A1 (en)Video synchronous playback method and device, and computer-readable storage medium
CN115134620A (en)Picture display method and device under live microphone connection and electronic equipment
WO2017208839A1 (en)Information processing device, television receiver, information processing system, and information processing program
US20170134562A1 (en)Method and apparatus for control wihd transmission on a mobile phone, and a mobile phone
CN110519619B (en)Speed-variable playing method and system based on multiple speed playing
CN112383723B (en)Video switching method and device and computer equipment
CN112752150A (en)Video decoding method and device, electronic equipment and storage medium
CN111107387B (en)Video transcoding method and device and computer storage medium
CN110769904B (en)Output content processing method, output method, electronic device, and storage medium
CN117389498A (en)Image processing method, system, device and storage medium based on screen projection
CN111385590A (en)Live broadcast data processing method and device and terminal
US11595707B2 (en)Media session management
EP3089459B1 (en)Apparatus and method for implementing video-on-demand quick switching among multiple screens

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20231219

Address after:B1101, No. 150, Shangzao Building, Gaofeng Community, Dalang Street, Longhua District, Shenzhen, Guangdong 518000

Patentee after:Shenzhen Litong Zhiyuan Technology Transfer Center Co.,Ltd.

Address before:510000 2414-2416 of the main building 371, five mountain road, Tianhe District, Guangzhou, Guangdong.

Patentee before:GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration:20231219

Address after:510000 2414-2416 of the main building 371, five mountain road, Tianhe District, Guangzhou, Guangdong.

Patentee after:GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before:430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before:WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20240320

Address after:200333 Room 201-181, Floor 2, Building 2, No. 2691, Zhenbei Road, Putuo District, Shanghai

Patentee after:Shanghai Shirui Information Technology Co.,Ltd.

Country or region after:Zhong Guo

Address before:B1101, No. 150, Shangzao Building, Gaofeng Community, Dalang Street, Longhua District, Shenzhen, Guangdong 518000

Patentee before:Shenzhen Litong Zhiyuan Technology Transfer Center Co.,Ltd.

Country or region before:Zhong Guo


[8]ページ先頭

©2009-2025 Movatter.jp