CN113727167A - 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
CN113727167A
CN113727167A CN202110916730.6A CN202110916730A CN113727167A CN 113727167 A CN113727167 A CN 113727167A CN 202110916730 A CN202110916730 A CN 202110916730A CN 113727167 A CN113727167 A CN 113727167A
Authority
CN
China
Prior art keywords
picture
playing
resource
video resource
video
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
CN202110916730.6A
Other languages
Chinese (zh)
Other versions
CN113727167B (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

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/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 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, 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 playing of the first video resource is determined to be 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, the next video resource is played according to the acquired resource address, so that a plurality of video resources can be continuously played in the picture-in-picture playing window, and the continuous playing of the plurality of 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
Under the picture-in-picture playing mode, the electronic equipment can display a picture-in-picture playing window with the area smaller than that of the screen at a preset position in the display screen, play the video resources in the picture-in-picture playing window, provide other services for the user through other screen areas except the picture-in-picture playing window, and meet the multitasking requirements of the user when watching the video resources.
In the prior art, when an electronic device plays a video resource through a picture-in-picture play window, continuous playing of multiple video resources cannot be realized.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device and a readable storage medium for playing a video resource, so as to solve a problem that a picture-in-picture playing window cannot continuously play a plurality of video resources.
In a first aspect of the embodiments of the present invention, a method for playing a video resource is provided, including:
monitoring a first video resource played in a picture-in-picture playing window in a picture-in-picture playing mode 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 playing 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 to be finished according to the playing progress, playing the second video resource in the picture-in-picture playing window.
In a second aspect of the embodiments of the present invention, there is also provided a video resource playing apparatus, including:
the monitoring module is used for monitoring a first video resource played in a picture-in-picture playing window in a picture-in-picture playing mode so as to determine the playing progress of the first video resource;
the first acquisition module is used for acquiring a resource address of the second video resource; the second video resource is used for playing 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 resource in the picture-in-picture playing window after the first video resource is determined to be played according to the playing progress.
In another aspect of the embodiments 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 in the memory.
In a further aspect of the embodiments of the present invention, there is also provided a readable storage medium, on which there is stored a computer program, which when executed by a processor, implements the 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 device 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, acquire the resource address of the second video resource, acquire the second video resource according to the resource address, and play the second video resource in the picture-in-picture playing window after determining that the playing of the first video resource 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, the next video resource is played according to the acquired resource address, so that a plurality of video resources can be continuously played in the picture-in-picture playing window, and the continuous playing of the plurality of 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 video asset playing method according to an embodiment of the present invention;
fig. 2 is a schematic view illustrating switching of video resource playing according to an embodiment of the present invention;
fig. 3 is a block diagram of a video resource playing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in 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 drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a video resource playing method according to an embodiment of the present invention, where the video resource playing method provided in this embodiment is applied to an electronic device to continuously play a plurality of video resources in a picture-in-picture playing window. The video resource playing method provided in this embodiment may be executed by a video resource playing apparatus, where the video resource playing apparatus may be disposed in an electronic device, and the video resource playing apparatus is generally 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, such as a mobile phone, a tablet computer, a personal computer, and other terminal devices. When a certain application program in the electronic equipment starts a picture-in-picture playing mode in the process of playing the video resource, the electronic equipment can display a picture-in-picture playing window in a display screen of the electronic equipment through the system player and play the video resource through the picture-in-picture playing window.
Exemplarily, as shown in fig. 2, fig. 2 is a schematic view illustrating switching of playing of a video resource according to an embodiment of the present invention. The application program is used for acquiring and playing video resources, such as multimedia resources like movies, television shows and short videos. The user can start the application program firstly, and open a resource page of the application program, wherein resource information of a plurality of video resources is displayed in the resource page, for example, the name of a television series, the number of episodes of each episode, thumbnails, content introduction and the like can be displayed in the resource page. The user can select a certain set of drama and click the play button, the electronic device can respond to the operation of clicking the play button by the user, open the play page 201 of the application program, and play the video resource selected by the user in the play window of the play page 201 through the page player 202 in the application program.
At this time, if the user clicks the pip play button in the play page 201, the electronic device may respond to the operation of the user clicking the pip play button, start the pip play mode, control the system player 203 in the electronic device to display the pip play window on 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 can view the first video resource through the picture-in-picture play window and operate the electronic device through other areas of the display screen except the picture-in-picture play window. The starting procedure of the pd playing mode may be set according to the requirement, and this embodiment does not limit this.
In an embodiment, a progress monitoring component 204 may be disposed in the electronic device, and when the user starts the picture-in-picture playing mode, the electronic device may simultaneously start the progress monitoring component 204, control the progress monitoring component 204 to monitor the first video resource played in the picture-in-picture playing window, and determine a playing progress of the first video resource. For example, if the total duration of the first video resource played in the pip playing window is 1 hour, the progress monitoring component 204 may monitor the playing duration of the first video resource in real time, where the playing duration represents the playing progress of the first video resource, and when the playing duration is equal to the total duration of the first video resource, the playing of the first video resource is finished. 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 possibly appearing in the future may be applied to the embodiment.
And 102, acquiring a resource address of the second video resource.
And the second video resource is used for playing in the picture-in-picture playing window after the first video resource is played.
In this embodiment, the electronic device may obtain a resource address of the second video resource, so as to obtain the second video resource according to the resource address of the second video resource, and after the playing of the first video resource is finished, play the second video resource in the picture-in-picture playing window.
Alternatively, step 102 may be implemented as follows:
determining resource information of a second video resource which has a preset incidence 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 a picture-in-picture play 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. With reference to the foregoing example, if the resource page of the application program displays the resource information of multiple episode dramas, the user clicks and plays a second episode of the multiple episode dramas, that is, the first video resource played in the picture-in-picture play window is the second episode of the multiple episode dramas. The electronic device may determine resource information such as a name of the drama and an episode number of the second episode of the drama, and determine, from the resource page, resource information of a third episode, which has the same name and an episode number greater than the second episode, as resource information of the second video resource according to the name of the drama and the episode number of the second episode of the drama.
At this time, the electronic device may determine a link, such as a Uniform Resource Locator (URL), of the third series from the resource page according to the resource information of the third series. The electronic device may send an address request including a URL of a third episode of the television series to the server. Correspondingly, the server may respond to the address request sent by the electronic device, resolve the URL of the third-episode television series, determine the resource address of the third-episode television series corresponding to the URL of the third-episode television series, and return the resource address of the third-episode television series to the electronic device. The resource address returned by the server is a storage address of the third series of television drama in the server, and the electronic device can acquire the third series of television drama from the server according to the storage address of the third series of television drama in the server.
In another embodiment, the second video asset may be a randomly selected video asset. For example, if the first video resource played in the pip playing window is a movie, the electronic device may randomly determine resource information of a next movie (i.e., a second video resource) different from the currently played movie from the resource page of the application program, and obtain a resource address of the next movie. Or the electronic device may recommend, according to the resource information of the first video resource, the resource information of the second video resource of the same type as the first video resource to the user through a recommendation algorithm. For example, the electronic device may recommend resource information of a next movie of the same type, that is, resource information of the second video resource, to the user through a recommendation algorithm according to resource information such as a content profile of a currently playing movie. The specific method for determining the second video resource may be set according to the requirement, and this embodiment does not limit this.
In yet another embodiment, the pip playing window may also play the video resource stored in the electronic device, where the resource address is the storage address of the video resource in the electronic device. For example, if a first video resource stored in the electronic device is currently played in the pip playing window, the electronic device may select, during playing, resource information of a second video resource determined to have an association relationship with the first video resource from a plurality of locally stored video resources, and determine a storage address of the second video resource in the electronic device. The electronic device may obtain the second video resource from the electronic device according to a storage address of the second video resource 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 is finished, or may start to acquire the resource address of the second video resource at a preset time before the first video resource is finished. 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 which has an association relation with the first video resource is determined, after the first video resource is played, the second video resource which has an association relation with the first video resource can be played, the associated video resources can be continuously played for a user, and the requirement of the user for watching the associated video resources can be met.
And 103, acquiring a second video resource according to the resource address.
And 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 start to acquire the second video resource after determining that the first video resource played in the picture-in-picture playing window is finished according to the playing progress, and continue to play the second video resource in the picture-in-picture playing window. In combination with the above, if the playing time of the second episode of the tv series monitored by the progress monitoring component is 1 hour, and the playing time is equal to the total time, it may be determined that the playing of the second episode of the tv series is finished. At this time, the electronic device may send a resource request including the resource address of the third episode of the tv show to the server according to the resource address returned by the server. Correspondingly, the server may determine the third series according to the resource address of the third series in response to the resource request, and return the video resource of the third series to the electronic device. At this time, the electronic device may control the system player to play the received third episode of the tv series in the pip playing window, so as to implement continuous playing of the tv series. 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 acquire the second video resource in advance according to the resource address of the second video resource before the end of the playing of the first video resource. And after the first video resource is determined to be played to be finished according to the playing progress, playing a 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 a local storage according to the resource address, and providing the local address of the second video resource stored locally to the picture-in-picture playing window;
accordingly, the step of playing the second video resource in the pip playing 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 during playing the second video resource, the electronic device may locally obtain the second video resource and play the second video resource. With reference to the foregoing example, after the server returns the storage address of the second video resource in the server to the electronic device, the electronic device may transmit 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 (CDN) according to the storage address of the second video resource in the server. After acquiring the second video resource, the local service 205 may store the second video resource in the electronic device, generate a storage address, i.e., a local address, of the second video resource in the electronic device, and provide the local address of the second video resource to the system player 203. Accordingly, the system player 203 can locally acquire the second video resource according to the local address and play the second video resource in the pip playing 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 acquires and plays the video resource locally, and the problems of blocking and the like in the process of playing the video resource can be avoided.
Optionally, the step of loading the second video resource to the local storage according to the resource address may be implemented as follows: loading and storing a second video resource according to the resource address under the condition that the playing progress reaches the target playing progress; the target play progress is before the end of the play of the first video asset.
In an embodiment, the electronic device may start to load and store the second video resource when the playing progress of the first video resource reaches the target playing progress, so as to avoid that the second video resource is loaded during the playing of the second video resource, which affects the playing of the second video resource. Illustratively, the target playing progress is a preset time before the end of the playing of the first video resource, where the preset time may be 2 minutes before the end of the playing, and when the progress monitoring component 204 monitors that the playing time of the second episode is 58 minutes, it may be determined that the second episode only remains 2 minutes from the total playing time, that is, only 2 minutes remains from the end of the playing, so as to reach the target playing progress. At this time, the electronic device may load the second video resource while playing the first video resource through the multi-thread asynchronous processing technology, and store the loaded second video resource locally. The specific value of the preset time may be set according to the requirement, which is not limited in this embodiment.
In practical application, the electronic equipment acquires the second video resource in advance before the playing of the first video resource is finished, and after the playing of the first video resource is finished, the second video resource can be directly played, so that the first video resource and the second video resource can be smoothly linked, the phenomenon of pause in blocking is avoided, and the watching experience of a user is prevented from being influenced.
Optionally, before playing the second video resource in the picture-in-picture playing window, the method may further include:
and determining that the account information of the user meets a preset condition.
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 the account information, and different level information indicates that the user has different rights. For example, if the level of the account information is a guest (VIP) user, it may be determined that the account information of the user meets a preset condition, and the user has a right to exempt from the advertisement. At this time, the electronic device may directly play the second video resource.
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 fluency of playing the video resource can be improved. The advertisement resources are multimedia resources such as advertisement videos, advertisement pictures, advertisement animations and the like.
In summary, in this embodiment, in the pip playing mode, the electronic device monitors the first video resource played in the pip playing window to determine the playing progress of the first video resource, acquire the resource address of the second video resource, acquire the second video resource according to the resource address, and play the second video resource in the pip playing window after determining that the playing of the first video resource 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, the next video resource is played according to the acquired resource address, so that a plurality of video resources can be continuously played in the picture-in-picture playing window, and the continuous playing of the plurality of 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 completely according to the playing progress, if the account information of the user is determined not to meet the preset condition, the advertisement resource is obtained, and the advertisement resource is played in the picture-in-picture playing window;
after the advertisement resource is played, playing the second video resource in the picture-in-picture playing window.
In an embodiment, after determining that the playing of the first video resource 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 resource before playing the second video resource. By combining 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 picture-in-picture play window. After playing the advertising asset, the second video asset may continue to be played in the picture-in-picture window. The method for acquiring the advertisement resource by the electronic device may be set according to the requirement, and this embodiment does not limit this.
In practical application, when the electronic device determines that the account information does not meet the preset condition, the electronic device can play the advertisement resources in the process of continuously playing the video resources, so that the recommendation efficiency of the advertisement resources is improved.
Optionally, while monitoring the first video resource played in the pip playing window, the method may further include:
recording resource information of a first video resource;
under the condition of receiving an exit operation of exiting the picture-in-picture playing window, closing the picture-in-picture playing window;
continuing to play the first video resource in the playing page of the application program according to the resource information and the playing progress of the first video resource; the application is an application that starts a picture-in-picture play window.
In one embodiment, while playing the first video resource through the picture-in-picture playing window, the electronic device may count the resource information and the playing progress of the first video resource played in the picture-in-picture playing window, so as to continue playing the first video resource when exiting the picture-in-picture playing mode. With reference to the foregoing example, the play statistics component 206 may be set in the electronic device, and if the currently played first video resource in the picture-in-picture play window is the third episode, the play statistics component 206 may record resource information of the currently played first video resource as the episode number of the third episode, and the play schedule is a play duration of the third episode, for example, 20 minutes, and the electronic device may record resource information and the play schedule of the third episode.
At this time, if the electronic device receives an exit operation of 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 play page 201 of the application, play the third episode in the play window of the play page 201 through the page player 202 according to the episode number of the third episode recorded by the play statistics component 206, and play the third episode from the 20 th minute of the third episode according to the play progress of the third episode.
In practical application, the electronic device records the resource information and the playing progress of the currently playing video resource in the picture-in-picture playing window, and can continue to play the video resource according to the recorded resource information and the playing progress after exiting the picture-in-picture playing window, so that a 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 of a video resource playing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the video resource playing apparatus provided in this embodiment is suitable for playing video resources so as to continuously play a plurality of video resources in a picture-in-picture playing window. The video resource playing apparatus may be disposed in an electronic device, and is generally implemented in software and/or hardware, and the video resource playing apparatus 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 a first video resource played in a pip playing window in a pip playing mode, so as to determine a playing progress of the first video resource.
A first obtaining module 302, configured to obtain a resource address of a second video resource; the second video resource is used for playing in the picture-in-picture playing window after the first video resource is played.
A second obtaining module 303, configured to obtain the second video resource according to the resource address.
And the playing module 304 is configured to play the second video resource in the picture-in-picture playing window after determining that the playing of the first video resource 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 a local storage according to the resource address, and provide the local address of the second video resource stored locally to the picture-in-picture playing window;
the playing module 304 is specifically configured to play the locally stored second video resource 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 play progress is before the end of the play of the first video asset.
Optionally, the playing module 304 is further configured to record resource information of the first video resource; under the condition of receiving an exit operation of exiting the picture-in-picture playing window, closing the picture-in-picture playing window; continuing to play the first video resource in the playing page of the application program according to the resource information and the playing progress of the first video resource; the application is an application that starts a picture-in-picture play window.
Optionally, the first obtaining module 302 is specifically configured to determine, based on the resource information of the first video resource, resource information of a second video resource that has a preset association relationship with the first video resource from a resource page of the application program; the application program is an application program for starting a picture-in-picture play 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 it is determined that the playing of the first video resource is finished according to the playing progress, if it is determined that the account information of the user does not meet the preset condition, obtain the advertisement resource, and play the advertisement resource in the picture-in-picture playing window; after the advertisement resource is played, playing the second video resource in the picture-in-picture playing window.
In this embodiment, in the pip playing mode, the electronic device monitors a first video resource played in the pip playing window to determine a playing progress of the first video resource, obtains a resource address of a second video resource, obtains the second video resource according to the resource address, and plays the second video resource in the pip playing window after determining that the playing of the first video resource 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, the next video resource is played according to the acquired resource address, so that a plurality of video resources can be continuously played in the picture-in-picture playing window, and the continuous playing of the plurality of 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 in 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 mutual communication 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:
monitoring a first video resource played in a picture-in-picture playing window under a picture-in-picture playing mode 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 playing 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 to be finished according to the playing progress, playing the second video resource in the picture-in-picture playing window.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a 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 processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a readable storage medium is further provided, which has stored therein instructions that, when executed on a computer, cause the computer to perform the method of any of the above embodiments.
In a further embodiment provided by the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. 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 site, computer, first server, or data center to another website site, computer, first server, or data center via 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 including one or more first servers, data centers, etc. integrated with the available medium. 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A video resource playing method is characterized by comprising the following steps:
monitoring a first video resource played in a picture-in-picture playing window in a picture-in-picture playing mode 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 playing 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 to be finished according to the playing progress, playing the second video resource in the picture-in-picture playing window.
2. The method of claim 1,
the acquiring the second video resource according to the resource address includes: 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 to the picture-in-picture playing window;
the playing the second video asset in the picture-in-picture play window comprises: and playing the second video resource stored locally in the picture-in-picture playing window according to the local address.
3. The method of claim 2, wherein the loading the second video asset to a local storage 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 a target playing progress; the target playing progress is before the end of the playing of the first video resource.
4. The method of claim 1, wherein, when monitoring the first video asset played in the picture-in-picture playing window, further comprising: recording resource information of the first video resource; the method further comprises the following steps:
closing the picture-in-picture playing window in case of receiving an exit operation for exiting the picture-in-picture playing window;
continuing to play the first video resource in a playing page of an application program according to the resource information and the playing progress of the first video resource; the application is the application that starts the picture-in-picture play window.
5. The method of claim 1, wherein obtaining the resource address of the second video resource comprises:
determining resource information of the second video resource which has 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 play mode;
and acquiring the resource address of the second video resource according to the resource information of the second video resource.
6. The method of any one of claims 1-5, further comprising:
after the first video resource is determined to be played completely according to the playing progress, if the account information of the user is determined not to meet the preset condition, the advertisement resource is obtained, and the advertisement resource is played in the picture-in-picture playing window;
after the advertisement resource playing is finished, playing the second video resource in the picture-in-picture playing window.
7. A video asset playback apparatus, comprising:
the monitoring module is used for monitoring a first video resource played in a picture-in-picture playing window in a picture-in-picture playing mode so as to determine the playing progress of the first video resource;
the first acquisition module is used for acquiring a resource address of the second video resource; the second video resource is used for playing 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 resource in the picture-in-picture playing window after the first video resource is determined to be played according to the playing progress.
8. The apparatus of claim 7,
the second obtaining module comprises a loading unit, configured to load the second video resource to a 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 is specifically configured to play the second video resource stored locally in the pip playing window according to the local address.
9. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program stored on the memory, implementing the method of any of claims 1-6.
10. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
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 true CN113727167A (en) 2021-11-30
CN113727167B 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)

Cited By (1)

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

Citations (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
US20170171277A1 (en) * 2015-12-11 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for multimedia recommendation 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

Patent Citations (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
US20170171277A1 (en) * 2015-12-11 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for multimedia recommendation 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN113727167B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CA2633840C (en) Systems and methods for resolving conflicts and managing system resources in multimedia delivery systems
CN112492334B (en) Live video pushing method, device and equipment
CN101352041B (en) Systems and methods for managing a status change of a multimedia asset in multimedia delivery systems
US8819035B2 (en) Providing search results based on keyword detection in media content
CN108966016B (en) Video clip rebroadcasting method and device and terminal equipment
US20090254823A1 (en) Bookmark Interpretation Service
US9021607B2 (en) Advanced user interface and control paradigm including digital rights management features for multiple service operator extended functionality offers
CN111770383B (en) Generation method of equipment association relationship, content recommendation method and device
US20100050219A1 (en) Methods and systems for providing a plurality of last applications
US20090064229A1 (en) Recommendation from stochastic analysis
CN108810580B (en) Media content pushing method and device
US11470363B2 (en) Dynamically interactive digital media delivery
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
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN111541927A (en) Video playing method and device
CN111669626A (en) Method and device for determining default play relationship of videos and electronic equipment
TWI558189B (en) Methods, apparatus, and user interfaces for social user quantification
CN114827675A (en) Video data processing method and device for application program
US20220174345A1 (en) Systems and methods for storing content items based on consumption history
CN111356006B (en) Video playing method, device, server and storage medium
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
CN113365112B (en) Remote assistance method and device, electronic equipment and storage medium
US10335680B2 (en) Methods and systems for an interactive media guidance game
US20080228842A1 (en) System, Method and Apparatus for Creating, Viewing, Tagging and Acting on a Collection of Multimedia Files

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