Method, device, electronic device and storage medium for playing media resource collection stream
By automatically displaying the switching component in the first playback interface, when the media resource is played for a certain period of time, the problem of complicated playback steps of media resource collection streaming in the prior art is solved, and operation convenience and switching efficiency are improved.
Patent Information
- Application Number
- CN202410390322.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-04-01
AI Technical Summary
In the prior art, the playback steps of the media resource collection stream are relatively cumbersome and have low operational convenience, resulting in low switching efficiency of media resource.
In the first playback interface, the first media resource in the collection stream is played based on the information stream. When the playback time reaches a certain time, the first switching component is automatically displayed, allowing the user to switch to other in the collection stream through the component Media resources.
The switching steps from information flow to media resource collection stream are simplified, and the convenience of operation and the switching efficiency of media resource are improved.
Smart Images

Figure CN118301420B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for playing a media resource collection stream. Background Art
[0002] In today's digital age, users' demands for entertainment forms are constantly increasing, especially for the playback form of media resource collection streams. For example, taking the media resource collection stream as a short video collection as an example, the server pushes a short video in the short video collection to the terminal in the form of an information stream, and the terminal plays the short video in the first playback interface and displays a switching component in the first playback interface; if the user wants to watch other short videos in the short video collection, the short video collection is displayed by triggering the switching component, and then the short video to be played is selected from the short video collection by clicking, and the terminal plays the short video selected by the user. However, in the above method, the steps of switching from playing media resources in the information stream to playing media resources in the media resource collection stream are relatively cumbersome, and the operation convenience is low, resulting in low switching efficiency of media resources. Summary of the invention
[0003] The present disclosure provides a method, device, electronic device and storage medium for playing a collection stream of media resources, which can simplify the playing steps of the collection stream of media resources, improve the convenience of operation and improve the switching efficiency of media resources. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a method for playing a media resource collection stream is provided, the method comprising:
[0005] In the first playback interface, a first media resource in a media resource collection stream is played based on the information stream, where the media resource collection stream includes a plurality of associated media resources;
[0006] In response to the playback duration of the first media resource reaching a first duration, displaying a first switching component in the first playback interface, the first switching component being used to display multiple media resources in the media resource collection stream;
[0007] If a first trigger operation on the first switching component for a second media resource in the media resource collection stream is detected, the second media resource is played based on the media resource collection stream.
[0008] In the above method, when the playback time of the first media resource reaches a first time length, the terminal is automatically triggered to display the first switching component, providing the user with a switching function for the media resources in the media resource collection stream. Compared with the user manually triggering the terminal to display the first switching component, it can simplify the switching steps from the information flow to the media resource collection stream, and can improve the convenience of operation and the switching efficiency of media resources.
[0009] In a possible implementation manner, the first playback interface displays an interactive control for the first media resource and a resource introduction of the first media resource, and the method further includes:
[0010] In response to the playback duration of the first media resource reaching the duration of the first media resource, display of the interactive controls of the first media resource and the resource introduction of the first media resource are canceled in the first playback interface.
[0011] In one possible implementation, the method further includes:
[0012] In response to the playback duration of the first media resource reaching a second duration, in the first playback interface, a second switching component is displayed, the second switching component is used to display a third media resource, the third media resource being a media resource that is arranged after the first media resource in the media resource collection stream;
[0013] If a first triggering operation on the second switching component is detected, the third media resource is played based on the media resource collection stream.
[0014] In one possible implementation, the method further includes:
[0015] In the first playback interface, a third switching component is displayed, and the third switching component is used to switch the information stream to a media resource collection stream;
[0016] If a first trigger operation on the third switching component is detected, the first media resource continues to be played based on the media resource collection stream.
[0017] In one possible implementation, the method further includes:
[0018] The media resources in the media resource collection stream are played sequentially according to the arrangement order of the multiple media resources in the media resource collection stream.
[0019] In a possible implementation, the first switching component includes a plurality of switching controls, each switching control is used to control the display of a media resource in the media resource collection stream, and the method further includes:
[0020] If a second trigger operation on the switching control associated with the fourth media resource in the first switching component is detected, a resource introduction of the fourth media resource is displayed.
[0021] In a possible implementation, the switching control associated with the fourth media resource is located at a first position in the first switching component, and the method further includes:
[0022] If a third trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched, the displayed resource introduction is switched to the resource introduction of the media resource associated with the switching control at the first position.
[0023] In a possible implementation, the switching control associated with the fourth media resource is located at a first position in the first switching component, and the method further includes:
[0024] If a fourth trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched to a target switching control, the displayed resource introduction is switched to a resource introduction of a fifth media resource. The fifth media resource is a media resource associated with the target switching control, and the difference between the arrangement order of the fifth media resource and the fourth media resource is an integer multiple of the first number.
[0025] In one possible implementation, the method further includes:
[0026] If a second trigger operation on the resource introduction of the fifth media resource is detected, the resource introduction of the sixth media resource is displayed. The sixth media resource is a media resource whose arrangement order in the media resource collection stream differs from that of the fifth media resource by a second amount or less.
[0027] In one possible implementation, the method further includes:
[0028] Display media resource collection stream viewing controls;
[0029] In response to a first trigger operation on the media resource collection stream viewing control, a detail page of the media resource collection stream is displayed in the second playback interface, and the detail page is used to display multiple media resources in the media resource collection stream.
[0030] In a possible implementation, the details page includes a first style and a second style, the first style is used to display multiple media resources in the media resource collection stream, the second style is used to display multiple media resources in the media resource collection stream and resource profiles of the multiple media resources in the media resource collection stream, the details page is displayed with a style switching control, and the method further includes:
[0031] When the detail page is in the first style, if a first style switching operation on the style switching control is detected, the detail page is switched from the first style to the second style;
[0032] When the detail page is in the second style, if a second style switching operation on the style switching control is detected, the detail page is switched from the second style to the first style.
[0033] In one possible implementation, the method further includes at least one of the following:
[0034] Displaying a first playback control control, where the first playback control control is used to control the playback speed of the media resource;
[0035] Displaying a second playback control control, where the second playback control control is used to control the display mode of the first playback interface;
[0036] Displaying a third playback control control, where the third playback control control is used to control the display of components in the first playback interface;
[0037] A fourth playback control is displayed, where the fourth playback control is used to switch media resources in the media resource collection stream.
[0038] According to a second aspect of an embodiment of the present disclosure, a device for playing a media resource collection stream is provided, the device comprising:
[0039] A first playback unit is configured to execute in a first playback interface and play a first media resource in a media resource collection stream based on an information stream, where the media resource collection stream includes a plurality of associated media resources;
[0040] A display unit is configured to display a first switching component in the first playback interface in response to the playback duration of the first media resource reaching a first duration, wherein the first switching component is used to display multiple media resources in the media resource collection stream;
[0041] The second playback unit is configured to play the second media resource based on the media resource collection stream if a first trigger operation on the first switching component for the second media resource in the media resource collection stream is detected.
[0042] In a possible implementation manner, the first playback interface displays an interactive control for the first media resource and a resource introduction of the first media resource, and the display unit is further configured to execute:
[0043] In response to the playback duration of the first media resource reaching the duration of the first media resource, display of the interactive controls of the first media resource and the resource introduction of the first media resource are canceled in the first playback interface.
[0044] In a possible implementation manner, the display unit is further configured to execute:
[0045] In response to the playback duration of the first media resource reaching a second duration, in the first playback interface, a second switching component is displayed, the second switching component is used to display a third media resource, the third media resource being a media resource that is arranged after the first media resource in the media resource collection stream;
[0046] The second playback unit is further configured to play the third media resource based on the media resource collection stream if a first trigger operation on the second switching component is detected.
[0047] In a possible implementation manner, the display unit is further configured to execute:
[0048] In the first playback interface, a third switching component is displayed, and the third switching component is used to switch the information stream to the media resource collection stream;
[0049] The second playback unit is further configured to continue playing the first media resource based on the media resource collection stream if a first trigger operation on the third switching component is detected.
[0050] In a possible implementation manner, the second playback unit is further configured to execute:
[0051] The media resources in the media resource collection stream are played sequentially according to the arrangement order of the multiple media resources in the media resource collection stream.
[0052] In a possible implementation, the first switching component includes a plurality of switching controls, each of which is used to control the display of a media resource in the media resource collection stream, and the display unit is further configured to execute:
[0053] If a second trigger operation on the switching control associated with the fourth media resource in the first switching component is detected, a resource introduction of the fourth media resource is displayed.
[0054] In a possible implementation, the switching control associated with the fourth media resource is located at a first position in the first switching component, and the display unit is further configured to execute:
[0055] If a third trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched, the displayed resource introduction is switched to the resource introduction of the media resource associated with the switching control at the first position.
[0056] In a possible implementation, the switching control associated with the fourth media resource is located at a first position in the first switching component, and the display unit is further configured to execute:
[0057] If a fourth trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched to a target switching control, the displayed resource introduction is switched to a resource introduction of a fifth media resource. The fifth media resource is a media resource associated with the target switching control, and the difference between the arrangement order of the fifth media resource and the fourth media resource is an integer multiple of the first number.
[0058] In a possible implementation manner, the display unit is further configured to execute:
[0059] If a second trigger operation on the resource introduction of the fifth media resource is detected, the resource introduction of the sixth media resource is displayed. The sixth media resource is a media resource whose arrangement order in the media resource collection stream differs from that of the fifth media resource by a second amount or less.
[0060] In a possible implementation manner, the display unit is further configured to execute:
[0061] Display media resource collection stream viewing controls;
[0062] In response to a first trigger operation on the media resource collection stream viewing control, a detail page of the media resource collection stream is displayed in the second playback interface, and the detail page is used to display multiple media resources in the media resource collection stream.
[0063] In a possible implementation, the details page includes a first style and a second style, the first style is used to display multiple media resources in the media resource collection stream, and the second style is used to display multiple media resources in the media resource collection stream and resource profiles of the multiple media resources in the media resource collection stream, the details page is displayed with a style switching control, and the device further includes a style switching unit configured to execute:
[0064] When the detail page is in the first style, if a first style switching operation on the style switching control is detected, the detail page is switched from the first style to the second style;
[0065] When the detail page is in the second style, if a second style switching operation on the style switching control is detected, the detail page is switched from the second style to the first style.
[0066] In a possible implementation manner, the display unit is further configured to perform at least one of the following:
[0067] Displaying a first playback control control, where the first playback control control is used to control the playback speed of the media resource;
[0068] Displaying a second playback control control, where the second playback control control is used to control the display mode of the first playback interface;
[0069] Displaying a third playback control control, where the third playback control control is used to control the display of components in the first playback interface;
[0070] A fourth playback control is displayed, where the fourth playback control is used to switch media resources in the media resource collection stream.
[0071] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0072] one or more processors;
[0073] A memory for storing program codes executable by the processor;
[0074] The processor is configured to execute the program code to implement a method for playing a media resource collection stream as provided in the first aspect or any possible implementation scheme of the first aspect.
[0075] According to the fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When the program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute a method for playing a media resource collection stream as provided in the first aspect or any possible implementation manner of the first aspect.
[0076] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, which includes a computer program. When the computer program is executed by a processor of an electronic device, the electronic device is enabled to execute a method for playing a media resource collection stream as provided in the first aspect or any possible implementation scheme of the first aspect.
[0077] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0079] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present disclosure;
[0080] Figure 2 It is a flowchart of a method for playing a media resource collection stream provided by an embodiment of the present disclosure;
[0081] Figure 3 It is a flowchart of a method for playing a media resource collection stream provided by an embodiment of the present disclosure;
[0082] Figure 4 It is a schematic diagram of a first playback interface in a method for playing a media resource collection stream provided by an embodiment of the present disclosure;
[0083] Figure 5 is a schematic diagram of a second playback interface in a method for playing a media resource collection stream provided in an embodiment of the present disclosure;
[0084] Figure 6 It is a schematic diagram of a first playback interface in a method for playing a media resource collection stream provided in an embodiment of the present application;
[0085] Figure 7 It is a schematic diagram of a details page in a method for playing a media resource collection stream provided in an embodiment of the present disclosure;
[0086] Figure 8 It is a schematic diagram of a details page in a method for playing a media resource collection stream provided in an embodiment of the present disclosure;
[0087] Fig. 9 It is a flow chart showing information components in a method for playing a media resource collection stream provided by an embodiment of the present disclosure;
[0088] Fig.10 It is a structural schematic diagram of a playback device for a media resource collection stream provided by an embodiment of the present disclosure;
[0089] Fig.11 It is a structural block diagram of a terminal provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0090] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0091] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0092] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the media resources involved in the embodiments of the present disclosure are all obtained with full authorization. In some embodiments, the embodiments of the present disclosure provide a permission inquiry page, which is used to inquire whether to grant permission to obtain the above information. In the permission inquiry page, an authorization consent control and an authorization rejection control are displayed. When a trigger operation on the authorization consent control is detected, the media resource collection stream playback method provided in the embodiments of the present disclosure is used to obtain the above information.
[0093] Figure 1 This is a schematic diagram of an implementation environment provided by the embodiment of the present disclosure, see Figure 1 The implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 are directly or indirectly connected via wired or wireless communication, which is not limited.
[0094] Terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. Terminal 101 has a communication function and can access a wired network or a wireless network. Terminal 101 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by terminal 101. Those skilled in the art may appreciate that the number of the above terminals may be more or less. Schematically, a target application is run on terminal 101, and the target application is used to provide playback services for media resources for the object, such as video applications, audio applications, social applications, etc., without limitation. For example, the target application is in the form of a web application, a microprogram, or a client, and the present disclosure is not limited thereto. Among them, a microprogram refers to a program that runs on other applications, such as a mini-program.
[0095] The server 102 may be an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The number of the above-mentioned servers 102 may be more or less, and the embodiments of the present disclosure are not limited to this. Schematically, the server 102 is used to provide background services for the target application running on the terminal 101. For example, the terminal 101 obtains the corresponding video from the server 102 for playback in response to a video playback operation for a certain video. Of course, the server 102 may also include other functional servers to provide more comprehensive and diversified services.
[0096] The implementation environment of the embodiment of the present disclosure is introduced above. The following introduces a method for playing a media resource collection stream provided by the embodiment of the present disclosure. Figure 2 FIG. 1 is a flow chart of a method for playing a media resource collection stream provided by an embodiment of the present disclosure. Figure 2 As shown, the method is executed by a terminal. Schematically, the method includes the following steps 201 and 203.
[0097] In step 201, the terminal plays a first media resource in a media resource collection stream based on an information stream in a first playback interface of a target application, where the media resource collection stream includes a plurality of associated media resources.
[0098] The target application is used to provide a playback service for a media resource for an object, and the target application is, for example, a video application, an audio application, a social application, etc., without limitation. In some embodiments, the target application is in the form of a web application, a micro program, or a client, and the present disclosure is not limited thereto. A micro program refers to a program that runs on other applications, such as a small program.
[0099] The media resource includes at least one of a video resource, an image resource, a text resource or a webpage resource, and correspondingly, the media resource collection stream includes a video collection, an image collection, a text collection or a webpage collection. The first playback interface is used to display multiple media resources in the information stream to the object, and in response to a switching operation on the media resources in the first playback interface, the terminal switches the media resource played in the first playback interface to another media resource in the information stream. For example, the first playback interface is a video selection page of a short video application, and the first playback interface can play short videos in the information stream; in response to a switching operation on the short video in the video selection page, such as an up and down sliding operation, the short video played in the first playback interface is switched to another short video in the information stream.
[0100] Among them, the information stream includes a media resource collection stream and a non-media resource collection stream, that is, the information stream is interspersed with media resources in the media resource collection stream and media resources in the non-media resource collection stream. The media resource collection stream includes multiple associated media resources, wherein multiple media resources are associated, for example, multiple media resources are different episodes of the same drama or album, or, multiple media resources have the same theme, or, multiple media resources have the same publisher, or, multiple media resources have the same publishing location, and so on. In some embodiments, multiple media resources have one or more identical attributes, and the multiple media resources can be considered to be associated, and the present disclosure does not limit the association form of media resources. That is, the presentation form of the media resource collection stream can be a series, an album, a collection of media resources with the same theme, a collection of media resources published by the same publisher, or a collection of media resources at the same publishing location, and so on.
[0101] Exemplarily, the first object creates a media resource collection through the first terminal, adds multiple related media resources to the media resource collection, and publishes the media resource collection to the server; the server pushes an information stream to the second object, the information stream being interspersed with media resources in the media resource collection stream and media resources in the non-media resource collection stream; the second object plays the first media resource based on the information stream in the first playback interface of the second terminal. The first object is also the publisher of the media resource collection stream, and the second object is also the consumer of the information stream and the media resource collection stream.
[0102] In step 202, in response to the playback duration of the first media resource reaching a first duration, the terminal displays a first switching component in the first playback interface, where the first switching component is used to display multiple media resources in the media resource collection stream.
[0103] Among them, the playback duration of the first media resource can be calculated in different statistical methods according to the playback strategy of the media resource in the information stream. For example, in some embodiments, the terminal adopts a playback strategy of repeated playback for the media resource in the information stream, that is, when the switching operation to the first media resource is not detected, the terminal plays the first media resource in a loop in the first playback interface; whenever the first media resource is played again, the terminal clears the playback duration of the first media resource, that is, the playback duration of each playback of the first media resource is separately counted. For another example, in some other embodiments, the terminal adopts a playback strategy of pausing after playing for the media resource in the information stream, that is, when the switching operation to the first media resource is not detected, the terminal plays the first media resource once in the first playback interface; the playback duration of the first media resource is also the playback duration of the first media resource during the playback process. It should be noted that the above description of the statistical method for the playback duration of the first media resource is only exemplary, and the present disclosure does not limit this.
[0104] Among them, the first duration can be set according to actual needs. For example, in some embodiments, the first duration is the duration of the first media resource. In the above embodiment, after the first media resource is played, the first switching component is displayed to provide an entry for playing other media resources in the media resource collection stream, so as to improve the convenience of media resource switching and improve the switching efficiency of media resources. For example, in other embodiments, the first duration is determined based on the expected completion rate and the duration of the first media resource. For example, if the expected completion rate is 80%, and the duration of the first media resource is 5 minutes, then the first duration = 5 minutes × 80% = 4 minutes. In the above embodiment, the first duration is determined based on the expected completion rate, that is, after the first media resource meets the expected completion rate requirement, the first switching component is displayed to provide a switching entry for the first media resource, and the completion rate of the first media resource can be guaranteed on the premise of improving the convenience of switching media resources in the media resource collection stream. For another example, in some other embodiments, the media resource includes multiple resource segments. If the content of the n+1th resource segment in the multiple resource segments is not related to the theme content of the media resource, then the first duration is the duration of the first n resource segments, and n is a positive integer greater than or equal to 1. For example, the media resource is an episode of a skit, and the theme content of the episode is the plot of the skit. The episode includes 3 skit plot segments and 1 advertisement segment, and the advertisement segment is not related to the theme content of the episode. Then, the first duration is the duration of the 3 skit plot segments. Among them, the duration of each resource segment can be set according to actual needs, and there is no limitation on this. In addition, the division of resource segments in the media resource can be completed by the publisher of the media resource, and can also be obtained by the terminal automatically identifying the media resource during the playback of the media resource, and there is no limitation on this. In the above embodiment, the first duration is determined based on the content of the resource segments that constitute the first media resource, so that when a resource segment whose content is unrelated to the subject content of the first media resource is played, the first switching component is displayed, and the user is attracted to play other media resources in the media resource collection stream by providing a switching entry for the first media resource in a timely manner, which can continue the user's viewing interest in the media resources in the media resource collection stream, thereby improving the switching efficiency of the media resources and the playback rate of the media resource collection stream. It should be noted that the above description of the method for determining the first duration is only exemplary and does not limit it.
[0105] Among them, the first switching component is used to display multiple media resources in the media resource collection stream, which means that the object can trigger the terminal to play the media resources in the media resource collection stream through the first switching component, that is, the first switching component is used to control the display of multiple media resources in the media resource collection stream. The form of the first switching component can be set according to actual needs. For example, in some embodiments, the first switching component includes multiple switching controls, each of which is associated with a media resource in the media resource collection stream, wherein the association means controlling the playback of the media resource by triggering the switching control; each switching control has a digital identifier, which is used to indicate the arrangement order of the media resources associated with the switching control in the media resource collection stream. For example, if the media resource collection stream is a short drama, the first switching component includes multiple switching controls, and the digital identifier of the switching control indicates which episode of the short video associated with the switching control is in the short drama, for example, the data identifier is 2, indicating that the short video associated with the switching control is the second episode in the short drama. In the above embodiment, the first switching component includes multiple switching controls with digital identifiers, which can indicate multiple media resources in the media resource collection stream, and the form is concise and intuitive. For another example, in some other embodiments, each switch control in the first switch component displays a resource profile of a media resource in the media resource collection stream, and the resource profile is used to introduce the content of the media resource. The resource profile can be in text form, static graphic form, or dynamic graphic form, etc. In the above embodiment, the first switch component includes multiple switch controls that display resource profiles. While providing a switching entry from the information stream to the media resource collection stream, it can provide richer information about the media resources in the media resource collection stream, so that users can directly switch to the media resources of interest in the media resource collection stream without repeatedly switching media resources, thereby improving the switching efficiency of media resources and the effectiveness of media resource switching. It should be noted that the above description of the form of the first switch component is only exemplary and is not limited to this.
[0106] In step 203, if the terminal detects a first trigger operation on the first switching component for a second media resource in the media resource collection stream, the terminal plays the second media resource based on the media resource collection stream.
[0107] Among them, in some embodiments, the first switching component includes multiple switching controls, each of which is associated with a media resource in the media resource collection stream. The first trigger operation implemented on the first switching component for the second media resource in the media resource collection stream is also the first trigger operation implemented on the switching control associated with the second media resource in the first switching component. The information stream is interspersed with media resources in the media resource collection stream and media resources in the non-media resource collection stream. By implementing the first trigger operation on the second media resource in the media resource collection stream on the first switching component, the information stream is switched to the media resource collection stream. Playing the second media resource based on the media resource collection stream is to enter the media resource collection stream and play the second media resource in the media resource collection stream. The first trigger operation is used to trigger the playback of the media resource in the media resource collection stream. In response to the first trigger operation on the second media resource in the first switching component, the terminal switches from the information stream to the media resource collection stream, and the playback of the media resource in the media resource collection stream is switched to the playback of the media resource in the media resource collection stream. The first trigger operation can be a single-click operation or a double-click operation, etc., which is not limited.
[0108] Among them, the terminal can play the second media resource based on the media resource collection stream in the first playback interface, that is, in the playback interface of the information stream, and can also play the second media resource based on the media resource collection stream in the second playback interface. The second playback interface is used to play the media resources in the media resource collection stream, and the present disclosure does not limit this.
[0109] In the above method, when the playback time of the first media resource reaches a first time length, the terminal is automatically triggered to display the first switching component, providing the user with a switching function for the media resources in the media resource collection stream. Compared with the user manually triggering the terminal to display the first switching component, it can simplify the switching steps from the information flow to the media resource collection stream, and can improve the convenience of operation and the switching efficiency of media resources.
[0110] A method for playing a media resource collection stream provided in an embodiment of the present disclosure is briefly introduced above, and the method is introduced in detail below. Figure 3 This is a flowchart of a method for playing a media resource collection stream provided in an embodiment of the present disclosure. The method is executed by a terminal. Schematically, the method includes the following steps 301 to 307.
[0111] In step 301, the terminal plays a first media resource in a media resource collection stream based on an information stream in a first playback interface of a target application, where the media resource collection stream includes a plurality of associated media resources.
[0112] The first playback interface is used to play multiple media resources in the information stream.
[0113] The step 301 is the same as the above step 201 and will not be described in detail.
[0114] In step 302, the terminal displays a third switching component in the first playback interface, where the third switching component is used to switch the information stream to a media resource collection stream.
[0115] In some embodiments, the third switching component displays a media resource collection stream playback prompt and the number of media resources included in the media resource collection stream.
[0116] In step 303, if a first trigger operation on the third switching component is detected, the terminal continues to play the first media resource in the second playback interface based on the media resource collection stream.
[0117] The second playback interface is used to play the media resources in the media resource collection stream.
[0118] Among them, in some embodiments, if a first trigger operation on a third switching component is detected, the terminal records the playback time of the first media resource and switches the information stream to a media resource collection stream; the terminal displays a second playback interface, and based on the recorded playback time of the first media resource, continues to play the first media resource based on the media resource collection stream in the second playback interface.
[0119] In some embodiments, after the first media resource is played in the second playback interface, the terminal plays the media resources in the media resource collection stream in sequence in the second playback interface according to the arrangement order of the multiple media resources in the media resource collection stream. Among them, the arrangement order of the multiple media resources in the media resource collection stream can be specified by the publisher of the media resource collection stream, and can also be determined by the terminal based on the release order of each media resource in the media resource collection stream. The present disclosure does not limit the arrangement order. In the above embodiment, after jumping from the first playback interface to the second playback interface, the terminal automatically plays the media resources in the media resource collection stream in sequence, so that the user can smoothly watch the media resources in the media resource collection stream without manually switching the media resources, thereby improving the user experience and the efficiency of media resource playback.
[0120] Below through Figure 4 and Figure 5 The above steps 301 to 303 are described with examples. Figure 4 is a schematic diagram of a first playback interface in a method for playing a media resource collection stream provided in an embodiment of the present disclosure, Figure 5 FIG. 1 is a schematic diagram of a second playback interface in a method for playing a media resource collection stream provided by an embodiment of the present disclosure. Figure 4The first playback interface 400 shown includes a third switching component 401, an interactive control 402, and a media resource introduction 403. The third switching component 401 is used to switch from the information stream to the media resource collection stream. The third switching component displays "Watch the short drama collection, all 150 episodes"; the interactive control 402 includes a like control 4021, a comment control 4022, a favorite control 4023, and a share control 4024. In the first playback interface 400, the terminal plays the first media resource in the media resource collection stream based on the information stream. If a single click operation on the third switching component 401 is detected, the terminal switches the information stream to the media resource collection stream and displays the following. Figure 5 The second play interface 500 shown in FIG. Figure 5 The second playback interface 500 shown continues to play the first media resource based on the media resource collection stream. The second playback interface 500 includes a return control 501, a media resource collection stream viewing control 502, a first switching control 503, and a playback control control 504. If a click operation on the return control 501 in the second playback interface 500 is detected, the terminal displays the first playback interface 400, in which the first media resource in the media resource collection stream is played based on the information stream. Figure 5 The functions of the media resource collection stream viewing control 502, the first switching control 503 and the playback control control 504 will be introduced later and will not be repeated here.
[0121] It should be noted that the above steps 302 and 303 are optional steps. In some embodiments, steps 302 and 303 are not performed.
[0122] In step 304, in response to the playback duration of the first media resource in the first playback interface reaching a first duration, the terminal displays a first switching component in the first playback interface.
[0123] The step 304 is the same as the above step 202 and will not be described in detail.
[0124] In some embodiments, the first playback interface displays interactive controls for the first media resource and a resource introduction of the first media resource; in response to the playback duration of the first media resource reaching the duration of the first media resource, the terminal cancels the display of the interactive controls for the first media resource and the resource introduction of the first media resource in the first playback interface. In the above embodiment, after the first media resource is played, the interactive controls and resource introduction in the first playback interface are hidden, which not only ensures that the user can interact with the first media resource and understand the content of the first media resource while watching the first media resource, but also avoids the interference of the interactive controls and resource introduction on the display of the first switching component after the first media resource is played, and can highlight the display of the first switching component, which is beneficial to improve the playback rate of the media resource collection stream.
[0125] In some embodiments, in response to the playback duration of the first media resource reaching the duration of the first media resource, the terminal displays a media resource collection stream playback prompt in the first playback interface. The media resource collection stream playback prompt may be in text form, static graphic form, or dynamic graphic form, which is not limited in the present disclosure. Taking the media resource collection stream as a short play and the media resource collection stream playback prompt as a file form as an example, the media resource collection stream playback prompt may be "150 episodes of the short play have been updated, and you can select an episode to watch."
[0126] In some embodiments, in response to the playback time of the first media resource in the first playback interface reaching the second time, the terminal displays a second switching component in the first playback interface, and the second switching component is used to display a third media resource, and the third media resource is a media resource whose arrangement order in the media resource collection stream is located after the first media resource. Wherein, if the first time is less than the second time, the terminal displays the first switching component in the first playback interface when the playback time of the first media resource in the first playback interface reaches the first time, and displays the second switching component in the first playback interface when the playback time of the first media resource in the first playback interface reaches the second time; if the first time is greater than the second time, the terminal displays the second switching component in the first playback interface when the playback time of the first media resource in the first playback interface reaches the second time, and displays the first switching component in the first playback interface when the playback time of the first media resource in the first playback interface reaches the first time; if the first time is equal to the second time, the terminal displays the first switching component and the second switching component in the first playback interface after the playback time of the first media resource in the first playback interface reaches the first time. It should be noted that the above description of the first duration and the second duration is used to illustrate the display timing of the first switching component and the second switching component, and the display of the first switching component and the display of the second switching component do not conflict with each other.
[0127] In step 305, if a first trigger operation on the first switching component for a second media resource in the media resource collection stream is detected, the terminal plays the second media resource in the second playback interface.
[0128] In some embodiments, when the terminal displays a second switching component in the first playback interface, if a first trigger operation on the first switching component for the second media resource is detected, the terminal plays the second media resource in the second playback interface; if the first trigger operation on the second switching component is detected, the terminal plays the third media resource in the second playback interface.
[0129] Below through Figures 4 to 6 The above embodiments are described by way of example. Figure 6Schematic diagram of a first playback interface in a method for playing a media resource collection stream provided in an embodiment of the present application. Figure 6 As shown, taking the first media resource as the first episode of a short play as an example, in response to the first media resource being Figure 4 The playback duration in the first playback interface 400 shown reaches the duration of the first media resource, that is, the first media resource has been played. The terminal displays the first switching component 601 and the second switching component 602 in the first playback interface 400, and cancels the display of the third switching component 401, the interactive control 402 and the media resource introduction 403 in the first playback interface 400. Among them, the first switching component 601 includes multiple switching controls, each switching control has a digital identifier, and the data identifier indicates the episode number of the video corresponding to the switching control in the short drama; the second switching component 602 "Watch the next episode" displays the media resource whose arrangement order is after the first media resource in the media resource collection stream, that is, the next episode (episode 2) of the first episode of the short drama. If it is detected that Figure 6 The single click operation of the switch control with the number “2” in the first switch component in the first playback interface 400 shown in the figure is the first trigger operation implemented on the first switch component 601 for the second episode of the short play, and the terminal switches the information stream to the media resource collection stream and displays the following Figure 5 The second play interface 500 shown in FIG. Figure 5 In the second playback interface 500 shown, the second episode of the short play is played based on the media resource collection stream. Figure 6 If the second switching component "Watch Next Episode" in the first playback interface 400 is clicked, the terminal switches the information stream to the media resource collection stream and displays the following Figure 5 The second play interface 500 shown in FIG. Figure 5 The second play interface 500 shown plays the second episode of the short play based on the media resource collection stream. It should be noted that the above example is illustrated by taking the first media resource as the first episode of the short play and the second media resource as the second episode of the short play as an example. The first media resource and the second media resource can be any episode of the short play, and the present disclosure does not limit this.
[0130] It should be noted that the above step 305 is described by taking the detection of the first trigger operation on the second media resource implemented on the first switching component as an example. In some embodiments, if an up and down sliding operation on the first media resource in the first playback interface is detected, the terminal plays the media resource in the information flow in the first playback interface.
[0131] The above steps 301 to 305 introduce triggering the target media resource in the media resource collection stream to be played in the second playback interface by implementing a first trigger operation on the switching component displayed in the first playback interface, wherein if the first trigger operation for the second media resource is implemented on the first switching component in the first playback interface, the terminal switches the information stream to the media resource collection stream, and plays the second media resource in the media resource collection stream in the second playback interface; if the first trigger operation is implemented on the second switching component in the first playback interface, the terminal switches the information stream to the media resource collection stream, and plays the third media resource in the media resource collection stream in the second playback interface; if the trigger operation is implemented on the third switching component in the first playback interface, the information stream is triggered to switch to the media resource collection stream, and the first media resource continues to be played in the second playback interface. The following describes the process of playing the media resource collection stream in the second playback interface. In some embodiments, the terminal displays the first switching component in the second playback interface, and the first switching component is used to display multiple media resources in the media resource collection stream. If the first trigger operation for any media resource in the media resource collection stream is detected for the first switching component, the terminal plays the media resource in the second playback interface. This process is similar to the above steps 202 and 203, except that in step 202, the first switching component is displayed in the first playback interface, and in this process, the first switching component is displayed in the second playback interface. The similarities are not repeated. In other embodiments, the terminal plays the media resources in the media resource collection stream in sequence in the second playback interface according to the arrangement order of the multiple media resources in the media resource collection stream. In some other embodiments, the terminal displays the first switching component in the second playback interface. If the first trigger operation for the media resource in the first switching component is not detected during the playback of the target media resource, the terminal plays the media resources in the media resource collection stream in sequence in the second playback interface according to the sorting order of the multiple media resources in the media resource collection stream.
[0132] In some embodiments, the terminal displays a media resource collection stream viewing control in the second playback interface; in response to a first trigger operation on the media resource collection stream viewing control, the terminal displays a details page of the media resource collection stream in the second playback interface, and the details page is used to display multiple media resources in the media resource collection stream. In some embodiments, the details page includes a first style and a second style, the first style is used to display multiple media resources in the media resource collection stream, and the second style is used to display multiple media resources in the media resource collection stream and resource profiles of multiple media resources in the media resource collection stream, and the details page displays a style switching control; when the details page is in the first style, if a first style switching operation on the style switching control is detected, the details page is switched from the first style to the second style; when the details page is in the second style, if a second style switching operation on the style switching control is detected, the details page is switched from the second style to the first style. Wherein, the details page is, for example, a selection panel; the style switching control is, for example, a switch control; the first style switching operation is, for example, a sliding operation, a click operation, or a long press operation, and the present disclosure does not limit the style switching control and the style switching operation.
[0133] Below through Figure 5 , Figure 7 and Figure 8 The above embodiments are described by way of example. Figure 7 is a schematic diagram of a details page in a method for playing a media resource collection stream provided in an embodiment of the present disclosure, Figure 8 is a schematic diagram of a details page in a method for playing a media resource collection stream provided by an embodiment of the present disclosure. Figure 5 The terminal displays the following in the second playback interface 500: Figure 7 The details page 701 shown is a first style, and is used to display multiple media resources in the media resource collection stream. The details page 701 displays a style switching control 702. If a first style switching operation on the style switching control 702 is detected, the terminal displays the following in the second playback interface 500: Figure 8 The details page 801 shown is a second style for displaying multiple media resources in a media resource collection stream and resource profiles of multiple media resources in a media resource collection stream. The details page 801 displays a style switching control 802. If a second style switching operation is detected for the style switching control 802, the terminal displays the following in the second playback interface 500: Figure 7 The details page 701 is shown.
[0134] In some embodiments, if a second trigger operation on the fourth media resource in the first switching component is detected, the terminal displays a resource profile of the fourth media resource. The second trigger operation is, for example, a long press operation. In some embodiments, the terminal displays the resource profile in the form of a floating window or a prompt bar, and the present disclosure does not limit the display form of the resource profile. Fig. 9 This embodiment is described by way of example. Fig. 9 : is a flow chart of displaying a resource introduction in a method for playing a media resource collection stream provided by an embodiment of the present disclosure, taking the fourth media resource as the third episode of a short play as an example. Fig. 9 As shown in the middle left figure, if a long press operation of the switch control associated with the third episode in the first switch component is detected, the terminal displays the following in the second playback interface: Fig. 9 The floating window 901 shown in the middle right figure is used to display the resource introduction of the third episode in the short play, and the resource introduction is a graphic introduction. In the above embodiment, the resource introduction of the specified media resource is displayed by the second trigger operation of the switch control in the first switching component, so that the user can quickly preview the content of other media resources while playing the current media resource, and then can quickly determine the media resource to be switched, thereby improving the efficiency of information transmission and the efficiency of switching media resources.
[0135] In some embodiments, the first switching component includes a plurality of switching controls, each of which is used to control the display of a media resource in the media resource collection stream, and the switching control associated with the fourth media resource is located at a first position in the first switching component; if a third trigger operation on the first switching component is detected, the terminal switches the switching control in the first switching component, and in the process of switching the switching control in the first switching component, whenever the switching control at the first position is switched, the terminal switches the displayed resource introduction to the resource introduction of the media resource associated with the switching control at the first position. The third trigger operation is, for example, a short slide operation, a slow slide operation, and the like. For example, the switch control in the first switch component is the switch control associated with episodes 1 to 10 in the short drama, the fourth media resource is episode 3 in the short drama, and the switch control associated with episode 3 is located at the first position in the second playback interface. If a slow slide operation on the first switch component is detected, the switch control in the first switch component is switched from the switch control associated with episodes 1 to 10 to the switch control associated with episodes 3 to 12. During the switching process, the switch control at the first position is switched from the switch control associated with episode 3 to the switch control associated with episodes 4 and 5, respectively. Then, the terminal switches the displayed resource introduction from the resource introduction of episode 3 to the resource introduction of episode 4 and the resource introduction of episode 5, respectively.
[0136] Among them, the first position is the position relative to the first switching component, that is, the first position is a relative position. In some embodiments, in response to the fifth trigger operation on the first switching component, the terminal adjusts the position of the first switching component in the second playback interface, that is, the position of the first switching component in the second playback interface is adjustable. When the position of the first switching component in the second playback interface changes, the first position remains unchanged. The first position can be expressed in the form of relative coordinates or relative areas, wherein the relative area is, for example: the area where the first switching component is located is divided into m sub-areas, each sub-area has a switching control, and the first position is the xth sub-area of the m sub-areas. The present disclosure does not limit the representation form of the first position.
[0137] In some embodiments, the first switching component includes a plurality of switching controls, each of which is used to control the display of a media resource in the media resource collection stream, and the switching control associated with the fourth media resource is located at the first position in the first switching component; if a fourth trigger operation on the first switching component is detected, the terminal switches the switching control in the first switching component, and in the process of switching the switching control in the first switching component, whenever the switching control at the first position is switched to the target switching control, the terminal switches the displayed resource introduction to the resource introduction of the fifth media resource, the fifth media resource is the media resource associated with the target switching control, and the difference between the arrangement order of the fifth media resource and the fourth media resource is an integer multiple of the first number. The fourth trigger operation is, for example, a long slide operation or a fast slide operation, etc. The difference between the long slide operation and the short slide operation is that the sliding distance is different, and the difference between the fast slide operation and the slow slide operation is that the sliding speed and frequency are different. Taking the first number of 10 as an example, the switching control in the first switching component is the switching control associated with episodes 1 to 10 in the short drama, the fourth media resource is episode 3 in the short drama, and the switching control associated with episode 3 is located in the first position in the second playback interface. If a fast sliding operation on the first switching component is detected, the switching control in the first switching component is switched from the switching control associated with episodes 1 to 10 to the switching control associated with episodes 21 to 30. During the switching process, the switching control at the first position is switched from the switching control associated with episode 3 to the switching control associated with episodes 4 to 23 in sequence. When the switching control at the first position is the switching control associated with episode 13, the terminal switches the displayed resource introduction to the resource introduction of episode 13; when the switching control at the first position is the switching control associated with episode 23, the terminal switches the displayed resource introduction to the resource introduction of episode 23. In the above embodiment, when the fourth trigger operation on the first switching component is detected, a resource introduction is displayed once for every first number of media resources, which can help users quickly and roughly locate the media resources they want to watch, and can avoid the resource introduction switching being too frequent and inconvenient for users to view when the first switching component is quickly slid, thereby improving user experience and the switching efficiency of media resources. It should be noted that the first number equal to 10 in the above example is only exemplary, and the first number can be determined based on the number of switching controls that the first switching component can display each time, that is, determined based on the layout size of the first switching component, or determined based on other methods, and the present disclosure does not limit the first number.
[0138] In one possible implementation, if a second trigger operation on the resource profile of the fifth media resource is detected, the terminal displays the resource profile of the sixth media resource, and the sixth media resource is a media resource whose arrangement order in the media resource collection stream differs from the arrangement order of the fifth media resource by less than or equal to the second number. Continuing with the example in the above embodiment, if a long press operation on the resource profile of the 23rd episode in the short drama is detected, the resource profiles of the 22nd and 24th episodes are displayed, that is, the resource profiles of the previous and next episodes are displayed by long pressing the resource profile, thereby helping users to quickly and accurately locate the media resources they want to watch and improve the switching efficiency of media resources. It should be noted that the second number equal to 1 in the above example is only exemplary, and the present disclosure does not limit the second number.
[0139] In some embodiments, the terminal displays any one of a first playback control control, a second playback control control, a third playback control control, and a fourth playback control control in the second playback interface, wherein the first playback control control is used to control the playback speed of the media resource played in the second playback interface, the second playback control control is used to control the display mode of the second playback interface, the third playback control control is used to control the display of components in the second playback interface, and the fourth playback control control is used to switch the media resource played in the second playback interface. Figure 5 As shown, Figure 5 The playback control 504 includes a first playback control "speed", a second playback control "small window", a third playback control "clear screen" and a fourth playback control "next episode". It should be noted that: Figure 5 The playback control 504 shown is for exemplary purposes only and does not limit the present disclosure.
[0140] In the above method, when the playback time of the first media resource reaches the first time, the terminal is automatically triggered to display the first switching component, providing the user with a switching function for the media resources in the media resource collection flow. Compared with the user manually triggering the terminal to display the first switching component, the step of jumping from the first playback interface to the second playback interface can be simplified, that is, the switching step from the information flow to the media resource collection flow is simplified, which can improve the convenience of operation and the switching efficiency of media resources; further, after the first media resource is played, the interactive controls and resource introduction in the first playback interface are hidden, which not only ensures that the user can interact with the first media resource and understand the content of the first media resource when watching the first media resource, but also avoids the interference of the interactive controls and resource introduction on the display of the first switching component after the first media resource is played, and can highlight the display of the first switching component, which is conducive to improving the playback rate of the media resource collection flow; in addition, the resource introduction of the specified media resource is displayed by the second trigger operation of the media resource in the fourth switching component, so that the user can quickly preview the content of other media resources while playing the current media resource, and then can quickly determine the media resource to be switched, thereby improving the information transmission efficiency and the switching efficiency of media resources.
[0141] It should be noted that the above Figure 3 The embodiment shown is explained by taking the example of playing the media resources in the information stream in the first playback interface and playing the media resources in the media resource collection stream in the second playback interface, that is, when switching from the information stream to the media resource collection stream, the playback interface jumps. In some embodiments, the media resources in the information stream and the media resources in the media resource collection stream are both played in the first playback interface, that is, when switching from the information stream to the media resource collection stream, the playback interface jumps. The specific process of this embodiment is the same as that of the above Figure 3 The same principle is shown and will not be repeated here.
[0142] Fig.10 is a structural diagram of a playback device for a media resource collection stream provided by an embodiment of the present disclosure, such as Fig.10 As shown, the device includes a first playback unit 1001 , a display unit 1002 and a second playback unit 1003 .
[0143] The first playback unit 1001 is configured to execute in a first playback interface, and to play a first media resource in a media resource collection stream based on an information stream, where the media resource collection stream includes a plurality of associated media resources;
[0144] The display unit 1002 is configured to execute, in response to the playback duration of the first media resource reaching a first duration, displaying a first switching component in the first playback interface, the first switching component being used to display multiple media resources in the media resource collection stream;
[0145] The second playing unit 1003 is configured to play the second media resource based on the media resource collection stream if a first triggering operation on the second media resource in the media resource collection stream implemented on the first switching component is detected.
[0146] In a possible implementation manner, the first playback interface displays an interactive control for the first media resource and a resource introduction of the first media resource, and the display unit 1002 is further configured to execute:
[0147] In response to the playback duration of the first media resource reaching the duration of the first media resource, display of the interactive controls of the first media resource and the resource introduction of the first media resource are canceled in the first playback interface.
[0148] In a possible implementation, the display unit 1002 is further configured to execute:
[0149] In response to the playback duration of the first media resource reaching a second duration, in the first playback interface, a second switching component is displayed, the second switching component is used to display a third media resource, the third media resource being a media resource that is arranged after the first media resource in the media resource collection stream;
[0150] The second playing unit 1003 is further configured to play the third media resource based on the media resource collection stream if a first triggering operation on the second switching component is detected.
[0151] In a possible implementation, the display unit 1002 is further configured to execute:
[0152] In the first playback interface, a third switching component is displayed, and the third switching component is used to switch the information stream to the media resource collection stream;
[0153] The second playback unit 1003 is further configured to continue to play the first media resource based on the media resource collection stream if a first trigger operation on the third switching component is detected.
[0154] In a possible implementation manner, the second playback unit 1003 is further configured to execute:
[0155] The media resources in the media resource collection stream are played sequentially according to the arrangement order of the multiple media resources in the media resource collection stream.
[0156] In a possible implementation, the first switching component includes a plurality of switching controls, each of which is used to control the display of a media resource in the media resource collection stream, and the display unit 1002 is further configured to execute:
[0157] If a second trigger operation on the switching control associated with the fourth media resource in the first switching component is detected, a resource introduction of the fourth media resource is displayed.
[0158] In a possible implementation, the switching control associated with the fourth media resource is located at the first position in the first switching component, and the display unit 1002 is further configured to execute:
[0159] If a third trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched, the displayed resource introduction is switched to the resource introduction of the media resource associated with the switching control at the first position.
[0160] In a possible implementation, the switching control associated with the fourth media resource is located at the first position in the first switching component, and the display unit 1002 is further configured to execute:
[0161] If a fourth trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched to a target switching control, the displayed resource introduction is switched to a resource introduction of a fifth media resource. The fifth media resource is a media resource associated with the target switching control, and the difference between the arrangement order of the fifth media resource and the fourth media resource is an integer multiple of the first number.
[0162] In a possible implementation manner, the display unit is further configured to execute:
[0163] If a second trigger operation on the resource introduction of the fifth media resource is detected, the resource introduction of the sixth media resource is displayed. The sixth media resource is a media resource whose arrangement order in the media resource collection stream differs from that of the fifth media resource by a second amount or less.
[0164] In a possible implementation, the display unit 1002 is further configured to execute:
[0165] Display media resource collection stream viewing controls;
[0166] In response to a first trigger operation on the media resource collection stream viewing control, a detail page of the media resource collection stream is displayed in the second playback interface, and the detail page is used to display multiple media resources in the media resource collection stream.
[0167] In a possible implementation, the details page includes a first style and a second style, the first style is used to display multiple media resources in the media resource collection stream, and the second style is used to display multiple media resources in the media resource collection stream and resource profiles of the multiple media resources in the media resource collection stream, the details page is displayed with a style switching control, and the device further includes a style switching unit configured to execute:
[0168] When the detail page is in the first style, if a first style switching operation on the style switching control is detected, the detail page is switched from the first style to the second style;
[0169] When the detail page is in the second style, if a second style switching operation on the style switching control is detected, the detail page is switched from the second style to the first style.
[0170] In a possible implementation, the display unit 1002 is further configured to perform at least one of the following:
[0171] Displaying a first playback control control, where the first playback control control is used to control the playback speed of the media resource;
[0172] Displaying a second playback control control, where the second playback control control is used to control the display mode of the first playback interface;
[0173] Displaying a third playback control control, where the third playback control control is used to control the display of components in the first playback interface;
[0174] A fourth playback control is displayed, where the fourth playback control is used to switch media resources in the media resource collection stream.
[0175] Through the above-mentioned device, when the playback time of the first media resource reaches the first time, the terminal is automatically triggered to display the first switching component, providing the user with a switching function for the media resources in the media resource collection stream. Compared with the user manually triggering the terminal to display the first switching component, it can simplify the switching steps from the information flow to the media resource collection stream, and can improve the convenience of operation and the switching efficiency of media resources.
[0176] It should be noted that: when displaying media content, the playback device for the media resource collection stream provided in the above embodiment only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the playback device for the media resource collection stream provided in the above embodiment and the playback method embodiment for the media resource collection stream belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0177] The present disclosure provides an electronic device, taking the electronic device as a terminal as an example, Fig.11 1 is a block diagram of a terminal provided by an embodiment of the present disclosure. The terminal 1100 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 1100 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0178] Typically, the terminal 1100 includes a processor 1101 and a memory 1102 .
[0179] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0180] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one program code, which is used to be executed by the processor 1101 to implement the process executed by the terminal in the material uploading method provided in the method embodiment of the present disclosure.
[0181] In some embodiments, the terminal 1100 may further optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102 and the peripheral device interface 1103 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1103 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 11011 and a power supply 1108.
[0182] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present disclosure.
[0183] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0184] The display screen 1105 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the display screen 1105. The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1105 can be one, set on the front panel of the terminal 1100; in other embodiments, the display screen 1105 can be at least two, respectively set on different surfaces of the terminal 1100 or in a folding design; in other embodiments, the display screen 1105 can be a flexible display screen, set on the curved surface or folding surface of the terminal 1100. Even, the display screen 1105 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0185] The camera assembly 1106 is used to capture images or videos. In some embodiments, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0186] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.
[0187] The power supply 1108 is used to power various components in the terminal 1100. The power supply 1108 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0188] In some embodiments, the terminal 1100 further includes one or more sensors 1109 , including but not limited to: an acceleration sensor 1110 , a gyroscope sensor 1111 , a pressure sensor 1112 , an optical sensor 1113 , and a proximity sensor 1114 .
[0189] The acceleration sensor 1110 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1100. For example, the acceleration sensor 1110 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1101 can control the display screen 1105 to display the user page in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1110. The acceleration sensor 1110 can also be used for collecting game or user motion data.
[0190] The gyro sensor 1111 can detect the body direction and rotation angle of the terminal 1100, and the gyro sensor 1111 can cooperate with the acceleration sensor 1110 to collect the user's 3D actions on the terminal 1100. The processor 1101 can implement the following functions based on the data collected by the gyro sensor 1111: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0191] The pressure sensor 1112 may be provided at the side frame of the terminal 1100 and / or the lower layer of the display screen 1105. When the pressure sensor 1112 is provided at the side frame of the terminal 1100, it may detect the user's holding signal of the terminal 1100, and the processor 1101 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1112. When the pressure sensor 1112 is provided at the lower layer of the display screen 1105, the processor 1101 may control the operability control on the UI page according to the user's pressure operation on the display screen 1105. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0192] The optical sensor 1113 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1113. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is reduced. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1113.
[0193] The proximity sensor 1114, also called a distance sensor, is usually arranged on the front panel of the terminal 1100. The proximity sensor 1114 is used to collect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from the screen-on state to the screen-off state; when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from the screen-off state to the screen-on state.
[0194] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the terminal 1100, and the terminal 1100 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0195] In an exemplary embodiment, a computer-readable storage medium including a program code is also provided, such as a memory including the program code, and the program code can be executed by the processor 1101 of the terminal 1100 to complete the playback method of the media resource collection stream. Optionally, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0196] In an exemplary embodiment, a computer program product is also provided, including a computer program, which implements the above-mentioned method for playing a collection stream of media resources when executed by a processor.
[0197] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0198] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for playing a collection stream of media resources, characterized in that: The method comprises: In the first playback interface, a first media resource in a media resource collection stream is played based on the information stream, where the media resource collection stream includes a plurality of associated media resources; In response to the playback duration of the first media resource reaching a first duration, displaying a first switching component in the first playback interface, the first switching component being used to display multiple media resources in the media resource collection stream, the first switching component comprising multiple switching controls, each of the switching controls being used to control the display of a media resource in the media resource collection stream; If a first trigger operation on the first switching component for a second media resource in the media resource collection stream is detected, playing the second media resource based on the media resource collection stream; If a second trigger operation on a switching control associated with a fourth media resource in the first switching component is detected, a resource introduction of the fourth media resource is displayed, and the switching control associated with the fourth media resource is located at a first position in the first switching component; If a third trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched, the displayed resource introduction is switched to the resource introduction of the media resource associated with the switching control at the first position.
2. The method for playing a media resource collection stream according to claim 1, characterized in that: The first playback interface displays an interactive control for the first media resource and a resource introduction of the first media resource, and the method further includes: In response to the playback duration of the first media resource reaching the duration of the first media resource, display of the interactive controls of the first media resource and the resource introduction of the first media resource are canceled in the first playback interface.
3. The method for playing a media resource collection stream according to claim 1, characterized in that: The method further comprises: In response to the playback duration of the first media resource reaching a second duration, displaying a second switching component in the first playback interface, wherein the second switching component is used to display a third media resource, wherein the third media resource is a media resource that is arranged after the first media resource in the media resource collection stream; If a first trigger operation on the second switching component is detected, the third media resource is played based on the media resource collection stream.
4. The method for playing a media resource collection stream according to claim 1, characterized in that: The method further comprises: In the first playback interface, a third switching component is displayed, and the third switching component is used to switch the information stream to the media resource collection stream; If a first trigger operation on the third switching component is detected, the first media resource continues to be played based on the media resource collection stream.
5. The method for playing a media resource collection stream according to any one of claims 1 to 4, characterized in that: The method further comprises: The media resources in the media resource collection stream are played sequentially according to the arrangement order of the multiple media resources in the media resource collection stream.
6. The method for playing a media resource collection stream according to claim 1, characterized in that: The switching control associated with the fourth media resource is located at a first position in the first switching component, and the method further includes: If the fourth trigger operation on the first switching component is detected, the switching control in the first switching component is switched. During the process of switching the switching control in the first switching component, each time the switching control at the first position is switched to a target switching control, the displayed resource introduction is switched to a resource introduction of a fifth media resource, where the fifth media resource is a media resource associated with the target switching control, and the difference between the arrangement order of the fifth media resource and the fourth media resource is an integer multiple of the first number.
7. The method for playing a media resource collection stream according to any one of claim 6, characterized in that: The method further comprises: If a second trigger operation on the resource introduction of the fifth media resource is detected, the resource introduction of the sixth media resource is displayed, and the sixth media resource is a media resource whose arrangement order in the media resource collection stream differs from the arrangement order of the fifth media resource by less than or equal to a second amount.
8. The method for playing a media resource collection stream according to claim 1, characterized in that: The method further comprises: Display media resource collection stream viewing controls; In response to a first trigger operation on the media resource collection stream viewing control, a detail page of the media resource collection stream is displayed, wherein the detail page is used to display multiple media resources in the media resource collection stream.
9. The method for playing a media resource collection stream according to claim 8, characterized in that: The details page includes a first style and a second style, the first style is used to display multiple media resources in the media resource collection stream, the second style is used to display multiple media resources in the media resource collection stream and resource brief introductions of the multiple media resources in the media resource collection stream, the details page displays a style switching control, and the method further includes: When the detail page is in the first style, if a first style switching operation on the style switching control is detected, the detail page is switched from the first style to the second style; In the case where the detail page is in the second style, if a second style switching operation on the style switching control is detected, the detail page is switched from the second style to the first style.
10. The method for playing a media resource collection stream according to claim 1, characterized in that: The method further comprises at least one of the following: Displaying a first playback control control, where the first playback control control is used to control the playback speed of the played media resource; Displaying a second playback control control, where the second playback control control is used to control a display mode of the first playback interface; Displaying a third playback control control, wherein the third playback control control is used to control the display of components in the first playback interface; A fourth playback control control is displayed, where the fourth playback control control is used to switch media resources in the media resource collection stream.
11. A device for playing a collection stream of media resources, characterized in that: The device comprises: A first playback unit is configured to execute in a first playback interface and play a first media resource in a media resource collection stream based on an information stream, wherein the media resource collection stream includes a plurality of associated media resources; a display unit configured to, in response to the playback duration of the first media resource reaching a first duration, display a first switching component in the first playback interface, the first switching component being used to display multiple media resources in the media resource collection stream, the first switching component comprising multiple switching controls, each of the switching controls being used to control the display of a media resource in the media resource collection stream; A second playing unit is configured to play the second media resource based on the media resource collection stream if a first triggering operation on the first switching component for the second media resource in the media resource collection stream is detected; The display unit is further configured to display a resource introduction of the fourth media resource if a second trigger operation on a switch control associated with a fourth media resource in the first switch component is detected, and the switch control associated with the fourth media resource is located at a first position in the first switch component; if a third trigger operation on the first switch component is detected, switch the switch control in the first switch component, and in the process of switching the switch control in the first switch component, whenever the switch control at the first position is switched, switch the displayed resource introduction to the resource introduction of the media resource associated with the switch control at the first position.
12. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the method for playing a media resource collection stream as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: When the program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the method for playing a media resource collection stream as described in any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor of an electronic device, the electronic device is enabled to execute the method for playing a media resource collection stream as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Video recommending method, medium and device and computing equipment
CN107172454A