CN109842818A - A kind of video broadcasting method, device, computer equipment and storage medium - Google Patents
A kind of video broadcasting method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109842818A CN109842818A CN201910002642.8A CN201910002642A CN109842818A CN 109842818 A CN109842818 A CN 109842818A CN 201910002642 A CN201910002642 A CN 201910002642A CN 109842818 A CN109842818 A CN 109842818A
- Authority
- CN
- China
- Prior art keywords
- video
- state
- controller
- control
- video controller
- 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
Links
Abstract
The invention discloses a kind of video broadcasting methods, device, computer equipment and storage medium, when receiving broadcasting video instructions, judge whether Video Controller has created, Video Controller is suspension windows, video player control is inserted into Video Controller, information shows control and interface control buttons control, it includes state one, state two and three or three kinds of working conditions of state, and state one and state two, state one and state three are directly changeable: when carrying out video playing, no matter which kind of working condition is in, Video Controller is in current application interface top layer always, as long as therefore Video Controller is not closed, user can check all the elements in Video Controller, including but not limited to video.Meanwhile by the free switching between state one and state two, three, user can be according to current demand, and operating mode required for selecting meets the needs of under user's different application scene, degree of improving the user experience.
Description
Technical field
The present invention relates to electronic information field more particularly to a kind of video broadcasting method, video player, computer equipments
And storage medium.
Background technique
With the development of electronic information technology, more and more information are interacted by way of video, and user passes through
Video can watch news, film, programme televised live etc., viewing video accounted in user's daily routines specific gravity is increasing, because
This, user is also more and more for the functional requirement of video player.
Currently, mobile terminal from internet multimedia program request and live video using more and more extensive, with movement
The continuous development of Internet technology, mobile network's speed are greatly improved, and people are more next for the use of mobile video scene
It is more, and mobile video is increasingly liked by people with its convenient, fast feature.Especially people in one's spare time, very
To being to watch video on demand/live broadcast content in the fragmentation time on and off duty, trifling view of time can be thus made full use of
See interested video program.User can watch video program by the broadcast window of video player, however user is seeing
During seeing video program, it is desirable to other things or right in APP can be browsed in the case where not closing video player
Video carries out comment and writes the operation such as barrage, and still, in the prior art, video player function is excessively single, many times can not
Meet the requirement of designer or user.
Summary of the invention
The object of the present invention is to provide a kind of video broadcasting method, device, computer equipment and storage mediums, for solving
Problem of the existing technology.
To achieve the above object, the present invention provides a kind of video broadcasting method, comprising the following steps:
A kind of video broadcasting method, comprising the following steps:
When receiving broadcasting video instructions, judge whether Video Controller has created, the Video Controller is to suspend
Window, the Video Controller include state one, state two and three or three kinds of working conditions of state, and state one and state two, shape
State one and state three are changeable:
If S1 judgement does not create, Video Controller is created, with one mode playback video of state;If judging the video
Controller has created, directly with one mode playback video of state;
The step S1, the Video Controller creation include the following steps:
S11 creates Video Controller, and the Video Controller is suspension windows, adds video in the Video Controller
Player control, information show control and interface control buttons control, and the Video Controller size is equal to current application circle
Face size, the video player control show control for showing that video to be played is related for playing video, the information
Data, the video related data to be played include video comments, video author, combination one or more in associated video.
The interface control buttons control includes the switching push button control of state one and state two, state one and state three;
S12 obtains video data to be played and video related data to be played, refreshes on the Video terminal controller and loads
All controls;
Video player control described in S13 plays video, while the information shows that control loads broadcasting video correlation
Data;
During S2 is to play video in one mode of state, if detecting the trigger event for reducing video playing
When, it switches to state two modes and plays video, comprising:
S21 keeps the data source of Video Controller constant, reduces the Video Controller and video player size;
Other controls in addition to video player are hidden in S22 Video Controller, increase Video Controller close control with
And one pattern recovery control of state, while all controls in video player are hidden, increase video player and plays and suspend
Control;
S23 judges whether current application interface bottom has navigation bar, if judgement has navigation bar, Video Controller window is moved
It moves to the navigation bar top, and continues to be suspended on application interface;If judging no navigation bar, Video Controller window is moved
Application interface bottom is moved, and continues to be suspended on application interface;
S24 video player load video resource simultaneously continues current broadcast state;
During S3 is to play video in state two modes, if detecting the triggering for restoring one play mode of state
When event, one mode playback video of state is switched to:
Video Controller dimension enlargement described in S31 is to entire application interface size;
Video player size described in S32 accordingly expands and loads video resource and corresponding broadcast state, hides described
Broadcasting and tentative button and closing page button, increase the interface control buttons control and the information shows control;
During S4 plays video in one mode of state, if detecting the trigger event for played in full screen video
When, then it switches to the broadcasting of state three: keeping other settings constant, the video player dimension enlargement to entire application interface ruler
Very little size, and it is adjusted to transverse screen broadcasting;
During S5 is to play video in three mode of state, if detecting the triggering for restoring one play mode of state
When event, the broadcasting of state one is switched to, the video player size is reduced, is adjusted to vertical screen broadcasting.
Preferably, the step S2, during playing video in state two modes, when browsing current application interface
When, the Video Controller is located at that the application interface bottom is constant, and state remains unchanged;
Preferably, the step S2, during playing video in state two modes, when switching application interface, institute
It states Video Controller and is suspended in application interface upper layer always, and the view is adjusted with the presence or absence of navigation bar according to current application interface
The position of frequency controller is in application interface bottom or is located at the navigation bar top.
Preferably, the step S2 closes video control when detecting during playing video in state two modes
When the trigger event of device, the Video Controller data source is emptied, closes the Video Controller window.
Preferably, when detecting Switch Video source, video playing is switched to one mode of state, then obtains new video
Corresponding data, change the data source of Video Controller, and Video Controller loads new data source.
Preferably, it is closing controller interface button that the Video Controller, which closes control, or to double-click video control
Device instruction or the instruction of long-pressing Video Controller;And/or the one pattern recovery control of state is on the Video Controller of diminution
The gesture instruction of addition.
Preferably, the video that the corresponding video data of the video information is loaded into the Video Controller is broadcast
It puts in device and plays out, comprising:
Corresponding call instruction is generated according to video information, is sent to server;
The video player that the video data that reception returns is loaded into Video Controller plays out;
The video related information for receiving return is loaded into Video Controller and corresponds on control and show;
It checks corresponding relevant information, generates corresponding call instruction, be sent to server, and receive and be loaded into video control
Device processed is corresponded on control and is shown.
To achieve the above object, the present invention also provides a kind of video play devices comprising:
Video Controller creation module is used for when detecting the trigger event for creating Video Controller, creation
Video Controller and with one mode playback video of state, the Video Controller is suspension windows, the Video Controller interpolation
Enter video player control, information display control and interface control buttons control, the video player control is for playing
Video, the information show control for showing video related data to be played, and the interface control buttons control includes state
One with state two, state one and state three switching push button control;The Video Controller includes state one, state two and state
Three or three kinds of working conditions, and state one and state two, state one and state three are directly changeable: one working condition of state
In, the Video Controller is located at current application interface top layer, and the Video Controller size is equal to current application interface ruler
It is very little;In two working condition of state, the Video Controller window and video player reduce, and the state three works
State is used for played in full screen video;
Switching module is used to control video playing in state one and state two, state one and state according to triggering command
It is mutually converted between three.
Position judging module is used to judge that the presently described application page of the Video Controller is according to triggering command
It is no to have navigation bar, and the Video Controller is correspondingly arranged in the navigation bar top or is directly arranged at presently described application
Page bottom.
Button creation and hidden module are used for when state one and state two are mutually converted, according to current play status,
It hides the original button of player and is arranged and adds button, or hide and add button, restore original button setting.
Video Controller closedown module is detecting when for playing video with state two modes for closing video control
When the trigger event of device processed, the Video Controller is closed.
Further, the trigger event for closing Video Controller is the click behaviour for player close button
Make;Or, the trigger event for closing Video Controller is the slide downward operation for Video Controller window.
Preferably, during to play video in state two modes, when browsing current application interface, the video control
Device processed is located at that the application interface bottom is constant, and state remains unchanged;
Preferably, during to play video in state two modes, when switching application interface, the Video Controller
Always it is suspended in application interface upper layer, and adjusts the position of the Video Controller with the presence or absence of navigation bar according to current application interface
It sets in application interface bottom or is located at the navigation bar top.
Preferably.During playing video in state two modes, when the triggering thing for detecting closing Video Controller
When part, the Video Controller data source is emptied, closes the Video Controller window.
Preferably, when detecting Switch Video source, video playing is switched to one mode of state, then obtains new video
Corresponding data, change the data source of Video Controller, and Video Controller loads new data source.
Preferably, the video related data to be played include video comments, video author, it is a kind of or more in associated video
The combination of kind.
Preferably, the video that the corresponding video data of the video information is loaded into the Video Controller is broadcast
It puts in device and plays out, comprising:
Corresponding call instruction is generated according to video information, is sent to server;
The video player that the video data that reception returns is loaded into Video Controller plays out;
The video related information for receiving return is loaded into Video Controller and corresponds on control and show;
It checks corresponding relevant information, generates corresponding call instruction, be sent to server, and receive and be loaded into video control
Device processed is corresponded on control and is shown.
To achieve the above object, it the present invention also provides a kind of computer equipment, including memory, processor and is stored in
On memory and the computer program that can run on a processor, the processor are realized above-mentioned when executing the computer program
The step of method.
To achieve the above object, the present invention also provides computer readable storage mediums, are stored thereon with computer program, institute
State the step of above method is realized when computer program is executed by processor.
Video broadcasting method, device, computer equipment and storage medium provided by the invention, the basis carried based on system
Controller creates Video Controller window, which is suspension windows, is inserted into video playing in Video Controller
Device control, interface control buttons control (switching for working condition) and other self-defined control (such as comments controls, related view
Frequency display control etc.), when carrying out video playing, no matter it is in which kind of working condition, Video Controller is in always currently answers
With interface top layer, as long as therefore Video Controller do not close, user can check all the elements in Video Controller, including but
It is not limited to video.Meanwhile video playing includes three kinds of working conditions, when being in one mode of state, Video Controller is full frame, and
Video player reduces, and only shows the content in Video Controller at this time, user is checked when seeing video in the Video Controller
Other content include associated video or comment etc.;When being in state two modes, Video Controller is with video player
Diminution mode shows the content in display current application interface content and Video Controller at this time, and user can be when seeing video
Check all things of other pages APP Nei;When being in three mode of state, Video Controller screen mode toggle+video player
Transverse screen mode (video player screen mode toggle).Video player content is only shown at this time, and user may be selected only to see video, pass through
Free switching between state one and state two, three, user can be according to current demands, and operating mode required for selecting meets
Demand under user's different application scene, degree of improving the user experience.
Detailed description of the invention
Fig. 1 is the flow chart of the bright playback method embodiment one of this hair video;
Fig. 2 is the schematic diagram of working condition one in video broadcasting method shown in Fig. 1;
Fig. 3 (A) is in the schematic diagram of 21 embodiment of video broadcasting method working condition shown in Fig. 1;
Fig. 3 (B) is in the schematic diagram of another embodiment of video broadcasting method working condition two shown in Fig. 1;
Fig. 3 (C) is in the schematic diagram that application page switches in video broadcasting method working condition two shown in Fig. 1;
Fig. 4 is the schematic diagram of working condition three in video broadcasting method shown in Fig. 1;
Fig. 5 is the hardware structural diagram of the bright player of this hair video of the invention;
Fig. 6 is the program module schematic diagram of the bright player of this hair video of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
Video broadcasting method, device, computer equipment and storage medium provided by the invention, by separately creating video control
Device processed, the Video Controller are suspension windows, and Video Controller adds video player control, information shows control and interface
Control button control, in illustrated embodiment comprising video player control and for showing and the control of video related content
Part (such as comment, author, video associated video), and for state one and state two, state one and the switching of state three
Interface control buttons control;Video player is placed in screen Video Controller window, and Video Controller windows content can be made by oneself
Justice, Video Controller is in all application page the tops always, as long as not closing Video Controller window, no matter in any
Status user can check the content in Video Controller.Meanwhile Video Controller includes state one, state two, state three
Kind mode, can be defined as follows between state one and state two, state one and state three with free switching, each state:
One mode of state: Video Controller screen mode toggle+video player reduces mode.Video Controller size etc. at this time
In current application interface dimensions, Video Controller content is only shown, user can be to check in the Video Controller when seeing video
Other content such as information show the content (including associated video or comment) that shows in control, see Fig. 2;
State two modes: Video Controller reduces mode.Show current application interface content and video control simultaneously at this time
Content in device, user can be to check all the elements of the other application page in APP when seeing video.See Fig. 3 (A);Video control
Device window processed reduces and is still located on current all application interface top layers, hides in addition to video player in Video Controller
Other controls increase Video Controller close button, click close button, close Video Controller;Video player accordingly contracts
It is small, while all controls in video player are hidden, increase video player broadcasting and pause button.
Three mode of state: Video Controller screen mode toggle+video player transverse screen mode (video player screen mode toggle).
Video Controller size constancy at this time, video player size increase to current application interface dimensions, only show video player
Middle content, user's selection only see video, see Fig. 4.When carrying out video playing, user can according to actual needs, required for selection
Mode play out, improve the Experience Degree of user.
Embodiment one
Referring to Fig. 1, in a kind of video method of the present embodiment, comprising the following steps:
When receiving broadcasting video instructions, judging whether Video Controller has created, Video Controller is suspension windows,
Insertion video player control, information show control and interface control buttons control in Video Controller comprising state one,
State two and three or three kinds of working conditions of state, and state one and state two, state one and state three are directly changeable:
If S1 judgement does not create, Video Controller is created, with one mode playback video of state, Video Controller is added
Current application interface top layer is added to, Video Controller size is equal to application interface size, and Video Controller obtains and loads view
Frequency evidence, and video is played via video player;If judging, Video Controller has been created, directly with one mode of state
Play video;
Step S1, creation Video Controller include the following steps:
S11 creates Video Controller, and Video Controller is suspension windows, adds video player control in Video Controller
Part, information show control and interface control buttons control, interface control buttons control include state one and state two, state one
With the switching push button control of state three;
The controller that Video Controller shown in the present invention is carried by inheritance system, and new definition is added to create view
Frequency controller;By taking iOS as an example, Video Controller inherits base controller UIViewController) creation Video Controller, and
Then the primary attributes such as designated controller size, color, offset, shade add video playing in the Video Controller
Device, information display interface and controller interface control buttons;Video Controller is added to current application interface UIWindow
Page top layer, Video Controller size are equal to UIWindow interface dimensions.Controller interface control buttons include: video control
Device upper left corner button, Video Controller can be reduced by, which clicking the button, is switched to state two.It puts in the video player lower right corner
Big reduction button, clicking the button can be with the switching of Switch Video controller state one and state three.For Android system or PC
System, step is similar, is not repeating suddenly herein.
S12 obtains video data to be played and video related data to be played, renders display interface;Wherein, to be played
Video related data includes video comments, video author, combination one or more in associated video.
S13 video player plays video, while display interface loads the broadcasting video related data.
During S2 is to play video in one mode of state, if detecting the trigger event for reducing video playing
When, switch to the broadcasting of state two: where the trigger event for reducing video playing can specifically include to click reduction button
Following steps:
S21 keeps the data source of Video Controller constant, reduces Video Controller window and video player;
Other controls in addition to video player are hidden in S22 Video Controller, increase Video Controller close control with
And one pattern recovery control of state, while all controls in video player are hidden, increase video player and plays and suspend
Control;
Wherein, above-mentioned Video Controller, which closes control, can be off controller interface button, or double-click Video Controller,
Or the instruction of long-pressing Video Controller, during playing video in state two modes, video control is closed when detecting
When device event, Video Controller data source is emptied, closes Video Controller window.Correspondingly, above-mentioned for closing video control
The trigger event of device is the clicking operation for player close button;It or is the double-click or long-pressing for Video Controller window
Operation.One pattern recovery control of state can be the gesture instruction added on the Video Controller of diminution, and such user clicks view
Frequency controller can be with amplified video controller, into Video Controller magnifying state;
Step S23 judges whether current application interface bottom has navigation bar, if judgement has navigation bar, by Video Controller window
Mouth is moved to navigation bar top, and continues to be suspended on application interface, as shown in Fig. 3 (A);It, will view if judging no navigation bar
Frequency controller window is moved to application interface bottom, and continues to be suspended on application interface, as shown in Fig. 3 (B).
When this Video Controller and video player state after setting completed, at this time judgement using Video Controller reduce after
Whether bottom navigation bar (tarbar) is had on the Video Controller of display, if there is bottom navigation bar: calculating position, so that reducing
Video Controller afterwards not block bottom navigation bar.Apart from bottom navigation certain distance, this distance be can customize.If not yet
Have bottom navigation bar: direct range application page bottom certain distance, the distance can customize.In this way, navigation can be placed
Column is blocked by Video Controller, influences the operation of user.
S24 video player load video resource simultaneously continues current broadcast state;
When playing video with state two modes, if user switches over the operation of application interface, since video controls
Device is suspension windows, continues to keep Video Controller that be suspended in application interface upper layer always constant, and according to current application interface
In application interface bottom or it is located at navigation bar top with the presence or absence of the position of navigation bar adjustment Video Controller, such as Fig. 3 (C) institute
Show.I.e. such as when page section: page A to page B judges whether page B has bottom navigation bar, if there is then video controls
Device has the original position in application to do corresponding variation, and Video Controller is in application page top layer.The B page is shown
Region can do corresponding adjustment.That is: display area can reduce.The bottommost of display area can move up a distance.Guarantee
Apart from certain distance at the top of Video Controller, which be can define.If user's selection is when in other of browsing current application interface
Rong Shi, then Video Controller is located at application interface bottom, and state remains unchanged.
During S3 is to play video in state two modes, if detecting the triggering for restoring one play mode of state
When event, the broadcasting of state one is switched to:
S31 Video Controller dimension enlargement is to entire application interface size;
S32 video player expands and is located at the top of Video Controller, shows the original control of Video Controller, hides step
The Video Controller added in S22 closes control and one pattern recovery control of state, video player load video resource and
Corresponding broadcast state shows original control on video player, and hide the video player added in step S22 play and
Suspend control;
During S4 plays video in one mode of state, if detecting the trigger event for played in full screen video
When, switch to the broadcasting of state three: as shown in figure 4, keeping other settings constant, video player size broadcasts long width according to video
Change, and current application interface size is extended to, as a preferred embodiment, video player can be adjusted to transverse screen broadcasting.
During S5 is to play video in three mode of state, if detecting the triggering for restoring one play mode of state
When event, switches to the broadcasting of state one: reducing video player size, and video player is moved to Video Controller top
Portion.As a preferred embodiment, video player can be adjusted to vertical screen broadcasting.
As a preferred embodiment, video broadcasting method shown in the present invention adds by the corresponding video data of video information
It is downloaded in the video player in Video Controller and plays out, comprising: corresponding call instruction, hair are generated according to video information
Give server;The video player that the video data that reception returns is loaded into Video Controller plays out;Receive return
Video related information (such as: comment, author, video associated video), which is loaded into the corresponding control of Video Controller, to be shown;It looks into
It sees corresponding relevant information, generates corresponding call instruction, be sent to server, and receive that be loaded into Video Controller corresponding
It is shown in control.
Video broadcasting method shown in the present invention is by creating Video Controller window, and insertion video is broadcast in Video Controller
Device and other custom contents (such as comments control, associated video show control) are put, when carrying out video playing, nothing is punished
In which kind of working condition, Video Controller is in current application interface top layer always, as long as therefore Video Controller do not close, use
Family can check all the elements in Video Controller, including but not limited to video.Meanwhile video playing includes three kinds of work shapes
State, when being in one mode of state, Video Controller is full frame, and video player reduces, at this time can be to check when seeing video
Other content in the Video Controller includes associated video or comment etc.;When be in state two modes when, Video Controller with
Video player is diminution mode, checks all things of other pages APP Nei when seeing video at this time;When in state three
When mode, Video Controller screen mode toggle+video player transverse screen mode (video player screen mode toggle).User is optional at this time
It selects and only sees video, by the free switching between state one and state two, three, user can be according to current demand, required for selection
Operating mode, meet the needs of under user's different application scene, degree of improving the user experience.
In addition, when detecting Switch Video source, Video Controller is switched to state one, so as a preferred embodiment
The corresponding data of new video are obtained afterwards, change the data source of Video Controller, Video Controller loads new data source.It sets in this way
Set, user clicks new video, not only can be only seen new video, it is also possible to seen in Video Controller the lower video other
Comment information in relevant information, such as comments control.
Embodiment 2
Please continue to refer to Fig. 5, the present invention also provides a kind of video play device 10, also referred to as video player,
Include:
Video Controller creation module 11 is used for when detecting the trigger event for creating Video Controller, wound
Build Video Controller and with one mode playback video of state, Video Controller is suspension windows, is inserted into video in Video Controller
Player control, information show control and interface control buttons control, and for video player control for playing video, information is aobvious
Show control for showing video related data to be played, as a preferred embodiment, interface control buttons control include state one with
The switching push button control of state two, state one and state three, video related data to be played can for video comments, video author,
One or more combination in associated video, Video Controller include state one, state two and three or three kinds of working conditions of state, and
State one and state two, state one and state three are directly changeable: in one working condition of state, Video Controller, which is located at, is currently answered
With interface top layer, Video Controller size is equal to current application interface dimensions, and video player is located at the top of Video Controller;
In two working condition of state, Video Controller window and video player reduce, i.e., Video Controller window reduce and still
So it is located at current application interface top layer, video player accordingly reduces;Three working condition of state is used for played in full screen video, i.e.,
Video Controller window size keeps constant with state one and continues to be located at preceding application interface top layer, and video player is extended to
Current application interface dimensions.
Switching module 12, be used to be controlled according to triggering command Video Controller state one and state two, state one with
It is mutually converted between state three.
Position judging module 13 is used to judge whether the Video Controller current application page leads according to triggering command
Navigate column, and Video Controller is correspondingly arranged in navigation bar top or is directly arranged at current application page bottom.Above-mentioned triggering
When instruction includes the conversion of state one to state two, or with state two modes broadcasting video, when needing to switch current page, position
Whether according to application page have navigation bar, judge Video Controller specific location if setting judgment module, lives navigation bar to prevent backstop.
Button creation and hidden module 14 are used for when state one and state two are mutually converted, according to currently playing shape
State hides the original button of video play device and is arranged and adds button, or hides and add button, restores original button setting.Institute
Stating and adding button includes that Video Controller closes control and one pattern recovery control of state and video player plays and temporarily
Stop control;
Video Controller closedown module 15 is detecting when for playing video with state two modes for closing video
When the trigger event of controller, Video Controller is closed.Wherein, the trigger event for closing Video Controller is for broadcasting
The clicking operation of device close button;Or, the trigger event for closing Video Controller is for for Video Controller window
Double-click or long press operation.
Preferably, during to play video in state two modes, when browsing current application interface, the video control
Device processed is located at that the application interface bottom is constant, and state remains unchanged;
Preferably, during to play video in state two modes, when switching application interface, the Video Controller
Always it is suspended in application interface upper layer, and adjusts the position of the Video Controller with the presence or absence of navigation bar according to current application interface
It sets in application interface bottom or is located at the navigation bar top.
Preferably.During playing video in state two modes, when the triggering thing for detecting closing Video Controller
When part, the Video Controller data source is emptied, closes the Video Controller window.
Preferably, when detecting Switch Video source, video playing is switched to one mode of state, then obtains new video
Corresponding data, change the data source of Video Controller, and Video Controller loads new data source.
Preferably, the video related data to be played include video comments, video author, it is a kind of or more in associated video
The combination of kind.
Preferably, the video that the corresponding video data of the video information is loaded into the Video Controller is broadcast
It puts in device and plays out, comprising:
Corresponding call instruction is generated according to video information, is sent to server;
The video player that the video data that reception returns is loaded into Video Controller plays out;
The video related information for receiving return is loaded into Video Controller and corresponds on control and show;
It checks corresponding relevant information, generates corresponding call instruction, be sent to server, and receive and be loaded into video control
Device processed is corresponded on control and is shown.
Video broadcasting device provided by the invention creates Video Controller window based on the base controller that system carries, should
Video Controller window is suspension windows, is inserted into video player control in Video Controller, interface control buttons control (is used for
Working condition switching) and other self-defined controls (such as comments control, associated video show control), carrying out video playing
When, no matter it is in which kind of working condition, Video Controller is in current application interface top layer always, as long as therefore Video Controller
It does not close, user can check all the elements in Video Controller, including but not limited to video.Meanwhile video playing includes
Three kinds of working conditions, when being in one mode of state, Video Controller is full frame, and video player reduces, and only shows view at this time
Content in frequency controller, the other content that user is checked when seeing video in the Video Controller include associated video or comment
Deng;When being in state two modes, Video Controller and video player are diminution mode, show display current application at this time
Content in interface content and Video Controller, user can be to check all things of other pages in APP when seeing video;When
When in three mode of state, Video Controller screen mode toggle+video player transverse screen mode (video player screen mode toggle).This
When only show video player content, user may be selected only to see video, pass through freely cutting between state one and state two, three
It changes, user can be according to current demand, and operating mode required for selecting meets the needs of under user's different application scene, improves
User experience degree.
Embodiment 3
The present invention also provides a kind of computer equipments, can such as execute smart phone, tablet computer, the notebook electricity of program
Brain, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server (including independent clothes
Server cluster composed by business device or multiple servers) etc..The computer equipment 20 of the present embodiment includes at least but unlimited
In: memory 21, the processor 22 of connection can be in communication with each other by system bus, as shown in Figure 3.It should be pointed out that Fig. 6 is only
The computer equipment 20 with component 21-22 is shown, it should be understood that be not required for implementing all components shown,
The implementation that can be substituted is more or less component.
In the present embodiment, memory 21 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory
(for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic
Disk, CD etc..In some embodiments, memory 21 can be the internal storage unit of computer equipment 20, such as the calculating
The hard disk or memory of machine equipment 20.In further embodiments, memory 21 is also possible to the external storage of computer equipment 20
The plug-in type hard disk being equipped in equipment, such as the computer equipment 20, intelligent memory card (Smart Media Card, SMC), peace
Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 21 can also both include meter
The internal storage unit for calculating machine equipment 20 also includes its External memory equipment.In the present embodiment, memory 21 is commonly used in storage
It is installed on the program of video play device 10 in the operating system and types of applications software, such as embodiment 2 of computer equipment 20
Code etc..In addition, memory 21 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in control computer equipment
20 overall operation.In the present embodiment, program code or processing data of the processor 22 for being stored in run memory 21,
Such as operation video play device 10, to realize the video broadcasting method of embodiment one.
Embodiment 4
The present invention also provides a kind of computer readable storage mediums, such as flash memory, hard disk, multimedia card, card-type memory (example
Such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic
Disk, CD, server, App are stored thereon with computer program, phase are realized when program is executed by processor using store etc.
Answer function.The computer readable storage medium of the present embodiment is for storing video play device 10, realization when being executed by processor
The video playing control method of embodiment one.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of video broadcasting method, which comprises the following steps:
When receiving broadcasting video instructions, judging whether Video Controller has created, the Video Controller is suspension windows,
The Video Controller includes state one, state two and three or three kinds of working conditions of state, and state one and state two, state one with
State three is changeable:
If S1 judgement does not create, Video Controller is created, with one mode playback video of state;If judging the video control
Device has created, directly with one mode playback video of state;
The step S1 is included the following steps: with one mode playback video of state
S11 creates Video Controller, and the Video Controller is suspension windows, adds video playing in the Video Controller
Device control, information show control and interface control buttons control, and the Video Controller size is equal to current application interface ruler
Very little, the video player control shows that control is used to show video related data to be played for playing video, the information,
The video related data to be played includes video comments, video author, combination one or more in associated video, the boundary
Face control button control includes the switching push button control of state one and state two, state one and state three;
S12 obtains video data to be played and video related data to be played, refreshes the institute loaded on the Video terminal controller
There is control;
Video player control described in S13 plays video, while the information shows that control loads the broadcasting video related data;
During S2 is to play video in one mode of state, if detect the trigger event for reducing video playing, cut
It shifts to state two modes and plays video, comprising:
S21 keeps the data source of Video Controller constant, reduces the Video Controller and video player size;
Other controls in addition to video player are hidden in S22 Video Controller, are increased Video Controller and are closed control and shape
One pattern recovery control of state, while all controls in video player are hidden, increase video player and plays and suspend control;
S23 judges whether current application interface bottom has navigation bar, if judgement has navigation bar, Video Controller window is moved to
The navigation bar top, and continue to be suspended on application interface;If judging no navigation bar, Video Controller window is moved to
Application interface bottom, and continue to be suspended on application interface;
S24 video player load video resource simultaneously continues current broadcast state;
During S3 is to play video in state two modes, if detecting the trigger event for restoring one play mode of state
When, switch to one mode playback video of state:
Video Controller dimension enlargement described in S31 is to entire application interface size;
Video player size described in S32 accordingly expands and loads video resource and corresponding broadcast state, hides the broadcasting
With tentative button and closing page button, increases the interface control buttons control and the information shows control;
During S4 plays video in one mode of state, if detect the trigger event for played in full screen video,
It then switches to the broadcasting of state three: keeping other settings constant, the video player dimension enlargement to entire application interface size
Size, and it is adjusted to transverse screen broadcasting;
During S5 is to play video in three mode of state, if detecting the trigger event for restoring one play mode of state
When, the broadcasting of state one is switched to, the video player size is reduced, is adjusted to vertical screen broadcasting.
2. video broadcasting method according to claim 1, which is characterized in that the step S2, to be broadcast in state two modes
During putting video, when browsing current application interface, it is constant that the Video Controller is located at the application interface bottom, shape
State remains unchanged.
3. video broadcasting method according to claim 1, which is characterized in that the step S2, to be broadcast in state two modes
During putting video, when switching application interface, the Video Controller is suspended in application interface upper layer always, and according to working as
Preceding application interface adjusts the position of the Video Controller in application interface bottom with the presence or absence of navigation bar or is located at the navigation
Column top.
4. video broadcasting method according to claim 1, which is characterized in that the step S2, to be broadcast in state two modes
During putting video, when detecting the trigger event for closing Video Controller, the Video Controller data source is emptied, is closed
Close the Video Controller window.
5. video broadcasting method according to claim 1, which is characterized in that when detecting Switch Video source, by video
Broadcasting is switched to one mode of state, then obtains the corresponding data of new video, changes the data source of Video Controller, video control
Device loads new data source.
6. video broadcasting method according to claim 1, which is characterized in that it is to close that the Video Controller, which closes control,
Controller interface button, or to double-click Video Controller instruction or the instruction of long-pressing Video Controller;
And/or the one pattern recovery control of state is the gesture instruction added on the Video Controller of diminution.
7. video broadcasting method according to claim 1, which is characterized in that described by the corresponding video of the video information
It is played out in the video player that data are loaded into the Video Controller, comprising:
Corresponding call instruction is generated according to video information, is sent to server;
The video player that the video data that reception returns is loaded into Video Controller plays out;
The video related information for receiving return is loaded into Video Controller and corresponds on control and show;
It checks corresponding relevant information, generates corresponding call instruction, be sent to server, and receive and be loaded into Video Controller
On corresponding control and show.
8. a kind of video play device, characterized in that it comprises:
Video Controller creation module is used for when detecting the trigger event for creating Video Controller, creates video
Controller and with one mode playback video of state, the Video Controller is suspension windows, insertion view in the Video Controller
Frequency player control, information show that control and interface control buttons control, the video player control are used to play video,
The information shows control for showing that video related data to be played, the interface control buttons control include state one and shape
The switching push button control of state two, state one and state three;The Video Controller include state one, state two with three or three kinds of state
Working condition, and state one and state two, state one and state three are directly changeable: it is described in one working condition of state
Video Controller is located at current application interface top layer, and the Video Controller size is equal to current application interface dimensions, described
Video player is located at the top of the Video Controller;In two working condition of state, the Video Controller window and
Video player reduces, and three working condition of state is used for played in full screen video;
Switching module, be used to be controlled according to triggering command video playing state one and state two, state one and state three it
Between mutually convert;
Position judging module is used to judge whether the Video Controller current application page has navigation bar according to triggering command, and
Video Controller is correspondingly arranged in navigation bar top or is directly arranged at current application page bottom;
Button creation and hidden module are used to, according to current play status, hide when state one and state two are mutually converted
Original button is arranged and adds button, or hides and add button, restores original button setting;The button of adding includes video control
Device processed closes control and one pattern recovery control of state and video player plays and pause control;
Video Controller closedown module is detecting when for playing video with state two modes for closing Video Controller
Trigger event when, close Video Controller.
9. a kind of computer equipment, can run on a memory and on a processor including memory, processor and storage
Computer program, which is characterized in that the processor realizes any one of claim 1 to 7 institute when executing the computer program
The step of stating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claim 1 to 7 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002642.8A CN109842818A (en) | 2019-01-02 | 2019-01-02 | A kind of video broadcasting method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002642.8A CN109842818A (en) | 2019-01-02 | 2019-01-02 | A kind of video broadcasting method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109842818A true CN109842818A (en) | 2019-06-04 |
Family
ID=66883664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002642.8A Pending CN109842818A (en) | 2019-01-02 | 2019-01-02 | A kind of video broadcasting method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109842818A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324695A (en) * | 2019-07-05 | 2019-10-11 | 江苏铁锚玻璃股份有限公司 | Interface based on the broadcast of Customer information display system and video playing |
CN110611844A (en) * | 2019-10-18 | 2019-12-24 | 网易(杭州)网络有限公司 | Control method and device of player in application and video playing device |
CN111405377A (en) * | 2020-03-19 | 2020-07-10 | 百度在线网络技术(北京)有限公司 | Video playing method and device, electronic equipment and storage medium |
CN111459487A (en) * | 2020-04-02 | 2020-07-28 | 上海极链网络科技有限公司 | Method, device and equipment for displaying control and storage medium |
CN112383808A (en) * | 2020-11-02 | 2021-02-19 | 广州繁星互娱信息科技有限公司 | Video playing method, device, terminal and storage medium |
CN112399231A (en) * | 2019-08-19 | 2021-02-23 | 上海哔哩哔哩科技有限公司 | Playing method |
CN112732157A (en) * | 2020-12-31 | 2021-04-30 | 展讯通信(天津)有限公司 | Media file playing control method and device, electronic equipment and storage medium |
CN112995743A (en) * | 2021-02-03 | 2021-06-18 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
WO2021160143A1 (en) * | 2020-02-11 | 2021-08-19 | 北京字节跳动网络技术有限公司 | Method and apparatus for displaying video, electronic device and medium |
CN113438533A (en) * | 2021-05-31 | 2021-09-24 | 北京达佳互联信息技术有限公司 | Video display method and device, electronic equipment and storage medium |
CN113938633A (en) * | 2020-06-29 | 2022-01-14 | 聚好看科技股份有限公司 | Video call processing method and display device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150248722A1 (en) * | 2014-03-03 | 2015-09-03 | Swell, Inc. | Web based interactive multimedia system |
CN104965693A (en) * | 2014-08-29 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Video processing method and system |
CN106303664A (en) * | 2016-10-13 | 2017-01-04 | 合信息技术(北京)有限公司 | Video broadcasting method and device |
-
2019
- 2019-01-02 CN CN201910002642.8A patent/CN109842818A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150248722A1 (en) * | 2014-03-03 | 2015-09-03 | Swell, Inc. | Web based interactive multimedia system |
CN104965693A (en) * | 2014-08-29 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Video processing method and system |
CN106303664A (en) * | 2016-10-13 | 2017-01-04 | 合信息技术(北京)有限公司 | Video broadcasting method and device |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324695A (en) * | 2019-07-05 | 2019-10-11 | 江苏铁锚玻璃股份有限公司 | Interface based on the broadcast of Customer information display system and video playing |
CN112399231A (en) * | 2019-08-19 | 2021-02-23 | 上海哔哩哔哩科技有限公司 | Playing method |
CN112399231B (en) * | 2019-08-19 | 2023-10-24 | 上海哔哩哔哩科技有限公司 | Playing method |
CN110611844A (en) * | 2019-10-18 | 2019-12-24 | 网易(杭州)网络有限公司 | Control method and device of player in application and video playing device |
CN110611844B (en) * | 2019-10-18 | 2021-12-28 | 网易(杭州)网络有限公司 | Control method and device of player in application and video playing device |
WO2021160143A1 (en) * | 2020-02-11 | 2021-08-19 | 北京字节跳动网络技术有限公司 | Method and apparatus for displaying video, electronic device and medium |
CN111405377A (en) * | 2020-03-19 | 2020-07-10 | 百度在线网络技术(北京)有限公司 | Video playing method and device, electronic equipment and storage medium |
CN111459487A (en) * | 2020-04-02 | 2020-07-28 | 上海极链网络科技有限公司 | Method, device and equipment for displaying control and storage medium |
CN113938633A (en) * | 2020-06-29 | 2022-01-14 | 聚好看科技股份有限公司 | Video call processing method and display device |
CN113938633B (en) * | 2020-06-29 | 2023-09-08 | 聚好看科技股份有限公司 | Video call processing method and display device |
CN112383808A (en) * | 2020-11-02 | 2021-02-19 | 广州繁星互娱信息科技有限公司 | Video playing method, device, terminal and storage medium |
CN112732157A (en) * | 2020-12-31 | 2021-04-30 | 展讯通信(天津)有限公司 | Media file playing control method and device, electronic equipment and storage medium |
CN112995743A (en) * | 2021-02-03 | 2021-06-18 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
CN113438533B (en) * | 2021-05-31 | 2022-11-22 | 北京达佳互联信息技术有限公司 | Video display method and device, electronic equipment and storage medium |
CN113438533A (en) * | 2021-05-31 | 2021-09-24 | 北京达佳互联信息技术有限公司 | Video display method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109842818A (en) | A kind of video broadcasting method, device, computer equipment and storage medium | |
CN107341018B (en) | Method and device for continuously displaying view after page switching | |
CN109753326B (en) | Processing method, device, equipment and machine readable medium | |
CN103399703B (en) | The control method of the system bar of subscriber equipment and subscriber equipment | |
CN109101157B (en) | Sidebar icon setting method and device, terminal and storage medium | |
JP2020504865A (en) | Application data processing method, apparatus, and storage medium | |
US10228835B2 (en) | Method for displaying information, and terminal equipment | |
CN108810646B (en) | Group information push control method and device and computer readable storage medium | |
CN103713847A (en) | System bar control method of user equipment and user equipment | |
WO2019085820A1 (en) | Processing method, device, apparatus, and machine-readable medium | |
CN105487752A (en) | Application control method and terminal applying same | |
CN108287647B (en) | Application running method and device | |
CN112783783A (en) | Webpage point burying method, device and equipment and readable storage medium | |
CN101770371A (en) | Application theme content preview method and device | |
CN108710512B (en) | Application program preloading method and device, storage medium and intelligent terminal | |
CN105808307B (en) | Page display method and device | |
CN105677351A (en) | Multi-window compatible display method and device | |
CN110275741B (en) | Content display method and electronic equipment | |
CN111324397A (en) | Applet switching method, device, framework, equipment and readable medium | |
CN110764862A (en) | Desktop wallpaper display method and device, terminal equipment and storage medium | |
WO2019085810A1 (en) | Processing method, device, apparatus, and machine-readable medium | |
CN107562324B (en) | Data display control method and terminal | |
CN113835585A (en) | Application interface switching method, device and equipment based on navigation and storage medium | |
CN112015309B (en) | Display switching method and device and mobile terminal | |
CN105160697A (en) | Information processing method and electronic device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190604 |
|
RJ01 | Rejection of invention patent application after publication |