CN115119027B - Video playing method for mobile terminal - Google Patents

Video playing method for mobile terminal Download PDF

Info

Publication number
CN115119027B
CN115119027B CN202211040335.7A CN202211040335A CN115119027B CN 115119027 B CN115119027 B CN 115119027B CN 202211040335 A CN202211040335 A CN 202211040335A CN 115119027 B CN115119027 B CN 115119027B
Authority
CN
China
Prior art keywords
video
picture
pictures
mobile terminal
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211040335.7A
Other languages
Chinese (zh)
Other versions
CN115119027A (en
Inventor
李官清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Momo Information Technology Co Ltd
Original Assignee
Beijing Momo Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Momo Information Technology Co Ltd filed Critical Beijing Momo Information Technology Co Ltd
Priority to CN202211040335.7A priority Critical patent/CN115119027B/en
Publication of CN115119027A publication Critical patent/CN115119027A/en
Application granted granted Critical
Publication of CN115119027B publication Critical patent/CN115119027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video playing method of a mobile terminal, which comprises the following steps: updating the information to execute a first application, the first application comprising: a first window located in a desktop area co-located with icons of one or more applications, and a first operating interface responsive to clicking on an icon in the desktop area that is not covered by the first window; obtaining update information, and if the update information is a video, performing picture processing on the video to obtain a first picture set; and circularly playing the first picture set in the first window. The invention solves the technical problems of higher power consumption, higher memory consumption and poorer smoothness of real-time dynamic playing caused by dynamically displaying the video on the interface of the mobile terminal in the prior art, has good playability and strong intuition, supports smooth playing of the video, and has lower power consumption and memory consumption.

Description

Video playing method for mobile terminal
Technical Field
The invention relates to the field of mobile terminal application programs, in particular to a mobile terminal video playing method.
Background
Common mobile terminal applications typically require clicking on an icon into the application to display the specific content of the application. The dynamically played video can be displayed only by entering the application program through responding to the click icon, the power consumption and the memory consumption of the dynamically played video are controllable along with the triggering of the application program, but the intuition and playability are poor. If the application program is not accessed by clicking the icon, the application program needs to continuously refresh the video, so that the power consumption is high, the memory consumption is high, and the fluency of real-time dynamic playing is greatly influenced by the network.
Disclosure of Invention
In order to solve the technical problems of higher power consumption, higher memory consumption and poorer smoothness of real-time dynamic playing caused by dynamically displaying videos on a mobile terminal interface in the prior art, the invention provides a mobile terminal video playing method, which comprises the following steps:
executing a first application, the first application comprising: a first window and a first operation interface; the first window is positioned in a desktop area at the same layer with the icons of one or more application programs under the condition that a user does not trigger any application program; the first operation interface responds to clicking of a first icon of a first application program which is not covered by the first window in a desktop area of the mobile terminal; covering the first window by responding to the first operation interface popped up by clicking the first icon;
obtaining updating information, and if the updating information is a video, performing picture processing on the video to obtain a first picture set;
circularly playing the first picture set until the next dynamic update in the first window without limiting the trigger condition of the user of the mobile terminal, wherein the circularly playing of the first picture set and the next dynamic update do not need the trigger of the user of the mobile terminal;
and playing the video in response to the user of the mobile terminal clicking the first operation interface triggered by the first icon in the desktop area.
Preferably, the graphing process determines the number of pictures in the first picture set after the graphing process according to the memory.
Preferably, the picture processing includes: queuing all videos which are not subjected to picture formation according to the entry time, and performing picture formation processing on a first video with the latest entry time in the queue; if a second video with updated time enters the queue in the process of carrying out the picture processing on the first video, terminating the picture processing process of the first video and carrying out the picture processing on the second video; if an abnormal pause occurs in the process of performing the picture processing on the first video with the latest entering time, after the first application program is eliminated or restarted abnormally, the picture processing on the first video in the queue is continued until the number of the obtained pictures of the first video is equal to the number of the pictures of the first picture set after the picture processing is determined according to the memory.
Preferably, the picture processing involves an extraction end and a storage end, the extraction end is configured to simultaneously extract the pictures of the video at equal time intervals, and the storage end is configured to label the extracted pictures with time sequence labels and store the time sequence labels.
Preferably, the first picture set is pushed to the mobile terminal, and the pushing comprises an input module, a screening module and an uploading module.
Preferably, the input module is configured to perform polling reading the first picture set in an unlimited order, and terminate polling reading when the number of read pictures is equal to the number of pictures in the first picture set.
Preferably, the screening module is configured to perform:
searching a second picture based on the first chronological tag in the buffer pool; the numerical value of the second time sequence label is increased by one on the basis of the numerical value of the last time sequence label of the first picture which is sent to the uploading module;
if a second picture of the second time sequence label exists in the buffer pool, sending the second picture to an uploading module; otherwise, acquiring a third picture which reaches the buffer pool latest from the input module, if the time sequence label of the third picture is a second time sequence label, sending the second picture to the uploading module, and otherwise, polling the picture which reaches the buffer pool latest until the picture of which the time sequence label is the second time sequence label is obtained, and sending the picture to the uploading module;
the buffer pool is used for storing pictures which are sent to the screening module by the input module and are not sent to the long-distance transmission module by the screening module; the time sequence labels are positive integers.
Preferably, the uploading module is configured to receive the picture sent by the screening module, update the picture to the first window according to the first time interval, and retrieve the picture displayed in the first window at the previous moment, and if the time interval for receiving the picture sent by the screening module is smaller than the first time interval, delay to the first time interval to update the picture to the first window; if the time interval for receiving the pictures sent by the screening module is greater than the first time interval, the time interval for receiving the pictures sent by the screening module is taken as the time interval.
Preferably, the pushing device further comprises a picture processing module, wherein the picture processing module processes at least two pictures in parallel and inputs the processed pictures to the input module in parallel; the parallel processing of the at least two pictures and the parallel processing of the plurality of processed pictures to the input module are batch processing in unlimited order without introducing a time sequence label.
A storage medium storing a computer program;
when the computer program is executed by a processor in a computing device, the computing device performs any of the methods described above.
According to the mobile terminal video playing method, the video is directly pushed to the screen of the mobile terminal, the dynamic video can be obtained in the appointed window of the screen without clicking the icon, and the playing performance and the intuition performance are good. The reliable caching strategy supports smooth playing of the video, the video playing effect is simulated, and no obvious difference exists between video watching of the user side and video watching. The invention overcomes the technical problem of long-time memory consumption under the normal condition of real-time updating of programs which do not need to respond to the icon entering through the video queuing picture processing strategy, and has the advantages of low power consumption, low memory consumption and smooth real-time dynamic playing.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a video playing method of a mobile terminal according to an embodiment of the present invention;
fig. 2 is an overall flowchart of a video playing method of a mobile terminal according to a second embodiment of the present invention;
fig. 3 is a diagram of a pictorial processing flow chart of a video playing method of a mobile terminal according to a second embodiment of the present invention;
fig. 4 is a video playing flow chart of a video playing method of a mobile terminal according to a second embodiment of the present invention;
fig. 5 is a schematic main screen diagram of a video playing method of a mobile terminal according to a second embodiment of the present invention;
fig. 6 is a schematic view of a first operation interface of an application program of a video playing method for a mobile terminal according to a second embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced otherwise than as specifically described herein and, therefore, the scope of the present invention is not limited by the specific embodiments disclosed below.
Example one
The embodiment provides a video playing method for a mobile terminal, as shown in fig. 1, including:
s1, pulling the updating information of the first application program.
The first application program includes: a first window and a first operation interface; the first window is positioned in a desktop area of the mobile terminal and used for displaying pictures or videos; the first operation interface responds to clicking of an icon which is not covered by the first window in a desktop area of the mobile terminal; and responding to the first operation interface popped up by clicking the icon to cover the first window.
The application program provided by the embodiment can directly display videos dynamically without any trigger in the unlocked screen, and a user can directly see the dynamically updated video dynamics after unlocking. Besides the window directly showing the dynamically updated video in the screen, the application program of the embodiment may also trigger other processes of the application program by clicking an icon of the application program in the screen. Other processes comprise the functions of taking pictures and videos and pushing the pictures and the videos to buddies, adding the buddies, deleting the buddies, checking historical messages, and commenting and agreeing on the historical messages. The video presented in the first window would also appear in the history message and be presented in a video format rather than a picture set.
S2, if the updated information is a video, performing picture processing on the video to obtain a first picture set; and the picture processing determines the number of the pictures of the first picture set after the picture processing according to the memory.
The picture processing involves an extraction end and a storage end, wherein the extraction end is configured to simultaneously extract the pictures of the video at equal time intervals, and the storage end is configured to label the extracted pictures with time sequence labels and store the time sequence labels.
The pushing device further comprises a picture processing module, wherein the picture processing module processes at least two pictures in parallel and inputs the processed pictures to the input module in parallel; the parallel processing of at least two pictures and the parallel processing of the processed pictures to the input module are batch processing without limiting the sequence, and a time sequence label is not introduced.
The method comprises the following steps of pushing a first picture set to the mobile terminal, wherein the pushing comprises an input module, a screening module and an uploading module, and the following steps are distributed and executed:
a. the input module is configured to perform the unlimited sequential polling reading of the first picture set, and terminate the polling reading when the number of the read pictures is equal to the number of the pictures in the first picture set.
b. The screening module is configured to perform:
searching a second picture based on the first chronological tag in the buffer pool; the numerical value of the second time sequence label is increased by one on the basis of the numerical value of the last time sequence label of the first picture sent to the uploading module;
if a second picture of the second time sequence label exists in the buffer pool, sending the second picture to an uploading module; if not, acquiring a third picture which reaches the buffer pool latest from the input module, if the time sequence label of the third picture is a second time sequence label, sending the third picture to the uploading module, otherwise, polling the picture which reaches the buffer pool latest until the picture with the time sequence label as the second time sequence label is acquired, and sending the picture to the uploading module;
the buffer pool is used for storing pictures which are sent to the screening module by the input module and are not sent to the uploading module by the screening module; the time sequence labels are positive integers.
c. The uploading module is configured to receive the pictures sent by the screening module, update the pictures to a first window according to a first time interval, and retrieve the pictures displayed in the first window at the previous moment, and if the time interval for receiving the pictures sent by the screening module is smaller than the first time interval, delay to the first time interval and update the pictures to the first window; and if the time interval for receiving the pictures sent by the screening module is greater than the first time interval, taking the time interval for receiving the pictures sent by the screening module as the time interval.
Queuing all videos which are not subjected to picture formation according to the entry time, and performing picture formation processing on a first video with the latest entry time in the queue; if a second video with updated time enters the queue in the process of carrying out the picture processing on the first video, terminating the picture processing process of the first video and carrying out the picture processing on the second video; if an abnormal pause occurs in the process of performing the picture processing on the latest entering first video, after the first application program is eliminated or restarted abnormally, the picture processing on the first video in the queue is continued until the number of the obtained pictures of the first video is equal to the number of the pictures of the first picture set after the picture processing is determined according to the memory.
And S3, circularly playing the first picture set in the first window without limiting the triggering condition of the user of the mobile terminal, and playing the video after responding to the user of the mobile terminal clicking the first operation interface triggered by the icon in the desktop area. The picture set is displayed in the first window selectively, the video which is not processed in the picture mode is displayed in the historical information of the application program, the technical problem that the screen window assembly cannot directly play the video is solved through the arrangement, the video can be smoothly played through a reliable cache strategy, the video playing effect is simulated, the user side watches the video without obvious difference from the video watching, and better user experience and smaller memory loss caused by directly displaying the video flow property in the historical information in the application program are considered through the judgment strategy of the video queue.
Example two
The present embodiment provides a video playing method under an ios system, as shown in fig. 2 to fig. 6. The pushing method depends on a first application program, wherein the first application program comprises a first window 1 which is positioned in a desktop area and used for displaying pictures or videos, and a first operation interface 3 which responds to clicking on an icon 2 which is not covered by the first window in the desktop area; and the first operation interface 3 which responds covers the first window 1.
The overall flow is shown in fig. 2, and specifically as follows:
and pulling the latest dynamic state, if the latest dynamic state is a picture, stopping the current playing task of the first window 1 on the screen, and updating the display content of the first window 1 into the latest dynamic picture. And if the latest dynamic state is the video, updating the display content of the first window 1 to be a cover page image of the video, and performing video downloading judgment. If the video is not completely downloaded, the first window is always kept to display the cover page of the video, the downloading judgment process is stopped from the polling judgment to the completion of the downloading, and the video is subjected to the photo processing judgment. The process of the picture processing is to extract the video into a form of a picture set according to a specified time interval, and the picture processing mode is further explained in the subsequent paragraphs of the description. The time interval is determined according to the total length of the video and the number of pictures to be obtained after the picture processing. The number of the pictures is determined according to the available internal memory of the mobile terminal before the video is subjected to the picture processing each time. If the picturizing processing is judged to be negative, polling is carried out until the picturizing processing is finished, and a playing task is started.
The mode of determining the number of the pictures obtained after the picture formation according to the memory can be a stage type, and also can be a functional relation of mapping between the memory and the number of the pictures. The correspondence relationship of the specific time period is as follows: under the condition that the video length is 5 seconds, the number of corresponding pictures after being pictured below 2G in the memory is 10, the number of corresponding pictures after being pictured between 2G and 4G in the memory is 20, and the number of corresponding pictures after being pictured above 4G in the memory is 30. Besides the stage-type corresponding relation, the continuous function corresponding relation of the number of the pictures relative to the memory and the video length dual independent variables can also be established. The single variable is preferably that the more the remaining memory is, the larger the number of pictures is, and the larger the number of pictures increases faster as the remaining memory is larger; the longer the video length, the larger the number of pictures, and the slower the number of pictures grows with more memory remaining. More preferably, the method for determining the number of the pictures based on the memory and video length bivariates is that a cross influence between the memory and the video length can be established, and further, the memory loss possibly related to the length in the playing process is taken into account, so that the use condition of the memory and the playing effect of the simulated video after the pictures are made are effectively balanced.
The application program provided by the embodiment can directly display the video dynamically without any trigger in the unlocked screen, and the user can directly see the dynamically updated video dynamic after unlocking. Besides the window directly showing the dynamically updated video in the screen, the application program of the embodiment may also trigger other processes of the application program by clicking an icon of the application program in the screen. Other processes include taking pictures, videos and pushing to buddies, adding buddies, deleting buddies, viewing historical messages, and commenting and agreeing functions on historical messages. The video presented in the first window 1 will also appear in the history message of the application and will be presented in video format rather than as a collection of pictures.
A first operation interface for viewing history messages in the application program entering in response to clicking the icon is shown in fig. 6, in which the application program video playing window 3 plays the history video in the format of video rather than in the form of a picture set, and other videos which are being shown in the first window 1, or have been shown, or are not shown in the first window 1 due to the close entering time of multiple videos all appear in the history messages.
The process flow of the imaging process is shown in fig. 3, and specifically includes the following steps:
and after the imaging processing is started, adding the video into a video queue to be imaged by taking the feed ID as an identifier, and synchronously extracting the images by the thread. And specifically judging whether the video can be added into the queue, if not, stopping the video imaging process, if so, stopping the current video imaging task, and listing the video into the latest imaging task. The judgment method is as follows: if the time node of the video is updated compared with the time nodes of the videos in all the queues, stopping the process of the current video picture and carrying out picture processing on the video; and if the time node of the video is later than that of any video in the queue, the video is not subjected to the picture processing, and only the video queue is added for displaying in the historical message after responding to the application program started after the icon. And (4) finishing the imaging task, if not, judging whether the retry upper limit is reached, if not, trying to add the imaging task into the imaging task queue by taking the feed ID as the identifier again to perform an image extraction process, and meanwhile, adding 1 to the retry number. Because there may be a plurality of videos entering the queue at the same time, if the video is not the latest video, the displayed scene is only the historical message query in the application program, and then the imaging processing is not needed. The scheme design for performing the picture processing only on the video which needs to be displayed in the first window improves the processing efficiency and reduces unnecessary memory consumption. Because the first window can only display one video at the same time, namely, only the latest video in the video queue is subjected to the picture processing. If the video is updated in the processing process, the time of the video is updated, the currently processed video is considered to be no more the latest video, and the video is no longer possible to be displayed in the first window, so that the power consumption and the memory consumption of the application program are stabilized at the same level, excessive resource consumption is avoided, the current video picture processing is stopped, and the newly entered video is subjected to picture processing. If the termination caused by introducing a new video is caused by non-queue updating dynamic in the process of processing the latest video by the pictures, the current video in the queue is continuously processed by the pictures after the termination. For example, although the number of the picture sets subjected to the picture-in-picture processing based on the current memory condition before each video picture-in-picture processing is avoided due to insufficient memory, the memory is still insufficient due to the application programs of other threads, and thus the running of the application program is wrong. And after the error or the abnormality is eliminated, if no updated video enters the queue, increasing a retry chance for the current video, and continuing to perform the picture processing on the current video until the number of the pictures obtained after the picture processing is the number of the picture sets subjected to the picture processing based on the current memory condition before the picture processing, and then stopping. In the embodiment, the video management is performed by adding the queue, and the field recovery measures of unnecessary memory consumption and accidental abnormal conditions brought by the updated video are compatible, so that each video in the queue has the optimal picture processing quantity optimization, the picture extraction task has the retry chance before the specified quantity is reached, and the efficient and accurate completion of the picture extraction task is ensured.
The single picture extraction task adopts a producer-consumer design mode, the production end mainly has the function of extracting pictures in a certain range from the video every time, and every batch of pictures is sent to a channel batch until the extraction of the number of the pictures in the picture set determined according to the memory is finished. And meanwhile, the consumption end task is to store the extracted video pictures on a disk, name the file names in a time sequence or add time sequence labels to the pictures to ensure the subsequent playing sequence.
The video playing process is shown in fig. 4, and specifically as follows:
and the frame folder accesses the extracted pictures, continuously reads the pictures of the plurality of frame folders in an unlimited sequence in parallel, converts the pictures into the round-corner pictures, and transmits the processed round-corner pictures to an input/output channel in an unlimited sequence in parallel. And adding one to the index value corresponding to the file name each time during parallel processing, and ending the task of the current round when the end is reached.
The input and output channel inputs the picture into the screening module, and the screening module maintains an index value corresponding to the file name, and the index value can be used for determining and searching the picture of the next frame to be played. The screening module also maintains a gallery that stores pictures that have arrived unsent. And continuously trying to send the picture corresponding to the current index value, if the picture exists in the gallery, directly removing the picture from the gallery and sending the picture to the updating channel, and if the picture does not exist in the gallery, trying to acquire the index value of the latest arrived picture from the input and output channel until the index value is matched with the current index value to be sent, and sending the picture corresponding to the index value. And sequentially screening and searching the pictures corresponding to the index values until all the pictures with the index values of the video are sent. In the process of picture processing and transmission, due to the problems of networks, pictures or processing programs, delay or time requirements of different degrees exist, in the embodiment, the problem of delay or time requirements is not considered in each previous stage, multiple threads are processed on any picture with the minimum delay in parallel until the picture is input into the screening module and then sequenced, the reliable caching strategy realizes the minimum time occupation of the picture processing and transmission, and the video can be supported to be smoothly played in the subsequent playing process based on the reliable caching strategy.
The playing process after video imaging is as follows:
the first window only plays a latest dynamic video each time, the dynamic ID marks the video dynamic state, and the current playing task is stopped each time a new video triggers updating.
And the updating thread receives the picture from the updating channel, updates the received picture to the first window and withdraws the picture displayed in the first window. And updating the ready-to-control updating speed, if the interval time is less than 40ms, postponing the updating speed of the pictures to 40ms, and if the time interval for receiving the pictures sent by the screening module is greater than 40ms, taking the time interval for receiving the pictures sent by the screening module as the time interval. The setting of the interval time is determined according to the processing time evaluated in advance, so that the fluency of the video is improved, the pause caused by unnecessary delay of a single picture is avoided, and the fluency of video updating is kept. The time interval is not fixed to be 40ms, and optimization determination can be carried out according to the current video length, the number of extracted pictures and the use condition of the memory. Under the application of the video imaging and updating thread, the first window on the screen of the mobile terminal simulates the video playing effect through the playing image set, and the user observation and the video playing have no obvious difference.
In the embodiment, the video dynamics are respectively set in the window directly positioned on the screen, and the history dynamics of the application program popped up corresponding to the clicked icon. The dynamic update provided by the embodiment combines the picture set simulation video with the playing video, overcomes the technical defect that the window for displaying the icon conventionally cannot display the video, improves the user experience, enhances the intimacy and intuition of information transmission among friends capable of sending information mutually related to the application program compared with the technical scheme that the application program can be accessed by clicking and then the dynamic video is seen, and enhances the playability of the application program better by the effect of screen overlocking. The combination of independent and separately arranged dynamic display of an independent window or independent video display of an application program cannot achieve the technical effect of more intuitive user experience obtained by the combination of the above. In the combining process of the two, the two technical schemes are not overlapped, but integrated allocation is performed based on a video queue mode, so that the balance between memory consumption and user experience is realized. Further, compared with other application programs, because the dynamic display of the application program is fixed on the screen desktop, the dynamic display does not act by clicking an icon or other triggering modes, and the technical problem of high power consumption is easily caused by long-term background execution.
EXAMPLE III
The present embodiment provides a computer-readable storage medium storing a computer program; the computer program, when executed by a processor in a computing device, causes the computing device to perform the method of any one of the embodiments.
According to the mobile terminal video playing method, the video is directly pushed to the screen of the mobile terminal, the dynamic video can be obtained in the appointed window of the screen without clicking the icon, and the playing performance and the intuition performance are good. The reliable caching strategy supports smooth playing of the video, the video playing effect is simulated, and no obvious difference exists between video watching of the user side and video watching. The invention overcomes the technical problem of long-time memory consumption under the normal condition of real-time updating of programs which do not need to respond to the icon entering through the video queuing picture processing strategy, and has the advantages of low power consumption, low memory consumption and smooth real-time dynamic playing.
The foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the embodiments. It will be apparent, however, to one skilled in the art that the embodiments may be practiced without the specific details. Thus, the foregoing descriptions of specific embodiments described herein are presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. It will be apparent to those skilled in the art that many modifications and variations are possible in light of the above teaching. Further, as used herein to refer to the position of a component, the terms above and below, or their synonyms, do not necessarily refer to an absolute position relative to an external reference, but rather to a relative position of the component with reference to the drawings.
Moreover, the foregoing drawings and description include many concepts and features that may be combined in various ways to achieve various benefits and advantages. Thus, features, components, elements and/or concepts from various different figures may be combined to produce embodiments or implementations not necessarily shown or described in this specification. Furthermore, not all features, components, elements and/or concepts shown in a particular figure or description are necessarily required to be in any particular embodiment and/or implementation. It is to be understood that such embodiments and/or implementations fall within the scope of the present description.

Claims (9)

1. A video playing method of a mobile terminal is characterized by comprising the following steps:
executing a first application, the first application comprising: a first window and a first operation interface; the first window is positioned in a desktop area at the same layer as icons of one or more application programs under the condition that a user does not trigger any application program; the first operation interface responds to clicking of a first icon of a first application program which is not covered by the first window in a desktop area of the mobile terminal; responding to the first operation interface popped up by clicking a first icon to cover the first window;
obtaining update information, and if the update information is a video, performing picture processing on the video to obtain a first picture set;
pushing the first picture set to the mobile terminal;
the pushing device further comprises a picture processing module, wherein the picture processing module processes at least two pictures in parallel and inputs the processed pictures to the input module in parallel; the parallel processing for processing at least two pictures in parallel and inputting a plurality of processed pictures to the input module in parallel is unlimited sequence batch processing without introducing a time sequence label;
circularly playing the first picture set until the next dynamic update in the first window without limiting the trigger condition of the user of the mobile terminal, wherein the circularly playing of the first picture set and the next dynamic update do not need to be triggered by the user of the mobile terminal;
and playing the video in response to the user of the mobile terminal clicking the first operation interface triggered by the first icon in the desktop area.
2. The video playing method of the mobile terminal according to claim 1, wherein the graphing process determines the number of pictures in the first picture set after graphing process according to a memory.
3. The video playing method for the mobile terminal according to claim 2, wherein the picture processing comprises: queuing all videos which are not subjected to picture formation according to the entry time, and performing picture formation processing on a first video with the latest entry time in the queue; if a second video with updated time enters the queue in the process of carrying out the picture processing on the first video, terminating the picture processing process of the first video and carrying out the picture processing on the second video; if an abnormal pause occurs in the process of performing the picture processing on the first video with the latest entering time, after the first application program is eliminated or restarted abnormally, the picture processing on the first video in the queue is continued until the number of the obtained pictures of the first video is equal to the number of the pictures of the first picture set after the picture processing is determined according to the memory.
4. The video playing method of the mobile terminal according to claim 1, wherein the graphing process involves an extracting end and a storing end, the extracting end is configured to simultaneously extract the videos at equal time intervals, and the storing end is configured to label the extracted videos with time sequence labels and store the time sequence labels.
5. The video playing method of the mobile terminal according to claim 1, wherein the pushing comprises an input module, a filtering module, and an uploading module.
6. The video playing method of the mobile terminal according to claim 5, wherein the input module is configured to perform polling reading of the first set of pictures in an unlimited order, and when the number of the read pictures is equal to the number of the pictures in the first set of pictures, the polling reading is terminated.
7. The video playing method for the mobile terminal according to claim 5, wherein the filtering module is configured to perform:
searching a second picture based on the first chronological tag in the buffer pool; the numerical value of the first time sequence label is increased by one on the basis of the numerical value of the last time sequence label of the first picture sent to the uploading module;
if a second picture of the first time sequence tag exists in the buffer pool, sending the second picture to an uploading module; otherwise, acquiring a third picture which reaches the buffer pool most recently from the input module, if the time sequence label of the third picture is the first time sequence label, sending the third picture to the uploading module, otherwise, polling the picture which reaches the buffer pool most recently until the picture with the time sequence label as the first time sequence label is obtained, and sending the picture to the uploading module;
the buffer pool is used for storing pictures which are sent to the screening module by the input module and are not sent to the uploading module by the screening module; the time sequence labels are positive integers.
8. The video playing method of the mobile terminal according to claim 5, wherein the uploading module is configured to receive the pictures sent by the screening module, update the pictures to the first window according to a first time interval, and retrieve the pictures displayed in the first window at a previous moment, and if the time interval for receiving the pictures sent by the screening module is smaller than the first time interval, delay to the first time interval to update the pictures to the first window; and if the time interval for receiving the pictures sent by the screening module is greater than the first time interval, taking the time interval for receiving the pictures sent by the screening module as the time interval.
9. A storage medium, characterized in that it stores a computer program;
the computer program, when executed by a processor in a computing device, performs the method of any of claims 1-8.
CN202211040335.7A 2022-08-29 2022-08-29 Video playing method for mobile terminal Active CN115119027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211040335.7A CN115119027B (en) 2022-08-29 2022-08-29 Video playing method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211040335.7A CN115119027B (en) 2022-08-29 2022-08-29 Video playing method for mobile terminal

Publications (2)

Publication Number Publication Date
CN115119027A CN115119027A (en) 2022-09-27
CN115119027B true CN115119027B (en) 2022-11-25

Family

ID=83335212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211040335.7A Active CN115119027B (en) 2022-08-29 2022-08-29 Video playing method for mobile terminal

Country Status (1)

Country Link
CN (1) CN115119027B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016049875A1 (en) * 2014-09-30 2016-04-07 Tencent Technology (Shenzhen) Company Limited Device and method for capturing, sharing and watching video messages
CN106131697A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 Interactive information display packing and device
CN106559560A (en) * 2016-10-21 2017-04-05 北京金山安全软件有限公司 Method and device for displaying information and electronic equipment
CN110069660A (en) * 2019-04-25 2019-07-30 北京众纳鑫海网络技术有限公司 Method and apparatus for showing message
CN111182359A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Video preview method, video frame extraction method, video processing device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016049875A1 (en) * 2014-09-30 2016-04-07 Tencent Technology (Shenzhen) Company Limited Device and method for capturing, sharing and watching video messages
CN106131697A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 Interactive information display packing and device
CN106559560A (en) * 2016-10-21 2017-04-05 北京金山安全软件有限公司 Method and device for displaying information and electronic equipment
CN110069660A (en) * 2019-04-25 2019-07-30 北京众纳鑫海网络技术有限公司 Method and apparatus for showing message
CN111182359A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Video preview method, video frame extraction method, video processing device and storage medium

Also Published As

Publication number Publication date
CN115119027A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN113163230B (en) Video message generation method and device, electronic equipment and storage medium
CN110162343A (en) Using starting method and device, electronic equipment and storage medium
CN111787406A (en) Video playing method, electronic equipment and storage medium
JP2010004309A (en) Server, method, and program for generating digest video of moving image content
US20230045363A1 (en) Video playback method and apparatus, computer device, and storage medium
CN110647685B (en) Information recommendation method, device and equipment
CN113079402A (en) Image display method, device, equipment and storage medium
CN111240564B (en) Material display method and device, electronic equipment and storage medium
US20170272793A1 (en) Media content recommendation method and device
CN104010223A (en) Method and system for taking over terminal system for video playing
CN111669622A (en) Method and device for determining default play relationship of videos and electronic equipment
CN115119027B (en) Video playing method for mobile terminal
CN102164305B (en) Video processing method and device and mobile communication terminal
CN113296666A (en) Anchor exposure data reporting method and device, terminal equipment and storage medium
CN111031117B (en) Multimedia file downloading method and related device
CN110798748A (en) Audio and video preloading method and device and electronic equipment
CN114501084B (en) Play method, device, equipment and medium of player
CN113111222B (en) Short video template generation method, device, server and storage medium
CN115170700A (en) Method for realizing CSS animation based on Flutter framework, computer equipment and storage medium
CN116016421A (en) Method, computing device readable storage medium, and computing device for facilitating media-based content sharing performed in a computing device
CN112800303B (en) Browser data storage and reading method and related device
CN114143590A (en) Video playing method, server and storage medium
CN112764988A (en) Data segmentation acquisition method and device
CN111970675A (en) Early warning method and device and storage medium
CN115185567B (en) Display content updating method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant