CN107181803A - Method and apparatus for playing video - Google Patents
Method and apparatus for playing video Download PDFInfo
- Publication number
- CN107181803A CN107181803A CN201710367189.1A CN201710367189A CN107181803A CN 107181803 A CN107181803 A CN 107181803A CN 201710367189 A CN201710367189 A CN 201710367189A CN 107181803 A CN107181803 A CN 107181803A
- Authority
- CN
- China
- Prior art keywords
- occupy
- player
- place
- video
- webpage
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
This application discloses the method and apparatus for playing video.One embodiment of this method includes:In response to listening to the event that intended application loading includes the Webpage of video to be played, the occupy-place figure of default player is added on Webpage, wherein, the part that occupy-place figure is used to occupy Webpage is player reserved location;The event of occupy-place figure is clicked in response to listening to, the position of occupy-place figure and the URL of video is obtained;In the position display player of occupy-place figure;Video is played in player according to URL.The embodiment is realized is embedded in customized player in Webpage.
Description
Technical field
The application is related to field of computer technology, and in particular to browser technology field, more particularly, to plays video
Method and apparatus.
Background technology
Browsed although current mobile terminal prevalence is a variety of on kernel, iOS (Mobile operating system of Apple Inc.) platform not
The browser kernel in addition to system carries browser kernel is allowed to enter, therefore the exploitation of each browser is in Safari
On the basis of (browser in the operating system of Apple computer) or IE (web browser that Microsoft produces) kernel
Carry out secondary development, optimization function and self-control user interface.The function related to Webpage is developed in Mobile solution needs base
Webview (webpage view) component of kernel is browsed in system.
The Webpage with video playback showed in Mobile solution by webview is (for example, HTML
5th edition (HyperText Markup Language 5, html5) page), when video play button enters in the webpage clicking page
When row is played, the player of system default can have been adjusted, if necessary to adjust self-defined player, has then been needed by Javascript
(a kind of literal translation formula script is a kind of regime type, weak type, the language based on prototype, built-in support type) with
Webview is interacted, and gets the click event of Webpage, while cancelling the player of system default, has adjusted self-defined
Player.But it is due to that webview contents can be slided arbitrarily, and content can arbitrarily refresh, where rear video is refreshed
Position, size and whether show etc. that state is likely to change, while it is in asynchronous line that player, which stops play operation,
Carried out in journey, so self-defined player can only be added to the specified location of screen at present, with the side such as such as full frame, ceiling, small window
Formula is illustrated in screen.Self-defined player can not be embedded in Webpage.
The content of the invention
The purpose of the application is to propose a kind of improved method and apparatus for playing video, to solve background above
The technical problem that technology segment is mentioned.
In a first aspect, the embodiment of the present application provides a kind of method for playing video, this method includes:In response to prison
Hear that intended application loading includes the event of Webpage of video to be played, default player is added on Webpage
Occupy-place figure, wherein, occupy-place figure be used for occupy Webpage a part be player reserved location;In response to listening to click
The event of occupy-place figure, obtains the position of occupy-place figure and the URL of video;Played in the position display of occupy-place figure
Device;Video is played in player according to URL.
In certain embodiments, this method also includes:Refresh the event of Webpage in response to listening to, close and play
Device.
In certain embodiments, this method also includes:Finished in response to detecting Webpage refreshing, again in occupy-place figure
Position display player and continue video is played in player.
In certain embodiments, before player is closed, this method also includes:Record the playing progress rate of video;Continue
Video is played in player, including:If playing progress rate is less than default threshold value, the broadcasting that starts anew in player is regarded
Frequently;Otherwise, continued to play video according to playing progress rate in player.
In certain embodiments, after the position of occupy-place figure is obtained, this method also includes:Obtain the size of occupy-place figure;
And in the position display player of occupy-place figure, including:In the position of occupy-place figure player is shown according to the size of occupy-place figure.
In certain embodiments, following at least one information is presented in player:Playback progress information, load progress information,
User behavior statistical information, barrage information, playlist information.
In certain embodiments, the occupy-place figure of default player is added on Webpage, including:According to Webpage
Word quantity determine the size of occupy-place figure to be added;Dimension of picture is chosen from default candidate's occupy-place set of graphs true with institute
The size identical occupy-place figure of fixed occupy-place figure is added on Webpage.
Second aspect, the embodiment of the present application provides a kind of device for being used to play video, and the device includes:Loading is single
Member, in response to listening to the event that intended application loading includes the Webpage of video to be played, on Webpage
The occupy-place figure of default player is added, wherein, the part that occupy-place figure is used to occupy Webpage is player reserved location;
Acquiring unit, the event for clicking on occupy-place figure in response to listening to obtains the position of occupy-place figure and the unified resource of video
Finger URL;Display unit, for the position display player in occupy-place figure;Broadcast unit, for according to URL
Video is played in player.
In certain embodiments, display unit is further used for:Refresh the event of Webpage in response to listening to, close
Player.
In certain embodiments, display unit is further used for finishing in response to detecting Webpage refreshing, exists again
The position display player of occupy-place figure;And broadcast unit is further used for continuing to play video in player.
In certain embodiments, the device also includes:Recording unit, for being recorded before display unit closes player
The playing progress rate of video;And broadcast unit be further used for when playing progress rate be less than default threshold value when, in player from
Head commences play out video;Otherwise, continued to play video according to playing progress rate in player.
In certain embodiments, acquiring unit is further used for after the position of acquisition occupy-place figure, and this method also includes:Obtain
Take the size of occupy-place figure;And in the position display player of occupy-place figure, including:In the position of occupy-place figure according to the big of occupy-place figure
Small display player.
In certain embodiments, following at least one information is presented in player:Playback progress information, load progress information,
User behavior statistical information, barrage information, playlist information.
The third aspect, the embodiment of the present application provides a kind of terminal, including:One or more processors;Storage device, is used
In storing one or more programs, when one or more programs are executed by one or more processors so that one or more places
Device is managed to realize such as method any in first aspect.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable recording medium, is stored thereon with computer journey
Sequence, is realized such as method any in first aspect when the program is executed by processor.
The method and apparatus for playing video that the embodiment of the present application is provided, by adding default on Webpage
The method of the occupy-place figure of player, the embedded customized player in Webpage.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart for being used to play one embodiment of the method for video according to the application;
Fig. 3 is the schematic diagram for being used to play an application scenarios of the method for video according to the application;
Fig. 4 is the flow chart for being used to play another embodiment of the method for video according to the application;
Fig. 5 is the structural representation for being used to play one embodiment of the device of video according to the application;
Fig. 6 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to
Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the application for playing the method for video or for the implementation for the device for playing video
The exemplary system architecture 100 of example.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105,
106.Medium of the network 104 to provide communication link between terminal device 101,102,103 and server 105,106.Net
Network 104 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User 110 can be interacted with using terminal equipment 101,102,103 by network 104 with server 105,106, to connect
Receive or send message etc..Various client applications can be installed, such as browser class should on terminal device 101,102,103
Applied with, video playback class, search engine class is applied, the application of shopping class, JICQ, mailbox client, social platform
Software etc..
Terminal device 101,102,103 can be with display screen and support the various electronic equipments of iOS system, including
But it is not limited to smart mobile phone, tablet personal computer, E-book reader, MP3 player (Moving Picture Experts Group
Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts
Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, pocket computer on knee and
Desktop computer etc..
Server 105,106 can be to provide the server of various services, for example, terminal device 101,102,103 is provided
The background server of support.Background server can carry out the processing such as analyzing based on the web-page requests data collected from terminal, and
Result (such as webpage comprising video) is fed back into terminal device.
It should be noted that the method for being used to play video that embodiment is provided in the application is general by terminal device
101st, 102,103 perform, correspondingly, be generally positioned at for playing the device of video in terminal device 101,102,103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need
Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow for being used to play one embodiment of the method for video according to the application is shown
200.This is used for the method for playing video, comprises the following steps:
Step 201, in response to listening to the event that intended application loading includes the Webpage of video to be played, in net
The occupy-place figure of default player is added on the page page.
In the present embodiment, for playing electronic equipment (such as end shown in Fig. 1 of the method operation of video thereon
End) Webpage from server can be received by wired connection mode or radio connection, wherein, above-mentioned webpage page
Face, can be such as the asp pages, the aspx pages, the jsp pages, the htm pages, html (the may include html4, html5) page,
Shtml pages etc..For example, can be added on the contentview in webview where Webpage by monitoring webview
Carry the event for the Webpage for including video to be played.The part that occupy-place figure is used to occupy the Webpage is described broadcasts
Put device reserved location.When loading Webpage, the occupy-place figure can be shown on the screen of terminal.When the page, which is loaded, to be completed, lead to
The script (for example, javascript) for crossing Webpage transmits size, position, the video information (example of occupy-place figure to webview
Such as, URL) etc..
In some optional implementations of the present embodiment, the occupy-place of default player is added on Webpage
Figure, including:The size of occupy-place figure to be added is determined according to the word quantity of Webpage;From default candidate's occupy-place set of graphs
The middle size identical occupy-place figure for choosing dimension of picture and identified occupy-place figure is added on Webpage.Occupy-place figure it is interior
Hold, position and size can be defined when generating the script of Webpage according to Webpage content.The occupy-place figure can be
The one broadcast button picture that can click on, is stored in advance in above-mentioned terminal.This occupy-place figure is a part for Webpage, meeting
Changed with the change of the content of Webpage.For example, the word quantity of Webpage to be shown is counted, if word number
Amount is less than default word threshold value, then larger occupy-place figure may be selected.The area of character area area and occupy-place figure can also be set
Ratio, for example, 3:1, and bitmap size is accounted for according to the adjustment of Webpage word amount.
Step 202, the event of occupy-place figure is clicked in response to listening to, the position of occupy-place figure and the unified money of video is obtained
Source finger URL.
In the present embodiment, user can click on the occupy-place figure shown on the screen of above-mentioned terminal.Above-mentioned terminal is once supervised
The event for clicking on occupy-place figure is heard, then the position of the occupy-place figure and the unified resource positioning of video can be obtained by webview
Accord with (Uniform Resource Locator, URL).Can be from server foradownloaded video by URL.
In some optional implementations of the present embodiment, this method also includes:The size of occupy-place figure is obtained, to cause
In step 203 player is shown in the position of occupy-place figure according to the size of occupy-place figure.
Step 203, in the position display player of occupy-place figure.
In the present embodiment, it is default player to click on the player that shows after occupy-place figure, i.e., self-defined player, and
It is not the player of system default.So as to make full use of the scalability of self-defined player, increase user behavior statistics,
The custom features such as barrage, episode list, the next collection of automatic switchover.
In some optional implementations of the present embodiment, following at least one information is presented in the default player:
Playback progress information, load progress information, user behavior statistical information, barrage information, playlist information.Playback progress information
The duration and percentage played can be shown in progress bar mode.Under load progress information can be shown with percent wise
The video length of load.User behavior statistical information may include that user repeats playing number of times, F.F. number of times, the information such as time out.
The player also supports barrage function, and user can input barrage information.The video that player is not played or played can show
Show in the play list.
Step 204, video is played in player according to URL.
In the present embodiment, AVFoundation framework of the predetermined player based on iOS system, by setting video to broadcast
Put address (for example, URL) and load broadcasting pictures.AVFoundation be one can be for using and create time-based
The framework of audio-visual media, it provides interface of the energy using the Level of Detail of time-based audio-visual data.For example:Can be with
Checked with it, create, edit or recompile media file.Inlet flow can also be obtained in slave unit, it is real-time in video
Operate and play back during broadcasting.Commence play out and stop playing and completed in different threads.Because commencing play out, stopping the mistake of broadcasting
Journey includes notifying network to start, stops loading video playing resource etc., so being asynchronous operation.
With continued reference to Fig. 3, Fig. 3 is the signal for being used to play the application scenarios of the method for video according to the present embodiment
Figure.In Fig. 3 application scenarios, the intended application (for example, Safari browsers) in user's using terminal 300 opens a bag
Include the Webpage of video.When terminal monitoring loads the event for the Webpage for including video to be played to intended application,
The occupy-place figure (for example, broadcast button picture) of default player is added on the Webpage.User is clicked on after occupy-place figure, terminal
The event for clicking on occupy-place figure is listened to, position (for example, middle position of Webpage) and the video of occupy-place figure is obtained
URL is (for example, http://www.letv.com/ptv/vplay/822277.html).Then terminal is in occupy-place
Figure position shows player 301.Finally, terminal plays the video according to URL in player 301.Should
Terminal can without using system default player, and use user in advance customized player.And the player is embedding
Enter among webpage.
Player is embedded into webpage page by the method that above-described embodiment of the application is provided by using the method for occupy-place figure
In face, customized player can be added in the optional position of Webpage, both ensure that the one of Webpage content revealing
Cause property in turn ensure that a variety of custom features that self-defined player can be supported.
With further reference to Fig. 4, it illustrates the flow 400 of another embodiment of the method for playing video.The use
In the flow 400 for the method for playing video, comprise the following steps:
Step 401, in response to listening to the event that intended application loading includes the Webpage of video to be played, in net
The occupy-place figure of default player is added on the page page.
Step 402, the event of occupy-place figure is clicked in response to listening to, the position of occupy-place figure and the unified money of video is obtained
Source finger URL.
Step 403, in the position display player of occupy-place figure.
Step 404, video is played in player according to URL.
Step 401-404 and step 201-204 are essentially identical, therefore repeat no more.
Step 405, refresh the event of Webpage in response to listening to, close player.
In the present embodiment, whether user the position refreshed where rear video, size and can be opened up with the manual refreshing page
The state such as showing may all change, therefore close current player, wait true further according to the content of pages after refreshing after refreshing
It is fixed whether to open player.
Step 406, in response to detect Webpage refresh finish, again occupy-place figure position display player and after
Continue and video is played in player.
In the present embodiment, if still suffering from the video address of last broadcasting in page script after refreshing, again
Occupy-place figure position display player and continue video is played in player.After occupy-place figure now can be according to refreshing
Content of pages carries out the adjustment of position or size.Replaying video can be commenced play out with accent, also can be from last time viewing
Continue to play in position.User can pre-set accent and commence play out and continue the condition played, so that player is liked according to user
Select broadcast mode well.
In some optional implementations of the present embodiment, before player is closed, method also includes:Record video
Playing progress rate;Video is played in continuation in player, including:If playing progress rate is less than default threshold value, in player
Start anew to play video;Otherwise, continued to play video according to playing progress rate in player.Threshold value can have been played
Percentage or duration.For example, for having played more than 10 minutes, or during video more than 10%, it can continue
Play, and without restarting to play.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the method for playing video in the present embodiment
Flow 400 the step of highlight the processing to webpage refresh operation.Thus, the scheme of the present embodiment description can monitor the page
The event of refreshing, is turned off when there is player on the page, the uniformity of the Webpage after keeping player and refreshing,
Player is avoided to block the Webpage content after refreshing.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, regarded this application provides one kind for broadcasting
One embodiment of the device of frequency, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device can specifically be answered
For in various electronic equipments.
As shown in figure 5, the device 500 for being used to play video of the present embodiment includes:Loading unit 501, acquiring unit
502nd, display unit 503 and broadcast unit 504.Wherein, loading unit 501 is used to include in response to listening to intended application loading
The event of the Webpage of video to be played, adds the occupy-place figure of default player on Webpage, wherein, occupy-place figure
A part for occupying Webpage is player reserved location;Acquiring unit 502 is used in response to listening to click occupy-place
The event of figure, obtains the position of occupy-place figure and the URL of video;Display unit 503 is used in the position of occupy-place figure
Put display player;Broadcast unit 504 is used to play video in player according to URL.
In the present embodiment, for loading unit 501, acquiring unit 502, the display unit of the device 500 for playing video
503 may be referred to step 201, step 202, step 203, step in the corresponding embodiments of Fig. 2 with the specific processing of broadcast unit 504
Rapid 204.
In some optional implementations of the present embodiment, display unit 503 is further used for:In response to listening to brush
The event of the new web page page, closes player.
In some optional implementations of the present embodiment, display unit 503 is further used in response to detecting net
Page page furbishing is finished, again in the position display player of occupy-place figure;And broadcast unit is further used for continuing playing
Video is played in device.
In some optional implementations of the present embodiment, the device 500 also includes:Recording unit, in display
Unit records the playing progress rate of video before closing player;And broadcast unit is further used for presetting when playing progress rate is less than
Threshold value when, start anew in player play video;Otherwise, continued to play video according to playing progress rate in player.
In some optional implementations of the present embodiment, acquiring unit 502 is further used for obtaining the position of occupy-place figure
After putting, this method also includes:Obtain the size of occupy-place figure;And in the position display player of occupy-place figure, including:In occupy-place
The position of figure shows player according to the size of occupy-place figure.
In some optional implementations of the present embodiment, following at least one information is presented in player:Playing progress rate
Information, load progress information, user behavior statistical information, barrage information, playlist information.
Below with reference to Fig. 6, it illustrates suitable for for realizing the terminal device computer system 600 of the embodiment of the present application
Structural representation.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present application and should not use scope
Bring any limitation.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and
Perform various appropriate actions and processing.In RAM 603, the system that is also stored with 600 operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse, touch-screen etc.;Including such as
The output par, c 607 of cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part including hard disk etc.
Divide 608;And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via
The network of such as internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media
611, such as disk, CD, magneto-optic disk, semiconductor memory etc., as needed be arranged on driver 610 on, in order to from
The computer program read thereon is mounted into storage part 608 as needed.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart may be implemented as computer
Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium
On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality
Apply in example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media
611 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processes
Above-mentioned functions.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.
The more specifically example of computer-readable recording medium can include but is not limited to:Electrical connection with one or more wires,
Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any be included or store
The tangible medium of program, the program can be commanded execution system, device or device and use or in connection.And
In the application, computer-readable signal media can include believing in a base band or as the data of carrier wave part propagation
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Included on computer-readable medium
Program code any appropriate medium can be used to transmit, include but is not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation
The part of one module of table, program segment or code, the part of the module, program segment or code is used comprising one or more
In the executable instruction for realizing defined logic function.It should also be noted that in some realizations as replacement, being marked in square frame
The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note
Meaning, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart can be with holding
The special hardware based system of function or operation as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag
Include loading unit, acquiring unit, display unit and broadcast unit.Wherein, the title of these units not structure under certain conditions
The paired restriction of the unit in itself, for example, broadcast unit is also described as " according to URL in player
Play the unit of video ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be
Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating
Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should
Device:In response to listening to the event that intended application loading includes the Webpage of video to be played, add on Webpage
Plus the occupy-place figure of default player, wherein, the part that occupy-place figure is used to occupy Webpage is player reserved location;Ring
Ying Yu listens to the event for clicking on occupy-place figure, obtains the position of occupy-place figure and the URL of video;In occupy-place figure
Position display player;Video is played in player according to URL.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, is carried out by above-mentioned technical characteristic or its equivalent feature
Other technical schemes formed by any combination.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical characteristic of energy carries out technical scheme formed by replacement mutually.
Claims (13)
1. a kind of method for playing video, it is characterised in that methods described includes:
In response to listening to the event that intended application loading includes the Webpage of video to be played, on the Webpage
The occupy-place figure of default player is added, wherein, the part that the occupy-place figure is used to occupy the Webpage is described broadcasts
Put device reserved location;
The event of the occupy-place figure is clicked in response to listening to, the position of the occupy-place figure and the unified money of the video is obtained
Source finger URL;
Player described in position display in the occupy-place figure;
The video is played in the player according to the URL.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Refresh the event of the Webpage in response to listening to, close the player.
3. method according to claim 2, it is characterised in that methods described also includes:
Refresh in response to detecting the Webpage and finish, again player described in the position display in the occupy-place figure and after
Continue and the video is played in the player.
4. method according to claim 3, it is characterised in that before the closing player, methods described is also
Including:
Record the playing progress rate of the video;
The video is played in the continuation in the player, including:
If the playing progress rate is less than default threshold value, start anew to play the video in the player;Otherwise, exist
The broadcasting video is continued according to the playing progress rate in the player.
5. according to the method described in claim 1, it is characterised in that described after the position for obtaining the occupy-place figure
Method also includes:
Obtain the size of the occupy-place figure;And
Player described in the position display in the occupy-place figure, including:
The position in the occupy-place figure shows the player according to the size of the occupy-place figure.
6. according to the method described in claim 1, it is characterised in that following at least one information is presented in the player:
Playback progress information, load progress information, user behavior statistical information, barrage information, playlist information.
7. according to the method described in claim 1, it is characterised in that described that default player is added on the Webpage
Occupy-place figure, including:
The size of occupy-place figure to be added is determined according to the word quantity of the Webpage;
The size identical occupy-place figure that dimension of picture and identified occupy-place figure are chosen from default candidate's occupy-place set of graphs adds
It is added on the Webpage.
8. a kind of device for being used to play video, it is characterised in that described device includes:
Loading unit, the event for loading the Webpage for including video to be played in response to listening to intended application,
The occupy-place figure of default player is added on the Webpage, wherein, the occupy-place figure is used to occupy the Webpage
A part is the player reserved location;
Acquiring unit, the event for clicking on the occupy-place figure in response to listening to obtains position and the institute of the occupy-place figure
State the URL of video;
Display unit, for player described in the position display in the occupy-place figure;
Broadcast unit, for playing the video in the player according to the URL.
9. device according to claim 8, it is characterised in that the display unit is further used for:
Refresh the event of the Webpage in response to listening to, close the player.
10. device according to claim 9, it is characterised in that the display unit is further used for
Finished in response to detecting the Webpage refreshing, again player described in the position display in the occupy-place figure;With
And
The broadcast unit is further used for continuing to play the video in the player.
11. device according to claim 10, it is characterised in that described device also includes:
Recording unit, the playing progress rate for recording the video before the display unit closes the player;And
The broadcast unit is further used for, when the playing progress rate is less than default threshold value, from the beginning opening in the player
Begin to play the video;Otherwise, continued to play the video according to the playing progress rate in the player.
12. a kind of terminal, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real
The existing method as described in any in claim 1-7.
13. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The method as described in any in claim 1-7 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710367189.1A CN107181803B (en) | 2017-05-23 | 2017-05-23 | Method and device for playing video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710367189.1A CN107181803B (en) | 2017-05-23 | 2017-05-23 | Method and device for playing video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107181803A true CN107181803A (en) | 2017-09-19 |
CN107181803B CN107181803B (en) | 2020-04-10 |
Family
ID=59831340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710367189.1A Active CN107181803B (en) | 2017-05-23 | 2017-05-23 | Method and device for playing video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107181803B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108427622A (en) * | 2018-04-08 | 2018-08-21 | 平安普惠企业管理有限公司 | A kind of EMS memory management process, device, computer equipment and storage medium |
CN108650557A (en) * | 2018-04-27 | 2018-10-12 | Oppo广东移动通信有限公司 | A kind of method, device and mobile terminal of display barrage |
CN108848401A (en) * | 2018-07-26 | 2018-11-20 | 聚好看科技股份有限公司 | Video plays broadcasting method and device |
CN110020317A (en) * | 2017-12-25 | 2019-07-16 | 北京京东尚科信息技术有限公司 | Web page-container backing file determines method, apparatus, equipment and readable storage medium storing program for executing |
CN110636366A (en) * | 2019-10-25 | 2019-12-31 | 百度在线网络技术(北京)有限公司 | Video playing processing method and device, electronic equipment and medium |
CN110996154A (en) * | 2019-12-13 | 2020-04-10 | 北京爱奇艺科技有限公司 | Video playing method and device and electronic equipment |
CN111314791A (en) * | 2020-03-19 | 2020-06-19 | 杭州趣维科技有限公司 | Seamless jump method in video playing based on Android |
CN111708522A (en) * | 2020-06-23 | 2020-09-25 | 西安雷风电子科技有限公司 | Video playing component development method and device |
CN113286189A (en) * | 2021-04-23 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Video playing method, device, server and storage medium |
CN113779306A (en) * | 2020-08-25 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and device for determining playing progress |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110113354A1 (en) * | 2009-11-12 | 2011-05-12 | Sling Media Pvt Ltd | Always-on-top media player launched from a web browser |
CN103077191A (en) * | 2012-12-21 | 2013-05-01 | 中金数据系统有限公司 | Self-adaptive Web platform audio playing method and device |
CN104125490A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Online video playing method and device |
CN104809120A (en) * | 2014-01-24 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Information processing method and device |
CN105430498A (en) * | 2015-11-24 | 2016-03-23 | 天脉聚源(北京)传媒科技有限公司 | Playing control method and device |
-
2017
- 2017-05-23 CN CN201710367189.1A patent/CN107181803B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110113354A1 (en) * | 2009-11-12 | 2011-05-12 | Sling Media Pvt Ltd | Always-on-top media player launched from a web browser |
CN103077191A (en) * | 2012-12-21 | 2013-05-01 | 中金数据系统有限公司 | Self-adaptive Web platform audio playing method and device |
CN104125490A (en) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | Online video playing method and device |
CN104809120A (en) * | 2014-01-24 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Information processing method and device |
CN105430498A (en) * | 2015-11-24 | 2016-03-23 | 天脉聚源(北京)传媒科技有限公司 | Playing control method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020317A (en) * | 2017-12-25 | 2019-07-16 | 北京京东尚科信息技术有限公司 | Web page-container backing file determines method, apparatus, equipment and readable storage medium storing program for executing |
CN108427622A (en) * | 2018-04-08 | 2018-08-21 | 平安普惠企业管理有限公司 | A kind of EMS memory management process, device, computer equipment and storage medium |
CN108650557A (en) * | 2018-04-27 | 2018-10-12 | Oppo广东移动通信有限公司 | A kind of method, device and mobile terminal of display barrage |
CN108848401A (en) * | 2018-07-26 | 2018-11-20 | 聚好看科技股份有限公司 | Video plays broadcasting method and device |
CN108848401B (en) * | 2018-07-26 | 2021-01-19 | 聚好看科技股份有限公司 | Video playing starting method and device |
CN110636366A (en) * | 2019-10-25 | 2019-12-31 | 百度在线网络技术(北京)有限公司 | Video playing processing method and device, electronic equipment and medium |
CN110996154A (en) * | 2019-12-13 | 2020-04-10 | 北京爱奇艺科技有限公司 | Video playing method and device and electronic equipment |
CN110996154B (en) * | 2019-12-13 | 2022-09-02 | 北京爱奇艺科技有限公司 | Video playing method and device and electronic equipment |
CN111314791A (en) * | 2020-03-19 | 2020-06-19 | 杭州趣维科技有限公司 | Seamless jump method in video playing based on Android |
CN111708522A (en) * | 2020-06-23 | 2020-09-25 | 西安雷风电子科技有限公司 | Video playing component development method and device |
CN113779306A (en) * | 2020-08-25 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Method and device for determining playing progress |
CN113286189A (en) * | 2021-04-23 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Video playing method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107181803B (en) | 2020-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107181803A (en) | Method and apparatus for playing video | |
US10452250B2 (en) | Method for associating media files with additional content | |
CN106998486B (en) | Video playing method and device | |
CN110062284B (en) | Video playing method and device and electronic equipment | |
US20220239612A1 (en) | Information interaction method, apparatus, device, storage medium and program product | |
US11416538B1 (en) | System and method for sharing trimmed versions of digital media items | |
WO2020147521A1 (en) | Image display method and apparatus | |
US20210067825A1 (en) | Display device and content providing method thereof | |
CN106161627B (en) | Method and device for pushed information | |
US20220321936A1 (en) | Information push method, apparatus, electronic device and storage medium | |
CN111163348A (en) | Searching method and device based on video playing | |
JP7050857B2 (en) | Summary generation method and equipment | |
US20240168605A1 (en) | Text input method and apparatus, and electronic device and storage medium | |
US20240007718A1 (en) | Multimedia browsing method and apparatus, device and mediuim | |
CN108235004A (en) | Video playing performance test methods, device and system | |
CN108334516A (en) | Information-pushing method and device | |
CN110072145A (en) | Information broadcasting method, device and terminal device for terminal device | |
US11902341B2 (en) | Presenting links during an online presentation | |
CN104954860A (en) | Set-top box, electronic program server, multimedia system and data interaction method | |
CN108573053A (en) | Information-pushing method, device and system | |
CN112883228A (en) | Recommended video display method, recommended video display device, recommended video display medium and electronic equipment | |
CN117786159A (en) | Text material acquisition method, apparatus, device, medium and program product | |
CN112307393A (en) | Information issuing method and device and electronic equipment | |
CN109582580A (en) | For debugging system, the method and apparatus of the page | |
CN108073638B (en) | Data diagnosis method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |