A kind of video broadcasting method and terminalTechnical field
The present invention relates to communication technical field, relate in particular to a kind of video broadcasting method and terminal.
Background technology
User browses the video related information in current page by the embedded browser of video application, as film information, user profile, broadcasting record etc.; When user selects a video to play in browser page, video application obtains the information of the video of selection by browser; Video application loads corresponding player simultaneously, plays the information of the video obtaining in the player loading, and covers or close the page of display video relevant information.When if user wants again to browse the relevant information of the video in browser page, video application is closed currently just at the player of displaying video, loads the browser of video application, the page of browsing video relevant information on browser.
In prior art, video application can only show the page of corresponding browser, or the page of corresponding player, cannot in displaying video, browse the information in browser page, when switching between the player page in video application and browser page, cause current page info to lose.
Summary of the invention
The invention provides a kind of video broadcasting method and terminal, to solve in prior art video application the display navigation device page and the player page simultaneously, and while switching between the player page in video application and the page of browser, the problem that causes current page info to lose.
The embodiment of the present invention provides a kind of video broadcasting method, and the method comprises:
By the page of the browser in the first video application, select video to be played, trigger the second video application operation;
By video to be played described in the player plays in described the second video application.
In above-described embodiment, in browser page in the first video application, select after video to be played, trigger the second video application and move and play this video.Owing to showing respectively corresponding browser page and the player page by two video applications, user can be when watching video browsing video relevant information, and browsing pages and the broadcasting page are in two application programs, when carrying out page switching, can not cause the loss of page info.
Further, described in the embodiment of the present invention, by video to be played described in the player plays in described the second video application, specifically comprise:
By the player being arranged in the browser page of described the first video application, control icon, control video to be played described in the player plays in described the second video application.
In above-described embodiment, by the player in the first video application, control icon, make user conveniently control player in the second video application at browser page.Player is controlled icon and is included but not limited to: Play Control icon, and suspend and control icon, closing control icon, volume controls icon, and playing progress rate is controlled icon.
Player described in the embodiment of the present invention is controlled icon and is controlled the video of selecting described in the player plays in described the second video application, specifically comprises:
Detect the player control chart target play operation in the browser page of described the first video application;
Control the player of described the second video application and carry out corresponding play operation.
In above-described embodiment, detect after player control chart target play operation, control the player of the second video application and carry out corresponding play operation.Two video applications are by communication transmitting control information, while having avoided player to control, and switch window back and forth.
Described in the embodiment of the present invention, by the video of selecting described in the player plays in described the second video application, specifically comprise:
The player plays operation to described the second video application detected;
According to described play operation, play described video to be played.
In above-described embodiment, in the second video application, player also contains Play Control icon, for controlling self.During play operation in the second video application being detected in the player page, notify and self carry out corresponding operation.
In the embodiment of the present invention, also comprise: the player detecting in described the second video application is closed, the described player triggering in the browser page of hiding the first video application is controlled icon, or the described player control icon in the browser page of the first video application is made as unavailable.
In above-described embodiment, when the player control icon by the first video application is closed the player in the second video application, the first video application is directly hidden player and is controlled icon; When the Play Control figure of the player by the second video application closes player, trigger the first video application simultaneously and hide player control icon.
The embodiment of the present invention also provides a kind of video playing terminal, and this terminal comprises:
Page browsing unit, selects video to be played for the page of the browser by the first video application, triggers the second video application operation;
Video control unit, for video to be played described in the player plays by described the second video application.
In above-described embodiment, in browser page in the first video application, select after video to be played, trigger the second video application and move and play this video.Owing to showing respectively corresponding browser page and the player page by two video applications, user can be when watching video browsing video relevant information, and browsing pages and the broadcasting page are in two application programs, when carrying out page switching, can not cause the loss of page info.
Further, video control unit described in the embodiment of the present invention also for:
By the player being arranged in the browser page of described the first video application, control icon, control video to be played described in the player plays in described the second video application.
In above-described embodiment, by the player in the first video application, control icon, make user conveniently control player in the second video application at browser page.Player is controlled icon and is included but not limited to: Play Control icon, and suspend and control icon, closing control icon, volume controls icon, and playing progress rate is controlled icon.
Video control unit described in the embodiment of the present invention specifically for:
Detect the player control chart target play operation in the browser page of described the first video application; Control the player of described the second video application and carry out corresponding play operation.
In above-described embodiment, detect after player control chart target play operation, control the player of the second video application and carry out corresponding play operation.Two video applications are by communication transmitting control information, while having avoided player to control, and switch window back and forth.
Video control unit described in the embodiment of the present invention specifically for:
The player plays operation to described the second video application detected; According to described play operation, play the video of described selection.
In above-described embodiment, in the second video application, player also contains Play Control icon, for controlling self.During play operation in the second video application being detected in the player page, notify and self carry out corresponding operation.
Video control unit described in the embodiment of the present invention also for:
The player detecting in described the second video application is closed, the described player triggering in the browser page of hiding the first video application is controlled icon, or the described player control icon in the browser page of the first video application is made as unavailable.
In above-described embodiment, when the player control icon by the first video application is closed the player in the second video application, the first video application is directly hidden player and is controlled icon; When the Play Control figure of the player by the second video application closes player, trigger the first video application simultaneously and hide player control icon.
In the embodiment of the present invention, by the page of the browser in the first video application, select video to be played, trigger the second video application operation; The video of selecting by the player plays in the second video application.Owing to selecting in browser page in the first video application after required video, trigger the second video application and move and play this video, by two video applications, show respectively corresponding browser page and the player page, user can be when watching video browsing video relevant information, and browsing pages and the broadcasting page are in two application programs, when carrying out page switching, can not cause the loss of page info.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method of displaying video in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of a kind of concrete grammar of displaying video in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for the player that in the embodiment of the present invention, player control icon is controlled the second video application;
Fig. 4 is the schematic diagram of a kind of terminal of displaying video in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method and terminal of displaying video, by selecting in browser page in the first video application after video to be played, trigger the second video application and move and play this video, by two video applications, show respectively corresponding browser page and the player page, can be when watching video browsing video relevant information, and while carrying out page switching, can not cause the loss of page info.
Below in conjunction with Figure of description, be further described.
As shown in Figure 1, be the method for a kind of displaying video in the embodiment of the present invention, the method comprises:
Step 101: select video to be played by the page of the browser in the first video application, trigger the second video application operation;
Step 102: by video to be played described in the player plays in the second video application.
Wherein, instep 101, select the video of required broadcasting by the page of the browser in the first video application, video to be played, selects after video on the page of the browser in the first video application, obtains the video information that this video is corresponding.
Instep 102, by video to be played described in the player plays in described the second video application, specifically comprise: by the player being arranged in the browser page of the first video application, control icon, control video to be played described in the player plays in the second video application.
After triggering the second video application operation, increase a region in the browser page of the first video application, for the device that displays the play, control icon, this player is controlled icon for controlling the player of the second video application.Detect the player control chart target play operation in the browser page of the first video application; Control the player of the second video application and carry out corresponding play operation.
Wherein player control icon includes but not limited to: Play Control icon, and suspend and control icon, playing progress rate is controlled icon, Sound control icon, closing control icon.
As detect after the time-out control icon in the browser page of clicking the first video application, the player in control the second video application temporarily stops the broadcasting of film.
The video of selecting by the player plays in the second video application instep 102, specifically comprises: the player plays operation to the second video application detected; According to play operation, play the video of selecting.
Player in the second video application also contains the control icon of controlling player, and when control chart target when operation detecting the player in the second video application, the player of controlling in the second video application is carried out corresponding operation.
Preferably, instep 102, also comprise: the player detecting in the second video application is closed, the player triggering in the browser page of hiding the first video application is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.The player detecting in the second video application is closed, and comprises two kinds of situations, is introduced respectively below.
Situation one, player by the browser page of the first video application detected and control the player that icon controls in the second video application and close.Detect by the closing control icon in the browser page of the first video application and control and close the player in the second video application, the player that the first video application is hidden in browser page according to the result detecting is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.
Situation two, the Play Control icon detecting by the player in the second video application are carried out shutoff operation to the player in the second video application.The first video application is according to after the player closing control information of the second video application detecting, the player of hiding in browser page is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.
As shown in Figure 2, be a kind of concrete video broadcasting method in the embodiment of the present invention, the method comprises:
Step 201: select video to be played by the page of the browser in the first video application, obtain the information of the video of selection;
Step 202: trigger the second video application operation, and load player in the second video application;
Step 203: show in the browser page of the first video application for controlling the player of the player of the second video application and control icon;
Step 204: the player of the second video application is according to the video information displaying video detecting.
As shown in Figure 3, for controlling by player the method that icon is controlled the player of the second video application in the embodiment of the present invention, the method comprises:
Step 301: detect the player control chart target operation in the browser page of the first video application;
Step 302: the operation of control chart target is resolved to corresponding control information;
Step 303: judge whether this control information is closing control information, if closing control information performsstep 304, otherwise,execution step 305;
Step 304: trigger the first video application and hide player control icon operation in browser page;
Step 305: according to the control information detecting, the player of the second video application is carried out to corresponding operating, and process ends.
Based on same inventive concept, a kind of video playing terminal is also provided in the embodiment of the present invention, because the principle that this terminal is dealt with problems is similar to a kind of video broadcasting method of the embodiment of the present invention, so the enforcement of this terminal can, referring to the enforcement of method, repeat part and repeat no more.
As shown in Figure 4, be a kind of video playing terminal in the embodiment of the present invention, this terminal comprisespage browsing unit 401, video control unit 402:
Page browsing unit 401, selects video to be played for the page of the browser by the first video application, triggers the second video application operation;
Video control unit 402, the video to be played of selecting for the player plays by the second video application.
Wherein,page browsing unit 401 specifically for: by the page of the browser in the first video application, select video to be played, on the page of the browser in the first video application, select after video, obtain the video information that this video is corresponding.
Video control unit 402 specifically for: by video to be played described in the player plays in described the second video application, specifically comprise: by the player being arranged in the browser page of the first video application, control icon, control the video of selecting described in the player plays in the second video application.
After triggering the second video application operation, increase a region in the browser page of the first video application, for the device that displays the play, control icon, this player is controlled icon for controlling the player of the second video application.Detect the player control chart target play operation in the browser page of the first video application; Control the player of the second video application and carry out corresponding play operation.
Wherein player control icon includes but not limited to: Play Control icon, and suspend and control icon, playing progress rate is controlled icon, Sound control icon, closing control icon.As detect after the time-out control icon in the browser page of clicking the first video application, the player in control the second video application temporarily stops the broadcasting of film.
Video control unit 402 specifically for: the player plays operation to the second video application detected; According to play operation, play selected video to be played.
Player in the second video application also contains the control icon of controlling player, and when control chart target when operation detecting the player in the second video application, the player of controlling in the second video application is carried out corresponding operation.
Preferably,video control unit 402 also for: the player that the second video application detected is closed, the player triggering in the browser page of hiding the first video application is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.The player detecting in the second video application is closed, and comprises two kinds of situations, is introduced respectively below.
Situation one, player by the browser page of the first video application detected and control the player that icon controls in the second video application and close.Detect by the closing control icon in the browser page of the first video application and control and close the player in the second video application, the player that the first video application is hidden in browser page according to the result detecting is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.
Situation two, the Play Control icon detecting by the player in the second video application are carried out shutoff operation to the player in the second video application.The first video application is according to after the player closing control information of the second video application detecting, the player of hiding in browser page is controlled icon, or the player control icon in the browser page of the first video application is made as unavailable.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.