CN110162394B - Media object playing method and device, electronic equipment and storage medium - Google Patents

Media object playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110162394B
CN110162394B CN201910470170.9A CN201910470170A CN110162394B CN 110162394 B CN110162394 B CN 110162394B CN 201910470170 A CN201910470170 A CN 201910470170A CN 110162394 B CN110162394 B CN 110162394B
Authority
CN
China
Prior art keywords
media object
playing
current
user
system player
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
CN201910470170.9A
Other languages
Chinese (zh)
Other versions
CN110162394A (en
Inventor
徐子超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910470170.9A priority Critical patent/CN110162394B/en
Publication of CN110162394A publication Critical patent/CN110162394A/en
Priority to PCT/CN2020/071228 priority patent/WO2020238241A1/en
Application granted granted Critical
Publication of CN110162394B publication Critical patent/CN110162394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a method, an apparatus, an electronic device and a storage medium for playing a media object, wherein the method comprises: the method comprises the steps of playing a current media object by adopting a first system player container, preloading a previous media object of the current media object by adopting a second system player container, preloading a next media object of the current media object by adopting a third system player container, playing the preloaded previous media object by adopting the second system player container when a first switching request triggered by a user is detected, wherein the first switching request is used for indicating that the current media object is switched to the previous media object, playing the preloaded next media object by adopting the third system player container when a second switching request triggered by the user is detected, and the second switching request is used for indicating that the current media object is switched to the next media object. The method and the device can improve the smoothness degree of the media object after the switching of the playing and improve the user experience.

Description

Media object playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for playing a media object, an electronic device, and a storage medium.
Background
With the development of information technology, various types of application programs are generated, including a media object playing platform of small videos or pictures and the like, in which a current media object is played through a system player, and when a media object switching instruction triggered by a user is detected, a media object to be played is determined and played through the system player.
However, when the front and rear media objects are switched and the switched media object is played, a black screen may appear or the switched media object may be played only after a certain time, for example, when the currently played media object a is switched to the previous media object B, the currently played media object a may appear or the media object B may be played after waiting for a certain time, so that the media object is not played smoothly after the front and rear media objects are switched, and further the user experience is poor.
Disclosure of Invention
The present disclosure provides a method and an apparatus for playing a media object, an electronic device, and a storage medium, which are used to solve the problems of unsmooth playing of the media object and poor physical examination of a user after switching between a previous media object and a next media object. The technical scheme is as follows:
in a first aspect, the present disclosure provides a method for playing a media object, including:
playing the current media object by adopting a first system player container, preloading a previous media object of the current media object by adopting a second system player container, and preloading a next media object of the current media object by adopting a third system player container;
if a first switching request triggered by a user is detected, playing the preloaded previous media object by adopting a second system player container, wherein the first switching request is used for indicating that the current media object is switched to the previous media object;
and if a second switching request triggered by the user is detected, playing the preloaded next media object by adopting a third system player container, wherein the second switching request is used for indicating that the current media object is switched to the next media object.
In a possible implementation manner of the present disclosure, the method further includes: and if the media object to be played is detected to be the media object uploaded to the media platform by the user, playing the locally stored media object to be played through the corresponding system player container.
In another possible implementation manner of the present disclosure, the method further includes:
when a preset condition is met, determining a media object to be published;
synchronously publishing any of the following to an associated media platform:
a media object to be published;
the media objects to be published and the comment information of the users aiming at the media objects to be published.
Another possible implementation manner of the present disclosure, the preset condition includes at least one of:
detecting a synchronous issuing instruction triggered by a user;
detecting that a user posts comment information aiming at a currently played media object;
detecting that the time length for playing a certain media object exceeds a preset time length;
the number of times of requesting to play a certain media object is detected to exceed a preset number of times.
Another possible implementation manner of the present disclosure is that, if a first switching request triggered by a user is detected, playing a preloaded previous media object by using a second system player container, including:
if a first switching request triggered by a user is detected, switching the current media object to a previous media object in a three-dimensional (3D) overturning mode, and playing the pre-loaded previous media object by adopting a second system player container;
if a second switching request triggered by the user is detected, playing the preloaded subsequent media object by adopting a third system player container, including:
and if the second switching request triggered currently is detected, switching the current media object to the next media object in a 3D (three-dimensional) overturning mode, and playing the pre-loaded next media object by adopting a third system player container.
In another possible implementation manner of the present disclosure, any system player container includes: a video player and a picture player, wherein,
playing the current media object by adopting the first system player container, wherein the playing comprises any one of the following items:
if the current media object is of the picture type, playing the current media object through a picture player in a first system player container;
if the current media object is of a video type, playing the current media object through a video player in a first system playing container;
wherein, the playing of the pre-loaded previous media object by the second system player container comprises any one of the following:
if the previous media object is of the picture type, playing the preloaded previous media object through a picture player in a second system player container;
if the previous media object is of the video type, playing the preset loaded previous media object through a video player in a second system player container;
wherein, playing the preloaded next media object by adopting a third system player container, which comprises any one of the following items:
if the next media object is of the picture type, playing the preloaded next media object through a picture player in a third system player container;
and if the next media object is of the video type, playing the preloaded next media object through a video player in the third system player container.
Another possible implementation manner of the present disclosure is that the playing of the current media object by using the first system player container further includes at least one of the following steps:
determining a current media object based on a play request triggered by a user for the media object;
determining a current media object based on the media object played when the user exits the media platform last time;
and if the user logs in the media platform for the first time, determining that the first unread media object is the current media object.
In a second aspect, the present disclosure provides an apparatus for playing a media object, the apparatus comprising:
the first playing module is used for playing the current media object by adopting a first system player container;
the first preloading module is used for preloading a previous media object of the current media object by adopting a second system player container when the first system player container is adopted to play the current media object;
the second preloading module is used for preloading a next media object of the current media object by adopting a third system player container when the first system player container is adopted to play the current media object;
the second playing module is used for playing the previous media object preloaded by the first preloading module by adopting a second system player container when a first switching request triggered by a user is detected, wherein the first switching request is used for indicating that the current media object is switched to the previous media object;
and the third playing module is used for playing the next media object pre-loaded by the second pre-loading module by adopting a third system player container when a second switching request triggered by the user is detected, wherein the second switching request is used for indicating that the current media object is switched to the next media object.
In one possible implementation manner of the present disclosure, the apparatus further includes: a fourth play module, wherein,
and the fourth playing module is used for playing the locally stored media object to be played through the corresponding system player container when the media object to be played is detected to be the media object uploaded to the media platform by the user.
In another possible implementation manner of the present disclosure, the apparatus further includes: a first determining module and a publishing module, wherein,
the first determining module is used for determining the media object to be published when the preset conditions are met;
a publishing module to synchronously publish any of the following to an associated media platform:
a media object to be published;
the media objects to be published and the comment information of the users aiming at the media objects to be published.
Another possible implementation manner of the present disclosure, the preset condition includes at least one of:
detecting a synchronous issuing instruction triggered by a user;
detecting that a user posts comment information aiming at a currently played media object;
detecting that the time length for playing a certain media object exceeds a preset time length;
the number of times of requesting to play a certain media object is detected to exceed a preset number of times.
In another possible implementation manner of the present disclosure, the second playing module is specifically configured to switch, when a first switching request triggered by a user is detected, from a current media object to a previous media object in a three-dimensional 3D flipping manner, and play the preloaded previous media object by using a second system player container;
and the third playing module is specifically configured to switch, when a currently triggered second switching request is detected, from the current media object to a subsequent media object in a 3D flip manner, and play the preloaded subsequent media object by using a third system player container.
In another possible implementation manner of the present disclosure, any system player container includes: a video player and a picture player, wherein,
the first playing module is specifically used for playing the current media object through a picture player in a first system player container when the current media object is of a picture type, or playing the current media object through a video player in a first system player container when the current media object is of a video type;
the second playing module is specifically used for playing the preloaded previous media object through a picture player in a second system player container when the previous media object is of a picture type, or playing the pre-loaded previous media object through a video player in the second system player container when the previous media object is of a video type;
and the third playing module is specifically configured to play the preloaded next media object through a picture player in the third system player container when the next media object is of a picture type, or play the preloaded next media object through a video player in the third system player container when the next media object is of a video type.
In another possible implementation manner of the present disclosure, the apparatus further includes: a second determination module, wherein,
the second determining module is used for determining the current media object based on a playing request triggered by a user for the media object, and/or determining the current media object based on the media object played when the user exits the media platform last time, and/or determining the first unread media object as the current media object when the user logs in the media platform for the first time.
In a third aspect, the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method as set forth in the first aspect of the present disclosure or any possible implementation of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, implements operations corresponding to the method as shown in the first aspect of the present disclosure or any possible implementation manner of the first aspect.
The technical scheme provided by the disclosure has the following beneficial effects:
the present disclosure provides a method, an apparatus, an electronic device and a storage medium for playing a media object, when a first system player container is used to play a current media object, a second system player container and a third system player container are used to pre-load a previous media object and a next media object of the current media object, when a switching indication of switching from the current media object to the previous media object is detected, the second system player container is used to play the pre-loaded media object, when a switching indication of switching from the current media object to the next media object is detected, the third system player container is used to play the pre-loaded media object, because the switched media objects are all pre-loaded media objects, a black screen condition after switching or a condition that the switched media object can be played after waiting for a period of time can be avoided, and then can improve the smooth degree of playing the switched media object, and can promote user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flow chart of a method for playing a media object according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a playing apparatus for playing a media object according to an embodiment of the disclosure;
FIG. 3 is a schematic block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
An embodiment of the present disclosure provides a method for playing a media object, as shown in fig. 1, the method includes:
step S101, a first system player container is adopted to play the current media object, a second system player container is adopted to pre-load the previous media object of the current media object, and a third system player container is adopted to pre-load the next media object of the current media object.
For the embodiment of the present disclosure, while the first system player container is used to play the current media object, the second system player container is used to preload the previous media object of the current media object, and the third system player container is used to preload the next media object of the current media object. Of course, it is also possible to preload a subsequent media object of the current media object with a second system player container and to preload a previous media object of the current media object with a third system player container.
For the embodiment of the present disclosure, a second system player is used to preload a previous media object of a first preset amount of current media objects, and a third system player is used to preload a subsequent media object of a second preset amount of current media objects. The first preset amount and the second preset amount may be the same or different, and are not limited in the embodiments of the present disclosure.
For example, the preset amount may be 30%, 40%, and 70%.
For the embodiment of the present disclosure, the first preset amount and the second preset amount may also be determined according to the switching habit of the current user. In the embodiment of the present disclosure, if it is determined that the current user likes to switch backward based on the big data, that is, switches from the current media object to a subsequent media object, it is determined that the second preset amount may be greater than the first preset amount; if it is determined based on the big data that the current user likes a forward switch, i.e., a switch from the current media object to its previous media object, it is determined that the first predetermined amount may be greater than the second predetermined amount.
And step S102, if a first switching request triggered by a user is detected, playing the pre-loaded previous media object by adopting a second system player container.
Wherein the first switching request is used for indicating switching from the current media object to the previous media object.
And step S103, if a second switching request triggered by the user is detected, playing the preloaded next media object by adopting a third system player container.
Wherein the second switching request is used for indicating the switching from the current media object to the next media object.
The disclosed embodiment provides a method for playing a media object, which comprises the steps of, when a first system player container is used for playing a current media object, respectively preloading a previous media object and a next media object of the current media object by using a second system player container and a third system player container, when a switching instruction for switching the current media object to the previous media object is detected, playing the preloaded media object by using the second system player container, when a switching instruction for switching the current media object to the next media object is detected, playing the preloaded media object by using the third system player container, and because the switched media objects are the preloaded media objects, the condition of a black screen after switching or the condition that the switched media object can be played after waiting for a period of time can be avoided, and then can improve the smooth degree of playing the switched media object, and can promote user experience.
In a possible implementation manner of the embodiment of the present disclosure, the method may further include: step Sa, not shown in the figures, in which,
and step Sa, if the media object to be played is detected to be the media object uploaded to the media platform by the user, playing the locally stored media object to be played through the corresponding system player container.
For the embodiment of the present disclosure, when a play request of a user is detected and a media object to be played is a media object uploaded to a media platform by the user, the media object to be played is obtained locally, and the media object to be played is played through a corresponding system player container.
For the embodiment of the present disclosure, when a play request of a user is detected, and a media object to be played is the current media object, if the current media object is a media object uploaded to a media platform by the user, the current media object is obtained locally, and the current media object obtained locally is played through a first system player container.
For the embodiment of the present disclosure, when a first switching request triggered by a user is detected, and it is detected that a previous media object of a current media object is a media object uploaded to a media platform by the user, the previous media object is obtained locally, and the locally obtained previous media object is played through a second system player container.
For the embodiment of the present disclosure, when a second switching request triggered by the user is detected, and it is detected that a subsequent media object of the current media object is a media object uploaded to the media platform by the user, the subsequent media object is obtained locally, and the subsequent media object obtained locally is played through the third system player container.
For the embodiment of the present disclosure, if it is detected that the media object to be played is the media object uploaded to the media platform by the user, the locally stored media object to be played is played through the corresponding system player container, that is, when it is detected that the media object to be played is the media object uploaded by the user, the locally stored media object may be directly played without loading the media object on the network side, so that the loading flow may be saved, and the user experience may be improved.
In another possible implementation manner of the embodiment of the present disclosure, the method further includes: step Sb (not shown) and step Sc (not shown), wherein,
and step Sb, when the preset conditions are met, determining the media object to be published.
For the disclosed embodiments, the preset conditions include at least one of:
detecting a synchronous issuing instruction triggered by a user;
detecting that a user posts comment information aiming at a currently played media object;
detecting that the time length for playing a certain media object exceeds a preset time length;
the number of times of requesting to play a certain media object is detected to exceed a preset number of times.
Step Sc, synchronously publishing any one of the following items to the associated media platform:
a media object to be published;
the media objects to be published and the comment information of the users aiming at the media objects to be published.
For the embodiment of the disclosure, when a synchronous publishing instruction triggered by a user is detected, a media object to be published is determined based on the synchronous publishing instruction, and the media object to be published or the media object to be published and comment information of the user for the media object to be published are published to a media platform associated with the media platform.
For example, when a synchronous publishing instruction triggered by a user is detected, it is determined that a media object to be published is a media object a, and the user comments on the media object a, the media object a and comment information of the user on the media object a are synchronously published to a media platform associated with the media platform.
For the embodiment of the disclosure, it is detected that a user posts comment information for a currently played media object, and it is determined that a media object to be distributed is the currently played media object, and the currently played media object or the currently played media object and the comment information of the user for the currently played media object are synchronously published to a media platform associated with the media platform.
For the embodiment of the present disclosure, when it is detected that the duration of playing a certain media object exceeds the preset duration, it is determined that the media object to be distributed is the certain media object, and then the certain media object or the certain media object and comment information of a user for the certain media object are synchronously published to the media platform associated with the media platform. In this embodiment of the present disclosure, the preset duration may be a duration of the certain media object itself, may also be a half of the duration of the certain media object itself, and may also be another value, which is not limited herein.
For the embodiment of the disclosure, when it is detected that the number of times of requesting to play a certain media object exceeds the preset number of times, it is determined that the media object to be distributed is the media object whose playing number exceeds the preset number of times, the media object whose playing number exceeds the preset number of times or the media object whose playing number exceeds the preset number of times and comment information of a user for the media object whose playing number exceeds the preset number of times are synchronously published to a media platform associated with the media platform.
For example, the preset number of times may be 5 times, 8 times, 10 times, etc.
For the embodiment of the disclosure, when the preset condition is met, the media object to be published is determined, and the media object to be published or the media object to be published and comment information of the user for the media object to be published can be synchronously published to a media platform associated with the platform, so that the user can see the media object and/or the comment information of the user for the media object when logging in other media platforms, and user experience is improved.
In another possible implementation manner of the embodiment of the present disclosure, step S102 may specifically include: step S1021 (not shown in the figure), step S103 may specifically include: step S1031 (not shown in the figure), in which,
and step S1021, if a first switching request triggered by a user is detected, switching the current media object to the previous media object in a three-dimensional (3D) overturning mode, and playing the pre-loaded previous media object by adopting a second system player container.
For the embodiment of the present disclosure, when a first switching request triggered by a user is detected, unlike a conventional tile switching manner, a current media object is switched to a previous media object in a 3D presentation manner. In the embodiment of the present disclosure, a 3D flipping effect in a switching process is presented according to a sliding gesture and a sliding distance of a user.
For the embodiment of the disclosure, if a first switching request triggered by a user is detected, the current media object is switched to the previous media object in a three-dimensional 3D flipping manner, that is, in the switching process, the switching process is presented in a 3D manner, so that the visual experience in the media object switching process can be improved.
And step S1031, if a second switching request triggered currently is detected, switching the current media object to a next media object in a 3D turnover mode, and playing the pre-loaded next media object by adopting a third system player container.
For the embodiment of the present disclosure, when a second switching request triggered by a user is detected, different from a traditional tiled switching manner, a current media object is switched to a subsequent media object in a 3D presentation manner. In the embodiment of the disclosure, a 3D flipping effect in the switching process is presented according to the sliding gesture and the sliding distance of the user.
For the embodiment of the present disclosure, if a second switching request triggered by a user is detected, the current media object is switched to the next media object in a three-dimensional 3D flipping manner, that is, in the switching process, the switching process is presented in a 3D manner, so that the visual experience in the media object switching process can be improved.
In another possible implementation manner of the embodiment of the present disclosure, any system player container includes: a video player and a picture player, wherein, in step S101, the playing of the current media object by using the first system player container includes: and if the current media object is of the picture type, playing the current media object through a picture player in the first system player container, and/or if the current media object is of the video type, playing the current media object through a video player in the first system player container.
In another possible implementation manner of the embodiment of the present disclosure, any system player container includes: a video player and a picture player, wherein the playing of the preloaded previous media object by using the second system player container in step S102 includes: and if the previous media object is of the picture type, playing the preloaded previous media object through a picture player in a second system player container, and/or if the previous media object is of the video type, playing the preloaded previous media object through a video player in the second system player container.
In another possible implementation manner of the embodiment of the present disclosure, any system player container includes: a video player and a picture player, wherein the playing of the preloaded subsequent media object by using the third system player container in step S103 includes: if the next media object is of the picture type, playing the preloaded next media object through a picture player in a third system player container; and/or if the next media object is of a video type, playing the preloaded next media object through a video player in the third system player container.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may further include: at least one of step Sd (not shown), step Se (not shown), and step Sf (not shown), wherein,
and step Sd, determining the current media object based on the play request triggered by the user for the media object.
For example, if the user requests a play triggered by media object a, it is determined that the current media object is media object a.
And step Se, determining the current media object based on the media object played when the user exits the media platform last time.
For the embodiment of the present disclosure, the current media object may be a media object played on the media platform when the user currently exits, may also be a subsequent media object of the media object played on the media platform when the user currently exits, and may also be a first media object. In the embodiment of the present disclosure, when the media object played when the user last exits the media platform is the last media object, it is determined that the current media object is the first media object.
For example, there are 20 media objects on the current media platform, the user exits the current media platform when playing the 10 th media object, and the current media object may be the 10 th media object or the 11 th media object when detecting that the user logs in the current media platform again.
And step Sf, if the user logs in the media platform for the first time, determining that the first unread media object is the current media object.
For example, if the user logs in the media platform for the first time, it is determined that the first unread media object is media object D, and it is determined that the current media object is media object D.
The above embodiments introduce the method for playing a media object from the perspective of method flow, and the following describes a playing apparatus for playing a media object from the perspective of a virtual module, in which,
the embodiment of the present disclosure provides a playing apparatus for a media object, as shown in fig. 2, the playing apparatus 20 for a media object may include: a first playing module 21, a first preloading module 22, a second preloading module 23, a second playing module 24 and a third playing module 25, wherein,
the first playing module 21 is configured to play the current media object by using the first system player container.
The first preloading module 22 is configured to preload a previous media object of the current media object by using the second system player container when the current media object is played by using the first system player container.
And the second preloading module 23 is configured to preload a subsequent media object of the current media object by using the third system player container when the first system player container is used to play the current media object.
And the second playing module 24 is configured to, when a first switching request triggered by a user is detected, play the previous media object preloaded by the first preloading module 22 by using a second system player container.
Wherein the first switching request is used for indicating switching from the current media object to the previous media object.
And a third playing module 25, configured to play the subsequent media object preloaded by the second preloading module 23 by using a third system player container when a second switching request triggered by the user is detected.
Wherein the second switching request is used for indicating the switching from the current media object to the next media object.
In another possible implementation manner of the embodiment of the present disclosure, the apparatus 20 further includes: a fourth play module, wherein,
and the fourth playing module is used for playing the locally stored media object to be played through the corresponding system player container when the media object to be played is detected to be the media object uploaded to the media platform by the user.
In another possible implementation manner of the embodiment of the present disclosure, the apparatus 20 further includes: a first determining module and a publishing module, wherein,
the first determining module is used for determining the media object to be published when the preset conditions are met.
A publishing module to synchronously publish any of the following to an associated media platform:
a media object to be published;
the media objects to be published and the comment information of the users aiming at the media objects to be published.
In another possible implementation manner of the embodiment of the present disclosure, the preset condition includes at least one of the following:
detecting a synchronous issuing indication triggered by a user;
detecting that a user posts comment information aiming at a currently played media object;
detecting that the time length for playing a certain media object exceeds a preset time length;
the number of times of requesting to play a certain media object is detected to exceed a preset number of times.
In another possible implementation manner of the embodiment of the present disclosure, the second playing module 24 is specifically configured to switch, when a first switching request triggered by a user is detected, the current media object to a previous media object in a three-dimensional 3D flipping manner, and play the preloaded previous media object by using a second system player container.
The third playing module 25 is specifically configured to switch, when detecting a second switching request triggered currently, from the current media object to a subsequent media object in a 3D flipping manner, and play the preloaded subsequent media object by using a third system player container.
In another possible implementation manner of the embodiment of the present disclosure, any system player container includes: a video player and a picture player, wherein,
the first playing module 21 is specifically configured to play the current media object through a picture player in a first system player container when the current media object is of a picture type, or play the current media object through a video player in the first system player container when the current media object is of a video type.
The second playing module 24 is specifically configured to play the preloaded previous media object through the picture player in the second system player container when the previous media object is of the picture type, or play the pre-loaded previous media object through the video player in the second system player container when the previous media object is of the video type.
The third playing module 25 is specifically configured to play the preloaded next media object through the picture player in the third system player container when the next media object is of the picture type, or play the preloaded next media object through the video player in the third system player container when the next media object is of the video type.
In another possible implementation manner of the embodiment of the present disclosure, the apparatus 20 further includes: a second determination module, wherein,
the second determining module is used for determining the current media object based on a playing request triggered by a user for the media object, and/or determining the current media object based on the media object played when the user exits the media platform last time, and/or determining the first unread media object as the current media object when the user logs in the media platform for the first time.
The disclosed embodiment provides a device for playing a media object, compared with the prior art, in the disclosed embodiment, when a first system player container is used for playing a current media object, a second system player container and a third system player container are used for respectively preloading a previous media object and a next media object of the current media object, when a switching instruction for switching from the current media object to the previous media object is detected, the second system player container is used for playing the preloaded media object, when a switching instruction for switching from the current media object to the next media object is detected, the third system player container is used for playing the preloaded media object, because the switched media objects are all the preloaded media objects, the condition of a black screen after switching or the condition that the switched media object can be played after waiting for a period of time can be avoided, and then can improve the smooth degree of playing the switched media object, and can promote user experience.
The playing apparatus of the media object in the embodiment of the present disclosure can execute the playing method of the media object shown in the above method embodiment of the present disclosure, and the implementation principles are similar, and are not described herein again.
The foregoing embodiment introduces a method for playing a media object from the perspective of a method flow, and introduces a device for playing the media object from the perspective of a virtual module, and the following introduces an electronic device from the perspective of an entity device, which is used to execute the method for playing the media object shown in the foregoing method embodiment, and specifically as follows:
referring now to FIG. 3, a schematic diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 3, electronic device 300 may include a processing apparatus (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage apparatus 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The disclosed embodiment provides an electronic device, and the electronic device in the disclosed embodiment includes: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the embodiment of the disclosure preloads a previous media object and a next media object of a current media object by using a second system player container and a third system player container when playing the current media object by using a first system player container, plays the preloaded media object by using the second system player container when detecting a switching instruction for switching the current media object to the previous media object, and plays the preloaded media object by using the third system player container when detecting a switching instruction for switching the current media object to the next media object, because the switched media objects are all the preloaded media objects, a black screen condition after switching can be avoided or a condition that the switched media objects can be played after waiting for a period of time, and further the smoothness degree of playing the switched media objects can be improved, and user experience can be improved.
The electronic device is suitable for the method embodiment, and is not limited herein.
The disclosed embodiments provide a computer-readable storage medium having stored thereon a computer program, which, when run on a computer, enables the computer to perform the corresponding content in the aforementioned method embodiments. Compared with the prior art, the embodiment of the disclosure adopts the second system player container and the third system player container to respectively pre-load the previous media object and the next media object of the current media object when the first system player container is adopted to play the current media object, adopts the second system player container to play the pre-loaded media object when the switching indication of the current media object to the previous media object is detected, adopts the third system player container to play the pre-loaded media object when the switching indication of the current media object to the next media object is detected, and can avoid the condition of black screen after switching or the condition of playing the switched media object after waiting for a period of time because the switched media objects are all the pre-loaded media objects, thereby improving the smoothness degree of playing the switched media object, and user experience can be improved.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the method for playing back a media object as shown in the above method embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and the units do not limit the units and the modules, for example, the first playing module may be further described as a "module for playing the current media object using the first system player container".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is illustrative of only some embodiments of this disclosure and it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the disclosure and are intended to be included within the scope of the disclosure.

Claims (8)

1. A method for playing a media object, the method comprising:
playing a current media object by adopting a first system player container, preloading a previous media object of the current media object by adopting a second system player container, and preloading a next media object of the current media object by adopting a third system player container; the current media object, the previous media object and the next media object are media objects of a media platform;
if a first switching request triggered by a user is detected, presenting a 3D (three-dimensional) turning effect in a switching process according to a gesture and a distance of the user corresponding to the first switching request, switching a current media object to a previous media object in a 3D turning mode, and playing the pre-loaded previous media object by adopting a second system player container, wherein the first switching request is used for indicating that the current media object is switched to the previous media object;
if a second switching request triggered by the user is detected, presenting a 3D turning effect in the switching process according to a user gesture and a user distance corresponding to the second switching request, switching a current media object to a next media object in a 3D turning mode, and playing the preloaded next media object by adopting a third system player container, wherein the second switching request is used for indicating that the current media object is switched to the next media object;
and if the media object to be played is detected to be the media object uploaded to the media platform by the user, playing the locally stored media object to be played through a corresponding system player container.
2. The method of claim 1, further comprising:
when a preset condition is met, determining a media object to be published;
synchronously publishing any of the following to an associated media platform:
the media object to be published;
the media object to be published and the comment information of the user aiming at the media object to be published.
3. The method of claim 2, wherein the preset condition comprises at least one of:
detecting a synchronous issuing instruction triggered by a user;
detecting that a user posts comment information aiming at a currently played media object;
detecting that the time length for playing a certain media object exceeds a preset time length;
the number of times of requesting to play a certain media object is detected to exceed a preset number of times.
4. The method of claim 1, wherein any system player container comprises: a video player and a picture player, wherein,
the playing of the current media object by using the first system player container includes any one of:
if the current media object is of a picture type, playing the current media object through a picture player in a first system player container;
if the current media object is of a video type, playing the current media object through a video player in a first system playing container;
wherein, playing the pre-loaded previous media object by using the second system player container includes any one of the following:
if the previous media object is of a picture type, playing the preloaded previous media object through a picture player in a second system player container;
if the previous media object is of a video type, playing the preset loaded previous media object through a video player in a second system player container;
wherein, playing the preloaded subsequent media object by using the third system player container includes any one of the following:
if the latter media object is of a picture type, playing the preloaded latter media object through a picture player in a third system player container;
and if the next media object is of the video type, playing the preloaded next media object through a video player in a third system player container.
5. The method of claim 1, wherein playing the current media object using the first system player container further comprises at least one of:
determining the current media object based on a play request triggered by a user for the media object;
determining the current media object based on the media object played when the user last quits the media platform;
and if the user logs in the media platform for the first time, determining that the first unread media object is the current media object.
6. An apparatus for playing a media object, the apparatus comprising:
the first playing module is used for playing the current media object by adopting a first system player container;
the first preloading module is used for preloading a previous media object of a current media object by adopting a second system player container when the current media object is played by adopting a first system player container;
the second preloading module is used for preloading a next media object of the current media object by adopting a third system player container when the first system player container is adopted to play the current media object; the current media object, the previous media object and the next media object are media objects of a media platform;
the second playing module is used for switching a current media object to a previous media object in a 3D (three-dimensional) turning mode when a first switching request triggered by a user is detected, and playing the previous media object preloaded by the first preloading module by using the second system player container, wherein the first switching request is used for indicating that the current media object is switched to the previous media object according to a gesture and a distance of the user corresponding to the first switching request, and presenting a 3D turning effect in the switching process;
a third playing module, configured to, when a second switching request triggered by the user is detected, present a 3D flip effect in a switching process according to a user gesture and a distance corresponding to the second switching request, switch from a current media object to a subsequent media object in a 3D flip manner, and play the subsequent media object preloaded by the second preloading module using the third system player container, where the second switching request is used to indicate that the current media object is switched to the subsequent media object;
and the fourth playing module is used for playing the locally stored media object to be played through the corresponding system player container if the media object to be played is detected to be the media object uploaded to the media platform by the user.
7. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of playing the media object of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements a method of playing a media object according to any of claims 1-5.
CN201910470170.9A 2019-05-31 2019-05-31 Media object playing method and device, electronic equipment and storage medium Active CN110162394B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910470170.9A CN110162394B (en) 2019-05-31 2019-05-31 Media object playing method and device, electronic equipment and storage medium
PCT/CN2020/071228 WO2020238241A1 (en) 2019-05-31 2020-01-09 Media object playback method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470170.9A CN110162394B (en) 2019-05-31 2019-05-31 Media object playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110162394A CN110162394A (en) 2019-08-23
CN110162394B true CN110162394B (en) 2022-09-23

Family

ID=67630856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470170.9A Active CN110162394B (en) 2019-05-31 2019-05-31 Media object playing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110162394B (en)
WO (1) WO2020238241A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162394B (en) * 2019-05-31 2022-09-23 北京字节跳动网络技术有限公司 Media object playing method and device, electronic equipment and storage medium
CN111669655A (en) * 2020-06-12 2020-09-15 腾讯科技(深圳)有限公司 Media content projection playing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390967A (en) * 2016-05-16 2017-11-24 三星电子株式会社 For showing the method and its electronic installation of application
CN109040808A (en) * 2018-08-29 2018-12-18 努比亚技术有限公司 A kind of video interactive regulation method, equipment and computer readable storage medium
CN109691073A (en) * 2016-02-05 2019-04-26 三星电子株式会社 Electronic equipment and its operating method including multiple displays

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI302802B (en) * 2004-05-10 2008-11-01 Via Tech Inc Multiplexer dvd player
TWI289797B (en) * 2005-02-04 2007-11-11 Via Tech Inc External digital communication routing module
US20090174781A1 (en) * 2008-01-07 2009-07-09 Panasonic Corporation Electronic equipment and image pickup apparatus
US9628543B2 (en) * 2013-09-27 2017-04-18 Samsung Electronics Co., Ltd. Initially establishing and periodically prefetching digital content
CN205430501U (en) * 2015-10-27 2016-08-03 湖南快乐阳光互动娱乐传媒有限公司 Mobile terminal web advertisement video and positive video seamless handover device
CN105630949B (en) * 2015-12-23 2019-03-22 小米科技有限责任公司 Page load, backing method and device
CN106792089A (en) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN106791911A (en) * 2016-12-28 2017-05-31 北京风行在线技术有限公司 A kind of loading method of picture and video
CN107613404A (en) * 2017-09-07 2018-01-19 北京达佳互联信息技术有限公司 Video broadcasting method, device and terminal
CN108521593A (en) * 2018-03-23 2018-09-11 优酷网络技术(北京)有限公司 The display methods and device of the information of multimedia content
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium
CN109407944A (en) * 2018-09-29 2019-03-01 传线网络科技(上海)有限公司 Multimedia resource plays adjusting method and device
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN109688473B (en) * 2018-12-07 2020-12-22 广州市百果园信息技术有限公司 Multi-video playing method, storage medium and computer equipment
CN109698979B (en) * 2018-12-13 2022-04-22 北京爱奇艺科技有限公司 Video playing method and device and electronic equipment
CN110162394B (en) * 2019-05-31 2022-09-23 北京字节跳动网络技术有限公司 Media object playing method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109691073A (en) * 2016-02-05 2019-04-26 三星电子株式会社 Electronic equipment and its operating method including multiple displays
CN107390967A (en) * 2016-05-16 2017-11-24 三星电子株式会社 For showing the method and its electronic installation of application
CN109040808A (en) * 2018-08-29 2018-12-18 努比亚技术有限公司 A kind of video interactive regulation method, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Beyond the playlist: seamless playback of structured video clips;Bo Gao等;《IEEE Transactions on Consumer Electronics》;20100831;第1495-1501页 *
短视频平台的设计与实现;周舜;《企业科技与发展》;20190210;第53-55页 *

Also Published As

Publication number Publication date
CN110162394A (en) 2019-08-23
WO2020238241A1 (en) 2020-12-03

Similar Documents

Publication Publication Date Title
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN112261459B (en) Video processing method and device, electronic equipment and storage medium
WO2022083427A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium
WO2021218518A1 (en) Video processing method and apparatus, device and medium
CN111930973B (en) Multimedia data playing method and device, electronic equipment and storage medium
CN114615510B (en) Live broadcast interface display method and equipment
CN109600656B (en) Video list display method and device, terminal equipment and storage medium
CN114470751B (en) Content acquisition method and device, storage medium and electronic equipment
CN109753332B (en) Method and device for displaying information
CN113094135B (en) Page display control method, device, equipment and storage medium
CN113721807B (en) Information display method and device, electronic equipment and storage medium
WO2023061230A1 (en) Content display method and apparatus, device, and storage medium
CN110162394B (en) Media object playing method and device, electronic equipment and storage medium
CN110619100A (en) Method and apparatus for acquiring data
CN114760515A (en) Method, device, equipment, storage medium and program product for displaying media content
CN114302208A (en) Video distribution method, video distribution device, electronic equipment, storage medium and program product
CN113253885A (en) Target content display method, device, equipment, readable storage medium and product
CN114363686B (en) Method, device, equipment and medium for publishing multimedia content
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
CN112492399B (en) Information display method and device and electronic equipment
EP4207775A1 (en) Method and apparatus for determining object addition mode, electronic device, and medium
CN115562527A (en) Comment information publishing method and device, electronic equipment and storage medium
CN113553451B (en) Media playing method, device, electronic equipment and program product
CN111709342B (en) Subtitle segmentation method, device, equipment and storage medium
CN114554292A (en) Method and device for switching visual angle, electronic equipment, storage medium and program product

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