CN113727167B - Video resource playing method, device, equipment and readable storage medium - Google Patents

Video resource playing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113727167B
CN113727167B CN202110916730.6A CN202110916730A CN113727167B CN 113727167 B CN113727167 B CN 113727167B CN 202110916730 A CN202110916730 A CN 202110916730A CN 113727167 B CN113727167 B CN 113727167B
Authority
CN
China
Prior art keywords
picture
playing
resource
video
video resource
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.)
Active
Application number
CN202110916730.6A
Other languages
Chinese (zh)
Other versions
CN113727167A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110916730.6A priority Critical patent/CN113727167B/en
Publication of CN113727167A publication Critical patent/CN113727167A/en
Application granted granted Critical
Publication of CN113727167B publication Critical patent/CN113727167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a video resource playing method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: in the picture-in-picture playing mode, monitoring a first video resource played in a picture-in-picture playing window to determine the playing progress of the first video resource, acquiring a resource address of a second video resource, acquiring the second video resource according to the resource address, and playing the second video resource in the picture-in-picture playing window after the first video resource is determined to be played according to the playing progress. By monitoring the playing progress of the video resources played in the picture-in-picture playing window, after the video resources currently played in the picture-in-picture playing window are finished, playing the next video resource according to the obtained resource address, a plurality of video resources can be continuously played in the picture-in-picture playing window, and continuous playing of the video resources in the picture-in-picture playing window is realized.

Description

Video resource playing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method, an apparatus, a device, and a readable storage medium for playing video resources.
Background
In the picture-in-picture playing mode, the electronic device can display a picture-in-picture playing window with the area smaller than the screen area at the preset position in the display screen, play video resources in the picture-in-picture playing window, and provide other services for a user through other screen areas except the picture-in-picture playing window, so that the requirement of multitasking when the user watches the video resources is met.
In the prior art, when the electronic device plays the video resources through the picture-in-picture playing window, continuous playing of a plurality of video resources cannot be realized.
Disclosure of Invention
An embodiment of the invention aims to provide a video resource playing method, a device, equipment and a readable storage medium, so as to solve the problem that a picture-in-picture playing window cannot continuously play a plurality of video resources.
In a first aspect of the embodiment of the present invention, there is first provided a video resource playing method, including:
in a picture-in-picture playing mode, monitoring a first video resource played in a picture-in-picture playing window to determine the playing progress of the first video resource;
acquiring a resource address of a second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played;
acquiring the second video resource according to the resource address;
and after the first video resource is determined to be played according to the playing progress, playing the second video resource in the picture-in-picture playing window.
In a second aspect of the embodiment of the present invention, there is also provided a video resource playing device, including:
the monitoring module is used for monitoring the first video resources played in the picture-in-picture playing window in the picture-in-picture playing mode so as to determine the playing progress of the first video resources;
the first acquisition module is used for acquiring the resource address of the second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played;
the second acquisition module is used for acquiring the second video resource according to the resource address;
and the playing module is used for playing the second video resources in the picture-in-picture playing window after the first video resources are determined to be played according to the playing progress.
In yet another aspect of the embodiment of the present invention, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to the first aspect of the embodiment of the present invention when executing the computer program stored on the memory.
In a further aspect of the embodiments of the present invention, there is also provided a readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method according to the first aspect of the embodiments of the present invention.
In the video resource playing method provided by the embodiment of the invention, the electronic equipment monitors the first video resource played in the picture-in-picture playing window in the picture-in-picture playing mode to determine the playing progress of the first video resource, acquires the resource address of the second video resource, acquires the second video resource according to the resource address, and plays the second video resource in the picture-in-picture playing window after the end of the playing of the first video resource is determined according to the playing progress. By monitoring the playing progress of the video resources played in the picture-in-picture playing window, after the video resources currently played in the picture-in-picture playing window are finished, playing the next video resource according to the obtained resource address, a plurality of video resources can be continuously played in the picture-in-picture playing window, and continuous playing of the video resources in the picture-in-picture playing window is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart illustrating steps of a method for playing video resources according to an embodiment of the present invention;
fig. 2 is a schematic diagram of video resource playback switching in an embodiment of the present invention;
fig. 3 is a block diagram of a video resource playing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a video resource playing method. The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a video asset playing method according to an embodiment of the present invention, where the video asset playing method provided by the present embodiment is suitable for an electronic device to continuously play a plurality of video assets in a picture-in-picture playing window. The video resource playing method provided in this embodiment may be executed by a video resource playing device, where the video resource playing device may be disposed in an electronic apparatus, and the video resource playing device is typically implemented in a software and/or hardware manner, and the method may include:
step 101, in a picture-in-picture playing mode, monitoring a first video resource played in a picture-in-picture playing window to determine a playing progress of the first video resource.
The first video resource is a video resource currently being played in the picture-in-picture playing window.
In this embodiment, the video resource playing method is applied to an electronic device with a picture-in-picture playing function, for example, a terminal device such as a mobile phone, a tablet computer, a personal computer, and the like. The system player can display a picture-in-picture playing window in a display screen of the electronic device, and play the video resource through the picture-in-picture playing window when an application program in the electronic device starts an animation picture-in-picture playing mode in the process of playing the video resource.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating video asset playing switching according to an embodiment of the invention. Applications are used to acquire and play video assets, such as multimedia assets like movies, television shows, and short videos. The user may first start the application and open a resource page of the application, where resource information of a plurality of video resources is displayed, for example, a name of a drama may be displayed in the resource page, and resource information such as a album number, a thumbnail, and a content profile of each episode of the drama. The user may select a episode and click a play button, and the electronic device may open a play page 201 of the application in response to the user clicking the play button, and play the video asset selected by the user in a play window of the play page 201 through the page player 202 in the application.
At this time, if the user clicks the pip play button in the play page 201, the electronic device may start the pip play mode in response to the user clicking the pip play button, and control the system player 203 in the electronic device to display the pip play window in the display screen, play the first video resource currently being played in the play page in the pip play window, and simultaneously close the play page. The user may view the first video asset through the pip play window and operate the electronic device through other areas of the display screen other than the pip play window. The starting process of the picture-in-picture playing mode can be set according to requirements, and the embodiment is not limited to this.
In one embodiment, the progress monitoring component 204 may be disposed in the electronic device, and when the user initiates the picture-in-picture playing mode, the electronic device may simultaneously initiate the progress monitoring component 204, and control the progress monitoring component 204 to monitor the first video resource played in the picture-in-picture playing window, so as to determine the playing progress of the first video resource. For example, if the total duration of the first video asset played in the pip window is 1 hour, the progress monitoring component 204 may monitor the play duration of the first video asset in real time, where the play duration indicates the play progress of the first video asset, and when the play duration is equal to the total duration of the first video asset, the play of the first video asset is ended. In practical applications, the method for monitoring the playing progress may include, but is not limited to, a method for monitoring the playing duration, and any method existing in the art or possible to occur in the future may be applied to this embodiment.
Step 102, obtaining the resource address of the second video resource.
The second video resource is used for being played in the picture-in-picture playing window after the first video resource is played.
In this embodiment, the electronic device may acquire the resource address of the second video resource, so as to acquire the second video resource according to the resource address of the second video resource, and play the second video resource in the pip play window after the play of the first video resource is finished.
Alternatively, step 102 may be implemented as follows:
determining resource information of a second video resource with a preset association relation with the first video resource from a resource page of an application program based on the resource information of the first video resource; the application program is an application program for starting an animation middle picture playing mode;
and acquiring the resource address of the second video resource according to the resource information of the second video resource.
In one embodiment, the second video asset may be a video asset having a preset association with the first video asset. In combination with the above example, if the resource page of the application program displays the resource information of multiple episodes of tv dramas, the user clicks to play the second episode of tv dramas, that is, the first video resource played in the picture-in-picture playing window is the second episode of tv dramas. The electronic device may determine resource information such as a name of the drama and a episode number of the second episode, and determine, from the resource page, that resource information of a third episode of the same name and a episode number greater than the second episode is resource information of the second video resource according to the name of the drama and the episode number of the second episode.
At this time, the electronic device may determine a link, such as a uniform resource locator (uniform resource locator, URL), of the third episode from the resource page according to the resource information of the third episode. The electronic device may send an address request to the server including the URL of the third episode. Correspondingly, the server can respond to the address request sent by the electronic equipment, analyze and obtain the URL of the third set of television drama, determine the resource address of the third set of television drama corresponding to the URL of the third set of television drama, and return the resource address of the third set of television drama to the electronic equipment. The resource address returned by the server is a storage address of the third episode in the server, and the electronic device may obtain the third episode from the server according to the storage address of the third episode in the server.
In another embodiment, the second video asset may be a randomly selected video asset. For example, if the first video asset played in the pip window is a movie, the electronic device may randomly determine asset information of a next movie (i.e., the second video asset) different from the currently played movie from the asset page of the application, and obtain the asset address of the next movie. Or, the electronic device may recommend, according to the resource information of the first video resource, resource information of a second video resource having the same type as the first video resource to the user through a recommendation algorithm. For example, the electronic device may recommend, according to resource information such as a content profile of a currently played movie, resource information of a next movie with the same type, that is, resource information of a second video resource, to the user through a recommendation algorithm. The specific method for determining the second video resource may be set according to the requirement, which is not limited in this embodiment.
In yet another embodiment, the pip play window may also play video assets stored in the electronic device, where the asset address is a storage address of the video assets in the electronic device. For example, if the first video resource stored in the electronic device is currently played in the pip playing window, the electronic device may select, from a plurality of locally stored video resources, resource information of a second video resource that determines that an association relationship exists between the second video resource and the first video resource, and determine a storage address of the second video resource in the electronic device during playing. The electronic device may obtain the second video asset from the electronic device according to a storage address of the second video asset in the electronic device.
It should be noted that, the electronic device may start to acquire the resource address of the second video resource after the first video resource ends, or may start to acquire the resource address of the second video resource at a preset time before the first video resource ends. The preset association relationship includes, but is not limited to, the same name, the same type, and the like as described above.
In practical application, according to the resource information of the first video resource, the resource information of the second video resource with the association relation with the first video resource is determined, after the playing of the first video resource is finished, the second video resource with the association relation with the first video resource can be played, a plurality of associated video resources can be continuously played for a user, and the requirement of watching the plurality of associated video resources by the user can be met.
And step 103, obtaining a second video resource according to the resource address.
Step 104, after the first video resource is determined to be played according to the playing progress, playing the second video resource in the picture-in-picture playing window.
In one embodiment, the electronic device may initiate obtaining the second video asset after determining that the first video asset played in the pip play window ends according to the play progress, and continue playing the second video asset in the pip play window. In combination with the foregoing, if the play duration of the second episode of the television series monitored by the progress monitoring component is 1 hour, the playing duration is equal to the total duration, and the second set of television drama playing is determined to be finished. At this time, the electronic device may send a resource request including the resource address of the third episode to the server according to the resource address returned by the server. Accordingly, the server may determine the third episode from the resource address of the third episode in response to the resource request, and return the video resource of the third episode to the electronic device. At this time, the electronic device may control the system player to play the received third episode of the tv show in the picture-in-picture play window, so as to realize continuous play of the tv show. The specific process of the electronic device obtaining the video resource from the server may be set according to the requirement, which is not limited in this embodiment.
In another embodiment, the electronic device may pre-obtain the second video asset according to the asset address of the second video asset before the playing of the first video asset is finished. And after the first video resource is determined to be played according to the playing progress, playing the second video resource acquired in advance in the picture-in-picture playing window.
Optionally, the step of obtaining the second video resource according to the resource address may be implemented as follows: loading the second video resource to the local storage according to the resource address, and providing the local address of the second video resource stored locally for the picture-in-picture playing window;
accordingly, the step of playing the second video asset in the pip play window may be implemented as follows: and playing the second video resource stored locally in the picture-in-picture playing window according to the local address.
In another embodiment, the electronic device may first obtain the second video resource from the server and store the second video resource in the electronic device, and in the process of playing the second video resource, the electronic device may obtain the second video resource locally and play the second video resource. In combination with the above example, after the server returns the storage address of the second video resource in the server to the electronic device, the electronic device may transfer the storage address to a local service 205 (LocalServer) in the electronic device, and the local service 205 may obtain the second video resource from the server through a content delivery network (Content Delivery Network, CDN) according to the storage address of the second video resource in the server. After the second video asset is acquired, the local service 205 may store the second video asset in the electronic device and generate a storage address, i.e., a local address, of the second video asset in the electronic device, and provide the local address of the second video asset to the system player 203. Accordingly, the system player 203 may obtain the second video asset from the local location according to the local address, and play the second video asset in the pip play window.
In practical application, when the electronic device downloads the video resource from the server, the video resource can be loaded locally, and then the local address of the video resource is provided for the picture-in-picture playing window, so that the picture-in-picture playing window can obtain and play the video resource locally, and the problems of clamping and the like in the process of playing the video resource can be avoided.
Alternatively, the step of loading the second video asset into the local store according to the asset address may be implemented as follows: under the condition that the playing progress reaches the target playing progress, loading and storing a second video resource according to the resource address; the target playing progress is before the playing of the first video resource is finished.
In one embodiment, the electronic device may begin loading and storing the second video asset when the playing progress of the first video asset reaches the target playing progress, so as to avoid loading the second video asset during the playing of the second video asset, and affecting the playing of the second video asset. For example, the preset time of the target playing progress before the playing of the first video resource ends may be 2 minutes before the playing ends, and when the progress monitoring component 204 detects that the playing duration of the second set of tv shows is 58 minutes, it may be determined that the total duration of the second set of tv shows is only 2 minutes from the playing end, that is, only 2 minutes from the playing end, so as to reach the target playing progress. At this time, the electronic device may load the second video asset while playing the first video asset through the multithreading asynchronous processing technology, and present the loaded second video asset locally. Specific values of the preset time may be set according to requirements, which is not limited in this embodiment.
In practical application, the electronic device acquires the second video resource in advance before the first video resource is played, and can directly play the second video resource after the first video resource is finished, so that the first video resource and the second video resource can be smoothly connected, the phenomenon of blocking is avoided, and the watching experience of a user is prevented from being influenced.
Optionally, before playing the second video asset in the picture-in-picture play window, the method may further comprise:
and determining that the account information of the user accords with preset conditions.
The account information may be an account number obtained by registering the user in the application program, and the account information may identify the identity of the user. The preset condition may be level information of account information, different level information indicating that the user has different rights. For example, if the account information is rated as a guest (very important person, VIP) user, it may be determined that the account information of the user meets a preset condition, and the user has a right to avoid the advertisement. At this time, the electronic device may directly play the second video asset.
In practical application, before the electronic device plays the second video resource, if the account information of the user is determined to meet the preset condition, the second video resource can be directly played, so that the advertisement resource is prevented from being played between the first video resource and the second video resource, and the smoothness of playing the video resource can be improved. Among them, advertisement resources such as multimedia resources of advertisement videos, advertisement pictures, and advertisement animations.
In summary, in this embodiment, in the pd playing mode, the electronic device monitors the first video asset played in the pd playing window to determine the playing progress of the first video asset, obtains the asset address of the second video asset, obtains the second video asset according to the asset address, and plays the second video asset in the pd playing window after determining that the playing of the first video asset is finished according to the playing progress. By monitoring the playing progress of the video resources played in the picture-in-picture playing window, after the video resources currently played in the picture-in-picture playing window are finished, playing the next video resource according to the obtained resource address, a plurality of video resources can be continuously played in the picture-in-picture playing window, and continuous playing of the video resources in the picture-in-picture playing window is realized.
Optionally, the method may further include:
after the first video resource is determined to be played according to the playing progress, if the account information of the user is determined to be not in accordance with the preset condition, acquiring the advertisement resource, and playing the advertisement resource in the picture-in-picture playing window;
and after the advertisement resource playing is finished, playing the second video resource in the picture-in-picture playing window.
In one embodiment, after determining that the playing of the first video asset is finished, if the electronic device determines that the account information of the user does not meet the preset condition, the electronic device may play the advertisement asset before playing the second video asset. In combination with the above example, if the account information of the user is a common account, the electronic device may first obtain the advertisement resource, and then play the advertisement resource in the pip play window. After the advertising asset is played, the second video asset may continue to be played in the picture-in-picture window. The method for the electronic device to acquire the advertisement resource can be set according to the requirement, and the embodiment is not limited to this.
In practical application, when the electronic equipment determines that the account information does not meet the preset condition, the advertisement resource can be played in the process of continuously playing the video resource, so that the recommendation efficiency of the advertisement resource is improved.
Optionally, while monitoring the first video asset played in the picture-in-picture play window, the method may further include:
recording resource information of a first video resource;
closing the picture-in-picture playing window under the condition that an exit operation for exiting the picture-in-picture playing window is received;
according to the resource information and the playing progress of the first video resource, continuing to play the first video resource in the playing page of the application program; the application program is an application program for starting an animation middle picture playing window.
In one embodiment, the electronic device may, while playing the first video asset through the pip play window, schedule the asset information and the play progress of the first video asset played in the pip play window to continue playing the first video asset when exiting the pip play mode. In combination with the foregoing example, the play statistics component 206 may be configured in the electronic device, if the current playing first video resource in the pip playing window is a third episode, the play statistics component 206 may record that the resource information of the current playing first video resource is the number of episodes of the third episode, the play progress is a play duration of the third episode, for example, 20 minutes, and the electronic device may record the resource information and the play progress of the third episode.
At this time, if the electronic device receives an exit operation for the user to exit the pip play window, the electronic device may close the pip play window in response to the exit operation. Meanwhile, the electronic device may display the playing page 201 of the application program, play the third episode in the playing window of the playing page 201 through the page player 202 according to the episode number of the third episode in the third episode recorded by the playing statistics component 206, and start playing the third episode from 20 th minute of the third episode according to the playing progress of the third episode.
In practical application, the electronic device records the resource information and the playing progress of the video resource currently being played in the picture-in-picture playing window, and after exiting the picture-in-picture playing window, the video resource can be continuously played according to the recorded resource information and the playing progress, so that the user can conveniently switch and play the video resource in the picture-in-picture playing window and the playing page of the application program.
Referring to fig. 3, fig. 3 is a block diagram illustrating a structure of a video asset playing device according to an embodiment of the present invention, as shown in fig. 3, the video asset playing device provided in this embodiment is suitable for playing video assets, so as to continuously play a plurality of video assets in a picture-in-picture playing window. The video asset playing device may be disposed on an electronic device, where the video asset playing device is typically implemented in software and/or hardware, and the video asset playing device 300 may include: a monitoring module 301, a first obtaining module 302, a second obtaining module 303 and a playing module 304.
The monitoring module 301 is configured to monitor, in a pd playing mode, a first video asset played in a pd playing window to determine a playing progress of the first video asset.
A first obtaining module 302, configured to obtain a resource address of a second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played.
And the second obtaining module 303 is configured to obtain a second video resource according to the resource address.
And the playing module 304 is configured to play the second video asset in the pip playing window after determining that the playing of the first video asset is finished according to the playing progress.
Optionally, the second obtaining module 303 includes a loading unit, configured to load the second video resource into the local storage according to the resource address, and provide the local address of the second video resource stored locally to the pip playing window;
the playing module 304 is specifically configured to play the second video resource stored locally in the pip playing window according to the local address.
Optionally, the loading unit is specifically configured to load and store the second video resource according to the resource address when the playing progress reaches the target playing progress; the target playing progress is before the playing of the first video resource is finished.
Optionally, the playing module 304 is further configured to record resource information of the first video resource; closing the picture-in-picture playing window under the condition that an exit operation for exiting the picture-in-picture playing window is received; according to the resource information and the playing progress of the first video resource, continuing to play the first video resource in the playing page of the application program; the application program is an application program for starting an animation middle picture playing window.
Optionally, the first obtaining module 302 is specifically configured to determine, from a resource page of the application program, resource information of a second video resource having a preset association relationship with the first video resource based on the resource information of the first video resource; the application program is an application program for starting an animation middle picture playing mode; and acquiring the resource address of the second video resource according to the resource information of the second video resource.
Optionally, the playing module 304 is further configured to, after determining that the playing of the first video asset is finished according to the playing progress, obtain an advertisement asset if it is determined that the account information of the user does not meet the preset condition, and play the advertisement asset in the picture-in-picture playing window; and after the advertisement resource playing is finished, playing the second video resource in the picture-in-picture playing window.
In this embodiment, in a pd playing mode, the electronic device monitors a first video asset played in a pd playing window to determine a playing progress of the first video asset, obtains a resource address of a second video asset, obtains the second video asset according to the resource address, and plays the second video asset in the pd playing window after determining that the playing of the first video asset is finished according to the playing progress. By monitoring the playing progress of the video resources played in the picture-in-picture playing window, after the video resources currently played in the picture-in-picture playing window are finished, playing the next video resource according to the obtained resource address, a plurality of video resources can be continuously played in the picture-in-picture playing window, and continuous playing of the video resources in the picture-in-picture playing window is realized.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete communication with each other through the communication bus 404;
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
in the picture-in-picture playing mode, monitoring a first video resource played in a picture-in-picture playing window to determine the playing progress of the first video resource;
acquiring a resource address of a second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played;
acquiring a second video resource according to the resource address;
and after the first video resource is determined to be played according to the playing progress, playing the second video resource in the picture-in-picture playing window.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a readable storage medium is provided, in which instructions are stored, which when run on a computer, cause the computer to perform the method according to any of the above embodiments.
In a further embodiment of the present invention, a computer program product comprising instructions which, when run on a computer, causes the computer to perform the method according to any of the embodiments described above is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer instructions may be transmitted from one website, computer, first server, or data center to another website, computer, first server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a first server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (8)

1. A video asset playing method, comprising:
in the picture-in-picture playing mode, a picture-in-picture playing window is displayed through a system player, a first video resource is played through the picture-in-picture playing window, and the first video resource played in the picture-in-picture playing window is monitored to determine the playing progress of the first video resource;
acquiring a resource address of a second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played;
loading the second video resource to a local storage according to the resource address, and providing the local address of the second video resource stored locally for the picture-in-picture playing window;
and after the first video resource is determined to be played according to the playing progress, playing the second video resource stored locally in the picture-in-picture playing window according to the local address.
2. The method of claim 1, wherein said loading the second video asset to a local store according to the asset address comprises:
loading and storing the second video resource according to the resource address under the condition that the playing progress reaches the target playing progress; and the target playing progress is before the playing of the first video resource is finished.
3. The method of claim 1, wherein monitoring the first video asset played in the picture-in-picture playback window further comprises: recording resource information of the first video resource; the method further comprises the steps of:
closing the picture-in-picture playing window under the condition that an exit operation for exiting the picture-in-picture playing window is received;
continuing to play the first video resource in a play page of the application program according to the resource information and the play progress of the first video resource; the application program is an application program for starting the picture-in-picture playing window.
4. The method of claim 1, wherein the obtaining the resource address of the second video resource comprises:
determining resource information of the second video resource with a preset association relation with the first video resource from a resource page of an application program based on the resource information of the first video resource; the application program is an application program for starting the picture-in-picture playing mode;
and acquiring the resource address of the second video resource according to the resource information of the second video resource.
5. The method of any one of claims 1-4, further comprising:
after the first video resource is determined to be played according to the playing progress, if the account information of the user is determined to be not in accordance with the preset condition, acquiring an advertisement resource, and playing the advertisement resource in the picture-in-picture playing window;
and after the advertisement resource playing is finished, playing the second video resource in the picture-in-picture playing window.
6. A video asset playing device, comprising:
the monitoring module is used for displaying a picture-in-picture playing window through the system player, playing a first video resource through the picture-in-picture playing window and monitoring the first video resource played in the picture-in-picture playing window to determine the playing progress of the first video resource;
the first acquisition module is used for acquiring the resource address of the second video resource; the second video resource is used for being played in the picture-in-picture playing window after the first video resource is played;
the second acquisition module is used for acquiring the second video resource according to the resource address;
the playing module is used for playing the second video resources in the picture-in-picture playing window after the first video resources are determined to be played according to the playing progress;
the second acquisition module comprises a loading unit, a first video resource and a second video resource, wherein the loading unit is used for loading the second video resource to a local storage according to the resource address and providing the local address of the second video resource stored locally for the picture-in-picture playing window;
the playing module is specifically configured to play the second video resource stored locally in the pip playing window according to the local address.
7. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program stored on the memory, is adapted to implement the method of any one of claims 1-5.
8. A readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any of claims 1-5.
CN202110916730.6A 2021-08-11 2021-08-11 Video resource playing method, device, equipment and readable storage medium Active CN113727167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110916730.6A CN113727167B (en) 2021-08-11 2021-08-11 Video resource playing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110916730.6A CN113727167B (en) 2021-08-11 2021-08-11 Video resource playing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113727167A CN113727167A (en) 2021-11-30
CN113727167B true CN113727167B (en) 2023-07-25

Family

ID=78675465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110916730.6A Active CN113727167B (en) 2021-08-11 2021-08-11 Video resource playing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113727167B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115767154B (en) * 2023-01-04 2023-05-16 北京搜狐新动力信息技术有限公司 Picture-in-picture oriented play control method and device and computer readable medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394514A (en) * 2008-10-29 2009-03-25 北京海尔集成电路设计有限公司 Intelligent playing method and device for picture-in-picture
CN104965693A (en) * 2014-08-29 2015-10-07 腾讯科技(深圳)有限公司 Video processing method and system
CN105898611A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 Multimedia recommendation method and terminal equipment based on Android platform
CN108540838A (en) * 2018-05-15 2018-09-14 三星电子(中国)研发中心 A kind of audio and video playing method and apparatus
CN112954431A (en) * 2021-01-29 2021-06-11 北京奇艺世纪科技有限公司 Video playing method and device, video playing equipment and readable storage medium

Also Published As

Publication number Publication date
CN113727167A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US9191450B2 (en) Measuring user engagement during presentation of media content
US8635658B2 (en) Broadcast social and media navigation system
US8627388B2 (en) Method and apparatus for channel prioritization
US20150256885A1 (en) Method for determining content for a personal channel
US9342229B2 (en) Method for associating media files with additional content
US20130262558A1 (en) Method and Apparatus for Dynamic Prioritization of Content Through Interactive Browsing
US20090254823A1 (en) Bookmark Interpretation Service
US20130263189A1 (en) Method and Apparatus for Sharing Content
US20090158369A1 (en) System and Method to Display Media Content and an Interactive Display
US20130262619A1 (en) Method and Apparatus for Recurring Content Searches and Viewing Window Notification
CN108966016B (en) Video clip rebroadcasting method and device and terminal equipment
CN111107438B (en) Video loading method and device and electronic equipment
CN105100912B (en) Streaming Media processing method and Streaming Media processing unit
CN107562848B (en) Video recommendation method and device
CN104866591B (en) Video recommendation method and device
CN107454442B (en) Method and device for recommending video
CN107104883A (en) Information sharing method, client and server in a kind of social networks chain
CN108810580B (en) Media content pushing method and device
US9769530B2 (en) Video-on-demand content based channel surfing methods and systems
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN111669622A (en) Method and device for determining default play relationship of videos and electronic equipment
CN112785333A (en) Advertisement putting method, electronic device, storage medium and device
CN111541927A (en) Video playing method and device
CN111669626A (en) Method and device for determining default play relationship of videos and electronic equipment
US20150245098A1 (en) Methods, apparatus, and user interfaces for social user quantification

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