Multimedia playing method and device, medium and equipment

By judging the page switching frequency and sliding operation prediction results in the mobile terminal, and loading the player of adjacent pages in advance, it solves the problem of low efficiency of page switching in live streaming media, achieves fast jumps and efficient playback, and improves the user experience.

CN118828082APending Publication Date: 2024-10-22SHUXING TECH (BEIJING) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411150397.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When watching live streaming on mobile terminals, users have low efficiency when switching between different video pages, resulting in poor user experience. Especially when users quickly switch pages, they may not be interested in the current content and want to skip or jump to At a specific location, existing technology is difficult to implement quickly.

Method used

By judging the frequency of page switching operations and the predicted results of the sliding operation, if the frequency exceeds the preset frequency or is predicted to switch to an adjacent page, create and load the player for the adjacent page in advance, and directly play the adjacent page when the sliding operation ends. resources, avoid lags, and switch viewing mode to thumbnail viewing when necessary to improve efficiency.

Benefits of technology

It effectively improves page switching efficiency, reduces user waiting time, and improves user experience. In particular, it avoids lagging when users quickly switch pages, and improves the playback response speed of streaming media content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828082A_ABST
    Figure CN118828082A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a multimedia playing method and device, a medium and equipment, and the method comprises the steps: responding to a page switching operation for a current page, and judging whether the switching frequency of the page switching operation exceeds a preset frequency or not; if the frequency does not exceed the preset frequency, switching the current page to an adjacent page; if the preset frequency is exceeded, the page viewing mode is switched from the first viewing mode to the second viewing mode, and the first viewing mode is different from the second viewing mode, so that the page switching efficiency can be effectively improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic communication technology, in particular to the field of video page switching technology, and more particularly to a multimedia playback method, device, medium and equipment. Background Art

[0002] When a user is watching streaming media such as live broadcast on a mobile terminal, he can switch between different video pages by sliding the screen. However, if the user switches the current page to the adjacent page more frequently than the preset frequency, it means that the user is not interested in the current content and wants to skip the current page or jump to the location he wants to stay. At this time, if the user continues to use the current page browsing method, the efficiency will be very low. Summary of the invention

[0003] The embodiments of the present application provide a multimedia playback method, apparatus, medium and device. The multimedia playback method provided by the embodiments of the present application can effectively improve page switching efficiency, thereby improving user experience.

[0004] On the one hand, an embodiment of the present application provides a multimedia playback method, the multimedia playback method comprising:

[0005] In response to a page switching operation on a current page, determining whether a switching frequency of the page switching operation exceeds a preset frequency;

[0006] If the preset frequency is not exceeded, switching the current page to an adjacent page;

[0007] If the preset frequency is exceeded, the page viewing mode is switched from a first viewing mode to a second viewing mode, and the first viewing mode is different from the second viewing mode.

[0008] In the multimedia playback method described in the embodiment of the present application, the first viewing mode is a detail viewing mode, and the second viewing mode is a thumbnail viewing mode; the method further includes:

[0009] In response to the page switching operation being completed, a thumbnail of at least one adjacent page of the current page is displayed.

[0010] In the multimedia playback method described in the embodiment of the present application, the method further includes:

[0011] In response to a triggering of a sliding operation on a current page, a splash screen advertising interface is displayed, wherein the splash screen advertising interface includes a preset control;

[0012] In response to a trigger operation on the preset control, multimedia content of a next adjacent page of the current page is displayed, or thumbnails of at least one adjacent page of the current page are displayed.

[0013] In the multimedia playback method described in the embodiment of the present application, any thumbnail is used to display one or more of the following: part of the multimedia content contained in the corresponding adjacent page, the cover of the multimedia content, and the title of the multimedia content; the method also includes:

[0014] In response to a triggering operation on a thumbnail of any adjacent page, the page viewing mode is switched from the second viewing mode to the first viewing mode, and the complete multimedia content contained in the any adjacent page is displayed.

[0015] In the multimedia playback method described in the embodiment of the present application, the method further includes:

[0016] In response to a pressing operation on the current page, determining whether a pressing force value corresponding to the pressing operation exceeds a third preset threshold value, and obtaining a determination result;

[0017] If the judgment result is that the pressing force value exceeds the third preset threshold, determining that the pressing operation is a page switching operation;

[0018] If the judgment result is that the pressing force value does not exceed the third preset threshold, a different image is switched to be displayed in the current page.

[0019] In the multimedia playback method described in the embodiment of the present application, the method further includes:

[0020] Initialize the player corresponding to the first viewing mode, and cache the player in a player queue of the current system for reuse when playing video resources in different page viewing modes.

[0021] In the multimedia playback method described in the embodiment of the present application, the first viewing mode is a detail viewing mode, and the second viewing mode is a thumbnail viewing mode; the method further includes:

[0022] In response to the completion of the page switching operation, a thumbnail of the current page is played by the player corresponding to the first viewing mode, and the thumbnail of the current page is used to display the multimedia content contained in the current page to be played by the player in the first viewing mode.

[0023] Correspondingly, another aspect of the embodiment of the present application further provides a multimedia playback device, the multimedia playback device comprising:

[0024] A first determination module, configured to determine, in response to a page switching operation on a current page, whether a switching frequency of the page switching operation exceeds a preset frequency;

[0025] The video playback module is used to switch the current page to an adjacent page if the preset frequency is not exceeded; if the preset frequency is exceeded, switch the page viewing mode from a first viewing mode to a second viewing mode, wherein the first viewing mode and the second viewing mode are different.

[0026] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the multimedia playback method as described above.

[0027] Correspondingly, on the other hand, an embodiment of the present application further provides a terminal device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the multimedia playback method as described above.

[0028] The embodiment of the present application provides a multimedia playback method, device, medium and equipment. The method responds to the page switching operation for the current page, determines whether the switching frequency of the page switching operation exceeds the preset frequency, and if it does not exceed the preset frequency, switches the current page to an adjacent page. If it exceeds the preset frequency, it means that the user may not be interested in the current content and wants to skip the current uninterested page or want to jump to the location where he wants to stay. Therefore, the page viewing mode is switched from the first viewing mode to the second viewing mode different from the first viewing mode, which can effectively improve the efficiency of page switching, so that the user can quickly jump to the location where the user wants to stay, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0030] Figure 1 A flowchart of a multimedia playback method provided in an embodiment of the present application.

[0031] Figure 2 Another flowchart of the multimedia playback method provided in the embodiment of the present application.

[0032] Figure 3 Another flowchart of the multimedia playback method provided in the embodiment of the present application.

[0033] Figure 4Another flowchart of the multimedia playback method provided in the embodiment of the present application.

[0034] Figure 5 Another flowchart of the multimedia playback method provided in the embodiment of the present application.

[0035] Figure 6 A schematic diagram of the structure of a multimedia playback device provided in an embodiment of the present application.

[0036] Figure 7 Another structural schematic diagram of the multimedia playback device provided in an embodiment of the present application.

[0037] Figure 8 Another structural schematic diagram of the multimedia playback device provided in an embodiment of the present application.

[0038] Fig. 9 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0040] It should be noted that this solution is mainly developed around the technical problem of "how to reduce or avoid the lag caused by users when switching video pages such as live broadcast pages to provide a good user experience." It is understandable that when playing streaming media such as watching live broadcasts, users often require high resolution, high real-time degree and high frame rate of the playback screen, which places high demands on the processing power and communication bandwidth of the mobile terminal. When users currently watch streaming media such as live broadcasts on mobile terminals, they can switch between different video pages by sliding the screen. However, as mentioned above, the streaming media playback data is large, and the requirements for processing power and bandwidth occupancy are very high. When users switch between different video pages, they need to wait for the video to load and play when entering a new video page. There will be a buffering time, which seriously affects the user experience.

[0041] In order to solve the above technical problems, the embodiment of the present application provides a multimedia playback method. Using the multimedia playback method provided by the embodiment of the present application, by determining the available memory of the current system, and then analyzing whether the current system supports the creation operation of a new player, if the current system supports the creation operation of a new player, a new player is pre-created in the process of switching from the current page to the adjacent page, so that when the sliding operation ends, the playback resources of the adjacent page can be directly pulled up by the new player for playback, avoiding the problem of freeze when the user switches pages.

[0042] The term "and / or" in this application can be a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0043] The terms "first", "second", etc. in the specification and claims of this application 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 described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.

[0044] The multimedia playback method involved in the embodiments of the present application is mainly applied to terminal devices, such as smart phones, tablet computers, laptops, desktop computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals and servers, etc., which are not limited here. Optionally, the server can be an independent physical server, or a server cluster or distributed 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, which are not limited here.

[0045] The present application provides a multimedia playback method. Figure 1 , Figure 1 The flowchart of the multimedia playing method provided by the embodiment of the present application is shown in FIG. The execution subjects of each step of the multimedia playing method can be the same or different.

[0046] In one embodiment, the method may include the following steps:

[0047] Step 101, in response to triggering a sliding operation on a current page, determining the available memory of the current system.

[0048] This solution is applicable to terminal devices under various operating system platforms. For example, in terminal devices under the iOS operating system platform, when a user logs in to the live broadcast APP on the iOS system, he can first see a double-column or single-column content display list on the display interface of the live broadcast APP. The content display list includes multiple different video thumbnails (including video introductions). When the user clicks on one of the video thumbnails, the system will create a corresponding player and enter the video details interface to play the content of the current video. During the browsing process, the user can switch the current page to the next page or the previous page according to his needs.

[0049] Those skilled in the art will understand that this solution is also applicable to web terminals, and other commands can be used to extract touch event data in iOS, Android or other operating systems. It is not limited to live broadcast scenarios, but can also be used in short videos or other scenarios, which are not limited here.

[0050] First of all, it needs to be explained that the sliding operation refers to the page switching operation that controls the current page between adjacent pages. The page switching operation includes two situations: successfully switching to the adjacent page and temporarily canceling the switching action to stay on the current page. In some embodiments, the sliding operation is a type of switching operation. In some embodiments, the page switching operation can be the behavior of the user sliding on the current page with a finger or a stylus, or it can be triggered by clicking on the current page with a finger or a stylus, or it can be a voice command that indirectly controls the current page to switch through a voice control device. The specific performance of the switching operation can be selected according to the setting of the terminal device, and is not limited here.

[0051] Since the purpose of this solution is mainly to enable the user to quickly load the playback resources of the adjacent page and immediately play the multimedia content when switching the current page to the adjacent page, thereby reducing the user's waiting time, and considering that the playback action of the multimedia content is based on the player, and the creation of the player is a time-consuming operation, the player is one of the important links that affect the playback response speed of the multimedia content, and is also the key entry point for solving the technical problems described in this solution. Based on this analysis, it is easy to conclude that the above technical problems can be solved by advancing the creation time of the player of the adjacent page. However, since the creation of the player is not only a time-consuming operation, but also an operation that occupies system resources, if the available memory of the current system is not reasonably analyzed and the player is directly added on the original basis, it may affect the playback performance of the current page and the adjacent page. Therefore, in this embodiment, when the sliding operation is triggered, it is necessary to first determine the available memory of the current system, and make a specific analysis based on the available memory.

[0052] In some embodiments, Figure 2 As shown, after responding to the triggering of the sliding operation on the current page, it is also possible to predict the predicted operation result corresponding to the user's sliding operation on the current page, and then analyze whether the user wants to switch to the adjacent page or stay on the current page. If the predicted operation result is to control the current page to switch to the adjacent page, the playback resources of the adjacent page are pre-loaded, so that when the sliding operation ends, the playback resources of the adjacent page can be directly pulled up through the newly added player for playback, avoiding the problem of lag when the user switches pages.

[0053] Specifically, after responding to the triggering of a sliding operation on the current page, the motion parameters corresponding to the sliding operation are determined, and based on the motion parameters, the predicted operation result of the sliding operation is predicted; in response to the predicted operation result of switching the current page to an adjacent page, the playback resources of the adjacent page are pre-loaded in the cache area of ​​the current system.

[0054] The motion parameters may include the type of sliding operation obtained directly, such as sliding or gesture. Accordingly, the motion parameters directly obtained from the operating system may also include the coordinates of the corresponding sliding or gesture.

[0055] In some embodiments, the motion parameters also include touch time characteristics, such as sliding start time, sliding duration and / or sliding end time. In an embodiment of the present invention, the motion parameters can be data directly obtained by an application (APP) running the video page from an operating system layer interface of the terminal device.

[0056] The application (APP) obtains motion parameters through the UIKit framework of the touch layer of iOS, that is, calls the returned motion parameters. Under the iOS operating system, especially under the UIKit framework, a variety of instructions can be used to achieve the acquisition of touch event data. For example, in some embodiments, commands can be used to obtain motion parameters in the form of gestures. For example, the class UIGestureRecognizer under UIKit and its subclass UISwipeGestureRecognizer (slide) can be used. For example, in other embodiments, commands can be used to obtain the motion parameters of the above touch forms. For example, the properties UITouch and sub-properties UITouchPhaseBegan (touch start), UITouchPhaseMoved (touch point movement), UITouchPhaseStatic (touch point no movement), UITouchPhaseEnded (touch end), UITouchPhaseCancelled (touch cancellation), tapCount (number of times the screen is clicked), timeStamp (touch start time) under UIKit can be used. In some specific embodiments, the sliding operation and its related data can be obtained by calling the UIScrollView component of the UIKit framework in the iOS system.

[0057] In some embodiments, for example, in a terminal device under the Android operating system platform, an application program (APP) can obtain motion parameters through the Views System framework in the Android framework layer. In some specific embodiments, the sliding operation and its related data can be obtained by calling the viewpager2 component of the ViewsSystem framework in the Android system.

[0058] In order to determine the predicted operation result corresponding to the sliding operation, the motion parameters corresponding to the current page during the sliding operation from the beginning to the end can be obtained, and then the predicted operation result of the sliding operation can be determined based on the motion parameters. It can be understood that in the process of switching between adjacent pages by sliding the page, the page will go through two stages, one is sliding from the static starting position to the end position; the second is rebounding from the end position to the speed dropping to 0 after the sliding ends, and finally automatically returning to the starting position to remain stationary. At the same time, the page has corresponding motion parameters in these two stages, and the motion parameters include one or more of the starting speed corresponding to the current page when the sliding starts, the end speed corresponding to the current page when the sliding ends, the first acceleration corresponding to the current page when the sliding starts to the end, and the second acceleration corresponding to the rebound process of the current page when the sliding ends.

[0059] Specifically, the acquisition function for obtaining the page motion parameters can be called at the start or end of the sliding operation, and the motion parameters corresponding to the current page in the process from the start to the end of the sliding operation can be obtained through the acquisition function. Exemplarily, the acquisition function can adopt the crollViewWillEndDragging:withVelocity:targetContentOffset of the iOS system or the viewpager2 of the Android system. The data corresponding to the sliding operation and the derived values ​​of the data (such as coordinates, direction, distance, speed or acceleration, etc.) can be obtained by calling the return value of crollViewWillEndDragging:withVelocity:targetContentOffset or viewpager2. Taking the iOS system as an example, crollViewWillEndDragging:withVelocity:targetContentOffset is a function provided by UIScrollViewDelegate, which can be called when the user starts or stops sliding the video page, that is, at the start or end of the sliding operation, and then the motion parameters corresponding to the current page in the process from the start to the end of the sliding operation are obtained.

[0060] To facilitate understanding of this solution, in this embodiment, the motion parameter is set to one or more of the starting speed corresponding to the current page at the beginning of the sliding operation, the ending speed corresponding to the current page at the end of the sliding operation, the first acceleration corresponding to the current page from the beginning to the end of the sliding operation, and the second acceleration corresponding to the rebound process of the current page at the end of the sliding operation. According to different motion parameters, a variety of prediction operation result judgment methods can be formed, as follows:

[0061] As an implementation method, the first displacement corresponding to the current page from the start to the end of the trigger operation can be calculated by using the starting speed and the first acceleration; if the first displacement exceeds the first preset threshold, the predicted operation result corresponding to the sliding operation is judged to be switching to an adjacent page; if the first displacement does not exceed the first preset threshold, the predicted operation result corresponding to the sliding operation is judged to be staying on the current page. The calculation formula of the first displacement can be: first displacement = starting speed / (2*first acceleration).

[0062] Specifically, if the first displacement exceeds the first preset threshold, it can be predicted that the area of ​​the adjacent page exposed after the user finishes the sliding operation on the current page is relatively large, and it can be inferred that the user's intention to switch the current page to the adjacent page is relatively obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as switching to the adjacent page. If the first displacement does not exceed the first preset threshold, it can be predicted that the area of ​​the adjacent page exposed after the user finishes the sliding operation on the current page is relatively small, and it can be inferred that the user's intention to switch the current page to the adjacent page is not obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as staying on the current page.

[0063] As another possible implementation method, the second displacement corresponding to the current page rebounding to a speed of 0 after the trigger operation is completed can be calculated by using the termination speed and the second acceleration; if the second displacement exceeds the second preset threshold, the predicted operation result corresponding to the sliding operation is judged to be switching to an adjacent page; if the second displacement does not exceed the second preset threshold, the predicted operation result corresponding to the sliding operation is judged to be staying on the current page. The calculation formula for the second displacement can be: second displacement = termination speed^2 / (2*second acceleration).

[0064] Specifically, if the second displacement exceeds the second preset threshold, it can be predicted that the current page is closer to the starting position of the current page when it rebounds from the end position to the time when the speed drops to 0 after the sliding operation ends. It can be further predicted that the user is sliding the current page at a faster speed, and it can be inferred that the user's intention to switch the current page to an adjacent page is more obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as switching to an adjacent page. If the second displacement does not exceed the second preset threshold, it can be predicted that the current page is farther from the starting position of the current page when it rebounds from the end position to the time when the speed drops to 0 after the sliding operation ends. It can be further predicted that the user is sliding the current page at a slower speed, and it can be inferred that the user's intention to switch the current page to an adjacent page is not obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as staying on the current page.

[0065] As another possible implementation method, it can be determined by judging whether the first acceleration or the second acceleration exceeds a third preset threshold; if the first acceleration or the second acceleration exceeds the third preset threshold, then judging that the predicted operation result corresponding to the sliding operation is switching to an adjacent page; if the first acceleration or the second acceleration does not exceed the third preset threshold, then judging that the predicted operation result corresponding to the sliding operation is staying on the current page.

[0066] Specifically, if the first acceleration or the second acceleration exceeds the first preset threshold, it can be predicted that the user's sliding speed on the current page tends to increase significantly, and it can be inferred that the user's intention to switch the current page to the adjacent page is more obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as switching to the adjacent page. If the first displacement does not exceed the first preset threshold, it can be predicted that the area of ​​the adjacent page exposed after the user ends the sliding operation on the current page is small, and it can be inferred that the user's intention to switch the current page to the adjacent page is not obvious at this time, and the predicted operation result corresponding to the current sliding operation can be determined as staying on the current page.

[0067] In some embodiments, the switching operation can be the action of the user clicking on the current page with a finger or a stylus. Correspondingly, in order to determine the predicted operation result corresponding to the switching operation, the magnitude of the click force can be detected for judgment. For example, when the click force is detected to be greater than a certain value, the predicted operation result is judged to be switching to an adjacent page. If the click force does not exceed a certain value, the predicted operation result is judged to be staying on the current page.

[0068] In some embodiments, the switching operation may be a voice command that indirectly controls the current page to switch through a voice control device. Correspondingly, in order to determine the predicted operation result corresponding to the switching operation, the sound volume of the voice command can be detected for judgment. For example, when the sound of the voice command is detected to be greater than a certain value, the predicted operation result is judged to be switching to an adjacent page. If the sound of the voice command does not exceed a certain value, the predicted operation result is judged to be staying on the current page.

[0069] In this embodiment, when the predicted operation result corresponding to the sliding operation is inferred in advance to control the current page to switch to the adjacent page, and the switching frequency is kept at a constant speed, in order to reduce or avoid the hysteresis caused by the user when switching pages such as live broadcast pages to provide a good user experience, the playback resources of the adjacent pages of the current page can be pre-loaded, so that there is no need to wait for the adjacent page to complete the switch before loading the corresponding playback resources, thereby solving the jamming problem. And this solution can reasonably infer the user's predicted operation results, instead of deciding whether to start playing by judging the exposed area of ​​the adjacent page like the prior art, such as switching the current page to the next page. The exposure area exceeds 1 / 2 or 2 / 3 of the display area of ​​the current terminal, then start playing. Since this method cannot accurately predict the user's sliding behavior, for example, when the user switches to the adjacent page and the exposure area exceeds 1 / 2, he wants to cancel the switch and stay on the current page. In this process, the user usually hesitates and the sliding speed is slow. At this time, if the next page is played at the same time, it will cause resource occupation and affect the playback fluency of the current page.

[0070] It should be noted that a player needs to be created before the playback resource is loaded and run, and the creation of the player itself takes a certain amount of time. In order to enable the playback video to respond in time when the adjacent page switch is completed, in this solution, the player creation action is placed at the beginning of the sliding operation, that is, the player of the adjacent page is automatically created when the sliding operation starts.

[0071] In some embodiments, if the predicted operation result is to control the current page to switch to an adjacent page, and the switching frequency exceeds the preset frequency (set to a uniform speed), it means that the user is sliding the pages continuously and quickly at this time. It may be that the user is not interested in the current content, or the user may be browsing the video at a fast speed. In either case, in order to improve the user experience, it is necessary to prevent or reduce the problem of lag when the user sees the adjacent pages. However, considering that creating playback resources is a time-consuming operation, it may cause thread blocking and cause the sliding page to lag. At the same time, if the time from the end of the sliding operation to the completion of the switch to the adjacent page is too short, the playback resources have not been requested back or the decoding and rendering have not been completed, which will also cause the video playback to lag after the page switch is completed. Therefore, on this basis, the operation of creating playback resources is advanced, such as Figure 2 As shown, when it is detected that the current page switches to an adjacent page, the playback resources of the next page of the adjacent page are preloaded, so that the user can preload the playback resources of the next page in time when switching pages continuously and quickly, avoiding the lag when playing the video.

[0072] In some embodiments, if it is determined that the switching frequency of switching the current page to the adjacent page exceeds the preset frequency, it may indicate that the user is not interested in the current content and wants to skip the current uninteresting page or jump to the location where he wants to stay. At this time, if the current page browsing method is continued, the efficiency will be very low. In order to solve the user experience problem, the page viewing method can be switched from the first viewing mode to the second viewing mode when it is detected that the switching frequency exceeds the preset frequency.

[0073] Taking the first viewing mode as the detail viewing mode and the second viewing mode as the thumbnail viewing mode as an example, the thumbnail is used to display the cover and / or title of the corresponding page. In this process, the multimedia content in the page is no longer played, and the original page browsing mode is switched back when the user clicks on a thumbnail again.

[0074] Step 102: Determine, based on the available memory, whether the current system supports the creation of a new player.

[0075] In some embodiments, by comparing the available memory with a first preset threshold, if the available memory is less than the first preset threshold, it is determined that the current system does not support the creation of a new player, and the creation of a new player can be skipped, and the normal playback process is followed without considering the problem of adjacent pages playing multimedia content. If the available memory is greater than or equal to the first preset threshold, it is determined that the current system supports the creation of a new player, and the adjacent page player, i.e., the new player, can be created in advance, thereby improving the response speed of the adjacent page when playing multimedia content.

[0076] In some embodiments, considering that the current system not only runs the page playback process, but also runs other processes, which may include important processes that are more important than the page playback process, if the execution of other important processes is forcibly skipped in order to take into account the page playback performance, it may cause serious consequences. For example, a system process needs to detect security vulnerabilities in multimedia content. If the multimedia content to be played is not reviewed in time at this time, it may cause the user to receive information that is detrimental to the user's physical and mental health.

[0077] Therefore, before determining that the current system supports the creation operation of a new player, this solution determines the task priority level corresponding to the creation operation to determine whether the task priority level of the creation operation is greater than or equal to the task priority level corresponding to the current system's pending tasks. If the task priority level of the creation operation is less than the task priority level of the pending tasks, it is determined that the current system does not support the creation operation of a new player, and other more important tasks need to be given priority.

[0078] Step 103: If the current system supports the creation of a new player, a new player is pre-created during the process of switching the current page to an adjacent page.

[0079] In this embodiment, if the current system supports the creation operation of a new player, a player for an adjacent page, ie, a new player, is created in advance, thereby improving the response speed of the adjacent page when playing multimedia content.

[0080] Step 104, in response to the end of the sliding operation, calling the playback resources of the adjacent page through the newly added player to play the multimedia content of the adjacent page, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation.

[0081] In this embodiment, if Figure 3 As shown, when the sliding operation is detected to be over, the player decodes the playback resource to obtain the data to be rendered, and renders the data to be rendered on the adjacent page, and starts playing the multimedia content of the adjacent page after the current page and the adjacent page are switched. There will be no delay or freeze. It is also possible that the video of the adjacent page starts playing before the switch is completely completed, which is not limited here.

[0082] It should be noted that after a preset time (eg, 0.2 s) after the sliding operation ends, the current page and the adjacent page are switched, and this time can be considered as a specific time to play the multimedia content of the adjacent page.

[0083] In some embodiments, considering that there are not only multiple different pages to switch and browse in the video playback APP, but also image sets can be nested in a single page, so that users can switch and browse image sets in the same page. However, since the switching methods of different pages and different images are basically the same, taking sliding to achieve switching as an example, this will cause the user to mistakenly trigger an operation that is not intended by the user when switching pages or images. For example, the user's intention is to switch pages but it is recognized as image switching, thereby affecting the user experience.

[0084] To solve the above problem, different switching methods can be used to correspond to page switching and image switching respectively, but this will make the application processing logic complicated and not conducive to maintenance. Therefore, this solution provides the following methods:

[0085] By obtaining the corresponding pressing force value when the user slides the current page, it is determined whether the pressing force value exceeds the third preset threshold value to obtain a judgment result; the user's predicted operation result is determined according to the judgment result; if the judgment result is that the pressing force value exceeds the third preset threshold value, it is determined that the user's predicted operation result is to switch between different pages; if the judgment result is that the pressing force value does not exceed the third preset threshold value, it is determined that the user's predicted operation result is to switch between different images in the current page. By distinguishing the pressing force value during sliding, and then distinguishing the user's predicted operation results, there is no need to set different switching methods.

[0086] In some embodiments, since there is a player queue of user cached players, resource waste and memory occupation caused by creating too many new players can be avoided. Before creating a new player in advance, it can be determined whether there is an idle player in the player queue of the current system. If there is no idle player, the creation operation of the new player is executed. If there is an idle player, the creation operation of the new player is not performed, and the idle player is called from the player queue to play the multimedia content of the adjacent page.

[0087] In some embodiments, the usage of each player in the player queue can be periodically obtained to determine whether to continue to retain the player. If there is a target player that has not been called for more than a preset period of time, it is determined whether to destroy the target player based on the available memory of the current system.

[0088] Specifically, the available memory is compared with the second preset threshold. If the available memory is less than the second preset threshold, it means that the available memory is small at this time. Continuing to retain the player that is not needed temporarily will only affect the normal operation of the system. In this case, it is determined to destroy the target player, and the second preset threshold is less than the first preset threshold.

[0089] In some embodiments, in order to avoid the situation where the players corresponding to two different pages are in the playing state when the current page switches to an adjacent page, thereby affecting the multimedia playback performance, it is necessary to set the state of the newly added player to pause playback after the new player is created, and change the state of the new player to the playing state in response to the end of the sliding operation.

[0090] Another aspect of the present application embodiment further provides a multimedia playback method, such as Figure 4 As shown, the process of the multimedia playing method may be as follows:

[0091] Step 201: in response to triggering a page viewing mode switching operation for the current page, switching the current page viewing mode of the current page from a first viewing mode to a second viewing mode.

[0092] In order to meet the different page viewing needs of users, users can not only view the details of the current page in the first viewing mode, but also exit the first viewing mode and switch to the second viewing mode.

[0093] In one example, the first viewing mode may be a detailed viewing mode, in which the user can view the complete multimedia content, and only one playback page is displayed in the display interface of the current terminal. The second viewing mode may be a thumbnail viewing mode, in which multiple different thumbnails can be displayed simultaneously on the current terminal, and each thumbnail corresponds to one or more of the video segment, cover, and title of a page, so that the user can quickly find the multimedia content of interest according to the thumbnail. When the user determines the multimedia content of interest, the user can click the corresponding thumbnail to expand the detailed content corresponding to the thumbnail, that is, switch to the first viewing mode.

[0094] In another example, the first viewing mode may be a splash screen advertising mode, which refers to an advertisement that pops up in a multimedia window when the user is using an APP. Advertising content includes animations, pictures, text, music, videos and other forms, using less traffic to convey information customized by advertisers. Splash screen ads may pop up after the user successfully logs into the APP, or may pop up when the user switches to an adjacent page, which is not limited here. The second viewing mode may be a detail viewing mode or a thumbnail viewing mode, and the switching method from the first viewing mode to the second viewing mode can be achieved by clicking the "skip" control set on the splash screen advertising interface. When the splash screen advertisement is played in the form of a video, if the user is interested, he can directly click on the current splash screen advertisement interface and directly jump to the video frame corresponding to the current playback progress to continue playing.

[0095] Step 202, after clearing the video resources currently loaded by the newly added player, cache the newly added player into the player queue of the current system so that it can be reused when playing the video resources in different page viewing modes.

[0096] like Figure 5As shown, taking the first viewing mode as the detail viewing mode and the second viewing mode as the thumbnail viewing mode as an example, after the user switches the page viewing mode from the first viewing mode to the second viewing mode, in order to achieve the reuse of the newly added player, the newly added player can be cached in the player queue of the current system after clearing the video resources currently loaded by the newly added player, so that it can be reused when playing video resources in different page viewing modes. That is, the newly added player can continue to be used in the second viewing mode after exiting the first viewing mode, provided that the thumbnail shows the video segment of the page. After the user switches the page viewing mode from the second viewing mode to the first viewing mode, the discontinued player can be cached in the player queue of the current system after clearing the video resources, so that it can continue to be called in the first viewing mode.

[0097] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0098] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0099] As can be seen from the above, the multimedia playback method provided by the embodiment of the present application determines the available memory of the current system in response to the triggering of the sliding operation on the current page; judges whether the current system supports the creation operation of a new player based on the available memory; if the current system supports the creation operation of a new player, a new player is pre-created in the process of switching the current page to the adjacent page; in response to the end of the sliding operation, the multimedia content of the adjacent page is played by calling the playback resources of the adjacent page through the new player, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation. Utilizing the multimedia playback method provided by the embodiment of the present application, by determining the available memory of the current system, and then analyzing whether the current system supports the creation operation of a new player, if the current system supports the creation operation of a new player, a new player is pre-created in the process of switching the current page to the adjacent page, so that when the sliding operation ends, the playback resources of the adjacent page can be directly pulled up by the new player for playback, avoiding the problem of jamming when the user switches pages.

[0100] The embodiment of the present application also provides a multimedia playback device, which can be integrated into a terminal device.

[0101] See also Figure 6 , Figure 6 A schematic diagram of the structure of a multimedia playback device provided in an embodiment of the present application. The multimedia playback device 30 may include:

[0102] An information determination module 31, configured to determine the available memory of the current system in response to a triggering of a sliding operation on the current page;

[0103] A first judging module 32 is used to judge whether the current system supports the creation operation of a new player according to the available memory;

[0104] A pre-creation module 33, used for pre-creating a new player in the process of switching the current page to an adjacent page if the current system supports the creation operation of a new player;

[0105] The video playback module 34 is used to respond to the end of the sliding operation by calling the playback resources of the adjacent page through the newly added player to play the multimedia content of the adjacent page, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation.

[0106] In some embodiments, the first judgment module 32 is used to compare the available memory with a first preset threshold; if the available memory is less than the first preset threshold, it is determined that the current system does not support the creation operation of a new player; if the available memory is greater than or equal to the first preset threshold, it is determined that the current system supports the creation operation of a new player.

[0107] In some embodiments, the device also includes a second judgment module, which is used to determine the task priority level corresponding to the creation operation; determine whether the task priority level of the creation operation is greater than or equal to the task priority level corresponding to the task to be processed in the current system; if the task priority level of the creation operation is less than the task priority level of the task to be processed, it is determined that the current system supports the creation operation without adding a new player.

[0108] In some embodiments, the device also includes a behavior judgment module for determining motion parameters corresponding to the sliding operation; based on the motion parameters, predicting a predicted operation result of the sliding operation; in response to the predicted operation result of switching the current page to an adjacent page, pre-loading the playback resources of the adjacent page in the cache area of ​​the current system.

[0109] In some embodiments, the video playback module 34 is used to perform a playback resource decoding operation on the playback resource through the newly added player to obtain the data to be rendered, and to render the data to be rendered on the screen on the adjacent page, and start playing the multimedia content of the adjacent page after the current page and the adjacent page are switched.

[0110] In some embodiments, the device also includes a third judgment module for judging whether there is an idle player in the player queue; if there is no idle player, executing the creation operation of the new player; if there is an idle player, calling the idle player from the player queue to play the multimedia content of the adjacent page.

[0111] In some embodiments, the device also includes a fourth judgment module for periodically obtaining the usage status of each player in the player queue; if there is a target player that has not been called for more than a preset time, it is determined whether to destroy the target player based on the available memory of the current system.

[0112] In some embodiments, the device also includes a comparison module for comparing the available memory with a second preset threshold; if the available memory is less than the second preset threshold, it is determined to destroy the target player, and the second preset threshold is less than the first preset threshold.

[0113] In some embodiments, the device further comprises a setting module for setting the state of the newly added player to paused playback, and changing the state of the newly added player to a play state in response to the end of the sliding operation.

[0114] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0115] As can be seen from the above, the multimedia playback device 30 provided in the embodiment of the present application, wherein the information determination module 31 is used to determine the available memory of the current system in response to the triggering of the sliding operation on the current page; the first judgment module 32 is used to determine whether the current system supports the creation operation of a new player based on the available memory; the pre-creation module 33 is used to pre-create a new player in the process of switching from the current page to the adjacent page if the current system supports the creation operation of a new player; the video playback module 34 is used to call the playback resources of the adjacent page through the new player in response to the end of the sliding operation to play the multimedia content of the adjacent page, wherein the current page and the adjacent page complete the switching after a preset time after the end of the sliding operation.

[0116] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0117] See also Figure 7 , Figure 7A schematic diagram of the structure of a multimedia playback device provided in an embodiment of the present application. The multimedia playback device 40 may include:

[0118] A switching module 41, configured to switch the current page viewing mode of the current page from the first viewing mode to the second viewing mode in response to triggering of a page viewing mode switching operation for the current page;

[0119] The multiplexing module 42 is used to clear the video resources currently loaded by the newly added player and then cache the newly added player in the player queue of the current system so that it can be reused when playing the video resources in different page viewing modes.

[0120] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0121] As can be seen from the above, the multimedia playback device 40 provided in the embodiment of the present application, wherein the switching module 41 is used to switch the current page viewing mode of the current page from the first viewing mode to the second viewing mode in response to the triggering of the page viewing mode switching operation for the current page; the multiplexing module 42 is used to clear the video resources currently loaded by the newly added player, and then cache the newly added player in the player queue of the current system so that it can be reused when playing video resources in different page viewing modes.

[0122] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0123] See also Figure 8 , Figure 8 Another structural diagram of a multimedia playback device provided in an embodiment of the present application, the multimedia playback device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include an information determination module 31, a first judgment module 32, a pre-creation module 33, and a video playback module 34. For example, the structure and connection relationship of the above components may be as follows:

[0124] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0125] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0126] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:

[0127] An information determination instruction, used to determine the available memory of the current system in response to a trigger of a sliding operation on the current page;

[0128] A first judgment instruction is used to judge whether the current system supports the creation operation of a new player according to the available memory;

[0129] A pre-creation instruction is used to pre-create a new player in the process of switching the current page to an adjacent page if the current system supports the creation operation of a new player;

[0130] The video playback instruction is used to respond to the end of the sliding operation, call the playback resources of the adjacent page through the newly added player to play the multimedia content of the adjacent page, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation.

[0131] In some embodiments, the first judgment instruction is used to compare the available memory with a first preset threshold; if the available memory is less than the first preset threshold, it is determined that the current system does not support the creation operation of a new player; if the available memory is greater than or equal to the first preset threshold, it is determined that the current system supports the creation operation of a new player.

[0132] In some embodiments, the program also includes a second judgment instruction for determining the task priority level corresponding to the creation operation; determining whether the task priority level of the creation operation is greater than or equal to the task priority level corresponding to the task to be processed in the current system; if the task priority level of the creation operation is less than the task priority level of the task to be processed, it is determined that the current system supports the creation operation without adding a new player.

[0133] In some embodiments, the program also includes behavior judgment instructions for determining motion parameters corresponding to the sliding operation; based on the motion parameters, predicting a predicted operation result of the sliding operation; in response to the predicted operation result of switching the current page to an adjacent page, pre-loading the playback resources of the adjacent page in the cache area of ​​the current system.

[0134] In some embodiments, the video playback instruction is used to perform a playback resource decoding operation on the playback resource through the newly added player to obtain the data to be rendered, and to render the data to be rendered on the screen on the adjacent page, and start playing the multimedia content of the adjacent page after the current page and the adjacent page are switched.

[0135] In some embodiments, the program also includes a third judgment instruction for judging whether there is an idle player in the player queue; if there is no idle player, executing the creation operation of the new player; if there is an idle player, calling the idle player from the player queue to play the multimedia content of the adjacent page.

[0136] In some embodiments, the program also includes a fourth judgment instruction for periodically obtaining the usage status of each player in the player queue; if there is a target player that has not been called for more than a preset time, it is determined whether to destroy the target player based on the available memory of the current system.

[0137] In some embodiments, the program also includes a comparison instruction for comparing the available memory with a second preset threshold; if the available memory is less than the second preset threshold, it is determined to destroy the target player, and the second preset threshold is less than the first preset threshold.

[0138] In some embodiments, the program further includes setting instructions for setting the state of the newly added player to paused playback, and changing the state of the newly added player to a play state in response to the end of the sliding operation.

[0139] The embodiment of the present application also provides a terminal device, which can be a server, a smart phone, a computer, a tablet computer, or other device.

[0140] See also Fig. 9 , Fig. 9 The schematic diagram of the structure of the terminal device provided in the embodiment of the present application is shown, and the terminal device can be used to implement the multimedia playback method provided in the above embodiment. The terminal device 1200 can be a TV, a smart phone, or a tablet computer.

[0141] like Fig. 9 As shown, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Fig. 9 The structure of the terminal device 1200 shown in the figure does not constitute a limitation on the terminal device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0142] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0143] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the multimedia playback method in the above embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected to switch the video page according to the current scene of the terminal device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that the user can perceive the incoming call, thereby improving the intelligence of the terminal device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the terminal device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0144] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0145] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1200. These graphical user interfaces can be composed of graphics, fields, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Fig. 9 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.

[0146] The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the terminal device 1200, they will not be repeated here.

[0147] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the terminal device 1200.

[0148] The terminal device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Fig. 9 The transmission module 170 is shown, but it is understandable that it is not a necessary component of the terminal device 1200 and can be omitted as needed without changing the essence of the invention.

[0149] The processor 180 is the control center of the terminal device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the terminal device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0150] The terminal device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0151] Although not shown, the terminal device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0152] An information determination instruction, used to determine the available memory of the current system in response to a trigger of a sliding operation on the current page;

[0153] A first judgment instruction is used to judge whether the current system supports the creation operation of a new player according to the available memory;

[0154] A pre-creation instruction is used to pre-create a new player in the process of switching the current page to an adjacent page if the current system supports the creation operation of a new player;

[0155] The video playback instruction is used to respond to the end of the sliding operation, call the playback resources of the adjacent page through the newly added player to play the multimedia content of the adjacent page, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation.

[0156] In some embodiments, the first judgment instruction is used to compare the available memory with a first preset threshold; if the available memory is less than the first preset threshold, it is determined that the current system does not support the creation operation of a new player; if the available memory is greater than or equal to the first preset threshold, it is determined that the current system supports the creation operation of a new player.

[0157] In some embodiments, the program also includes a second judgment instruction for determining the task priority level corresponding to the creation operation; determining whether the task priority level of the creation operation is greater than or equal to the task priority level corresponding to the task to be processed in the current system; if the task priority level of the creation operation is less than the task priority level of the task to be processed, it is determined that the current system supports the creation operation without adding a new player.

[0158] In some embodiments, the program also includes behavior judgment instructions for determining motion parameters corresponding to the sliding operation; based on the motion parameters, predicting a predicted operation result of the sliding operation; in response to the predicted operation result of switching the current page to an adjacent page, pre-loading the playback resources of the adjacent page in the cache area of ​​the current system.

[0159] In some embodiments, the video playback instruction is used to perform a playback resource decoding operation on the playback resource through the newly added player to obtain the data to be rendered, and to render the data to be rendered on the screen on the adjacent page, and start playing the multimedia content of the adjacent page after the current page and the adjacent page are switched.

[0160] In some embodiments, the program also includes a third judgment instruction for judging whether there is an idle player in the player queue; if there is no idle player, executing the creation operation of the new player; if there is an idle player, calling the idle player from the player queue to play the multimedia content of the adjacent page.

[0161] In some embodiments, the program also includes a fourth judgment instruction for periodically obtaining the usage status of each player in the player queue; if there is a target player that has not been called for more than a preset time, it is determined whether to destroy the target player based on the available memory of the current system.

[0162] In some embodiments, the program also includes a comparison instruction for comparing the available memory with a second preset threshold; if the available memory is less than the second preset threshold, it is determined to destroy the target player, and the second preset threshold is less than the first preset threshold.

[0163] In some embodiments, the program further includes setting instructions for setting the state of the newly added player to paused playback, and changing the state of the newly added player to a play state in response to the end of the sliding operation.

[0164] The embodiment of the present application also provides a terminal device, which can be a smart phone, a computer, or other device.

[0165] As can be seen from the above, the embodiment of the present application provides a terminal device 1200, and the terminal device 1200 performs the following steps:

[0166] In response to triggering a sliding operation on a current page, determining available memory of a current system;

[0167] According to the available memory, determining whether the current system supports a creation operation of a new player;

[0168] If the current system supports the creation of a new player, a new player is created in advance during the process of switching the current page to an adjacent page;

[0169] In response to the end of the sliding operation, the multimedia content of the adjacent page is played by calling the playback resources of the adjacent page through the newly added player, wherein the current page and the adjacent page are switched after a preset time after the end of the sliding operation.

[0170] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the multimedia playback method described in any one of the above embodiments.

[0171] It should be noted that, for the multimedia playback method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the multimedia playback method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution process may include the process of the embodiment of the multimedia playback method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0172] For the multimedia playback device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0173] The multimedia playback method, device, medium and equipment provided by the embodiments of the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A multimedia playback method, characterized in that: include: In response to a page switching operation on a current page, determining whether a switching frequency of the page switching operation exceeds a preset frequency; If the preset frequency is not exceeded, switching the current page to an adjacent page; If the preset frequency is exceeded, the page viewing mode is switched from a first viewing mode to a second viewing mode, and the first viewing mode is different from the second viewing mode.

2. The multimedia playing method according to claim 1, wherein: The first viewing mode is a detail viewing mode, and the second viewing mode is a thumbnail viewing mode; the method further includes: In response to the page switching operation being completed, a thumbnail of at least one adjacent page of the current page is displayed.

3. The multimedia playing method according to claim 1, wherein: The method further comprises: In response to a triggering of a sliding operation on a current page, a splash screen advertising interface is displayed, wherein the splash screen advertising interface includes a preset control; In response to a trigger operation on the preset control, multimedia content of a next adjacent page of the current page is displayed, or thumbnails of at least one adjacent page of the current page are displayed.

4. The multimedia playing method according to claim 2 or 3, characterized in that: Any thumbnail is used to display one or more of the following: part of the multimedia content included in the corresponding adjacent page, the cover of the multimedia content, and the title of the multimedia content; the method further includes: In response to a triggering operation on a thumbnail of any adjacent page, the page viewing mode is switched from the second viewing mode to the first viewing mode, and the complete multimedia content contained in the any adjacent page is displayed.

5. The multimedia playing method according to claim 1, wherein: The method further comprises: In response to a pressing operation on the current page, determining whether a pressing force value corresponding to the pressing operation exceeds a third preset threshold, and obtaining a determination result; If the judgment result is that the pressing force value exceeds the third preset threshold, determining that the pressing operation is a page switching operation; If the judgment result is that the pressing force value does not exceed the third preset threshold, a different image is switched to be displayed in the current page.

6. The multimedia playing method according to claim 1, wherein: The method further comprises: Initialize the player corresponding to the first viewing mode, and cache the player in a player queue of the current system for reuse when playing video resources in different page viewing modes.

7. The multimedia playing method according to claim 1, wherein: The first viewing mode is a detail viewing mode, and the second viewing mode is a thumbnail viewing mode; the method further includes: In response to the completion of the page switching operation, a thumbnail of the current page is played by the player corresponding to the first viewing mode, and the thumbnail of the current page is used to display the multimedia content contained in the current page to be played by the player in the first viewing mode.

8. A multimedia playback device, characterized in that: include: A first determination module, configured to determine, in response to a page switching operation on a current page, whether a switching frequency of the page switching operation exceeds a preset frequency; A video playback module, used for switching the current page to an adjacent page if the preset frequency is not exceeded; If the preset frequency is exceeded, the page viewing mode is switched from a first viewing mode to a second viewing mode, and the first viewing mode is different from the second viewing mode.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the multimedia playing method according to any one of claims 1 to 7.

10. A terminal device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the multimedia playing method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Playing page display method and device

    CN119576168A

  • Media file playing method and device

    CN120045115A