CN110708602A - Video starting method and device, electronic equipment and storage medium - Google Patents

Video starting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110708602A
CN110708602A CN201910980305.6A CN201910980305A CN110708602A CN 110708602 A CN110708602 A CN 110708602A CN 201910980305 A CN201910980305 A CN 201910980305A CN 110708602 A CN110708602 A CN 110708602A
Authority
CN
China
Prior art keywords
video
target video
playing
player engine
display page
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
Application number
CN201910980305.6A
Other languages
Chinese (zh)
Other versions
CN110708602B (en
Inventor
汪奎伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910980305.6A priority Critical patent/CN110708602B/en
Publication of CN110708602A publication Critical patent/CN110708602A/en
Application granted granted Critical
Publication of CN110708602B publication Critical patent/CN110708602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The embodiment of the disclosure discloses a video starting method and device, electronic equipment and a storage medium. The video starting method comprises the following steps: when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine; when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video and transmitting the player engine to the second display page; when the player engine meets a continuous playing condition for continuously playing the target video, the target video is continuously played on a second display page based on the player engine. According to the technical scheme of the embodiment of the disclosure, the technical problem that the time for a user to wait for starting of the target video is increased due to page switching in the related art can be solved, the time for starting the target video is reduced, and the technical effect of watching experience of the user is improved.

Description

Video starting method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer application, and in particular relates to a video starting method and device, an electronic device and a storage medium.
Background
The smart phone and the wireless network not only solve the problem of two-party or multi-party communication, but also provide more choices for the learning, working, entertainment and the like of the user. For example, various clients are installed on a mobile phone to watch videos and the like. Developers of the client also continuously optimize various display functions of the client so as to meet personalized requirements of users.
However, when a user plays a video based on the current video starting method, if the user jumps from one page to another page to watch the same video, the user cannot immediately continue to watch the video, the time of the first frame required by the page after the jump to wait for the video to play the first frame picture is the same as the time of the first frame waiting for the previous page, or even longer, that is, the time for the user to wait for the starting of the target video is increased due to the jumping of the page, so that the user watching experience is poor.
Disclosure of Invention
The embodiment of the disclosure provides a video starting method and device, electronic equipment and a storage medium, so as to solve the technical problem that in the related art, the time for a user to wait for starting a target video is increased due to page switching, reduce the starting time of the target video and improve the technical effect of viewing experience of the user.
In a first aspect, an embodiment of the present disclosure provides a video starting method, which is applied to a client, and the method includes:
when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine;
when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video and transmitting the player engine to the second display page;
when the player engine meets a continuous playing condition for continuously playing the target video, the target video is continuously played on the second display page based on the player engine.
In a second aspect, an embodiment of the present disclosure provides a video starting apparatus configured at a client, where the apparatus includes:
the first playing module is used for creating a player engine when receiving a playing instruction of a target video initiated on a first display page, and playing the target video on the first display page based on the player engine;
the player engine transfer module is used for controlling the player engine to pause playing the target video and transferring the player engine to a second display page when a jump request for jumping to the second display page corresponding to the target video is received;
and the second playing module is used for continuing playing the target video on the second display page based on the player engine when the player engine meets a continuous playing condition for continuing playing the target video.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processing devices;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the video launching method according to any embodiment of the disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the video starting method according to any embodiment of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, when a jump request for jumping to a second display page corresponding to a target video is received, a player engine of a first display page is controlled to pause playing of the target video instead of directly releasing the player engine, and then the player engine is transferred to the second display page, so that the player engine can be reused when the target video is played on the second display page, the target video is continuously played based on the player engine, operations of creating the player engine and establishing connection between the player engine and a video server are not required to be repeatedly executed, waiting time for starting of the target video on the second display page by a user is reduced, and viewing experience of the user is improved.
Drawings
Fig. 1 is a schematic flowchart of a video starting method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a video starting apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart of a video starting method according to a first embodiment of the present disclosure, where this embodiment is particularly suitable for a situation where a display page is switched to watch the same video, and the video starting method can be implemented by a video starting device, and the video starting device can be configured in a client in a terminal to implement the video starting method according to the first embodiment of the present disclosure. The terminal can comprise a smart phone, a tablet computer, a personal computer, a notebook computer, a palm computer, an intelligent household appliance and the like.
As shown in fig. 1, the method of the embodiment may specifically include:
s110, when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine.
The playing instruction may be triggering a preset playing button, inputting a preset operation gesture, or a preset voice control instruction, or an operation of opening or refreshing the client by the user. It should be noted that the target video may be understood as a video that receives a play instruction at the current time, that is, a video that is requested to be played by the user at the current time. For example, if a user request to play a certain video is detected, the video is marked as a target video. The client may be understood as a video playing application or other application having a video playing function. It is understood that the first display page includes at least the target video, but may also include other videos.
When the user selects the target video to play, the client renders the video data onto the canvas surface of the first display page to display by using the created player engine, that is, plays the target video.
In an embodiment of the present disclosure, playing the target video on the first display page based on the player engine specifically may include: establishing a communication connection between the player engine and a video server; receiving detailed information of the target video returned by the video server, and playing the target video on the first display page according to the detailed information; the detailed information comprises the definition of at least one video resource corresponding to the target video and the playing address corresponding to each definition.
Since the target video may have a plurality of video sources with different definitions, how many video sources with different definitions the target video contains can be determined according to the detailed information. It should be noted that the detailed information of the target video includes many contents, and is not limited to the definition and the video playing address.
Wherein the establishing a communication connection between the player engine and a video server further comprises: establishing a communication connection between the player engine and a video server; and requesting a playing interface from the video server according to the video identification and the video coding format parameter of the target video. It can be understood that, after the client requests the video server for the playing interface, the video server returns the detailed information of the target video for the client to play the target video. Alternatively, the communication connection may be a wireless communication connection or a wired communication connection, and the wireless communication connection may include a Wifi connection, a mobile data connection, and the like. The mobile data connection may include a 4G network connection, a 5G network connection, or the like. For example, when a play instruction of the target video is detected, the video play address of the video source with the default definition may be directly selected for playing. Wherein the default definition may be the highest definition video; or a definition determined according to the type of network connection. For example, the network connection type is obtained, and if the network to which the terminal is currently connected is a mobile data network, a video playing address corresponding to the standard definition video source is selected for playing. And if the network accessed by the terminal at present is a WiFi network, selecting a video playing address corresponding to the high-definition or blue-ray video source for playing.
Optionally, when the play instruction of the target video is detected, a definition option of the target video may be displayed, so that the user may select a suitable definition to play the target video.
S120, when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video, and transmitting the player engine to the second display page.
When the user requests to jump to the display page, the video may or may not be related to the target video played on the first display page. The video starting method of the embodiment of the present disclosure is particularly suitable for a case of jumping to a second display page corresponding to a target video, and therefore, when a jump request for jumping to the second display page corresponding to the target video is received, a player engine needs to be multiplexed. The player engine may be directly released if a jump request to jump to a second display page corresponding to a video other than the target video is received.
In the embodiment of the present disclosure, when a skip request to skip to the second display page is received, it may be determined whether it corresponds to the target video. For example, by a video identification of the target video.
Specifically, a skip request for skipping to a second display page is received, and a video identifier of a trigger video corresponding to the skip request is acquired; and if the video identifier of the trigger video is consistent with the video identifier of the target video, determining that a jump request for jumping to a second display page corresponding to the target video is received. The triggering video corresponding to the jump request can be understood as a video corresponding to the operation of triggering the jump request by the user. For example, a title area of a certain video is clicked or a button for acquiring more video information is triggered, or a blank area adjacent to the video is clicked, and the like. It is to be understood that the trigger video may or may not be the target video. The trigger video is determined according to the trigger operation of the user.
The associated video initiation process includes: when the video list interface is started or refreshed, the video server acquires the video identifier of each video in the video list required to be displayed by the video list interface, and displays the video list interface. When detecting that a user clicks a certain target video in a playing video list, playing the video on a video list page requires creating a player engine, and pulling a stream from a video server through the player engine to display a video picture. When a user enters a video detail page to watch the target video, because a new page workflow is created, player engine resources of a video list page are often released first, then a player engine is created again on the video detail page, connection is established again with a video server, and then the stream is pulled again from the video server, so that the target video can be watched.
In the embodiment of the disclosure, when the second display page corresponds to the target video, the player engine is controlled to pause playing the target video, and then the player engine is transferred to the second display page to be reused by the second display page, which is different from a method for directly releasing the player engine in the related art.
Wherein controlling the player engine to pause playing the target video may include: and calling a pause method of the player engine to pause playing the target video. In the embodiment of the present disclosure, the passing of the player engine to the second display interface may be understood as passing the player engine to the second display page without changing various setting parameters such as a format and a connection state of the player engine, so that the second display page directly multiplexes the player engine.
Alternatively, the player engine may be passed to the second display page by way of a player engine object reference. Where object referencing is one way to instantiate a function.
It should be noted that the player engine carries the playing status information and the playing progress information of the player. The playing status information includes pause playing or playing. Alternatively, the play state information may be determined by a method currently performed by the player engine. For example, a play method is called to indicate that playing is being performed, a pause method is called to indicate that playing is paused, and so on.
It should be noted that "first" and "second" in the first display page and the second display page are only used for distinguishing the display pages, and are not limited to the functions or the sequence of the display pages. The first display page and the second display page may be used to display video information. The video information displayed on the first display page and the second display page can be the same or different.
Illustratively, the first display page may comprise a video listing page; the second display page may comprise a video details page. The video list page can be a recommendation page of a client when the client is opened by a user, or a video list under a certain classification or a certain channel selected by the user, and generally shows various videos, the related contents of the videos are possibly not related, the related contents of the videos are relatively comprehensive, and the focus is to show simple descriptions of the videos, such as videos and video titles and the like; the video details page may be a page that presents the further details of the video, with an emphasis on presenting a certain video, such as a content introduction of the video, user comments, and video recommendations related to the video, and so forth.
It can be understood that the video starting method of the embodiment of the disclosure is particularly suitable when the second display pages all contain the target video.
S130, when the player engine meets a continuous playing condition for continuously playing the target video, continuously playing the target video on the second display page based on the player engine.
In order to ensure smooth playing of the target video, before the player engine continues to play the target video on the second display page based on the player engine, it may be determined whether the player engine meets a continuous playing condition for continuing to play the target video.
There are various ways to determine whether the player engine satisfies the resume condition for continuing playing the target video. Optionally, if a trigger instruction initiated on the second display interface for playing the target video is received, it is determined that the player engine satisfies a resume condition for continuing to play the target video. Similarly, the triggering instruction for playing the target video initiated on the second display page may also be implemented by clicking a preset playing button, inputting a preset playing gesture or a voice playing instruction, or the like, or may also be triggered to play when the page is switched or refreshed.
For example, in a specific scenario, when the player engine is controlled to pause playing the target video, the playing identifier of the player corresponding to the player engine may be modified to be in a paused state, and then, when it is detected that the paused state of the playing identifier is modified to be in a playing state, it is determined that the player engine meets a resume condition for continuing playing the target video, and then, the target video is continuously played on the second display page based on the player engine.
Of course, it is also possible to automatically continue playing the target video after the jump. Specifically, if the jump to the second display interface has been performed in response to the jump request and the second display interface is in an active state, it is determined that the player engine satisfies a resume condition for continuing to play the target video. And further, continuing to play the target video on the second display page based on the player engine.
Jumping from the first display page to the second display page requires the use of the canvas settings of the second display page. The canvas surface may be viewed as an object that holds a plurality of pixels that may be combined together to display a rendered video picture on a screen. In an embodiment of the present disclosure, continuing to play the target video on the second display page based on the player engine may specifically include: and sending the canvas setting information of the second display page to the player engine, and calling a playing method of the player engine to continue to play the target video on the second display page. When the player engine is multiplexed to play the target video, the target video can be played only by calling the playing method of the player engine to continue to pull the stream from the video resource.
In this embodiment of the present disclosure, optionally, before the playing the target video on the second display page based on the player engine continues, the method further includes: and acquiring a video resource corresponding to the target video from a preset cache region, and playing the target video based on the player engine and the video resource. The preset cache region may be a local cache region, or may be a remote cache region, such as a cloud cache region. The video asset may be understood as video data of a target video. For example, playing the target video based on the player engine and the video resource may specifically be based on the player engine rendering the video resource onto a canvas of the second display page to play the target video. It should be noted that, when streaming is performed from a video resource, a part of the video resource is usually pre-streamed and placed in a buffer area to ensure smooth viewing by the user. For example, when the user views the 10 th second of the video, the video resource to be played in the 15 th second is already cached. In the embodiment of the present disclosure, when the first display page performs pull-streaming playing on the target video, a part of video resources may be cached in advance, and since the player engine is skipped to the second display page and the connection between the player engine and the video server is maintained, the player engine can be called to quickly start playing the target video only by acquiring the video resources from a preset cache region, so that the time for creating the player engine and establishing the connection between the player engine and the video server is saved, and the time for a user to wait for the first frame of the target video to be played is further shortened.
Optionally, before the playing the target video on the second display page based on the player engine continues, further comprising: and based on the established communication connection between the player engine and the video server, continuously pulling the video resource corresponding to the target video from the video server to a preset cache region. When the target video is played on the first display page, the player engine already pulls a part of resources from the video server, and when the target video is continuously played on the second display page, the player engine can continuously pull the stream from the video server through the established communication connection between the player engine and the video server, so as to ensure the smooth playing of the target video on the second display page.
It can be understood that, if the video resources corresponding to the target video have been all streamed to the preset cache region, the stream pulling operation need not be executed again, the video resources of the target video are acquired from the preset cache region, and the target video is continuously played.
In addition, it is noted that, since the method of the embodiment of the present disclosure reuses the player engine, the target video can be continuously played according to the parameter setting of the player engine after jumping to the second display page. In the related art, because the player engine is created again, and the original playing progress is to be played continuously, an operation of obtaining the original playing position needs to be executed, for example, a position searching method needs to be preset, and then the position searching method is called to obtain the original playing position.
According to the technical scheme of the embodiment, when a jump request for jumping to a second display page corresponding to a target video is received, the player engine of the first display page is controlled to pause playing of the target video instead of directly releasing the player engine, and then the player engine is transmitted to the second display page, so that the player engine can be reused when the target video is played on the second display page, operations of creating the player engine and establishing connection between the player engine and a video server do not need to be repeatedly executed, waiting time of a user for starting the target video on the second display page is reduced, and viewing experience of the user is improved.
The video starting method in the embodiment of the present disclosure is described by taking the first display page as a video list page and the second page as a video detail page of the target video as an example, and taking the channel list page as an example in the video list page.
In the related art, the channel list page and the video detail page of the client are generally two different workflow activities. No matter which page a user clicks a button to trigger video playing, a player engine VideoEngine is created under the current page working stream, the player engine needs to establish connection with a video server and set canvas surface, then the stream is pulled to render the surface, and therefore the user can see a video picture.
If the user watches the video on the channel list page of the video at first, and then the user clicks the specified area to enter the video detail page to watch the same video. Then, a VideoEngine needs to be created for playing the video on the list page to establish a connection pull stream, and then the video picture can be seen; when the user clicks to enter the detail page, the VideoEngine resource of the list page is released, then the operation of the list page is repeated, and a new VideoEngine is created again to establish the connection pull flow. That is, even if a user first watches a video on a channel list page of the video, and then clicks a designated area to enter a video detail page to watch the same video, two VideoEngine instances are constructed, connection is repeatedly established, and then streaming is pulled, so that the time of entering the first frame of the video detail page is relatively long, and the experience of watching the video by the user is influenced.
The specific implementation manner of the method in the embodiment of the disclosure is that when a user watches a target video on a channel list page, a VideoEngine is created for establishing connection with a video server, and then a canvas set by a channel list page is pulled and rendered according to detailed information of the target video fed back by the video server, so that the target video is displayed. When a user clicks to enter a video detail page corresponding to the target video, the instance of the VideoEngine of the channel list page does not need to be released, but the pause method of the VideoEngine is called to pause the target video, and then the VideoEngine is transferred to the video detail page for multiplexing. After the video detail page receives the VideoEngine of the channel list page, the canvas surface setting of the video detail page is sent to the VideoEngine, then the plane method of the VideoEngine is directly called, the stream is continuously pulled from the video server, the canvas of the video detail page is rendered, and the target video is continuously played.
According to the video starting method, cross-workflow Activity multiplexing of the player engine VideoEngine is achieved through the player engine VideoEngine of the video detail page multiplexing list page, new VideoEngine does not need to be created again, and the process of establishing connection with the video server again is avoided, so that the first frame time of the target video is shortened, and the video watching experience of a user is obviously improved.
Fig. 2 is a schematic structural diagram of a video starting apparatus provided in an embodiment of the present disclosure, where the video starting apparatus may be implemented in a software and/or hardware manner, and the video starting apparatus may be configured in a client in a terminal to implement the video starting method in the embodiment of the present disclosure. As shown in fig. 2, the video initiator of the present embodiment includes: a first play module 210, a player engine delivery module 220, and a second play module 230.
The first playing module 210 is configured to, when receiving a playing instruction of a target video initiated on a first display page, create a player engine, and play the target video on the first display page based on the player engine; a player engine delivery module 220, configured to control the player engine to pause playing the target video and deliver the player engine to a second display page corresponding to the target video when a jump request to jump to the second display page is received; a second playing module 230, configured to, when the player engine meets a continuous playing condition for continuing to play the target video, continue to play the target video on the second display page based on the player engine.
According to the technical scheme of the embodiment, when a jump request for jumping to a second display page corresponding to a target video is received, the player engine of the first display page is controlled to pause playing of the target video instead of directly releasing the player engine, and then the player engine is transmitted to the second display page, so that the player engine can be reused when the target video is played on the second display page, operations of creating the player engine and establishing connection between the player engine and a video server do not need to be repeatedly executed, waiting time of a user for starting the target video on the second display page is reduced, and viewing experience of the user is improved.
On the basis of the above technical solutions, the player engine delivery module may further be configured to:
before the target video continues to be played on the second display page based on the player engine, if a trigger instruction for playing the target video initiated on the second display interface is received, confirming that a continuous playing condition for continuing playing the target video is met by the player engine; alternatively, the first and second electrodes may be,
before the target video continues to be played on the second display page based on the player engine, if the jump to the second display interface has been responded to the jump request and the second display interface is in an active state, confirming that the player engine meets a continuous playing condition for continuing to play the target video.
On the basis of the above technical solution, the video starting apparatus may further include: the device comprises a video identification acquisition module and a skip request determination module.
The video identifier acquisition module is used for receiving a skip request for skipping to a second display page before the player engine is controlled to pause playing of the target video, and acquiring a video identifier of a trigger video corresponding to the skip request; and the skip request determining module is used for determining that a skip request for skipping to a second display page corresponding to the target video is received if the video identifier of the trigger video is consistent with the video identifier of the target video.
On the basis of the above technical solutions, the player engine delivery module may be configured to:
and calling a pause method of the player engine to pause playing the target video.
On the basis of the above technical solutions, the second playing module may be configured to:
and sending the canvas setting information of the second display page to the player engine, and calling a playing method of the player engine to continue to play the target video on the second display page.
On the basis of the foregoing technical solutions, before the playing the target video on the second display page based on the player engine, the method may further include:
and acquiring a video resource corresponding to the target video from a preset cache region, and playing the target video based on the player engine and the video resource.
On the basis of the foregoing technical solutions, before the playing the target video on the second display page based on the player engine, the method may further include:
and based on the established communication connection between the player engine and the video server, continuously pulling the video resource corresponding to the target video from the video server to a preset cache region.
On the basis of the above technical solutions, the first playing module may further include:
the connection establishing unit is used for establishing communication connection between the player engine and a video server;
the video playing unit is used for receiving the detailed information of the target video returned by the video server and playing the target video according to the detailed information; the detailed information comprises at least one playing address corresponding to the target video and the definition of the video resource corresponding to each video starting address.
On the basis of the above technical solutions, the connection establishing unit may be configured to:
establishing a communication connection between the player engine and a video server;
and requesting a playing interface from the video server according to the video identification and the video coding format parameter of the target video.
On the basis of the above technical solutions, for example, the first display page may include a video list page; the second display page may comprise a video details page.
The video starting device can execute the video starting method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., a terminal device or server) 300 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 3808 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 3809, or installed from the storage device 308, or installed from the ROM 302. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the embodiment of the present disclosure is the same as the video starting method provided by the above embodiment, and the technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
The disclosed embodiments provide a computer storage medium having a computer program stored thereon, which when executed by a processor implements the video booting method provided by the above embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine; when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video and transmitting the player engine to the second display page; when the player engine meets a continuous playing condition for continuously playing the target video, the target video is continuously played on the second display page based on the player engine.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and units do not limit the modules or units in some cases.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a video starting method applied to a client, the method including:
when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine;
when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video and transmitting the player engine to the second display page;
when the player engine meets a continuous playing condition for continuously playing the target video, the target video is continuously played on the second display page based on the player engine.
According to one or more embodiments of the present disclosure, [ example two ] there is provided a video starting method applied to a client, the method including:
optionally, before the playing of the target video on the second display page based on the player engine is continued, the method further includes:
if a trigger instruction for playing the target video initiated on the second display interface is received, confirming that the player engine meets a continuous playing condition for continuously playing the target video; alternatively, the first and second electrodes may be,
and if the second display interface is jumped to in response to the jump request and is in an active state, confirming that the player engine meets a continuous playing condition for continuously playing the target video.
According to one or more embodiments of the present disclosure, [ example three ] there is provided a video startup method applied to a client, the method including:
optionally, before the controlling the player engine to pause playing the target video, the method further includes:
receiving a jump request for jumping to a second display page, and acquiring a video identifier of a trigger video corresponding to the jump request;
and if the video identifier of the trigger video is consistent with the video identifier of the target video, determining that a jump request for jumping to a second display page corresponding to the target video is received.
According to one or more embodiments of the present disclosure, [ example four ] there is provided a video startup method applied to a client, the method including:
optionally, the controlling the player engine to pause playing the target video includes:
and calling a pause method of the player engine to pause playing the target video.
According to one or more embodiments of the present disclosure, [ example five ] there is provided a video startup method applied to a client, the method comprising:
optionally, the continuing to play the target video on the second display page based on the player engine includes:
and sending the canvas setting information of the second display page to the player engine, and calling a playing method of the player engine to continue to play the target video on the second display page.
According to one or more embodiments of the present disclosure, [ example six ] there is provided a video startup method applied to a client, the method including:
optionally, before the playing the target video on the second display page based on the player engine continues, further comprising:
and acquiring a video resource corresponding to the target video from a preset cache region, and playing the target video based on the player engine and the video resource.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided a video startup method applied to a client, the method including:
optionally, before the playing the target video on the second display page based on the player engine continues, further comprising:
and based on the established communication connection between the player engine and the video server, continuously pulling the video resource corresponding to the target video from the video server to a preset cache region.
According to one or more embodiments of the present disclosure, [ example eight ] there is provided a video startup method applied to a client, the method including:
illustratively, the first display page comprises a video listing page; the second display page includes a video details page.
According to one or more embodiments of the present disclosure, [ example nine ] there is provided a video startup method, configured at a client, the apparatus including:
the first playing module is used for creating a player engine when receiving a playing instruction of a target video initiated on a first display page, and playing the target video on the first display page based on the player engine;
the player engine transfer module is used for controlling the player engine to pause playing the target video and transferring the player engine to a second display page when a jump request for jumping to the second display page corresponding to the target video is received;
and the second playing module is used for continuing playing the target video on the second display page based on the player engine when the player engine meets a continuous playing condition for continuing playing the target video.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A video starting method is applied to a client and comprises the following steps:
when a playing instruction of a target video initiated on a first display page is received, a player engine is created, and the target video is played on the first display page based on the player engine;
when a jump request for jumping to a second display page corresponding to the target video is received, controlling the player engine to pause playing the target video and transmitting the player engine to the second display page;
when the player engine meets a continuous playing condition for continuously playing the target video, the target video is continuously played on the second display page based on the player engine.
2. The method of claim 1, further comprising, before the playing the target video on the second display page based on the player engine, further:
if a trigger instruction for playing the target video initiated on the second display interface is received, confirming that the player engine meets a continuous playing condition for continuously playing the target video; alternatively, the first and second electrodes may be,
and if the second display interface is jumped to in response to the jump request and is in an active state, confirming that the player engine meets a continuous playing condition for continuously playing the target video.
3. The method of claim 1, further comprising, before the controlling the player engine to pause playing the target video:
receiving a jump request for jumping to a second display page, and acquiring a video identifier of a trigger video corresponding to the jump request;
and if the video identifier of the trigger video is consistent with the video identifier of the target video, determining that a jump request for jumping to a second display page corresponding to the target video is received.
4. The method of claim 1, wherein the controlling the player engine to pause playing the target video comprises:
and calling a pause method of the player engine to pause playing the target video.
5. The method of claim 1, wherein the continuing to play the target video on the second display page based on the player engine comprises:
and sending the canvas setting information of the second display page to the player engine, and calling a playing method of the player engine to continue playing the target video on the second display page.
6. The method of claim 1, further comprising, before the playing the target video on the second display page based on the player engine continuing to play the target video:
and acquiring a video resource corresponding to the target video from a preset cache region, and playing the target video based on the player engine and the video resource.
7. The method of claim 6, further comprising, before the playing the target video on the second display page based on the player engine continuing to play the target video:
and based on the established communication connection between the player engine and the video server, continuously pulling the video resource corresponding to the target video from the video server to a preset cache region.
8. The method of claim 1, wherein the first display page comprises a video list page; the second display page includes a video details page.
9. A video initiator, configured at a client, comprising:
the first playing module is used for creating a player engine when receiving a playing instruction of a target video initiated on a first display page, and playing the target video on the first display page based on the player engine;
the player engine transfer module is used for controlling the player engine to pause playing the target video and transferring the player engine to a second display page when a jump request for jumping to the second display page corresponding to the target video is received;
and the second playing module is used for continuing playing the target video on the second display page based on the player engine when the player engine meets a continuous playing condition for continuing playing the target video.
10. An electronic device, comprising:
one or more processing devices;
a memory for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the video launching method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the video startup method of any one of claims 1 to 8.
CN201910980305.6A 2019-10-15 2019-10-15 Video starting method and device, electronic equipment and storage medium Active CN110708602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910980305.6A CN110708602B (en) 2019-10-15 2019-10-15 Video starting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910980305.6A CN110708602B (en) 2019-10-15 2019-10-15 Video starting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110708602A true CN110708602A (en) 2020-01-17
CN110708602B CN110708602B (en) 2022-08-19

Family

ID=69199675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910980305.6A Active CN110708602B (en) 2019-10-15 2019-10-15 Video starting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110708602B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314791A (en) * 2020-03-19 2020-06-19 杭州趣维科技有限公司 Seamless jump method in video playing based on Android
CN111479122A (en) * 2020-04-13 2020-07-31 海信视像科技股份有限公司 Video playing method, device, equipment and storage medium
CN111629251A (en) * 2020-06-10 2020-09-04 北京字节跳动网络技术有限公司 Video playing method and device, storage medium and electronic equipment
CN112492332A (en) * 2020-11-13 2021-03-12 北京达佳互联信息技术有限公司 Data display control method and device, electronic equipment and storage medium
CN112667332A (en) * 2020-12-21 2021-04-16 上海多维度网络科技股份有限公司 Data processing method and device, storage medium and electronic device
CN113411683A (en) * 2021-06-23 2021-09-17 北京奇艺世纪科技有限公司 Video playing method and device
CN114501100A (en) * 2022-01-19 2022-05-13 上海哔哩哔哩科技有限公司 Live broadcast page skipping method and system
CN114501134A (en) * 2021-12-28 2022-05-13 广东南方新媒体科技有限公司 iOS cross-page video playing method, device, equipment and storage medium
CN115116277A (en) * 2021-03-19 2022-09-27 海信集团控股股份有限公司 Teaching video control device, video control method and device
WO2023284498A1 (en) * 2021-07-13 2023-01-19 富途网络科技(深圳)有限公司 Video playing method and apparatus, and storage medium
CN116700660A (en) * 2022-11-15 2023-09-05 荣耀终端有限公司 Audio playing method and electronic equipment
CN116700660B (en) * 2022-11-15 2024-05-14 荣耀终端有限公司 Audio playing method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132966A1 (en) * 2011-05-26 2013-05-23 Rupen Chanda Video Player Instance Prioritization
CN103702215A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for selecting video player
US20160266776A1 (en) * 2015-03-09 2016-09-15 Alibaba Group Holding Limited Video content play
US20170168706A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for switching videos
CN107197393A (en) * 2017-06-16 2017-09-22 广州荔枝网络有限公司 A kind of implementation method of singleton video player
CN107277586A (en) * 2017-07-19 2017-10-20 西安领讯卓越信息技术有限公司 A kind of mobile terminal video player method
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN110062284A (en) * 2019-04-03 2019-07-26 北京字节跳动网络技术有限公司 Video broadcasting method, device and electronic equipment
CN110166810A (en) * 2019-04-25 2019-08-23 腾讯科技(深圳)有限公司 Video rendering engine switching method, device, equipment and readable storage medium storing program for executing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132966A1 (en) * 2011-05-26 2013-05-23 Rupen Chanda Video Player Instance Prioritization
CN103702215A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for selecting video player
US20160266776A1 (en) * 2015-03-09 2016-09-15 Alibaba Group Holding Limited Video content play
US20170168706A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for switching videos
CN107197393A (en) * 2017-06-16 2017-09-22 广州荔枝网络有限公司 A kind of implementation method of singleton video player
CN107277586A (en) * 2017-07-19 2017-10-20 西安领讯卓越信息技术有限公司 A kind of mobile terminal video player method
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN110062284A (en) * 2019-04-03 2019-07-26 北京字节跳动网络技术有限公司 Video broadcasting method, device and electronic equipment
CN110166810A (en) * 2019-04-25 2019-08-23 腾讯科技(深圳)有限公司 Video rendering engine switching method, device, equipment and readable storage medium storing program for executing

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314791A (en) * 2020-03-19 2020-06-19 杭州趣维科技有限公司 Seamless jump method in video playing based on Android
CN111314791B (en) * 2020-03-19 2022-04-05 杭州小影创新科技股份有限公司 Seamless jump method in video playing based on Android
CN111479122A (en) * 2020-04-13 2020-07-31 海信视像科技股份有限公司 Video playing method, device, equipment and storage medium
CN111629251A (en) * 2020-06-10 2020-09-04 北京字节跳动网络技术有限公司 Video playing method and device, storage medium and electronic equipment
WO2021249196A1 (en) * 2020-06-10 2021-12-16 北京字节跳动网络技术有限公司 Video playback method and apparatus, storage medium, and electronic device
CN112492332A (en) * 2020-11-13 2021-03-12 北京达佳互联信息技术有限公司 Data display control method and device, electronic equipment and storage medium
CN112667332A (en) * 2020-12-21 2021-04-16 上海多维度网络科技股份有限公司 Data processing method and device, storage medium and electronic device
CN115116277B (en) * 2021-03-19 2023-11-17 海信集团控股股份有限公司 Teaching video control equipment, video control method and equipment
CN115116277A (en) * 2021-03-19 2022-09-27 海信集团控股股份有限公司 Teaching video control device, video control method and device
CN113411683A (en) * 2021-06-23 2021-09-17 北京奇艺世纪科技有限公司 Video playing method and device
CN113411683B (en) * 2021-06-23 2022-07-22 北京奇艺世纪科技有限公司 Video playing method and device
WO2023284498A1 (en) * 2021-07-13 2023-01-19 富途网络科技(深圳)有限公司 Video playing method and apparatus, and storage medium
CN114501134B (en) * 2021-12-28 2022-11-18 广东南方新媒体科技有限公司 iOS cross-page video playing method, device, equipment and storage medium
CN114501134A (en) * 2021-12-28 2022-05-13 广东南方新媒体科技有限公司 iOS cross-page video playing method, device, equipment and storage medium
CN114501100A (en) * 2022-01-19 2022-05-13 上海哔哩哔哩科技有限公司 Live broadcast page skipping method and system
CN116700660A (en) * 2022-11-15 2023-09-05 荣耀终端有限公司 Audio playing method and electronic equipment
CN116700660B (en) * 2022-11-15 2024-05-14 荣耀终端有限公司 Audio playing method and electronic equipment

Also Published As

Publication number Publication date
CN110708602B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN110708602B (en) Video starting method and device, electronic equipment and storage medium
WO2022028561A1 (en) Video mirroring method and apparatus, and electronic device and storage medium
US10225613B2 (en) Method and apparatus for video playing processing and television
CN113489937B (en) Video sharing method, device, equipment and medium
CN109640129B (en) Video recommendation method and device, client device, server and storage medium
CN112783591A (en) Interaction method, interaction device, electronic equipment and storage medium
WO2022048435A1 (en) Video recommendation method and apparatus, electronic device, and storage medium
US20150341698A1 (en) Method and device for providing selection of video
CN109600656B (en) Video list display method and device, terminal equipment and storage medium
CN111526411A (en) Video processing method, device, equipment and medium
CN113225483B (en) Image fusion method and device, electronic equipment and storage medium
CN114168018A (en) Data interaction method, data interaction device, electronic equipment, storage medium and program product
CN113934349B (en) Interaction method, interaction device, electronic equipment and storage medium
CN112817781A (en) Application program interaction method, device, equipment and medium
US20240121349A1 (en) Video shooting method and apparatus, electronic device and storage medium
CN115474085A (en) Media content playing method, device, equipment, storage medium and program product
CN114707092A (en) Live content display method, device, equipment, readable storage medium and product
CN115062168A (en) Media content display method, device, equipment and storage medium
CN115113790A (en) Interaction method, interaction device, electronic equipment and storage medium
CN111246245B (en) Method and device for pushing video aggregation page, server and terminal equipment
CN114238673A (en) Content display method, device, equipment and storage medium
US20240119970A1 (en) Method and apparatus for multimedia resource clipping scenario, device and storage medium
US20230412723A1 (en) Method and apparatus for generating imagery record, electronic device, and storage medium
CN111147885B (en) Live broadcast room interaction method and device, readable medium and electronic equipment
US20230137492A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium

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