Picture set playback method, apparatus and device, and medium
By using vertical content view controls to display horizontal content view controls and synchronous music playback on the Internet platform, the problem of monotonous display of picture content is solved, and the user's immersion and browsing experience are improved.
Patent Information
- Application Number
- PCT/CN2024/078327
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2024-02-23
- Publication Date
- 2024-09-19
AI Technical Summary
Existing Internet platforms are relatively monotonous in displaying picture content, making it difficult for users to share and browse picture collections in a way similar to online video viewing, and lack a sense of immersion.
Provides a method for playing photo albums, which displays horizontal content view controls through vertical content view controls. Users can slide horizontally to switch pictures, and supports synchronous playback of photo albums and music. The view feature code set is used to distinguish and manage horizontal content views. Control, adjust the picture collection playback progress bar to indicate the current picture position.
It improves users' immersion and fluency when browsing photo collections, combines photo sharing with online video viewing, and provides a richer display format.
Smart Images

Figure CN2024078327_19092024_PF_FP_ABST
Abstract
Description
Picture collection playing method and device, equipment and medium thereof
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 14, 2023, with application number 202310253005.4, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of online network services, and in particular to a method for playing a picture collection and its corresponding apparatus, a picture collection playing device, a computer-readable storage medium, and a computer program product. Background Art
[0003] Existing Internet platforms usually provide users with online video viewing services. Platform users browse the video content uploaded by the platform or other platform users through the online video viewing services. However, in addition to sharing the video content they have recorded, some platform users on the Internet platform also want to share their own picture content for other platform users to browse. However, platform users can generally only publish their picture content to the platform through online picture and text browsing services similar to "Friends Circle", which makes the publication and display of picture content on the platform relatively monotonous. It can be seen that the picture content display method provided by the existing platform is relatively monotonous. The applicant has made corresponding explorations in order to solve this problem.
[0004] Summary of the Invention
[0005] The purpose of this application is to solve the above problems and provide a picture set playback method and its corresponding device, picture set playback equipment, computer-readable storage medium, and computer program product.
[0006] In a first aspect, an embodiment of the present application provides a method for playing a picture collection, comprising the following steps:
[0007] Generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code from the view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture set in each of the horizontal content view controls;
[0008] Acquire a preset number of pictures from a picture set of a horizontal content view control in the screen area, and output each of the pictures to the horizontal content view control in sequence;
[0009] Obtaining the music file and music playback interval of the horizontal content view control, and calling the music playback control to play the music track in the music file in the music playback interval;
[0010] In response to a picture switching event of the horizontal content view control, adjusting a progress bar of a picture set playback progress control acting on the horizontal content view control;
[0011] In response to a horizontal content view control destruction event, the view feature code of the destroyed horizontal content view control is recovered and stored in the view feature code set, a new horizontal content view control is generated and the view feature code in the view feature code set is assigned to it.
[0012] In a second aspect, an embodiment of the present application further provides a picture collection playback device, comprising:
[0013] a view control generation module configured to generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code from the view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture set in each of the horizontal content view controls;
[0014] A picture sequential output module configured to obtain a preset number of pictures from a picture set of a horizontal content view control in the screen area, and output each of the pictures sequentially to the horizontal content view control;
[0015] A music track playing module is configured to obtain the music file and music playing interval of the horizontal content view control, and call the music playing control to play the music track in the music file in the music playing interval;
[0016] a playback progress control module configured to respond to an image switching event of the horizontal content view control and adjust a progress bar of an image set playback progress control acting on the horizontal content view control;
[0017] The view control destruction module is configured to respond to a horizontal content view control destruction event, recycle the view feature code of the destroyed horizontal content view control and store it in the view feature code set, generate a new horizontal content view control and assign it a view feature code in the view feature code set.
[0018] In a third aspect, an embodiment of the present application further provides a picture collection playback device, comprising a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the picture collection playback method described in the present application.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program implemented according to the picture collection playback method in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the method are executed.
[0020] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method described in any one of the embodiments of the present application.
[0021] The present application provides an online picture collection playback service for an Internet platform, so that platform users can share pictures by uploading picture collections containing pictures to the platform. Compared with the traditional user picture browsing online service on the existing platform, the present application displays the pictures in the picture collection uploaded by the user in a form similar to online video playback. A plurality of horizontal content view controls for receiving the picture collection uploaded by the user are arranged vertically through a vertical content view control, and each horizontal content view control is used to output and display the corresponding picture collection. Each picture in the picture collection is output to the horizontal content view control in a horizontally sorted manner. The user can switch the pictures displayed in the screen area of the terminal device by sliding horizontally in the horizontal content view control to switch the currently visible pictures in the picture collection, or slide vertically in the vertical content view control to switch the horizontal content view controls to switch picture collections uploaded by users of different platforms. It can be seen that the online picture collection playback service provides platform users with a method of displaying online videos similar to the existing online video viewing service, allowing them to browse the picture collections uploaded by platform users on the platform. The platform can combine the online picture collection playback service with the online video viewing service, so that users can browse different picture collections while browsing the online videos of the platform.
[0022] Secondly, the picture collection of the picture collection playback online service in this application can have corresponding music files and music playback intervals. The music playback interval of the music file is generally customized by the setting user, so that the user can select the music track in the music file that is suitable for the picture collection he has set and play it simultaneously, thereby allowing the user to play music while watching the pictures in the picture collection, thereby enhancing the user's immersion when watching the pictures.
[0023] In addition, the present application constructs a view feature code set to assign corresponding view feature codes to each horizontal content view control to distinguish each horizontal content view control, so that each horizontal content view control can be effectively output to the vertical content view control for display, and is used to determine the horizontal content view control for target output of each of the picture sets.
[0024] Furthermore, when switching the pictures displayed in the screen area, the present application will also synchronously adjust the progress bar of the picture set playback progress control to indicate the sorting position of the picture currently displayed in the screen area in the picture set to which it belongs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] FIG1 is a schematic diagram of a network deployment architecture related to implementing the technical solution of the present application;
[0027] FIG2 is a flow chart of an embodiment of a method for playing a picture collection according to the present application;
[0028] FIG3 is a schematic diagram of an interface of multiple horizontal content view controls in a vertical content view control in this application;
[0029] FIG4 is a schematic diagram of an interface for outputting multiple images in a horizontal content view control in this application;
[0030] FIG5 is a schematic diagram of another interface for outputting multiple images in a horizontal content view control in this application;
[0031] FIG6 is another interface diagram of multiple horizontal content view controls in a vertical content view control in this application;
[0032] FIG7 is a schematic diagram of a process for determining a music track from a music file according to a music playback interval in an embodiment of the present application;
[0033] FIG8 is a schematic diagram of a process for initializing a progress bar in a picture set playback progress control according to an embodiment of the present application;
[0034] FIG9 is another interface diagram of multiple horizontal content view controls in a vertical content view control in this application;
[0035] FIG10 is a schematic diagram of a process for controlling a progress bar in a picture set playback progress control in response to a picture set playback event according to an embodiment of the present application;
[0036] FIG11 is a schematic diagram of a process for controlling image zooming of a visual image in response to a screen sliding event in an embodiment of the present application;
[0037] FIG12 is a schematic diagram of a process for initializing a view feature code set and reclaiming view feature codes of the view feature code set according to an embodiment of the present application;
[0038] FIG13 is a functional block diagram of an embodiment of a picture collection playback device of the present application;
[0039] FIG14 is a basic structural block diagram of a picture collection playback device according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] The term "server" as used in this application can similarly be extended to encompass service clusters. Based on the principles of network deployment understood by those skilled in the art, the servers described should be logically divided. Physically, these servers can be independent but accessible via interfaces, or integrated into a single physical computer or a cluster of computers. Those skilled in the art should understand this flexibility and should not use it to constrain the implementation of this application's network deployment method.
[0041] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus exhibit commonality, unless otherwise specified, these methods can be independently executed. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept. Therefore, concepts with the same expression, as well as concepts that are appropriately transformed for convenience despite different expression, should be understood as equivalent.
[0042] Unless expressly stated to be mutually exclusive, the various embodiments disclosed in this application may be cross-combined with the relevant technical features of the various embodiments to flexibly construct new embodiments, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the relevant technologies or resolve certain deficiencies in the relevant technologies. Those skilled in the art should be aware of such flexibility.
[0043] Please refer to Figure 1, which is a schematic diagram of a network deployment architecture related to the implementation of the technical solution of this application. The hardware foundation required for the implementation of the relevant technical solution of this application can be deployed according to the architecture shown in the figure. The server 80 referred to in this application is deployed in the cloud. As an online server, it can be responsible for connecting relevant data servers and other servers that provide relevant support, etc., to form a logically related service cluster to provide services for relevant terminal devices such as the smartphone 81 and personal computer 82 shown in the figure or a third-party server (not shown). The smartphone and personal computer can access the Internet through a well-known network access method and establish a data communication link with the server 80 in the cloud to run terminal applications related to the services provided by the server. For example, the smartphone 81 and personal computer 82 generally run the platform application to play the picture collection, and the server 80 can be responsible for providing the terminal device with the picture collection in the acquisition platform.
[0044] Please refer to FIG2 , which is a flow chart of an embodiment of a method for playing a picture collection of the present application. In one embodiment, the method for playing a picture collection of the present application includes the following steps:
[0045] Step S11: Generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code from the view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture set in each of the horizontal content view controls;
[0046] The vertical content view control is used to arrange each horizontal content view control vertically. By placing each horizontal content view control in the vertical content view control, the user can switch the horizontal content view control displayed in the screen area by performing a vertical sliding operation in the screen area. Please refer to Figure 3, which is an interface diagram of multiple horizontal content view controls in the vertical content view control in this application. The view control 301 shown in Figure 3 is the vertical content view control, and the view controls 302, 303 and 304 are the horizontal content view controls. As shown in Figure 3, each horizontal content view control is output to the vertical content view control 301 in a vertical arrangement. The view control 303 shown is taken as an example of a horizontal content view control in the screen area, that is, the view control 303 shown is the horizontal content view control currently output to the screen of the terminal device. After the user performs a vertical sliding operation in the screen area, the view control 303 displayed in the screen area can be switched to the view control 302 or the view control 304 shown.
[0047] The horizontal content view control is used to arrange the pictures in the corresponding picture set horizontally. Each horizontal content view control has its corresponding picture set. The user can switch the pictures displayed in the screen area by sliding the horizontal content view control horizontally. The picture set generally contains multiple pictures, and each picture has a corresponding sorting identifier, so that the multiple pictures in the picture set can be output to the corresponding horizontal content view control. According to the sorting identifier of each picture, each picture can be output to the horizontal content view control in sequence for display. Specifically, please refer to Figure 4, Figure 4 is an interface diagram of the horizontal content view control outputting multiple pictures in this application. The horizontal content view control 401 shown in Figure 4 arranges and outputs the pictures 402, 403 and 404 in its corresponding picture set horizontally, wherein the picture 403 is in the screen area 405. The user can switch the picture 403 in the screen area 405 to the picture 402 or the picture 404 by sliding the screen horizontally in the screen area 405.
[0048] The number of horizontal content view controls that can be displayed simultaneously in the vertical content view control is generally within the range of 3 to 6, that is, the value of the preset number in generating a preset number of horizontal content view controls and outputting them to the vertical content view control is generally set at 3 to 6. Of course, those skilled in the art can flexibly design the number of horizontal content view controls that can be displayed simultaneously in the vertical content view control, which will not be elaborated herein.
[0049] The view feature code set has multiple view feature codes, and each of the video feature codes is used to allocate output to the horizontal content view control in the vertical content view control, wherein the number of view feature codes possessed by the view feature code set generally exceeds the number of horizontal content view controls that can be displayed simultaneously in the vertical content view control, so as to ensure that the view feature codes possessed by the view feature code set are sufficient to be allocated to each horizontal content view control; by allocating corresponding view feature codes to each of the horizontal content view controls to distinguish each horizontal content view control, each horizontal content view control can be effectively output to the vertical content view control, and is used to determine the horizontal content view control for the target output of each picture set.
[0050] The picture collection is generally a picture collection uploaded by a user of a certain platform and obtained by the user terminal through the platform's server or a picture collection stored in the local storage space of the user terminal, and each picture collection generally has a corresponding music file and a music interval acting on the music file, so that the music file is played when the pictures contained in the picture collection are output and displayed.
[0051] When each horizontal content view control is output to the vertical content view control for display, the picture set corresponding to each horizontal content view control will be obtained, and the first picture in each picture set will be output to the corresponding horizontal content view control for display, wherein the first picture refers to the picture that is sorted and marked as the first output display in the picture set. By outputting the first picture in the picture set of each horizontal content view control, when any horizontal content view control is switched to the screen area for display, the first picture can be displayed without loading, thereby improving the user's picture viewing experience and the look and feel of switching horizontal content view controls.
[0052] Step S12, acquiring a preset number of pictures from a picture set of the horizontal content view control in the screen area, and outputting the pictures to the horizontal content view control in sequence;
[0053] For the horizontal content view control currently in the screen area, the user terminal obtains a preset number of pictures in the horizontal content view control and outputs these pictures to the horizontal content view control. It should be noted that the screen area generally displays one picture, that is, the number of pictures output and displayed on the screen of the user terminal that can be viewed by the user is generally one. The user at the user terminal can switch the picture displayed in the screen area to other output pictures in the horizontal content view control by sliding the screen horizontally. It can be understood that the user terminal not only outputs the picture currently in the screen area, but also obtains multiple pictures from the picture collection of the horizontal content view control in the screen area for output, so that when the user switches the pictures in the picture collection of the horizontal content view control by sliding the screen horizontally, there is no need to wait for the pictures to be loaded after switching the pictures, thereby improving the smoothness of the user's viewing of pictures.
[0054] As described above, each picture contained in the picture set has its own sorting identifier. When the user terminal outputs a preset number of pictures obtained from the picture set of the horizontal content view control in the screen area, the pictures will be output in sequence horizontally to the horizontal content view control for display according to the sorting identifier of each picture obtained, wherein the preset number is generally set to be in the range of 3 to 6, or all pictures in the picture set that are not in the screen area can be output in advance. Those skilled in the art can flexibly design the number of pictures obtained in advance from the picture set for output, which will not be elaborated here.
[0055] Step S13, obtaining the music file and music playing interval of the horizontal content view control, and calling the music playing control to play the music track in the music file in the music playing interval;
[0056] When the horizontal content view control in the screen area outputs a preset number of pictures in its picture collection, it will also call the music playback control to play the music track in the music playback interval in the music file of the horizontal content view control.
[0057] The music file and music playback interval generally correspond to the picture set of the horizontal content view control, so that when the pictures in the picture set are output to the horizontal content view control, the music track in the music file in the music playback interval is played by calling the music playback control, so that the user can play music while viewing the pictures in the picture set, thereby enhancing the user's immersion when viewing the pictures.
[0058] The music file is generally obtained through the platform server or the local storage space of the user end, and the music file generally has the music playback interval, so that the corresponding music track in the music file can be played according to the music playback interval. Specifically, the music playback interval generally includes a track start position and a track end position, wherein the track start position is used to represent the start playback position of the music track to be played in the music text, and the track end position is used to represent the end playback position of the music track to be played in the music text. The music track to be played in the original music track in the music file is determined by including the track start position and the track end position in the music playback interval, and the music track is played by calling the music player; the music playback interval is generally customized by the setting user, so that the user can select a music track from the music file that is suitable for simultaneous playback with the set picture set.
[0059] Of course, when the music file does not have the corresponding music playing interval, the user terminal will call the music player to play the original music track of the music file, that is, play the music file completely.
[0060] The music player is used to play the music track determined from the music file according to the music playback interval, and control the playback of the music track. For example, the user can control the music track to pause or resume playback through the music playback control corresponding to the music player. Please refer to Figure 5, which is another interface diagram of the horizontal content view control outputting multiple pictures in this application. The music player has a music playback control 501 as shown in the graphical user interface, and controls the playback and pause of the corresponding music track by responding to the touch click event of the music playback control 501.
[0061] Step S14, in response to the picture switching event of the horizontal content view control, adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control;
[0062] The picture switching event refers to an event triggered by switching the picture in the horizontal content view control in the screen area. The user at the current user end can trigger the picture switching event acting on the horizontal content view control currently in the screen area by performing a horizontal sliding operation in the screen area, or trigger the picture switching event for the picture set playback event acting on the horizontal content view control. The picture set playback event refers to an event that automatically switches the horizontal content view control in the screen area.
[0063] After responding to the image switching event acting on the horizontal content view control currently in the screen area, the current user terminal will adjust the progress bar of the picture set playback progress control acting on the horizontal content view control, and the picture set playback progress control is used to represent the sorting position of the picture currently in the screen area in the picture set to which it belongs, wherein the picture set playback progress control has the progress bar, and the progress bar is composed of progress bar blocks whose number is the same as the number of pictures in the picture set of the horizontal content view control currently in the screen area.
[0064] Regarding the initialization event of the progress bar in the picture set playback progress control, the current user terminal determines the number of pictures in the picture set of the horizontal content view control in the screen area, and then generates a number of progress bar blocks corresponding to the number of pictures, and each progress bar block is bound to the pictures in the picture set in sequence, and outputs each progress bar block to the picture set playback progress control for display, wherein the progress bar block corresponding to the picture in the screen area is in a prominent display state, and the progress bar block corresponding to the picture not in the screen area is in a silent display state. Please refer to Figure 5, as shown in Figure 5, the picture set playback progress control 502, the progress bar of the picture set playback progress control 502 is composed of 4 progress bar blocks, wherein the progress bar in the picture set playback progress control 502 is in the prominent display state as the second progress bar block, indicating that the picture currently in the screen area 507 is the picture in the picture set of the horizontal content view control with the sorting identifier represented as the second ranked picture.
[0065] Regarding the picture set playback event, specifically, the current user terminal responds to the picture set playback event of the horizontal content view control in the screen area, determines the initial playback time, and then detects in real time whether the time difference between the initial playback time and the current time exceeds the preset picture display time. If it exceeds, the picture in the screen area of the horizontal content view control is switched to the picture in its next position, and the progress bar in the picture set playback progress control of the horizontal content view control that is in a prominent display state is switched to a silent display state, and the next progress bar of the progress bar is switched from the silent display state to the prominent display state.
[0066] When the picture in the horizontal content view control that is located in the screen area is the last picture in the picture set to which it belongs, that is, the picture is the picture in the picture set that is represented by the sorting identifier as the last picture in the sorting, when the response to the picture switching event acting on the horizontal content view control is an event triggered by the picture set playback event, the current user terminal switches the last picture in the horizontal content view control that is located in the screen area to the first picture in the picture set, and correspondingly adjusts the progress bar in the picture set playback progress control acting on the horizontal content view control.
[0067] When the picture in the horizontal content view control that is located in the screen area is the last picture in the picture set to which it belongs, and the picture switching event that responds to the horizontal content view control is an event triggered by a horizontal sliding operation event, the current user terminal will detect the layout position of the vertical content view control where the horizontal content view control is located in the current page. When there is another layout to the right of the layout position of the vertical content view control, and the horizontal sliding operation event is a left sliding operation, the current user terminal will switch the layout of the vertical content view control to the other layout to its right, and adjust the corresponding layout position indicator control, as shown in Figure 5 The layout position indicator control 508 shown, the layout position of the vertical content view control is shown in the layout position indicator control 508. The vertical content view control is in the middle layout position in the current page of Figure 5, and its specific layout position name is "Follow", and the subscript of "Follow" is in a prominent display state. When the horizontal sliding operation event acting on the vertical content view control is a left sliding operation, the vertical content view control is switched to a layout position with a layout position name of "Friends", and the subscript of "Follow" in the layout position indicator control 508 shown is switched to a silent display state, and the subscript of the layout position name of "Friends" is switched to a prominent display state.
[0068] Similarly, taking Figure 5 as an example, when the picture in the horizontal content view control that is in the screen area is the first picture in the picture set to which it belongs, and the picture switching event that responds to the horizontal content view control is an event triggered by a horizontal sliding operation event, and the horizontal sliding operation event is a sliding operation to the right, then the vertical content view control of the layout whose layout position name is "Follow" currently in the screen area is switched to the layout whose layout name is "Recommend" on its left, the vertical content view control is switched to the layout position whose layout position name is "Recommend", and the subscript of "Follow" in the layout position indication control 508 shown is switched to a silent display state, and the subscript of the layout position name "Recommend" is switched to a prominent display state.
[0069] Step S15 , responding to the horizontal content view control destruction event, retrieving the view feature code of the destroyed horizontal content view control and storing it in the view feature code set, generating a new horizontal content view control and assigning it the view feature code in the view feature code set.
[0070] Because the number of horizontal content view controls that can exist simultaneously in the vertical content view control generally has a corresponding preset limit, therefore, when a new horizontal content view control is triggered to output a new picture set and its corresponding music file by performing a vertical sliding operation on the vertical content view control, the current user terminal will trigger the horizontal content view control destruction event acting on the horizontal content view control that is currently in the first or last position in the vertical content view control.
[0071] Please refer to Figures 3 and 6. Figure 6 is another interface diagram of multiple horizontal content view controls in a vertical content view control in this application. Specifically, when the vertical sliding operation currently acting on the vertical content view control 301 shown in Figure 3 is an upward sliding operation, the horizontal content view control that triggers the horizontal content view control destruction event is the horizontal content view control 302 shown in Figure 3. The current user end will destroy the horizontal content view control 302 from the vertical content view control 301 and generate a new horizontal content view control at the sending position of the horizontal content view control 302, that is, switch the vertical content view control 301 shown in Figure 3 to the vertical content view control 601 shown in Figure 6. The horizontal content view control 602 shown in Figure 6 is the newly generated horizontal content view control.
[0072] After destroying the corresponding horizontal content view control in response to the horizontal content view control destruction event, the view feature code of the horizontal content view control will be obtained and stored in the view feature code set to complete the recycling operation of the view feature code, and the view feature code it has will be obtained from the view feature code set and assigned to the newly generated horizontal content view control.
[0073] According to another embodiment of the present application, please refer to FIG7 , which is a schematic diagram of a process for determining a music track from a music file based on a music playback interval in the embodiment of the present application. The process of obtaining a music file and a music playback interval of the horizontal content view control, and calling a music playback control to play a music track in the music file within the music playback interval includes the following steps:
[0074] Step S131, obtaining the starting position and ending position of the audio track contained in the music playing interval;
[0075] The track start position is used to represent the start playing position of the music track to be played in the music text, and the track end position is used to represent the end playing position of the music track to be played in the music text.
[0076] Step S132, determining the music tracks at the start position and the end position of the music track in the original music track of the music file;
[0077] After obtaining the starting position and the ending position of the audio track, the first audio track timeline position corresponding to the starting position of the audio track in the original music track of the music file will be determined, and the second audio track timeline position corresponding to the ending position of the audio track in the original music track of the music file will be determined, and then the audio track timeline interval from the first audio track timeline position to the second audio track timeline position will be determined, and then the music track in the audio track timeline interval will be clipped and obtained.
[0078] Step S133: driving the music playing control to play the music track.
[0079] After the music track in the original music track is obtained, the music playing control is driven to play the music track.
[0080] In the embodiments disclosed above, the music playback interval of the music file is generally customized by the setting user, so that the user can select the music track in the music file that is suitable for the set of pictures to be played simultaneously, thereby allowing the user to play music while viewing the pictures in the picture set, thereby enhancing the user's immersion when viewing the pictures.
[0081] According to another embodiment of the present application, please refer to Figures 5 and 8. Figure 8 is a schematic diagram of a process for initializing a progress bar block in a picture collection playback progress control in an embodiment of the present application. In response to a picture switching event of the horizontal content view control, the step of adjusting the progress bar of the picture collection playback progress control acting on the horizontal content view control includes the following steps:
[0082] Step S141, determining the number of pictures in the picture set of the horizontal content view control in the screen area;
[0083] When any horizontal content view control outputted in the vertical content view control is moved to the screen area, the current user terminal will determine the number of pictures in the picture collection corresponding to the horizontal content view control to initialize the progress bar in the picture collection playback control.
[0084] Step S142, generating a number of progress bars corresponding to the number of the pictures, and binding each of the progress bars to the pictures in the picture set in sequence;
[0085] After determining the number of pictures in the picture set of the horizontal content view control, a number of progress bars corresponding to the number of pictures will be generated. As shown in Figure 5, the number of pictures in the picture set of the horizontal content view control 506 is 4, and the number of progress bars generated in the picture set playback control 502 is also 4.
[0086] Generate a number of progress bars corresponding to the number of pictures, and bind each progress bar to the corresponding picture in the picture set in sequence to determine the display position relationship of each progress bar, and when switching the picture in the screen area, the display status (prominent display status or silent display status) of the progress bar of the switched picture can be synchronously adjusted.
[0087] Step S143: output each of the progress bars to the picture set playback progress control for display, wherein the progress bar corresponding to the picture in the screen area is in a prominent display state.
[0088] Please refer to Figure 5. The progress bar blocks shown in the progress bar of the picture collection playback control 502 shown in Figure 5 correspond to the sorting position of each picture in the picture collection. For example, the picture 503 in the screen area 507 is in the second sorting position in the picture collection. Therefore, the display status of the corresponding progress bar block in the progress bar of the picture collection playback control 502 is a prominent display status.
[0089] In the embodiment disclosed above, the progress bar initialization operation of the picture set playback progress control is completed by generating a number of progress bar blocks that is the same as the number of pictures in the picture set of the horizontal content view control visible in the screen area, and combining these progress bar blocks to form a progress bar in the picture set playback progress control.
[0090] According to another embodiment of the present application, please refer to Figures 5, 9, and 10. Figure 9 is another interface diagram of multiple horizontal content view controls in a vertical content view control in the present application. Figure 10 is a flow diagram of controlling a progress bar in a picture set playback progress control in response to a picture set playback event in an embodiment of the present application. In response to a picture switching event of the horizontal content view control, the step of adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control includes the following steps:
[0091] Step S141', responding to a picture set play event of a horizontal content view control in the screen area, and determining an initial play time;
[0092] The current user terminal responds to the picture set playback event to automatically switch the pictures in the picture set corresponding to the horizontal content view control in the screen area, that is, to switch the picture currently in the screen area of the horizontal content view control to the picture in its next position. The initial playback event refers to the time when the picture set playback event is triggered.
[0093] Step S142', detecting that the time difference between the initial playback time and the current time exceeds the preset picture display time, switching the picture in the horizontal content view control in the screen area to the picture at the next position;
[0094] The preset image display duration is generally set within a range of 3 to 5 seconds. Of course, those skilled in the art can flexibly design the preset image display duration.
[0095] Please refer to Figures 5 and 9. When it is detected that the time difference between the initial playback time of the horizontal content view control 506 shown in Figure 5 and the current time exceeds the preset picture display time, the picture 503 shown in Figure 5 in the shown screen area 507 will be switched to the shown picture 504 in its next position, that is, the horizontal content view control 506 shown in Figure 5 will be switched to the horizontal content view control 901 shown in Figure 9, and the shown picture 903 in the shown screen area 902 will be the shown picture 504 shown in Figure 5.
[0096] Step S143 ′: switch the progress bar in the picture set playback progress control of the horizontal content view control that is in a prominent display state to a silent display state, and switch the next progress bar of the progress bar from the silent display state to a prominent display state.
[0097] Please refer to Figures 5 and 9. When the picture 503 shown in Figure 5 in the screen area 507 is switched to the picture 504 in its next position, the progress bar in the picture set playback progress control 502 shown in Figure 5 will be adjusted at the same time, and the progress bar block of the picture 503 in the progress bar will be switched from a prominent display state to a silent display state, and the progress bar block of the picture 504 in the progress bar will be switched from a prominent display state to a silent display state, that is, the picture set playback progress control 502 shown in Figure 5 will be switched to the picture set playback progress control 904 shown in Figure 9.
[0098] In the embodiment disclosed above, when the picture displayed in the screen area is switched, the progress bar of the picture set playback progress control will also be adjusted synchronously to indicate the sorting position of the picture currently displayed in the screen area in the picture set to which it belongs.
[0099] According to another embodiment of the present application, please refer to FIG11 , which is a schematic diagram of a process for controlling image zooming of a visible image in response to a screen sliding event in an embodiment of the present application. After the step of adjusting the progress bar of the image collection playback progress control acting on the horizontal content view control in response to an image switching event of the horizontal content view control, the process includes the following steps:
[0100] Step S141 ”, in response to a screen sliding event, determining the number of screen touch points corresponding to the screen sliding event;
[0101] The screen sliding event refers to an event triggered by a user at the user end performing a sliding operation on a screen area in any direction.
[0102] The number of screen touch points refers to the number of touch points in the sliding direction in the screen area of the user terminal when the user terminal responds to the screen sliding event.
[0103] Step S142 ”, detecting that the number of touch points on the screen exceeds a preset number, and stopping playing the pictures included in the picture set of the horizontal content view control in the screen area;
[0104] The value of the preset number is generally greater than or equal to 2. When the current user terminal detects that the number of screen touch points exceeds the preset number, it will stop executing the picture set playback event as described above, and use the picture currently in the screen area as a visible picture for picture zooming operation.
[0105] In step S143 , the image zooming of the visible image in the horizontal content view control is controlled according to the screen sliding direction of the screen sliding event.
[0106] When the screen sliding direction of the screen sliding event is towards the center of the screen, the current user terminal will perform a picture zooming operation on the picture currently in the screen area, that is, reduce the picture display size of the visible picture in the horizontal content view control in the screen area.
[0107] When the screen sliding direction of the screen sliding event is towards the edge of the screen, the current user terminal will perform a picture zoom operation on the picture currently in the screen area, that is, enlarge the picture display size of the visible picture in the horizontal content view control in the screen area.
[0108] In the embodiments disclosed above, a visual image zooming function is constructed for the horizontal content view control so that the user can control the image display size of the visual image in the screen area through the visual image zooming function, allowing the user to view the image in different image display sizes.
[0109] According to another embodiment of the present application, please refer to Figures 3, 6, and 12. Figure 12 is a flowchart of initializing a view feature code set and reclaiming view feature codes from the view feature code set in an embodiment of the present application. The steps of generating a preset number of horizontal content view controls and outputting them to vertical content view controls, assigning a view feature code from the view feature code set to each of the horizontal content view controls, or responding to a horizontal content view control destruction event, reclaiming the view feature code of the destroyed horizontal content view control and storing it in the view feature code set, generating a new horizontal content view control and assigning it a view feature code from the view feature code set, include any of the following steps:
[0110] Step S151, in response to a display event of a picture collection playback page, obtaining a preset number of horizontal content view controls for the picture collection playback page, generating view feature codes whose number exceeds the preset number of horizontal content view controls, and storing them in a view feature code set;
[0111] The picture collection playback page refers to a page used to output and display the vertical content view control and the horizontal content view control. The application outputs and plays the pictures in the corresponding picture collection by displaying the picture collection playback page.
[0112] The number of horizontal content view controls generated generally refers to the number of horizontal content view controls that can be output simultaneously in the vertical content view control. This number is generally set within the range of 3 to 6. Of course, those skilled in the art can flexibly design the number of horizontal content view controls generated, which will not be elaborated here.
[0113] The purpose of obtaining the number of horizontal content view controls generated is to initialize the view feature code set acting on the vertical content view control, generate view feature codes exceeding the number of horizontal content view controls generated, and store these view stop codes in the view feature code set to complete the initialization of the view feature code set.
[0114] Step S152, in response to a generation event of a horizontal content view control, obtaining a view feature code from the view feature code set and assigning it to the horizontal content view control, and removing the view feature code from the view feature code set;
[0115] Please refer to Figures 3 and 6. When the vertical sliding operation currently acting on the vertical content view control 301 shown in Figure 3 is an upward sliding operation, the horizontal content view control that triggers the horizontal content view control destruction event is the horizontal content view control 302 shown in Figure 3. The current user terminal will destroy the horizontal content view control 302 from the vertical content view control 301 and generate a new horizontal content view control at the sending position of the horizontal content view control 302, that is, switch the vertical content view control 301 shown in Figure 3 to the vertical content view control 601 shown in Figure 6. The horizontal content view control 602 shown in Figure 6 is the newly generated horizontal content view control. The current user terminal will obtain the view feature code from the view feature code set to assign the obtained view feature code to the horizontal content view control 602.
[0116] Step S153 : In response to the destroy event of the horizontal content view control, obtain the view feature code of the horizontal content view control and store it in the view feature code set.
[0117] Please refer to Figures 3 and 6. When the vertical sliding operation of the vertical content view control 301 shown in Figure 3 is an upward sliding operation, which triggers the destruction event acting on the horizontal content view control 302 shown, the view feature code of the horizontal content view control 302 shown will be obtained and stored in the view feature code set to complete the recovery operation of the view feature code.
[0118] In the embodiments disclosed above, initialization and recycling operations are performed on the view feature codes in the view feature code set to ensure that the generated horizontal content view controls can be assigned corresponding view feature codes, so that the horizontal content view controls can be effectively output and displayed.
[0119] Please refer to Figure 13, which is a principle block diagram of an embodiment of the picture collection playback device of the present application, and a picture collection playback device provided to meet one of the purposes of the present application: a view control generation module 11, used to generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code of a view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture collection in each of the horizontal content view controls; a picture sequential output module 12, used to obtain a preset number of pictures from the picture collection of the horizontal content view controls in the screen area, and output each of the pictures in sequence to the horizontal content view controls; music sound A track playback module is used to obtain the music file and music playback interval of the horizontal content view control, and call the music playback control to play the music track in the music file that is in the music playback interval; a playback progress control module 13 is used to respond to the picture switching event of the horizontal content view control, and adjust the progress bar of the picture set playback progress control acting on the horizontal content view control; a view control destruction module 14 is used to respond to the destruction event of the horizontal content view control, recycle the view feature code of the destroyed horizontal content view control, store it in the view feature code set, generate a new horizontal content view control and assign it the view feature code in the view feature code set.
[0120] In one embodiment, the music track playing module 11 includes: a track position acquisition submodule, used to obtain the track start position and track end position contained in the music playing interval; a music track determination submodule, used to determine the music track at the track start position and track end position in the original music track of the music file; and a music player calling submodule, used to drive the music playing control to play the music track.
[0121] In one embodiment, the playback progress control module 13 includes: a picture number determination submodule, used to determine the number of pictures in the picture set of the horizontal content view control in the screen area; a progress bar block generation submodule, used to generate a number of progress bars corresponding to the number of pictures, and each progress bar block is bound to the pictures in the picture set in sequence; a progress bar block display submodule, used to output each progress bar block to the picture set playback progress control for display, wherein the progress bar block corresponding to the picture in the screen area is in a prominent display state.
[0122] In one embodiment, the playback progress control module 13 also includes: an initial playback time determination submodule, used to respond to the picture set playback event of the horizontal content view control in the screen area to determine the initial playback time; a picture switching submodule, used to detect that the time difference between the initial playback time and the current time exceeds the preset picture display time length, and switch the picture in the screen area in the horizontal content view control to the picture in its next position; a progress bar display control, used to switch the progress bar in the picture set playback progress control of the horizontal content view control that is in a prominent display state to a silent display state, and switch the next progress bar of the progress bar from the silent display state to a prominent display state.
[0123] Another embodiment of the present application also provides a picture collection playback device. As shown in Figure 14, Figure 14 is a basic structural block diagram of a picture collection playback device according to one embodiment of the present application. The picture collection playback device can be implemented by a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. The computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When executed by the processor, the computer-readable instructions enable the processor to implement a picture collection playback method. The processor of the computer device is configured to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When executed by the processor, the computer-readable instructions enable the processor to perform the picture collection playback method of the present application. The network interface of the computer device is configured to connect and communicate with a terminal. Those skilled in the art will appreciate that the structure shown in Figure 14 is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied. Specific computer devices may include more or fewer components than shown in the figure, combine certain components, or have a different component arrangement.
[0124] In this embodiment, the processor is used to execute the specific functions of each module in Figure 14, and the memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals and servers. The memory in this embodiment stores the program code and data required to execute all modules in the picture collection playback device of this application. The server can call the server's program code and data to execute the functions of all modules.
[0125] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the picture collection playback method of any embodiment of the present application.
[0126] The present application also provides a computer program product, comprising a computer program / instruction, which implements the steps of the method described in any embodiment of the present application when executed by one or more processors.
[0127] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments of the method. The aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0128] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
[0129] To sum up, this application provides an online picture collection playback service for the Internet platform, so that platform users can share pictures by uploading picture collections containing pictures to the platform.
Claims
1. A method for playing a picture set, wherein: The steps include: Generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code of the view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture set in each of the horizontal content view controls; Acquire a preset number of pictures from a picture set of a horizontal content view control in the screen area, and output each of the pictures to the horizontal content view control in sequence; Obtain the music file and the music playing interval of the horizontal content view control, and call the music playing control to play the music track in the music file in the music playing interval; In response to the picture switching event of the horizontal content view control, adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control; In response to the horizontal content view control destruction event, the view feature code of the destroyed horizontal content view control is recovered and stored in the view feature code set, and a new horizontal content view control is generated and assigned the view feature code in the view feature code set.
2. The method according to claim 1, wherein: Obtaining the music file and the music playing interval of the horizontal content view control, and calling the music playing control to play the music track in the music file in the music playing interval, comprises the following steps: Obtaining the start position and end position of the audio track contained in the music playing interval; Determine the music tracks at the start position and the end position of the track in the original music track of the music file; The music playing control is driven to play the music track.
3. The method according to claim 1, wherein: In the step of responding to the picture switching event of the horizontal content view control and adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control, the following steps are included: Determine the number of images in the image set of the horizontal content view control in the screen area; Generate a number of progress bars corresponding to the number of the pictures, and each of the progress bars is bound to the pictures in the picture set in sequence; Output each of the progress bars to the picture set playback progress control for display, wherein the progress bar corresponding to the picture in the screen area is in a prominent display state.
4. The method according to claim 1, wherein: In the step of responding to the picture switching event of the horizontal content view control and adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control, the following steps are included: Respond to the picture set play event of the horizontal content view control in the screen area and determine the initial play time; Detecting that the time difference between the initial playback time and the current time exceeds the preset picture display time, switching the picture in the screen area in the horizontal content view control to the picture at the next position; The progress bar in the picture set playback progress control of the horizontal content view control that is in a prominent display state is switched to a silent display state, and the next progress bar of the progress bar is switched from the silent display state to a prominent display state.
5. The method according to claims 1-3, wherein: After the step of responding to the picture switching event of the horizontal content view control and adjusting the progress bar of the picture set playback progress control acting on the horizontal content view control, the method includes the following steps: In response to a screen sliding event, determining the number of screen touch points corresponding to the screen sliding event; When detecting that the number of touch points on the screen exceeds a preset number, stopping playing of the pictures included in the picture set of the horizontal content view control in the screen area; According to the screen sliding direction of the screen sliding event, the image scaling of the visible image in the horizontal content view control is controlled.
6. The method according to claim 1 or 5, wherein: The steps of generating a preset number of horizontal content view controls and outputting them to the vertical content view controls, assigning a view feature code in a view feature code set to each of the horizontal content view controls, or responding to a horizontal content view control destruction event, recycling the view feature code of the destroyed horizontal content view control and storing it in the view feature code set, generating a new horizontal content view control and assigning it a view feature code in the view feature code set, include any of the following steps: In response to a display event of a picture collection playback page, obtaining a preset number of horizontal content view controls generated for the picture collection playback page, generating a number of view feature codes exceeding the number of horizontal content view controls generated, and storing them in a view feature code set; In response to a generation event of a horizontal content view control, obtaining a view feature code from the view feature code set and assigning the view feature code to the horizontal content view control, and removing the view feature code from the view feature code set; In response to a destroy event of the horizontal content view control, a view feature code of the horizontal content view control is obtained and stored in the view feature code set.
7. A picture collection playback device, wherein: include: A view control generation module is configured to generate a preset number of horizontal content view controls and output them to the vertical content view controls, assign a view feature code of the view feature code set to each of the horizontal content view controls, and output the first picture in the corresponding picture set in each of the horizontal content view controls; A picture sequential output module, configured to obtain a preset number of pictures from a picture set of a horizontal content view control in the screen area, and output each of the pictures sequentially to the horizontal content view control; A music track playing module, configured to obtain the music file and the music playing interval of the horizontal content view control, and call the music playing control to play the music track in the music file in the music playing interval; A playback progress control module, configured to respond to a picture switching event of the horizontal content view control and adjust a progress bar of a picture set playback progress control acting on the horizontal content view control; The view control destruction module is configured to respond to the horizontal content view control destruction event, recycle the view feature code of the destroyed horizontal content view control and store it in the view feature code set, generate a new horizontal content view control and assign it the view feature code in the view feature code set.
8. A picture collection playback device, comprising a central processing unit and a memory, wherein: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein: It stores a computer program implemented according to the method described in any one of claims 1 to 6 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
10. A computer program product, comprising a computer program / instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for realizing image container control with effect of convex lens
CN101727325A
Album list management system and method in mobile device
CN103034670A
Picture play method and device
CN105550251A
Playing method for multimedia file and mobile terminal
CN107124656A
Picture set playing method and device, equipment and medium
CN116049453A
