CN109413468B - Video playing method, device, storage medium and split type electronic equipment - Google Patents

Video playing method, device, storage medium and split type electronic equipment Download PDF

Info

Publication number
CN109413468B
CN109413468B CN201811152409.XA CN201811152409A CN109413468B CN 109413468 B CN109413468 B CN 109413468B CN 201811152409 A CN201811152409 A CN 201811152409A CN 109413468 B CN109413468 B CN 109413468B
Authority
CN
China
Prior art keywords
communication connection
video
host
screen
host part
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.)
Expired - Fee Related
Application number
CN201811152409.XA
Other languages
Chinese (zh)
Other versions
CN109413468A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811152409.XA priority Critical patent/CN109413468B/en
Publication of CN109413468A publication Critical patent/CN109413468A/en
Application granted granted Critical
Publication of CN109413468B publication Critical patent/CN109413468B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1654Details related to the display arrangement, including those related to the mounting of the display in the housing the display being detachable, e.g. for remote use
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application discloses a video playing method, a video playing device, a storage medium and a split type electronic device, if a screen part and a host part of the split type electronic device are in a split state and a first communication connection is established, the video playing request received by the screen part can be obtained first, and according to the video playing request, the target video to be played can be determined from the video stored in the host part, then judging whether the video code rate of the target video is larger than the available bandwidth of the first communication connection, if so, establishing a second communication connection between the screen part and the host part, thereby transmitting the target video to the screen portion through the first communication connection and the second communication connection, and playing the target video through the screen portion, therefore, the video playing of the screen part on the host part is realized, and the flexibility of video playing of the split type electronic equipment is improved.

Description

Video playing method, device, storage medium and split type electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a video playing method and apparatus, a storage medium, and a split electronic device.
Background
At present, a split type electronic device appears in the related art, the split type electronic device is composed of a screen part and a host machine part, and the screen part can be used with the host machine part in a combined manner or in a split manner. However, when the split type split electronic device plays a video, if the screen part is used separately, the screen part can only play the locally stored video, and the flexibility is poor.
Disclosure of Invention
The embodiment of the application provides a video playing method and device, a storage medium and a split type electronic device, which can improve the flexibility of video playing of the split type electronic device.
In a first aspect, an embodiment of the present application provides a video playing method, which is applied to a split type electronic device, where the split type electronic device includes a host part and a screen part, where the host part and the screen part are in a split state and a first communication connection is established, and the video playing method includes:
the screen part receives a video playing request input by a user and transmits the video playing request to the host part through the first communication connection;
the host part determines a target video to be played according to the video playing request;
the host part judges whether the video code rate of the target video is larger than the available bandwidth of the first communication connection;
if yes, the host part establishes a second communication connection with the screen part, and transmits the target video to the screen part through the first communication connection and the second communication connection;
the screen part plays the target video;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
In a second aspect, an embodiment of the present application provides a video playing device, which is applied to a split electronic device, where the split electronic device includes a host part and a screen part, the host part and the screen part are in a split state, and a first communication connection is established, and the video playing device includes:
the acquisition module is used for enabling the screen part to receive a video playing request input by a user and transmitting the video playing request to the host part through the first communication connection;
the determining module is used for enabling the host part to determine a target video to be played according to the video playing request;
a determining module, configured to enable the host portion to determine whether a video bitrate of the target video is greater than an available bandwidth of the first communication connection;
a connection module, configured to, when the video bitrate of the target video is greater than an available bandwidth of the first communication connection, enable the host portion to establish a second communication connection with the screen portion, and transmit the target video to the screen portion through the first communication connection and the second communication connection;
a playing module for causing the screen portion to play the target video;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
In a third aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, when the computer program runs on a split electronic device in which a host portion and a screen portion establish a first communication connection and are in a split state, the computer program is configured to enable the host portion and/or the screen portion to execute a video playing method according to any of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a split electronic device, including a host portion and a screen portion, where the host portion and the screen portion are in a split state and a first communication connection is established, where the host portion and/or the screen portion are used to execute a video playing method according to any embodiment of the present application.
In the split-type electronic device in the embodiment of the application, if the screen part and the host part of the split-type electronic device are in a split state and the first communication connection is established, the video playing request received by the screen part can be firstly obtained, the target video to be played is determined from the video stored in the host part according to the video playing request, then whether the video code rate of the target video is larger than the available bandwidth of the first communication connection or not is judged, if yes, the second communication connection is established between the screen part and the host part, so that the target video is transmitted to the screen part through the first communication connection and the second communication connection, and the target video is played through the screen part, therefore, the video playing in the host part by the screen part is realized, and the flexibility of video playing of the split-type electronic device is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a split-type electronic device provided in an embodiment of the present application.
Fig. 2 is a flow chart of a video playing method according to an embodiment of the present application.
Fig. 3 is an exemplary diagram of a video browsing interface provided by a display section in an embodiment of the present application.
Fig. 4 is a schematic diagram of other video parameters affecting video bitrate in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a video playback device according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of a split type electronic device provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a split-type belt provided by the embodiment of the application at the body side.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
An execution main body of the video playing method may be the video playing device provided in the embodiment of the present application, or a split electronic device integrated with the video playing device, where the video playing device may be implemented in a hardware or software manner.
Referring to fig. 1, the split electronic device is composed of a host part and a screen part, the screen part and the host part can be spliced together to form a complete electronic device, or can be split apart, but the screen part still has the function of the complete electronic device, and the host part has the function of the electronic device other than the display function, that is, the host part and the screen part cannot be displayed separately when in a split state.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a video playing method according to an embodiment of the present disclosure. As shown in fig. 2, a flow of a video playing method provided in the embodiment of the present application may be as follows:
101. the screen portion receives a video play request input by a user and transmits the video play request to the host portion over a first communication connection between the screen portion and the host portion.
As shown in fig. 1, the screen portion and the host portion are in a split state, and the screen portion and the host portion can establish a wireless communication connection therebetween through respective wireless communication modules and/or establish a wired communication connection therebetween through respective wired communication modules. The Wireless communication module includes, but is not limited to, a Wi-Fi (Wireless Fidelity ) module, a bluetooth module, etc., and the wired communication module includes, but is not limited to, a USB (Universal Serial Bus) module, etc.
For the convenience of users, in the embodiment of the application, when the screen part is in a split state with the host part, the wireless communication connection is established through respective wireless communication modules by default. For example, the screen portion and the host portion may establish a Wi-Fi direct connection based on respective Wi-Fi modules, and may also be configured such that one of the two portions operates in an AP (Access Point) mode and the other portion operates in an STA (Station) mode, so that the one portion operating in the STA mode accesses the one portion operating in the AP mode, and so on. Of course, when the screen portion and the host portion are in the split state, the user may also use the data line to connect the wired communication modules at the two ends of the screen portion and the host portion, so that the screen portion and the host portion can establish the wired communication connection.
It should be noted that, in the embodiment of the present application, when the screen portion is in a split state with the host portion, a communication connection is maintained by default between the screen portion and the host portion, wherein the priority of the wired communication connection is higher than that of the wireless communication connection. For example, when the screen part and the host part are in a split state, the wireless communication connection between the screen part and the host part is established through respective wireless communication modules, and if the wired communication modules of the screen part and the host part are connected through the data lines, the wireless communication connection established between the screen part and the host part is disconnected, and the wired communication connection between the screen part and the host part is established through the data lines. For convenience of description, a communication connection which is maintained by default when the screen portion is in a separated state from the host portion is referred to as a first communication connection, and the first communication connection may be a wireless communication connection between the screen portion and the host portion or a wired communication connection between the screen portion and the host portion.
In the embodiment of the application, the screen part is provided with a video browsing interface, the screen part can provide a playing inlet of a video stored locally on the video browsing interface, can also access the host part through a first communication connection between the screen part and the host part, and provides a playing inlet of the video stored by the host part on the video browsing interface. The user may input a video playing request to the screen portion through the playing entry, for example, the user may click any playing entry in the video browsing interface with a finger to input the video playing request to the screen portion, and instruct the screen portion to play the video corresponding to the clicked playing entry.
After receiving a video playing request of a user, the screen part identifies a video required to be played indicated by the video playing request, and for convenience of description, the video required to be played is recorded as a target video. After identifying the target video indicated by the video play request, the screen portion further identifies whether the target video is located in the screen portion or the host portion.
If the target video is identified to be located in the screen portion, the screen portion directly plays the target video, and if the target video is identified to be located in the host portion, the video playing request is transmitted to the host portion through the first communication connection.
For example, referring to fig. 3, in the video browsing interface shown in fig. 3, the play entries 1-8 correspond to the videos locally stored in the screen portion, and the play entries 9-16 correspond to the videos locally stored in the host portion. If the user inputs a video playing request to the screen part by clicking any one of the playing entrances 1-8, the screen part determines a target video to be played from the videos stored in the screen part according to the video playing request and plays the target video on the screen part. If the user inputs a video playing request to the screen portion by clicking any one of the playing entries 9-16, the screen portion recognizes that the target video is located in the host portion according to the video playing request, and transmits the video playing request to the host portion through the first communication connection.
102. The host part determines a target video to be played according to the video playing request.
After receiving a video playing request transmitted by the screen part through the first communication connection, the host part determines a target video to be played from the locally stored videos according to the video playing request.
103. The host portion determines whether the video bitrate of the target video is greater than the available bandwidth of the first communication connection.
After determining a target video to be played, the host part further obtains a video code rate of the target video and an obtained available bandwidth of the first communication connection, wherein the video code rate describes the data volume of the video in unit time length, the unit of the video code rate is usually kbps, namely kilobits per second, and the available bandwidth describes the data volume which can be transmitted in the unit time length of the communication connection, the unit of the available bandwidth is usually Mbps, namely megabits per second. Generally, the higher the video rate of a video, the higher the quality of the video. Referring to fig. 4, the video bitrate of a video is determined by various factors, including video parameters such as the refresh frequency (in Hz, Hz), the color coding (in bit, Hz), and the resolution (located in p, pixel), wherein the video bitrate is higher when the refresh frequency is certain (e.g. 30Hz), the video bitrate is higher when the refresh frequency is higher, the video bitrate is higher when the color coding is certain (e.g. 8bit), and the video bitrate is higher when the refresh frequency is higher and/or the color coding is higher when the resolution is certain (e.g. 4K, 4096 × 2160 p).
Based on the above description, it can be understood by those skilled in the art that when the video bitrate of the target video is greater than the available bandwidth of the first communication connection, it indicates that the screen portion cannot acquire the data of the target video in one unit duration through the first communication connection in one unit duration, that is, the screen portion cannot realize "online playing" of the target video in the host portion, and when the video bitrate of the target video is less than or equal to the available bandwidth of the first communication connection, it indicates that the screen portion can acquire the data of the target video in one unit duration through the first communication connection in one unit duration, that is, the screen portion can realize "online playing" of the target video in the host portion. Therefore, after the host part acquires the video code rate of the target video and the acquired available bandwidth of the first communication connection, whether the video code rate of the target video is larger than the available bandwidth of the first communication connection is judged, and whether the screen part can realize the online playing of the target video in the host part is determined according to the obtained judgment result.
104. If so, the host portion establishes a second communication connection with the screen portion and transmits the target video to the screen portion through the first communication connection and the second communication connection.
In the embodiment of the application, if the judgment result obtained by the host part is yes, that is, the video code rate of the target video is greater than the available bandwidth of the first communication connection, the host part determines that the target video in the host part cannot be played on line on the screen part. At this time, the host portion establishes a second communication connection with the screen portion other than the first communication connection. Wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
For example, if the first communication connection established by the screen portion and the host portion is a wired communication connection, the host portion and the screen portion establish a wireless communication connection based on the respective wireless communication modules, and the wireless communication connection is taken as a second wireless communication connection.
For another example, if the first communication connection established between the screen portion and the host portion is a wireless communication connection, the host portion transmits a prompt message prompting the user to connect the screen portion and the host portion using the data line to the screen portion via the first communication connection, and instructs the screen portion to display the prompt message. The host portion establishes a wired communication connection with the screen portion based on the respective wired communication modules when the host portion accesses the data line between the host portion and the screen portion, and the wired communication connection is made as a second wireless communication connection.
The host portion transmits data of the target video to the screen portion in parallel through the first communication connection and the second communication connection after establishing the second communication connection with the screen portion.
105. The screen portion plays the target video.
And the screen part receives partial data of the target video in the transmission process of the target video, and plays the partial data until the transmission and the playing of all data of the target video are finished, so that the online playing of the target video is realized.
As can be seen from the above, in the embodiment of the present application, for the split electronic device in which the screen portion and the host portion are in the split state and the first communication connection is established, the video playing request received by the screen portion may be first obtained, and according to the video playing request, the target video to be played is determined from the video stored in the host portion, and then it is determined whether the video bitrate of the target video is greater than the available bandwidth of the first communication connection, if so, the second communication connection is established between the screen portion and the host portion, so that the target video is transmitted to the screen portion through the first communication connection and the second communication connection, and the target video is played through the screen portion.
In one embodiment, "transmitting a target video to a screen portion through a first communication connection and a second communication connection" includes:
(1) the host part acquires the ratio of available bandwidth between the first communication connection and the second communication connection;
(2) the host part determines a distribution proportion for distributing the target video to the first communication connection and the second communication connection for transmission according to the obtained ratio;
(3) and the host part distributes the target video to the first communication connection and the second communication connection for transmission according to the distribution ratio.
In the embodiment of the application, when the host part transmits the target video to the screen part through the first communication connection and the second communication connection, the host part firstly acquires the available bandwidth of the second communication connection, and further acquires the ratio of the available bandwidth between the first communication connection and the second communication connection according to the available bandwidth of the first communication connection acquired before.
After the ratio of the available bandwidth between the first communication connection and the second communication connection is obtained, the host part further determines a distribution ratio for distributing the target video to the first communication connection and the second communication connection for transmission according to the obtained ratio, wherein the distribution ratio is used for describing how much of the total data volume of the target video is distributed to the first communication connection for transmission and how much of the total data volume of the target video is distributed to the second communication connection for transmission.
Where the ratio of the available bandwidth between the first communication connection and the second communication connection is a/B, the allocation ratio may be determined as (a/(a + B) × 100%, B (a + B) × 100%), where the allocation ratio indicates that "a/(a + B)" percent of data in the target video is allocated to the first communication connection for transmission and "B/(a + B)" percent of data in the target video is allocated to the second communication connection for transmission.
For example, assuming that the ratio of available bandwidth between the first communication connection and the second communication connection is 2/3, the allocation ratio may be determined to be (40%, 60%) indicating that 40% of the data in the target video is to be allocated for transmission on the first communication connection and 60% of the data in the target video is to be allocated for transmission on the second communication connection.
The host portion may assign the target video to the first communication connection and the second communication connection for transmission according to the determined assignment ratio after determining the assignment ratio for assigning the target video to the first communication connection and the second communication connection for transmission. For example, assuming that the total amount of data of the target video is 1000MB, and assuming that the determined distribution ratio is (40%, 60%), the host portion distributes 400MB of data in the target video to the first communication connection for transmission, and distributes 600MB of data in the target video, except for the previous 400MB of data, to the second communication connection for transmission.
In one embodiment, the "host part allocates the target video to the first communication connection and the second communication connection for transmission according to the allocation ratio" includes:
(1) the host part divides the target video into a plurality of video segments which are connected in sequence;
(2) and the host part divides each video clip into two sub-video clips in sequence according to the determined distribution proportion according to the sequence of each video clip, and transmits the two sub-video clips through the first communication connection and the second communication connection respectively.
In the embodiment of the application, when the host part allocates the target video to the first communication connection and the second communication connection for transmission, the host part can split the target video into a plurality of video segments according to a preset splitting rule. For the setting of the splitting rule, the embodiment of the present application is not particularly limited, for example, the splitting rule may be configured as: the target video is split into a plurality of video segments which have unit time length (such as 1 second) and are connected in sequence.
After splitting the target video into a plurality of video segments which are sequentially connected, the host part sequentially splits each video segment into two sub-video segments according to the determined distribution proportion according to the sequence of each video segment, and transmits the two sub-video segments through the first communication connection and the second communication connection respectively.
Illustratively, assuming that the target video has a duration of 100 seconds and a determined allocation ratio is (40%, 60%), the target video is split into 100 video segments with a duration of 1 second by the host portion, and then, for a first video segment, the host portion splits the target video into a sub-video segment with a duration of 0.4 second and a sub-video segment with a duration of 0.6 second, and allocates the sub-video segment with a duration of 0.4 second to the first communication connection for transmission, and allocates the sub-video segment with a duration of 0.6 second to the second communication connection for transmission, and accordingly, after the screen portion receives the two sub-video segments through the first communication connection and the second communication connection respectively, the host portion merges the two sub-video segments received by the screen portion into the first video segment for playing, so that the host portion transmits all the video segments obtained by splitting the target video to the screen portion, and the screen part plays the video, so that the screen part can play the target video in the host part on line.
In an embodiment, a video playing method provided in an embodiment of the present application further includes:
(1) the host part acquires a first packet loss rate of the first communication connection and a second packet loss rate of the second communication connection in the process of transmitting the video clip;
(2) and the host part adjusts the distribution proportion according to the acquired first packet loss rate and the acquired second packet loss rate.
In the process of transmitting the target video, the host part performs statistics on the packet loss rate of the first communication connection according to a preset statistical period (which is not specifically limited in the embodiment of the present application and can be set by a person skilled in the art according to actual needs, for example, the statistical period can be set to 5 seconds), obtains the first packet loss rate of the first communication connection, performs statistics on the packet loss rate of the second communication connection, and obtains the second packet loss rate of the second communication connection.
After the first packet loss rate of the first communication connection and the second packet loss rate of the second communication connection are obtained in each statistical period, the host part may compare the first packet loss rate and the second packet loss rate, and if the first packet loss rate is larger, reduce the percentage of the first communication connection in the distribution ratio according to a preset adjustment amount (which is not specifically limited in this embodiment and may be set by a person skilled in the art according to actual needs, for example, may be set to 5%), and correspondingly increase the percentage of the second communication connection in the distribution ratio according to the preset adjustment amount. Accordingly, after the host part completes the adjustment of the distribution proportion, the transmission of the video segments can be controlled according to the adjusted distribution proportion.
For example, assuming that the allocation ratio is (40%, 60%) and the preset adjustment amount is 5%, if the host part determines that the first packet loss rate of the first communication connection is greater than the second packet loss rate of the second communication connection, the allocation ratio is adjusted to (35%, 65%).
By periodically adjusting the allocation ratio, the real-time allocation ratio can be adapted to the network conditions of the first communication connection and the second communication connection, thereby ensuring the stability of data transmission.
In one embodiment, before "transmitting the target video to the screen portion through the first communication connection and the second communication connection", the method further includes:
(1) the host part acquires the sum value of the available bandwidth of the first communication connection and the second communication connection;
(2) the host part judges whether the video code rate of the target video is greater than the sum value;
(3) and if not, the host part transmits the target video to the screen part through the first communication connection and the second communication connection.
In order to ensure that the target video can be transmitted to the screen part through the first communication connection and the second communication connection by the host part, so as to realize the online playing of the target video in the host part by the screen part, the host part firstly acquires the available bandwidth of the second communication connection after completing the establishment of the second communication connection between the screen part and the host part, and further acquires the sum of the available bandwidths of the first communication connection and the second communication connection according to the acquired available bandwidth of the first communication connection.
After acquiring the sum of the available bandwidths of the first communication connection and the second communication connection, the host part further judges whether the video code rate of the target video is larger than the acquired sum, wherein, when the video code rate of the target video is greater than the sum, it means that the screen portion cannot acquire the data of one unit duration of the target video through the first communication connection and the second communication connection within one unit duration, that is, the screen portion cannot realize the "online playing" of the target video in the host portion, when the video code rate of the target video is less than or equal to the sum, it is indicated that the screen portion can acquire data of one unit duration of the target video through the first communication connection and the second communication connection within one unit duration, that is, the screen portion can realize "online playing" of the target video in the host portion.
Further, if the judgment result obtained by the host part is negative, that is, the video code rate of the target video is less than or equal to the sum of the available bandwidths of the first communication connection and the second communication connection, the host part determines that the online playing of the target video in the host part can be realized in the screen part. At this time, the host portion transmits the target video to the screen portion through the first communication connection and the second communication connection, so as to play the target video on line through the screen portion.
In an embodiment, after the "the host part determines whether the video bitrate of the target video is greater than the sum", the method further includes:
(1) if so, the host part re-encodes the target video to obtain a first re-encoded video, wherein the video code rate of the first re-encoded video is less than or equal to the sum;
(2) the host part outputs the first recoded video to the screen part through the first communication connection and the second communication connection;
(3) and the screen part plays the first recoded video.
After the host part judges whether the video code rate of the target video is greater than the sum, if so, that is, when the video code rate of the target video is greater than the sum of the available bandwidths of the first communication connection and the second communication connection, the host part determines that the target video in the host part cannot be played on line on the screen part.
At this time, the host part re-encodes the target video to obtain a first re-encoded video, and the video code rate of the first re-encoded video is less than or equal to the sum. When the host part recodes the target video, one or more of refresh frequency, color coding and resolution of the target video can be reduced, so that the video code rate of the recoded first recoded video is smaller than or equal to the sum of available bandwidths of the first communication connection and the second communication connection. It should be understood that the video content of the first re-encoded video is the same as the video content of the target video, but the video bitrate of the first re-encoded video is lower, in colloquial, that is, the video picture quality is poor.
After the first re-encoded video is obtained by re-encoding, the host part outputs the first re-encoded video to the screen part through the first communication connection and the second communication connection, and plays the first re-encoded video on the screen part on line.
In an embodiment, a video playing method provided in an embodiment of the present application further includes:
(1) if the second communication connection is failed to be established, the host part recodes the target video to obtain a second recoded video, wherein the video code rate of the second recoded video is smaller than or equal to the available bandwidth of the first communication connection;
(2) the host part transmits the second recoded video to the screen part through the first communication connection;
(3) and the screen part plays the second recoded video.
In this case, for example, assuming that the first communication connection established between the screen portion and the host portion is a wireless communication connection, if the user does not access a data line between the screen portion and the host portion, the screen portion and the host portion may not establish a wired communication connection as the second communication connection.
In the embodiment of the application, when the host part fails to establish the second communication connection, the target video is re-encoded to obtain a second re-encoded video, and the video code rate of the second re-encoded video is less than or equal to the available bandwidth of the first communication connection. When the host part recodes the target video, one or more of refresh frequency, color coding and resolution of the target video can be reduced, so that the video code rate of the second recoded video obtained by recoding is smaller than or equal to the available bandwidth of the first communication connection. It should be understood that the video content of the second re-encoded video is the same as the video content of the target video, but the video bitrate of the second re-encoded video is lower, in colloquial, that is, the video picture quality is poor.
After the second re-encoded video is re-encoded, the host portion outputs the second re-encoded video to the screen portion through the first communication connection, and plays the second re-encoded video on-line at the screen portion. The host part can divide the second recoded video into a plurality of video segments, sequentially send the video segments to the screen part, and play the video segments on the screen part, so that the second recoded video can be played on line.
In one embodiment, a video playing device is also provided. Referring to fig. 5, fig. 5 is a schematic structural diagram of a video playing apparatus 400 according to an embodiment of the present disclosure. The video playing device is applied to a split type electronic device, the split type electronic device comprises a host part and a screen part, the host part and the screen part are in a split state, a first communication connection is established, the video playing device comprises an acquisition module 401, a determination module 402, a judgment module 403, a connection module 404 and a playing module 405, and the video playing device comprises the following components:
an obtaining module 401, configured to enable the screen portion to receive a video playing request input by a user, and transmit the video playing request to the host portion through a first communication connection between the screen portion and the host portion;
a determining module 402, configured to enable the host portion to determine a target video to be played according to the video playing request;
a determining module 403, configured to enable the host portion to determine whether the video bitrate of the target video is greater than an available bandwidth of the first communication connection;
a connection module 404, configured to, when the video bitrate of the target video is greater than the available bandwidth of the first communication connection, enable the host portion to establish a second communication connection with the screen portion, and transmit the target video to the screen portion through the first communication connection and the second communication connection;
a playing module 405, configured to cause the screen portion to play the target video;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
In an embodiment, the connection module 404 is further configured to cause:
the host part acquires the ratio of available bandwidth between the first communication connection and the second communication connection;
the host part determines a distribution proportion for distributing the target video to the first communication connection and the second communication connection for transmission according to the obtained ratio;
the host part allocates the target video to the first communication connection and the second communication connection for transmission according to the allocation ratio.
In an embodiment, the connection module 404 is further configured to cause:
the host part divides a target video into a plurality of video segments which are connected in sequence;
and the host part divides each video clip into two sub-video clips in sequence according to the determined distribution proportion according to the sequence of each video clip, and transmits the two sub-video clips through the first communication connection and the second communication connection respectively.
In an embodiment, the connection module 404 is further configured to cause:
the method comprises the steps that a host part obtains a first packet loss rate of a first communication connection and a second packet loss rate of a second communication connection in the process of transmitting video clips;
and the host part adjusts the distribution ratio according to the acquired first packet loss rate and the acquired second packet loss rate.
In an embodiment, the connection module 404 is further configured to cause:
the host part acquires the sum of the available bandwidths of the first communication connection and the second communication connection;
the host part judges whether the video code rate of the target video is greater than the sum value;
if not, the host portion transmits the target video to the screen portion via the first communication connection and the second communication connection.
In an embodiment, the connection module 404 is further configured to cause:
if the video code rate of the target video is greater than the sum, the host part re-encodes the target video to obtain a first re-encoded video, wherein the video code rate of the first re-encoded video is less than or equal to the sum;
the host portion outputting the first re-encoded video to the screen portion through the first communication connection and the second communication connection;
the play module 405 is also configured to cause the screen portion to play the first re-encoded video.
In an embodiment, the connection module 404 is further configured to cause:
if the establishment of the second communication connection fails, the host part recodes the target video to obtain a second recoded video, wherein the video code rate of the second recoded video is less than or equal to the available bandwidth of the first communication connection;
the host portion transmitting the second re-encoded video to the screen portion via the first communication connection;
the play module 405 is also configured to cause the screen portion to play the second re-encoded video.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, when the video playing apparatus 400 of the present embodiment is integrated into a split-type electronic device, if the screen part and the host part of the split electronic equipment are in a split state and a first communication connection is established, the video playing request received by the screen part can be obtained first, and according to the video playing request, the target video to be played can be determined from the video stored in the host part, then judging whether the video code rate of the target video is larger than the available bandwidth of the first communication connection, if so, establishing a second communication connection between the screen part and the host part, thereby transmitting the target video to the screen portion through the first communication connection and the second communication connection, and playing the target video through the screen portion, therefore, the video playing of the screen part on the host part is realized, and the flexibility of video playing of the split type electronic equipment is improved.
In one embodiment, a split electronic device is also provided. Referring to fig. 6, the split electronic device is composed of a host part and a screen part, the screen part includes a first processor, a first memory, a first wired communication module, a first wireless communication module, and a screen, and the host part includes a second processor, a second memory, a second wired communication module, and a second wireless communication module. It will be understood by those of ordinary skill in the art that the split electronic device configuration shown in fig. 6 does not constitute a limitation of the split electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
It should be noted that the screen portion and the host portion may be spliced together to form a complete electronic device, or may be separated, but the screen portion still has the complete electronic device function, and the host portion has the electronic device function other than the display function, i.e. the host portion and the screen portion cannot be displayed separately when in a split state.
When the screen part and the host part are in a split state, the screen part and the host part can establish wireless communication connection between the screen part and the host part through respective wireless communication modules and/or establish wired communication connection between the screen part and the host part through respective wired communication modules.
In the embodiment of the application, when the screen part and the host part are in a split state, a communication connection is maintained between the screen part and the host part by default, wherein the priority of the wired communication connection is higher than that of the wireless communication connection. For example, when the screen part and the host part are in a split state, the wireless communication connection between the screen part and the host part is established through respective wireless communication modules, and if the wired communication modules of the screen part and the host part are connected through the data lines, the wireless communication connection established between the screen part and the host part is disconnected, and the wired communication connection between the screen part and the host part is established through the data lines. For convenience of description, a communication connection which is maintained by default when the screen portion is in a separated state from the host portion is referred to as a first communication connection, and the first communication connection may be a wireless communication connection between the screen portion and the host portion or a wired communication connection between the screen portion and the host portion.
The host portion and/or the screen portion loads a computer program stored in a respective memory by a respective processor, causing the host portion and/or the screen portion to perform the steps of:
the screen part receives a video playing request input by a user and transmits the video playing request to the host part through a first communication connection between the screen part and the host part;
the host part determines a target video to be played according to the video playing request;
the host part judges whether the video code rate of the target video is larger than the available bandwidth of the first communication connection; when the video code rate of the target video is larger than the available bandwidth of the first communication connection, the host part establishes a second communication connection with the screen part and transmits the target video to the screen part through the first communication connection and the second communication connection;
the screen part plays the target video;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
Referring to fig. 7, fig. 7 is another schematic structural diagram of a split electronic device according to an embodiment of the present disclosure, where the split electronic device includes a host portion and a screen portion, the screen portion includes a first processor, a first memory, a first wired communication module, a first wireless communication module, a screen, and an input unit, and the host portion includes a second processor, a second memory, a second wired communication module, a second wireless communication module, and an input unit. The input unit may be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate a keyboard, a mouse, a joystick, an optical or trackball signal input, etc., related to user settings and function control.
In an embodiment of the application, the host part and/or the screen part loads a computer program stored in a respective memory by a respective processor, so that the host part and/or the screen part performs the following steps:
the screen part receives a video playing request input by a user and transmits the video playing request to the host part through a first communication connection between the screen part and the host part;
the host part determines a target video to be played according to the video playing request;
the host part judges whether the video code rate of the target video is larger than the available bandwidth of the first communication connection; when the video code rate of the target video is larger than the available bandwidth of the first communication connection, the host part establishes a second communication connection with the screen part and transmits the target video to the screen part through the first communication connection and the second communication connection;
the screen part plays the target video;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
In one embodiment, when the target video is transmitted to the screen portion through the first communication connection and the second communication connection, the host portion may perform:
the host part acquires the ratio of available bandwidth between the first communication connection and the second communication connection;
the host part determines a distribution proportion for distributing the target video to the first communication connection and the second communication connection for transmission according to the obtained ratio;
the host part allocates the target video to the first communication connection and the second communication connection for transmission according to the allocation ratio.
In one embodiment, when the target video is allocated to the first communication connection and the second communication connection for transmission according to the allocation ratio, the host part may perform:
the host part divides a target video into a plurality of video segments which are connected in sequence;
and the host part divides each video clip into two sub-video clips in sequence according to the determined distribution proportion according to the sequence of each video clip, and transmits the two sub-video clips through the first communication connection and the second communication connection respectively.
In one embodiment, the host part may further perform:
the method comprises the steps that a host part obtains a first packet loss rate of a first communication connection and a second packet loss rate of a second communication connection in the process of transmitting video clips;
and the host part adjusts the distribution ratio according to the acquired first packet loss rate and the acquired second packet loss rate.
In one embodiment, before transmitting the target video to the screen portion through the first communication connection and the second communication connection, the host portion may perform:
the host part acquires the sum of the available bandwidths of the first communication connection and the second communication connection;
the host part judges whether the video code rate of the target video is greater than the sum value;
if not, the host portion transmits the target video to the screen portion via the first communication connection and the second communication connection.
In one embodiment, after determining whether the video bitrate of the target video is greater than the sum, the host part and the screen part may further perform:
if the video code rate of the target video is greater than the sum, the host part re-encodes the target video to obtain a first re-encoded video, wherein the video code rate of the first re-encoded video is less than or equal to the sum;
the host portion outputting the first re-encoded video to the screen portion through the first communication connection and the second communication connection;
the screen portion plays the first re-encoded video.
In one embodiment, the host portion and the screen portion may further perform:
if the establishment of the second communication connection fails, the host part recodes the target video to obtain a second recoded video, wherein the video code rate of the second recoded video is less than or equal to the available bandwidth of the first communication connection;
the host portion transmitting the second re-encoded video to the screen portion via the first communication connection;
the screen portion plays the second re-encoded video.
The embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a split electronic device in a split state where a first communication connection is established between a host portion and a screen portion, the split electronic device is enabled to implement the steps in the video playing method in any of the embodiments, for example, the screen portion receives a video playing request input by a user, and transmits the video playing request to the host portion through the first communication connection between the screen portion and the host portion; the host part determines a target video to be played according to the video playing request; the host part judges whether the video code rate of the target video is larger than the available bandwidth of the first communication connection; when the video code rate of the target video is larger than the available bandwidth of the first communication connection, the host part establishes a second communication connection with the screen part and transmits the target video to the screen part through the first communication connection and the second communication connection; the screen part plays the target video; wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
The video playing method, the video playing device, the video playing storage medium and the split-type electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied to illustrate the principle and the implementation of the present application, and the description of the embodiments above is only used to help understanding the method and the core concept of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A video playing method is applied to a split type electronic device, the split type electronic device comprises a host part and a screen part, and is characterized in that the host part and the screen part are in a split state and a first communication connection is established, and the video playing method comprises the following steps:
the screen part receives a video playing request input by a user and transmits the video playing request to the host part through the first communication connection;
the host part determines a target video to be played according to the video playing request;
the host part judges whether the video code rate of the target video is larger than the available bandwidth of the first communication connection;
if so, establishing a second communication connection between the host part and the screen part, and acquiring the ratio of available bandwidth between the first communication connection and the second communication connection;
the host part determines a distribution ratio for distributing the target video to the first communication connection and the second communication connection for transmission according to the ratio;
the host part divides the target video into a plurality of video segments which are connected in sequence;
the host part divides each video clip into two sub-video clips according to the distribution proportion in sequence according to the sequence of each video clip, and transmits the two sub-video clips through the first communication connection and the second communication connection respectively;
the screen part merges the received two sub-video clips into one video clip to play when receiving the two sub-video clips transmitted by the host part through the first communication connection and the second communication connection each time;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
2. The video playback method of claim 1, wherein the video playback method further comprises:
the host part acquires a first packet loss rate of the first communication connection and a second packet loss rate of the second communication connection in the process of transmitting the video clip;
and the host part adjusts the distribution proportion according to the first packet loss rate and the second packet loss rate.
3. The video playback method of claim 1 or 2, wherein the step of obtaining the ratio of the available bandwidth between the first communication connection and the second communication connection is preceded by the step of:
the host part obtaining a sum of available bandwidths of the first communication connection and the second communication connection;
the host part judges whether the video code rate of the target video is greater than the sum value;
if not, the host part acquires the ratio of the available bandwidth between the first communication connection and the second communication connection.
4. The video playing method according to claim 3, wherein after the step of the host part determining whether the video bitrate of the target video is greater than the sum, the method further comprises:
if so, the host part re-encodes the target video to obtain a first re-encoded video, wherein the video code rate of the first re-encoded video is less than or equal to the sum;
the host portion transmitting the first re-encoded video to the screen portion over the first communication connection and the second communication connection;
the screen portion plays the first re-encoded video.
5. The video playback method of claim 1, wherein the video playback method further comprises:
if the second communication connection is failed to be established, the host part recodes the target video to obtain a second recoded video, wherein the video code rate of the second recoded video is smaller than or equal to the available bandwidth of the first communication connection;
the host portion transmitting the second re-encoded video to the screen portion over the first communication connection;
the screen portion plays the second re-encoded video.
6. A video playing device is applied to a split type electronic device, the split type electronic device comprises a host part and a screen part, and is characterized in that the host part and the screen part are in a split state, and a first communication connection is established, the video playing device comprises:
the acquisition module is used for enabling the screen part to receive a video playing request input by a user and transmitting the video playing request to the host part through the first communication connection;
the determining module is used for enabling the host part to determine a target video to be played according to the video playing request;
a determining module, configured to enable the host portion to determine whether a video bitrate of the target video is greater than an available bandwidth of the first communication connection;
a connection module, configured to establish a second communication connection between the host part and the screen part when the video bitrate of the target video is greater than the available bandwidth of the first communication connection, and obtain a ratio of the available bandwidth between the first communication connection and the second communication connection; causing the host portion to determine an allocation ratio for allocating the target video to the first communication connection and the second communication connection for transmission based on the ratio; causing the host portion to split the target video into a plurality of sequentially connected video segments; the host part divides the video clips into two sub-video clips according to the distribution proportion in sequence according to the sequence of the video clips, and transmits the two sub-video clips through the first communication connection and the second communication connection respectively;
the playing module is used for enabling the screen part to merge the received two sub-video clips into one video clip to play when the two sub-video clips transmitted by the host part through the first communication connection and the second communication connection are received each time;
wherein the second communication connection is a wireless communication connection if the first communication connection is a wired communication connection, or the second communication connection is a wired communication connection if the first communication connection is a wireless communication connection.
7. A storage medium having stored thereon a computer program for causing a host part and/or a screen part to implement the steps in the video playback method of any one of claims 1 to 5 when the computer program is run on a split type electronic apparatus in which the host part and the screen part establish a first communication connection and are in a split state.
8. A split electronic device, comprising a host part and a screen part, wherein the host part and the screen part are in a split state and a first communication connection is established, and the host part and/or the screen part are/is used for implementing the steps in the video playing method of any one of claims 1 to 5.
CN201811152409.XA 2018-09-29 2018-09-29 Video playing method, device, storage medium and split type electronic equipment Expired - Fee Related CN109413468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811152409.XA CN109413468B (en) 2018-09-29 2018-09-29 Video playing method, device, storage medium and split type electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811152409.XA CN109413468B (en) 2018-09-29 2018-09-29 Video playing method, device, storage medium and split type electronic equipment

Publications (2)

Publication Number Publication Date
CN109413468A CN109413468A (en) 2019-03-01
CN109413468B true CN109413468B (en) 2021-02-09

Family

ID=65466609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811152409.XA Expired - Fee Related CN109413468B (en) 2018-09-29 2018-09-29 Video playing method, device, storage medium and split type electronic equipment

Country Status (1)

Country Link
CN (1) CN109413468B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11284935A (en) * 1998-03-31 1999-10-15 Sony Corp Portable video unit
CN1332417A (en) * 2000-07-10 2002-01-23 刘伟 Radio transmitted split computer and its radio connector
KR20070107375A (en) * 2006-05-03 2007-11-07 주식회사 대우일렉트로닉스 Portable multimedia player having a detachable display means
CN101588491A (en) * 2009-06-19 2009-11-25 重庆邮电大学 Method of transmitting dual-mode wireless video
CN201725246U (en) * 2010-07-15 2011-01-26 汉王科技股份有限公司 Portable computer
CN102033850A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Portable terminal and control method thereof, portable device and control method thereof
CN105392020A (en) * 2015-11-19 2016-03-09 广州华多网络科技有限公司 Internet video direct broadcasting method and system
CN107306192A (en) * 2016-04-18 2017-10-31 中国移动通信集团广东有限公司 A kind of service data transmission method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11284935A (en) * 1998-03-31 1999-10-15 Sony Corp Portable video unit
CN1332417A (en) * 2000-07-10 2002-01-23 刘伟 Radio transmitted split computer and its radio connector
KR20070107375A (en) * 2006-05-03 2007-11-07 주식회사 대우일렉트로닉스 Portable multimedia player having a detachable display means
CN101588491A (en) * 2009-06-19 2009-11-25 重庆邮电大学 Method of transmitting dual-mode wireless video
CN102033850A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Portable terminal and control method thereof, portable device and control method thereof
CN201725246U (en) * 2010-07-15 2011-01-26 汉王科技股份有限公司 Portable computer
CN105392020A (en) * 2015-11-19 2016-03-09 广州华多网络科技有限公司 Internet video direct broadcasting method and system
CN107306192A (en) * 2016-04-18 2017-10-31 中国移动通信集团广东有限公司 A kind of service data transmission method, device and system

Also Published As

Publication number Publication date
CN109413468A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
KR100715674B1 (en) Load balancing method and software steaming system using the same
CN108881972B (en) Code rate allocation method, device, equipment and storage medium
CN106254951B (en) A kind of net cast creation method and its system, access device, management equipment
CN109362097B (en) Transmission control method and related device
CN110636339B (en) Scheduling method and device based on code rate and electronic equipment
CN106792835B (en) Control method and system for wireless equipment sharing bandwidth
CN105827633A (en) Video transmission method and device
KR20070084199A (en) Dynamic bandwidth sharing
EP3089410A1 (en) Node distribution method and control center
CN107251487B (en) Bandwidth distribution method and device in network and computer readable storage medium
JP2019503119A (en) Using network-supported protocols to improve network utilization
US10218578B2 (en) Method for controlling a management device and related device
US8737430B2 (en) Determining maximum bandwidth in a mixed version MoCA deployment
CN105900481A (en) Bandwidth selection method of wireless fidelity technology and access point (ap)
CN115988671A (en) Wireless mesh network return link distribution method, device, electronic equipment and medium
CN106686635B (en) Data transmission method and device based on control and configuration protocol of wireless access point
CN105634990B (en) Based on the continuous method for obligating resource of time frequency spectrum, device and processor
CN109413468B (en) Video playing method, device, storage medium and split type electronic equipment
JP4408383B2 (en) Information distribution apparatus, information distribution system, and information distribution method
CN108111878B (en) Method and system for transmitting media stream image
US8799332B2 (en) Content conversion apparatus and method
CN110366012B (en) Multi-view video playing method and electronic equipment
CN113645228A (en) Code rate self-adaptive video distribution method and system
CN104410620B (en) A kind of information processing method and server
KR102612787B1 (en) Method and system for managing bandwidth usage of cdn

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210209