CN106162232A - video playing control method and device - Google Patents

video playing control method and device Download PDF

Info

Publication number
CN106162232A
CN106162232A CN201610497172.3A CN201610497172A CN106162232A CN 106162232 A CN106162232 A CN 106162232A CN 201610497172 A CN201610497172 A CN 201610497172A CN 106162232 A CN106162232 A CN 106162232A
Authority
CN
China
Prior art keywords
code stream
video
played
playing
target code
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.)
Pending
Application number
CN201610497172.3A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610497172.3A priority Critical patent/CN106162232A/en
Publication of CN106162232A publication Critical patent/CN106162232A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Abstract

The embodiment of the invention discloses a kind of video playing control method and device, when videoconference client plays video to be played, obtain the size of broadcast window;Then, from the whole optional code stream that video to be played is corresponding, select resolution and be more than size and the target code stream of minimum of broadcast window, and play the video to be played of target code stream at videoconference client.Utilizing the method, it is achieved on the premise of not affecting video pictures definition, automatically select the minimum code stream of permission according to the size of broadcast window, the network bandwidth resources of the least needs of code stream is the fewest, thus saves network bandwidth resources.And, code stream the least decoding burden is the least, for using the equipment of hard decoder, reduces the burden of decoder;For using the equipment of soft decoding, reduce the burden of CPU, thus reduce the device resource play shared by video.

Description

Video playing control method and device
Technical field
The present invention relates to video display arts field, particularly relate to a kind of video playing control method and device.
Background technology
At present, the Video Applications software on Android intelligent terminal equipment is usually constructed with the setting about definition, such as, 480P, 720P, 1080P etc..User can set the definition playing video, and Video Applications software, will when playing video To the video flowing that the definition set by server request user is corresponding.
But, present Video Applications can play different videos at multiple little broadcast windows simultaneously, if playing window Mouth is smaller, and the definition of video higher (such as, 1080P), so, the picture that the picture that each frame of video is corresponding is comprised Element is the most, considerably beyond the pixel of screen area shared by little broadcast window, needs to reduce video pictures under this kind of application scenarios. The network bandwidth of the highest needs of video definition is the biggest, therefore, utilizes little broadcast window to play the video that definition is higher, meeting Cause the waste of network bandwidth resources.And, the higher meeting of video definition adds the decoding resource of Android intelligent terminal equipment The burden of (such as, decoder or CPU).
Summary of the invention
The embodiment of the present invention provides a kind of video playing control method and device, to solve video of the prior art Code stream is higher and the problem of the little network bandwidth resources waste caused of broadcast window.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect, the embodiment of the present invention provides a kind of video playing control method, is applied in videoconference client, bag Include:
When described videoconference client plays video to be played, obtain the size of broadcast window;
From the whole optional code stream corresponding to described video to be played, determine that resolution is more than or equal to described broadcasting The size of window and the target code stream of minimum;
Play the video to be played that described target code stream is corresponding.
Alternatively, described from the whole optional code stream corresponding to described video to be played, determine resolution be more than or Equal to size and the target code stream of minimum of described broadcast window, including:
Obtain the whole optional code stream of described video to be played;
Relatively described optional code stream correspondence resolution and the wide height of described broadcast window, obtain resolution more than or equal to institute State the optional code stream that the width of broadcast window is high;
From the optional code stream that resolution is high more than or equal to the width of described broadcast window, select the optional of resolution minimum Code stream is defined as described target code stream.
Alternatively, if the acquiescence code stream of described videoconference client is more than described target code stream, the described target of the most described broadcasting The video to be played that code stream is corresponding, including:
Described videoconference client stops playing the video to be played of described acquiescence code stream;
Described videoconference client sends the first playing request to server, and described first playing request is for asking to server Ask and play the video to be played that described target code stream is corresponding;
Described videoconference client receives video to be played corresponding to described target code stream that described server sends;
Described videoconference client plays the video to be played that described target code stream is corresponding.
Alternatively, if the acquiescence code stream of described videoconference client is more than described target code stream, the described target of the most described broadcasting The video to be played that code stream is corresponding, including:
Described videoconference client rebuilds the second player, and provides described target code stream to described second player Broadcast address corresponding to video to be played;
Described second player sends the second playing request according to described broadcast address to server, and described second broadcasting please Ask for playing, to server request, the video to be played that described target code stream is corresponding;
When described second player receives video to be played corresponding to described target code stream that described server sends, Destroying the first player, described first player is for playing the video to be played of acquiescence code stream;
Set up associating between described second player and described broadcast window.
Alternatively, the size of described acquisition broadcast window, including:
The wide high of described broadcast window is obtained from surfaceChanged callback method.
Second aspect, the embodiment of the present invention provides a kind of video playback to control device, is applied in videoconference client, bag Include:
First acquisition module, for when described videoconference client plays video to be played, obtaining the size of broadcast window;
Determine module, for from the whole optional code stream corresponding to described video to be played, determine that resolution is more than Or it is equal to size and the target code stream of minimum of described broadcast window;
Playing module, for playing the video to be played that described target code stream is corresponding.
Alternatively, described determine module, including:
First obtains submodule, for obtaining the whole optional code stream of described video to be played;
Comparison sub-module, for the wide height of relatively described optional code stream correspondence resolution with described broadcast window, is divided The optional code stream that resolution is high more than or equal to the width of described broadcast window;
Select submodule, for the optional code stream high more than or equal to the width of described broadcast window from resolution, select The optional code stream of resolution minimum is defined as described target code stream.
Alternatively, if the acquiescence code stream of described videoconference client is more than described target code stream, the most described playing module, bag Include:
Stop submodule, for stopping playing the video to be played of described acquiescence code stream;
First sends submodule, and for sending the first playing request to server, described first playing request is for clothes The video to be played that described target code stream is corresponding is play in business device request;
Receive submodule, for receiving the video to be played that the described target code stream of described server transmission is corresponding;
Play submodule, for playing the video to be played that described target code stream is corresponding.
Alternatively, if the acquiescence code stream of described videoconference client is more than described target code stream, the most described playing module, bag Include:
Build submodule, be used for rebuilding the second player, and provide described target code stream to described second player The broadcast address corresponding to video to be played;
Second sends submodule, for sending the second playing request according to described broadcast address to server, and described second Playing request is for playing, to server request, the video to be played that described target code stream is corresponding;
Destroy submodule, for receiving, when described second player, the described target code stream correspondence that described server sends Video to be played time, destroy the first player, described first player for play acquiescence code stream video to be played;
Set up submodule, for setting up associating between described second player and described broadcast window.
Alternatively, described first acquisition module, broadcast described in obtaining from surfaceChanged callback method Put the wide high of window.
The third aspect, the embodiment of the present invention provides a kind of video playback client, arbitrary including second aspect as the aforementioned Video play device described in Xiang.
Fourth aspect, the embodiment of the present invention provides a kind of video playback client, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When described videoconference client plays video to be played, obtain the size of broadcast window;
From the whole optional code stream corresponding to described video to be played, determine that resolution is more than or equal to described broadcasting The size of window and the target code stream of minimum;
Play the video to be played that described target code stream is corresponding.
5th aspect, the embodiment of the present invention provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can be deposited Containing program, this program can realize first aspect present invention and provide each implementation of a kind of video playing control method when performing In part or all of step.
From above technical scheme, the video playing control method that the embodiment of the present invention provides, when videoconference client is broadcast When putting video to be played, obtain the size of broadcast window;Then, from the whole optional code stream that video to be played is corresponding, select Go out the target code stream that resolution is minimum more than the size of broadcast window and pixel count;And play target code stream at videoconference client Video to be played.Utilize the method, it is achieved on the premise of not affecting video pictures definition, according to the size of broadcast window from The dynamic minimum code stream selecting to allow, the network bandwidth resources of the least needs of code stream is the fewest, thus saves network bandwidth resources.And And, code stream the least decoding burden is the least, for using the equipment of hard decoder, reduces the burden of decoder;For using For the equipment of soft decoding, reduce the burden of CPU, thus reduce the device resource play shared by video.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, for those of ordinary skill in the art Speech, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of video playing control method of the embodiment of the present invention;
The schematic flow sheet of a kind of S120 that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of embodiment of the present invention another kind video playing control method;
Fig. 4 is the flow chart of embodiment of the present invention another kind video playing control method;
The block diagram of a kind of video play device that Fig. 5 provides for the embodiment of the present invention;
A kind of block diagram determining module that Fig. 6 provides for the embodiment of the present invention;
The block diagram of a kind of playing module that Fig. 7 provides for the embodiment of the present invention;
The block diagram of the another kind of playing module that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the present invention, real below in conjunction with the present invention Execute the accompanying drawing in example, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described enforcement Example is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under not making creative work premise, all should belong to present invention protection Scope.
Seeing Fig. 1, for the schematic flow sheet of a kind of video playing control method that the embodiment of the present invention provides, the method should In videoconference client, as it is shown in figure 1, the method may include that
S110, when described videoconference client plays video to be played, obtains the size of broadcast window.
Videoconference client refers to that the Online Video being arranged on intelligent terminal (such as, smart mobile phone) plays application (such as, happy regarding video).
In some embodiments of the invention, detect that user uses little broadcast window to play video when videoconference client Operation after, obtain the size of this broadcast window, the size of broadcast window refers to the wide high of broadcast window, can use broadcast window The pixel of shared screen represents, such as, the size of broadcast window is 1280*720.
If intelligent terminal is Android intelligent equipment, in Android intelligent equipment, video in surfaceView in Existing;Surfaceview is a kind of particular view in android system, has independent drawing surface, it not with host window Share same drawing surface.SurfaceChanged can be called when the state (size and form) of surface changes Function, can obtain the wide high of currently playing window in surfaceChanged () callback method.
S120, from the whole optional code stream corresponding to described video to be played, determines that resolution is more than or equal to institute State the size of broadcast window and the target code stream of minimum.
Resolution is selected more than or equal to the size of broadcast window from the optional code stream that video to be played is corresponding, and Low code stream is as target code stream.
Seeing Fig. 2, for the schematic flow sheet of a kind of S120 that the embodiment of the present invention provides, the method is applied to video consumer In end, as in figure 2 it is shown, the method may comprise steps of:
S121, obtains the whole optional code stream of described video to be played.
Videoconference client can obtain the optional code stream that video to be played is corresponding from server;Wherein, different videos Corresponding optional code stream may be different, and such as, the optional code stream of video 1 is 480P and 720P, and the optional code stream of video 2 is 480P, 720P and 1080P.
The high pixel value of width of S122, relatively described optional code stream correspondence video and the high pixel value of width of described broadcast window, Obtain the high pixel value of width of video to be all higher than or the optional code stream of the high pixel value of width equal to described broadcast window.
Such as, the optional code stream that video to be played is corresponding includes 480P (resolution is 720*480), (resolution is 720P 1280*720) with 1080P (resolution is 1920*1080), and the size of current broadcast window is 1280*720, then code stream is The resolution of 720P and 1080P meets the size more than or equal to broadcast window.
S123, from resolution more than or equal to the optional code stream of the high pixel value of width of described broadcast window, selects to differentiate The optional code stream of rate minimum is defined as described target code stream.
Adopting above-mentioned example, the pixel count of 720P correspondence video, less than the pixel count of 1080P correspondence video, therefore, originally shows Target code stream in example is 720P.
S130, plays the video to be played that described target code stream is corresponding.
The corresponding different broadcast address of video file that the different code streams of same video is corresponding.After determining target code stream, depending on Frequently client obtains the broadcast address corresponding to video to be played of target code stream, and this broadcast address is supplied to player (this player is created by videoconference client), player generates according to this broadcast address and is used for asking broadcasting target code stream correspondence to be treated Playing the playing request of video, and playing request is sent to server, server reads in the path carried in playing request Video flowing, and this video flowing is returned to player, by this video flowing of player plays.
The video playing control method that the present embodiment provides, when videoconference client plays video to be played, obtains and plays The size of window;Then, from the whole optional code stream that video to be played is corresponding, select resolution more than or equal to playing window The size of mouth and the target code stream of minimum;And the video to be played of target code stream is play at videoconference client.Utilize the method, real On the premise of not affecting video pictures definition now, automatically select the minimum code stream of permission, code according to the size of broadcast window The network bandwidth resources flowing the least needs is the fewest, thus saves network bandwidth resources.And, code stream the least decoding burden is more Little, for using the equipment of hard decoder, reduce the burden of decoder;For using the equipment of soft decoding, reduce The burden of CPU, thus reduce the device resource play shared by video.
See Fig. 3, for the schematic flow sheet of embodiment of the present invention another kind video playing control method, as it is shown on figure 3, should Method comprises the following steps:
S210, when described videoconference client plays video to be played, obtains the size of broadcast window.
S220, from the whole optional code stream corresponding to described video to be played, determines that resolution is more than or equal to institute State the size of broadcast window and the target code stream of minimum.
S230, videoconference client stops playing the video to be played of described acquiescence code stream.
Videoconference client, before playing the video to be played that target code stream is corresponding, plays the acquiescence code on videoconference client The video to be played of stream.
In some embodiments of the invention, acquiescence code stream can be on videoconference client the overall situation arrange in code stream, or Person, it is also possible to be that user is playing the code stream set by the page;Or, it is also possible to it is the system default code stream of videoconference client.
S240, videoconference client sends the first playing request to server, and this first playing request is for asking to server Ask and play the video to be played that target code stream is corresponding.
The player playing video to be played in videoconference client first stops playing the video to be played of acquiescence code stream, so After, videoconference client sends, to this player, the broadcast address that target code stream is corresponding, and player is according to corresponding the broadcasting of target code stream Putting address and generate the first playing request, this first playing request is for regarding to corresponding to be played of server request target code stream Frequently.After server receives this first playing request, obtain target code stream according to the broadcast address in the first playing request corresponding Video to be played and be sent to videoconference client.
S250, videoconference client receives video to be played corresponding to described target code stream that described server sends.
S260, videoconference client plays the video to be played that described target code stream is corresponding.
After videoconference client receives the video to be played that target code stream is corresponding, above-mentioned player plays is utilized to receive Video flowing.
The video playing control method that the present embodiment provides, when utilizing wicket to play video, sees not affecting user Video pictures definition on the premise of, dynamically select the minimum code stream allowed as object code according to the size of broadcast window Stream, thus play the video file that this target code stream is corresponding.The network bandwidth resources of the least needs of code stream is the fewest, thus saves Network bandwidth resources.And, code stream the least decoding burden is the least, for using the equipment of hard decoder, reduces decoder Burden;For using the equipment of soft decoding, reduce the burden of CPU, thus reduce the equipment play shared by video Resource.
Seeing Fig. 4, for the flow chart of embodiment of the present invention another kind video playing control method, the method is applied to video In client, as shown in Figure 4, the method may comprise steps of
S310, when described videoconference client plays video to be played, utilizes treating of the first player plays acquiescence code stream Play video.
S320, obtains the size being used for playing the broadcast window of described video to be played.
S330, from the whole optional code stream corresponding to described video to be played, determines that resolution is more than or equal to institute State the size of broadcast window and the target code stream of minimum.
S340, videoconference client rebuilds the second player, and provides treating of described target code stream to the second player Play the broadcast address corresponding to video.
The video file to be played of acquiescence code stream still play by first player;Meanwhile, rebuild another player, and Prepare for playing the video file to be played of target code stream.Concrete, videoconference client is by the video to be played of target code stream Corresponding broadcast address is supplied to the second player, and the second player can play mesh according to this broadcast address to server request The video to be played of coding stream.
S350, the second player sends the second playing request according to described broadcast address to server, and described second plays Request is for playing, to server request, the video to be played that described target code stream is corresponding.
Second player generates the second playing request according to the broadcast address that the video to be played of target code stream is corresponding, concurrently Giving server, server obtains the broadcast address that the video to be played of target code stream is corresponding from the second playing request, and reads Take video stream corresponding to this broadcast address to the second player in videoconference client.
S360, when the second player receives video to be played corresponding to described target code stream that described server sends Time, destroy the first player.
After the second player receives video to be played corresponding to target code stream that server sends, videoconference client meeting Destroy the first player, meanwhile, utilize the video to be played of the second player plays target code stream, thus reduce user when waiting Between, it is achieved from acquiescence code stream to the seamless switching of target code stream, improve Consumer's Experience.
S370, sets up associating between described second player and described broadcast window.
Needing to create SurfaceHolder, SurfaceHolder during creating broadcast window is an interface, It acts like an audiomonitor about Surface.There is provided the Surface accessed and control SurfaceView behind relevant Method, by single callback method, let us can perceive the establishment of Surface, destroys or change.Pass through GetHolder method can obtain SurfaceHolder easily.
After the second player gets out the video to be played of broadcasting target code stream, call the setDisplay side of player Second player and SurfaceHolder are associated by method, and so, the picture of the second player output will show at this On surfaceHolder, see picture from broadcast window.
The video playing control method that the present embodiment provides, when utilizing wicket to play video, sees not affecting user On the premise of the video pictures definition arrived, dynamically select the minimum code stream allowed as object code according to the size of broadcast window Stream, before being switched to play the video that target code stream is corresponding, utilizes the video of the first player plays acquiescence code stream always, with Time create the second player, prepare for playing video corresponding to target code stream;When the second player is already prepared to play mesh During video corresponding to coding stream, destroy the first player, and set up associating between the second player and broadcast window, thus subtract Few period of reservation of number, it is achieved from acquiescence code stream to the seamless switching of target code stream, improve Consumer's Experience.And, code stream is more Little decoding burden is the least, for using the equipment of hard decoder, reduces the burden of decoder;For using soft decoding to set For Bei, reduce the burden of CPU, thus reduce the device resource play shared by video.
Corresponding with the video playing control method embodiment that the present invention provides, present invention also offers a kind of video playback Control device embodiment.
Seeing Fig. 5, for the block diagram of a kind of video play device that the embodiment of the present invention provides, this device is applied to video visitor In the end of family, as it is shown in figure 5, this device can include the first acquisition module 110, determine module 120 and playing module 130.
First acquisition module 110, for when described videoconference client plays video to be played, obtaining the chi of broadcast window Very little.
In some embodiments of the invention, detect that user uses little broadcast window to play video when videoconference client Operation after, obtain the size of this broadcast window, the size of broadcast window refers to the wide high of broadcast window, can use broadcast window The pixel of shared screen represents, such as, the size of broadcast window is 1280*720.
If intelligent terminal is Android intelligent equipment, in Android intelligent equipment, video in surfaceView in Existing;Surfaceview is a kind of particular view in android system, has independent drawing surface, it not with host window Share same drawing surface.SurfaceChanged can be called when the state (size and form) of surface changes Function, can obtain the wide high of currently playing window in surfaceChanged () callback method.
Determine module 120, for from the whole optional code stream corresponding to described video to be played, determine that resolution is big In or equal to the size of described broadcast window and the target code stream of minimum.
Seeing Fig. 6, a kind of block diagram determining module provided for the embodiment of the present invention, as shown in Figure 6, this determines module 120 include the first acquisition submodule 121, comparison sub-module 122 and select submodule 123.
First obtains submodule 121, for obtaining the whole optional code stream of described video to be played.
Comparison sub-module 122, for the wide height of relatively described optional code stream correspondence resolution with described broadcast window, obtains The optional code stream that resolution is high more than or equal to the width of described broadcast window.
Such as, the optional code stream that video to be played is corresponding includes 480P (720*480), 720P (1280*720) and 1080P (1920*1080), and the size of current broadcast window is 1280*720, then code stream be 720P and 1080P resolution meet Size more than or equal to broadcast window.
Select submodule 123, for the optional code stream high more than or equal to the width of described broadcast window from resolution, choosing The optional code stream selecting pixel count minimum is defined as described target code stream.
Adopting above-mentioned example, the pixel count of 720P correspondence video, less than the pixel count of 1080P correspondence video, therefore, originally shows Target code stream in example is 720P.
Playing module 130, for playing the video to be played that described target code stream is corresponding.
Playing module 130 is for controlling the player in videoconference client.
The corresponding different broadcast address of video file that the different code streams of same video is corresponding.After determining target code stream, depending on Frequently client obtains the broadcast address corresponding to video to be played of target code stream, and this broadcast address is supplied to player (this player is created by videoconference client), player generates according to this broadcast address and is used for asking broadcasting target code stream correspondence to be treated Playing the playing request of video, and playing request is sent to server, server reads in the path carried in playing request Video flowing, and this video flowing is returned to player, by this video flowing of player plays.
The video playback that the present embodiment provides controls device, when videoconference client plays video to be played, obtains and plays The size of window;Then, from the whole optional code stream that video to be played is corresponding, select the resolution chi more than broadcast window Very little and minimum target code stream;And the video to be played of target code stream is play at videoconference client.Utilize this device, it is achieved not On the premise of affecting video pictures definition, automatically selecting the minimum code stream of permission according to the size of broadcast window, code stream is the least The network bandwidth resources needed is the fewest, thus saves network bandwidth resources.And, code stream the least decoding burden is the least, for For using the equipment of hard decoder, reduce the burden of decoder;For using the equipment of soft decoding, reduce CPU's Burden, thus reduce the device resource play shared by video.
In some embodiments of the invention, playing module before determining target code stream, play acquiescence code stream wait broadcast Put video, after determining target code stream, from play acquiescence code stream video to be played be switched to play target code stream wait broadcast Put video.
The first player playing video to be played in videoconference client first stops playing the video to be played of acquiescence code stream, Then, videoconference client sends, to this first player, the broadcast address that target code stream is corresponding;First player is according to object code The broadcast address that stream is corresponding generates the first playing request, and this first playing request is for corresponding to server request target code stream Video to be played.After server receives this first playing request, obtain target according to the broadcast address in the first playing request Video to be played that code stream is corresponding is also sent to the first player.
See Fig. 7, the block diagram of a kind of playing module provided for the embodiment of the present invention, as it is shown in fig. 7, this playing module 130 include: stop submodule 1311, first and send submodule 1312, receive submodule 1313 and play submodule 1314.
Stop submodule 1311, play the video to be played of described acquiescence code stream for making the first player stop.
First sends submodule 1312, and for sending the first playing request to server, described first playing request is used for The video to be played that described target code stream is corresponding is play to server request.
Receive submodule 1313, for receiving the video to be played that the described target code stream of described server transmission is corresponding.
Play submodule 1314, for controlling the video to be played that target code stream described in the first player plays is corresponding.
The playing module that the present embodiment provides, when utilizing wicket to play video, is not affecting the video picture that user sees On the premise of the definition of face, dynamically select the minimum code stream allowed as target code stream according to the size of broadcast window.Then, vertical I.e. it is switched to, from the video to be played playing acquiescence code stream, the video that target code stream is corresponding.The network bandwidth money of the least needs of code stream Source is the fewest, thus saves network bandwidth resources.And, code stream the least decoding burden is the least, for using the equipment of hard decoder For, reduce the burden of decoder;For using the equipment of soft decoding, reduce the burden of CPU, thus reduce broadcasting Device resource shared by video.
In other embodiments of the invention, playing module utilizes the first player plays acquiescence the to be played of code stream to regard Frequently, build the second player simultaneously, prepare for playing the video to be played of target code stream, when the second player is ready to play After the video to be played of target code stream, destroy the first player, and with the video to be played of the second player plays target code stream.
See Fig. 8, for the block diagram of the another kind of playing module that the embodiment of the present invention provides, as shown in Figure 8, this playing module 130 include: build submodule 1321, second and send submodule 1322, destroy submodule 1323 and set up submodule 1324.
Build submodule 1321, be used for rebuilding the second player, and provide described target to described second player The broadcast address corresponding to video to be played of code stream.
Second sends submodule 1322, for sending the second playing request according to described broadcast address to server, described Second playing request is for playing, to server request, the video to be played that described target code stream is corresponding.
Destroy submodule 1323, for receiving, when described second player, the described target code stream that described server sends During corresponding video to be played, destroying the first player, described first player is for playing the video to be played of acquiescence code stream.
Set up submodule 1324, for setting up associating between described second player and described broadcast window.
As seen from the above-described embodiment, when utilizing wicket to play video, not affecting, the video pictures that user sees is clear On the premise of clear degree, dynamically select according to the size of broadcast window the minimum code stream that allows as target code stream, broadcast being switched to Before putting the video that target code stream is corresponding, utilize the video of the first player plays acquiescence code stream always, create second simultaneously and broadcast Put device, prepare for the video playing target code stream corresponding;When the second player be already prepared to play target code stream corresponding During video, destroy the first player, and set up associating between the second player and broadcast window, thus reduce user when waiting Between, it is achieved from acquiescence code stream to the seamless switching of target code stream, improve Consumer's Experience.And, code stream the least decoding burden is more Little, for using the equipment of hard decoder, reduce the burden of decoder;For using the equipment of soft decoding, reduce The burden of CPU, thus reduce the device resource play shared by video.
The embodiment of the present invention provides a kind of video playback client, including described in Fig. 5-Fig. 7 any embodiment as the aforementioned Video play device.
The embodiment of the present invention provides a kind of video playback client, including: processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When described videoconference client plays video to be played, obtain the size of broadcast window;
From the whole optional code stream corresponding to described video to be played, determine that resolution is more than or equal to described broadcasting The size of window and the target code stream of minimum;
Play the video to be played that described target code stream is corresponding.
The embodiment of the present invention provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, This program can realize earlier figures 1-Fig. 4 any one embodiment and provide each implementation of a kind of video playing control method when performing In part or all of step.
By the description of above embodiment of the method, those skilled in the art is it can be understood that can to the present invention The mode adding required general hardware platform by software realizes, naturally it is also possible to by hardware, but a lot of in the case of the former It it is more preferably embodiment.Based on such understanding, prior art is made tribute by technical scheme the most in other words The part offered can embody with the form of software product, and this computer software product is stored in a storage medium, bag Include some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs All or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: read only memory (ROM), the various media that can store program code such as random access memory (RAM), magnetic disc or CD.In this specification Each embodiment all use the mode gone forward one by one to describe, between each embodiment, identical similar part sees mutually, often What individual embodiment stressed is all the difference with other embodiments.For device or system embodiment, by Being substantially similar to embodiment of the method in it, so describing fairly simple, relevant part sees the part explanation of embodiment of the method ?.Apparatus and system embodiment described above is only schematically, the wherein said list illustrated as separating component Unit can be or may not be physically separate, and the parts shown as unit can be or may not be physics Unit, i.e. may be located at a place, or can also be distributed on multiple NE.Can select according to the actual needs Some or all of module therein realizes the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creation Property work in the case of, be i.e. appreciated that and implement.
The present invention can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizing the routine of particular abstract data type, program, object, group Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, by The remote processing devices connected by communication network performs task.In a distributed computing environment, program module is permissible It is positioned in the local and remote computer-readable storage medium of storage device.
It should be noted that in this article, such as the relational terms of " first " and " second " or the like is used merely to one Individual entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operate it Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant are intended to Contain comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include those Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that Other identical element is there is also in including the process of described key element, method, article or equipment.
The above is only the detailed description of the invention of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

1. a video playing control method, is applied in videoconference client, it is characterised in that including:
When described videoconference client plays video to be played, obtain the size of broadcast window;
From the whole optional code stream corresponding to described video to be played, determine that resolution is more than or equal to described broadcast window Size and the target code stream of minimum;
Play the video to be played that described target code stream is corresponding.
Method the most according to claim 1, it is characterised in that described whole optional from corresponding to described video to be played In code stream, determine that resolution is more than or equal to the size of described broadcast window and the target code stream of minimum, including:
Obtain the whole optional code stream of described video to be played;
Relatively described optional code stream correspondence resolution and described broadcast window is wide high, obtain resolution be more than or equal to described in broadcast Put the optional code stream that the width of window is high;
From the optional code stream that resolution is high more than or equal to the width of described broadcast window, select the optional code stream that resolution is minimum It is defined as described target code stream.
Method the most according to claim 1, it is characterised in that if the acquiescence code stream of described videoconference client is more than described mesh Coding stream, the video to be played that the most described broadcasting described target code stream is corresponding, including:
Described videoconference client stops playing the video to be played of described acquiescence code stream;
Described videoconference client sends the first playing request to server, and described first playing request is for broadcasting to server request Put the video to be played that described target code stream is corresponding;
Described videoconference client receives video to be played corresponding to described target code stream that described server sends;
Described videoconference client plays the video to be played that described target code stream is corresponding.
Method the most according to claim 1, it is characterised in that if the acquiescence code stream of described videoconference client is more than described mesh Coding stream, the video to be played that the most described broadcasting described target code stream is corresponding, including:
Described videoconference client rebuilds the second player, and to described second player provide described target code stream wait broadcast Put the broadcast address corresponding to video;
Described second player sends the second playing request according to described broadcast address to server, and described second playing request is used In playing, to server request, the video to be played that described target code stream is corresponding;
When described second player receives video to be played corresponding to described target code stream that described server sends, destroy First player, described first player is for playing the video to be played of acquiescence code stream;
Set up associating between described second player and described broadcast window.
Method the most according to claim 1, it is characterised in that the size of described acquisition broadcast window, including:
The wide high of described broadcast window is obtained from surfaceChanged callback method.
6. video playback controls a device, is applied in videoconference client, it is characterised in that including:
First acquisition module, for when described videoconference client plays video to be played, obtaining the size of broadcast window;
Determine module, for from the whole optional code stream corresponding to described video to be played, determine resolution be more than or etc. Size and the target code stream of minimum in described broadcast window;
Playing module, for playing the video to be played that described target code stream is corresponding.
Device the most according to claim 6, it is characterised in that described determine module, including:
First obtains submodule, for obtaining the whole optional code stream of described video to be played;
Comparison sub-module, for the wide height of relatively described optional code stream correspondence resolution with described broadcast window, obtains resolution The optional code stream high more than or equal to the width of described broadcast window;
Select submodule, for the optional code stream high more than or equal to the width of described broadcast window from resolution, select to differentiate The optional code stream of rate minimum is defined as described target code stream.
Device the most according to claim 6, it is characterised in that if the acquiescence code stream of described videoconference client is more than described mesh Coding stream, the most described playing module, including:
Stop submodule, for stopping playing the video to be played of described acquiescence code stream;
First sends submodule, and for sending the first playing request to server, described first playing request is for server The video to be played that described target code stream is corresponding is play in request;
Receive submodule, for receiving the video to be played that the described target code stream of described server transmission is corresponding;
Play submodule, for playing the video to be played that described target code stream is corresponding.
Device the most according to claim 6, it is characterised in that if the acquiescence code stream of described videoconference client is more than described mesh Coding stream, the most described playing module, including:
Build submodule, be used for rebuilding the second player, and provide treating of described target code stream to described second player Play the broadcast address corresponding to video;
Second sends submodule, and for sending the second playing request according to described broadcast address to server, described second plays Request is for playing, to server request, the video to be played that described target code stream is corresponding;
Destroy submodule, for receiving, when described second player, described corresponding the treating of target code stream that described server sends When playing video, destroying the first player, described first player is for playing the video to be played of acquiescence code stream;
Set up submodule, for setting up associating between described second player and described broadcast window.
Device the most according to claim 6, it is characterised in that
Described first acquisition module, specifically for obtaining the width of described broadcast window from surfaceChanged callback method High.
11. 1 kinds of video playback clients, it is characterised in that include the video playback dress as described in any one of claim 6-10 Put.
12. 1 kinds of video playback clients, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When described videoconference client plays video to be played, obtain the size of broadcast window;
From the whole optional code stream corresponding to described video to be played, determine that resolution is more than or equal to described broadcast window Size and the target code stream of minimum;
Play the video to be played that described target code stream is corresponding.
CN201610497172.3A 2016-06-29 2016-06-29 video playing control method and device Pending CN106162232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610497172.3A CN106162232A (en) 2016-06-29 2016-06-29 video playing control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610497172.3A CN106162232A (en) 2016-06-29 2016-06-29 video playing control method and device

Publications (1)

Publication Number Publication Date
CN106162232A true CN106162232A (en) 2016-11-23

Family

ID=57349684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610497172.3A Pending CN106162232A (en) 2016-06-29 2016-06-29 video playing control method and device

Country Status (1)

Country Link
CN (1) CN106162232A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396125A (en) * 2017-05-27 2017-11-24 联发科技(新加坡)私人有限公司 Decoder resources distribution method and device
CN111385607A (en) * 2018-12-29 2020-07-07 浙江宇视科技有限公司 Resolution determination method and device, storage medium, client and server
CN111954068A (en) * 2019-05-14 2020-11-17 阿里巴巴集团控股有限公司 Method and device for video definition switching and electronic device
CN113490003A (en) * 2021-06-01 2021-10-08 珠海派诺科技股份有限公司 Multi-resolution self-adaptive streaming media code rate conversion method, electronic equipment and storage medium
CN113596585A (en) * 2021-08-16 2021-11-02 杭州华橙软件技术有限公司 Video processing method and device, storage medium and electronic equipment
CN113596584A (en) * 2021-08-11 2021-11-02 北京字节跳动网络技术有限公司 Video playing method, video playing device, storage medium and computer program product
CN113891111A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN114257861A (en) * 2020-09-24 2022-03-29 腾讯科技(深圳)有限公司 Video processing method, device, storage medium and equipment
WO2023077800A1 (en) * 2021-11-04 2023-05-11 上海哔哩哔哩科技有限公司 Method and apparatus for playing live broadcast room video

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN202799004U (en) * 2012-06-04 2013-03-13 深圳市景阳科技股份有限公司 Video playback terminal and video playback system
US20140337147A1 (en) * 2013-05-13 2014-11-13 Exponential Interactive, Inc Presentation of Engagment Based Video Advertisement
CN104219579A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Video switching method and video switching device
CN104768051A (en) * 2015-03-06 2015-07-08 深圳市九洲电器有限公司 Self-adaption switching method and system for multi-coding form program streams

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN202799004U (en) * 2012-06-04 2013-03-13 深圳市景阳科技股份有限公司 Video playback terminal and video playback system
US20140337147A1 (en) * 2013-05-13 2014-11-13 Exponential Interactive, Inc Presentation of Engagment Based Video Advertisement
CN104219579A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Video switching method and video switching device
CN104768051A (en) * 2015-03-06 2015-07-08 深圳市九洲电器有限公司 Self-adaption switching method and system for multi-coding form program streams

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396125A (en) * 2017-05-27 2017-11-24 联发科技(新加坡)私人有限公司 Decoder resources distribution method and device
CN111385607A (en) * 2018-12-29 2020-07-07 浙江宇视科技有限公司 Resolution determination method and device, storage medium, client and server
CN111954068A (en) * 2019-05-14 2020-11-17 阿里巴巴集团控股有限公司 Method and device for video definition switching and electronic device
CN114257861A (en) * 2020-09-24 2022-03-29 腾讯科技(深圳)有限公司 Video processing method, device, storage medium and equipment
CN114257861B (en) * 2020-09-24 2024-03-19 腾讯科技(深圳)有限公司 Video processing method, device, storage medium and equipment
CN113490003A (en) * 2021-06-01 2021-10-08 珠海派诺科技股份有限公司 Multi-resolution self-adaptive streaming media code rate conversion method, electronic equipment and storage medium
CN113596584A (en) * 2021-08-11 2021-11-02 北京字节跳动网络技术有限公司 Video playing method, video playing device, storage medium and computer program product
CN113596585A (en) * 2021-08-16 2021-11-02 杭州华橙软件技术有限公司 Video processing method and device, storage medium and electronic equipment
CN113891111A (en) * 2021-09-29 2022-01-04 北京拙河科技有限公司 Live broadcast method, device, medium and equipment for billion pixel video
CN113891111B (en) * 2021-09-29 2023-11-21 北京拙河科技有限公司 Live broadcasting method, device, medium and equipment of billion pixel video
WO2023077800A1 (en) * 2021-11-04 2023-05-11 上海哔哩哔哩科技有限公司 Method and apparatus for playing live broadcast room video

Similar Documents

Publication Publication Date Title
CN106162232A (en) video playing control method and device
CN107533417B (en) Presenting messages in a communication session
CN110073642B (en) Encoding optimization for obfuscated media
CN111314741B (en) Video super-resolution processing method and device, electronic equipment and storage medium
CN107040794A (en) Video broadcasting method, server, virtual reality device and panoramic virtual reality play system
EP3266197A1 (en) Visual configuration for communication session participants
CN110070496B (en) Method and device for generating image special effect and hardware device
US11582506B2 (en) Video processing method and apparatus, and storage medium
CN114501062A (en) Video rendering coordination method, device, equipment and storage medium
WO2017080175A1 (en) Multi-camera used video player, playing system and playing method
US20180249213A1 (en) Cognitive image obstruction
CN112291587A (en) Dynamic video frame processing method, system, medium and server of remote desktop
CN113542660A (en) Method, system and storage medium for realizing conference multi-picture high-definition display
CN114339412A (en) Video quality enhancement method, mobile terminal, storage medium and device
JP6309004B2 (en) Video display changes for video conferencing environments
CN109309805B (en) Multi-window display method, device, equipment and system for video conference
US20170142172A1 (en) Video Player for Multiple Cameras, Playing System and Playing Method
CN110446070A (en) A kind of method and apparatus of video playing
CN104618733A (en) Image remote projection method and related device
CN113630575B (en) Method, system and storage medium for displaying images of multi-person online video conference
CN114205359A (en) Video rendering coordination method, device and equipment
CN114630184A (en) Video rendering method, device, equipment and computer readable storage medium
CN107004018B (en) Data processing method and device
CN108769565B (en) Automatic switching method of picture layout, server and local recording and broadcasting system
CN115278278B (en) Page display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123