CN108650544B - Media playing method, device and system - Google Patents

Media playing method, device and system Download PDF

Info

Publication number
CN108650544B
CN108650544B CN201810476477.5A CN201810476477A CN108650544B CN 108650544 B CN108650544 B CN 108650544B CN 201810476477 A CN201810476477 A CN 201810476477A CN 108650544 B CN108650544 B CN 108650544B
Authority
CN
China
Prior art keywords
reading
playing
information
media
address
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
CN201810476477.5A
Other languages
Chinese (zh)
Other versions
CN108650544A (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.)
Shanghai Qiniu Information Technology Co ltd
Original Assignee
Shanghai Qiniu 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 Shanghai Qiniu Information Technology Co ltd filed Critical Shanghai Qiniu Information Technology Co ltd
Priority to CN201810476477.5A priority Critical patent/CN108650544B/en
Publication of CN108650544A publication Critical patent/CN108650544A/en
Application granted granted Critical
Publication of CN108650544B publication Critical patent/CN108650544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Abstract

The embodiment of the invention discloses a media playing method, a device and a media playing system, wherein the media playing method comprises the following steps: detecting operation information, and generating a play control instruction according to the operation information; analyzing the playing control instruction, and acquiring a playing address of a target media file corresponding to the playing control instruction; accessing the playing address, starting a first reading process, and reading the media information corresponding to the target media file in a first sequence; if the preset conditions are met, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence; and loading and playing the target media file according to the media information. The embodiment of the invention can accelerate the reading speed, improve the playing speed, save the time of a user, reduce the waiting in the caching process and improve the user experience by adopting the double-process reading.

Description

Media playing method, device and system
Technical Field
The present invention relates to the field of media technologies, and in particular, to a media playing method, a media playing device, and a media playing system.
Background
In the present stage, with the continuous development of mobile terminals, it is increasingly common to watch online videos through mobile terminals.
When playing online video, due to performance difference of the mobile terminal and difference of network environment, if the buffering time is long and the opening time is long when the video is opened, bad experience can be brought to users. Therefore, how to quickly realize online playing is a problem to be solved urgently in the field
Disclosure of Invention
The embodiment of the invention provides a media playing method, a media playing device and a media playing system, which can realize quick playing and save time of a user.
A first aspect of an embodiment of the present invention provides a media playing method, including:
detecting operation information, and generating a play control instruction according to the operation information;
analyzing the playing control instruction, and acquiring a playing address of a target media file corresponding to the playing control instruction;
accessing the playing address, starting a first reading process, and reading the media information corresponding to the target media file in a first sequence;
if the preset conditions are met, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence;
and loading and playing the target media file according to the media information.
Optionally, the detecting the operation information and generating a play control instruction according to the operation information includes:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
Optionally, the analyzing the play control instruction to obtain the play address of the media file corresponding to the play control instruction includes:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
Optionally, the first order is read from a header, and the media information includes a total duration of the target media file, a total number of data packets, a size of a header of a data packet, and an average bit rate.
Optionally, if the preset condition is met, starting a second reading process, and reading the media information corresponding to the target media file in a second order, where the reading process includes:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail.
A second aspect of the embodiments of the present invention provides a media playing apparatus, including:
the detection module is used for detecting the operation information and generating a playing control instruction according to the operation information;
the analysis module is used for analyzing the playing control instruction and acquiring a playing address of the target media file corresponding to the playing control instruction;
the first reading module is used for accessing the playing address, starting a first reading process and reading the media information corresponding to the target media file in a first sequence;
the second reading module is used for starting a second reading process when a preset condition is met, and reading the media information corresponding to the target media file in a second sequence;
and the playing module is used for loading and playing the target media file according to the media information.
Optionally, the detection module is specifically configured to:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
Optionally, the parsing module is specifically configured to:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
Optionally, the first order is read from a header, and the media information includes a total duration of the target media file, a total number of data packets, a size of a header of a data packet, and an average bit rate.
Optionally, the second reading module is specifically configured to:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail.
A third aspect of the embodiments of the present invention provides a media playing system, including the above media playing apparatus.
The embodiment of the invention has the following beneficial effects:
according to the media playing method, the media playing device and the media playing system provided by the embodiment of the invention, when the online media file is played, the online media file is read in the first sequence through the first reading process and can be read in the second sequence through the second reading process, so that double-process reading is realized, the reading speed is accelerated, the playing speed is improved, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a media playing method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a media playing method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a method of a third embodiment of a media playing method according to an embodiment of the present invention.
Fig. 4 is a flowchart of a method of a fourth embodiment of a media playing method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a media playing device according to a first embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the steps are depicted in the flowchart as a sequential process, many of the steps can be performed in parallel, concurrently, or simultaneously. Further, the order of the steps may be rearranged, the process may be terminated when its operations are completed, and other steps not included in the drawings may be included. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Fig. 1 is a flowchart of a media playing method according to a first embodiment of the present invention. The media playing method is applied to a terminal, and the terminal can be a computer, a desktop computer, a tablet computer and the like, and can also be a smart phone, an electronic book, a wearable device and the like. Optionally, when the terminal is a smart phone, the terminal implements a video watching function by installing an application program, such as various video applications, short video applications, live broadcast applications, and the like. The media playing method comprises the following steps S101-S105.
In step S101, operation information is detected, and a play control command is generated according to the operation information.
Specifically, the operation information on the terminal is first detected, and the operation information may be in various forms. The terminal may have a touch screen thereon, and the operation information may be a touch operation for the touch screen. In other embodiments, the operation information may be input through an entity key, a virtual key, or the like, or may be input through a voice command, which is not limited in the embodiments of the present invention. After receiving the operation information, generating a corresponding play control instruction according to the specific operation information, where the play control instruction corresponds to a corresponding media file, and the media file may be an online media file or a local media file. Optionally, the play control instruction may be operated on a preset application program, or may be performed on a browser.
In step S102, the play control instruction is analyzed, and a play address of the target media file corresponding to the play control instruction is obtained.
Specifically, after the play control instruction is obtained, the play control instruction is further analyzed to obtain a play address of the corresponding target media file, where the play address is a network protocol address (IP address). In this embodiment, the target media file is a media file on a network. The network protocol address is the address of the corresponding target media file on the corresponding server on the network, and the target media file can be acquired and played by accessing the network protocol address.
In step S103, the play address is accessed, a first reading process is started, and the media information corresponding to the target media file is read in a first sequence.
Specifically, in this embodiment, a first reading process is first started, and the media information of the target media file is read according to a first sequence. Wherein the first order is a sequential reading from a head. The media information includes the total duration, the total number of data packets, the size of the data packet header, and the average bit rate of the target media file. The media files played online at the present stage are stored in segments on the server, and in order to obtain the corresponding information of each segment in time and facilitate subsequent caching and playing, the media information of the media files needs to be read first, and the media files can be loaded quickly according to the media information. In this embodiment, the first reading process is started first, and the media information is read in a manner of reading from the head sequentially.
In step S104, if the preset condition is satisfied, a second reading process is started, and the media information corresponding to the target media file is read in a second order.
Specifically, because some media files have a large size, if the size of the file is found to be large when the file is read by the first reading process, the caching time is too long, and at this time, the second reading process may be started to read the media information in a second sequence, where the second process is reading from the tail of the media file to quickly acquire the media information. In another embodiment, the media information of the media file is not stored in the head part, but stored in the tail part, and in this case, the first reading process needs to start the second reading process to obtain the media information from the tail part because the first reading process cannot read the media information. In other embodiments, the first media file may be read from the tail, and the second media file may be read from the head, which is not limited in the embodiments of the present invention.
In step S105, the target media file is loaded and played according to the media information.
Specifically, after the media information is obtained, the target media file is loaded and played according to the media information.
As can be seen from the above, in the media playing method in the embodiment of the present invention, when playing the online media file, the online media file is first read in the first order through the first reading process, and can be read in the second order through the second reading process, so that the dual-process reading is implemented, the reading speed is increased, the playing speed is increased, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
Fig. 2 is a flowchart of a media playing method according to a second embodiment of the present invention. Compared with the first embodiment shown in fig. 1, the present embodiment further includes a step of how to generate the play control instruction, and the media playing method includes the following steps S201 to S206.
In step S201, touch information on a touch screen of a terminal is detected, and if an icon or a menu corresponding to the touch information matches an application program in a preset list, the touch information is determined to be a play instruction.
Specifically, in this embodiment, whether a play instruction exists is determined by detecting touch information on the touch screen. And when the touch object corresponding to the touch information is matched with the application program in the preset list, confirming that the touch information is a playing instruction. The touch object may be an icon or a menu, the preset list may be preset, or may be automatically generated according to a media application installed on the terminal, and the media application may include: music playing, video playing, live broadcasting and other application programs. In other embodiments, the touch object may also be link information, that is, a corresponding application may be opened through the link information.
In step S202, a corresponding play control command is generated according to the attribute of the touch information.
Specifically, if the touch information is a sliding operation, different play control instructions may be generated according to the direction of the sliding operation, for example, when the sliding direction is upward, it indicates that the next media file is played; when the sliding direction is downward, playing the previous media file; the sliding direction is leftward, which indicates that the player backs to a certain playing time; the direction of the sliding is to the right, indicating fast forward to a certain playing time. In other embodiments, the attribute of the touch information may be in other manners, and the embodiments of the present invention are not limited thereto.
In step S203, the play control instruction is analyzed, and a play address of the target media file corresponding to the play control instruction is obtained.
In step S204, the play address is accessed, a first reading process is started, and the media information corresponding to the target media file is read in a first order.
In step S205, if the preset condition is satisfied, a second reading process is started, and the media information corresponding to the target media file is read in a second order.
In step S206, the target media file is loaded and played according to the media information.
As can be seen from the above, in the media playing method in the embodiment of the present invention, when playing the online media file, the online media file is first read in the first order through the first reading process, and can be read in the second order through the second reading process, so that the dual-process reading is implemented, the reading speed is increased, the playing speed is increased, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
Fig. 3 is a flowchart of a method of a third embodiment of a media playing method according to an embodiment of the present invention. Compared with the first embodiment shown in fig. 1, the present embodiment further includes a step of acquiring a play address. It is understood that the step of acquiring the play address in this embodiment may also be applied to the second embodiment shown in fig. 2. The media playing method includes the following steps S301-S306.
In step S301, operation information is detected, and a play control command is generated according to the operation information.
In step S302, first address information corresponding to the play control instruction is obtained.
Specifically, the first address information is a URL address.
In step S303, a preset resolution server is used to resolve the first address information, and a playing address of the target media file corresponding to the first address information is obtained.
Specifically, the URL address is analyzed by an analysis server, and a network protocol address (IP address) corresponding to the URL address is obtained, where the playing address is the network protocol address.
In step S304, the play address is accessed, a first reading process is started, and the media information corresponding to the target media file is read in a first order.
In step S305, if the preset condition is satisfied, a second reading process is started, and the media information corresponding to the target media file is read in a second order.
In step S306, the target media file is loaded and played according to the media information.
As can be seen from the above, in the media playing method in the embodiment of the present invention, when playing the online media file, the online media file is first read in the first order through the first reading process, and can be read in the second order through the second reading process, so that the dual-process reading is implemented, the reading speed is increased, the playing speed is increased, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
Fig. 4 is a flowchart of a method of a fourth embodiment of a media playing method according to an embodiment of the present invention. In contrast to the first embodiment shown in fig. 1, this embodiment further includes a step of how to start the second read process. It is understood that the step of starting the second reading process in this embodiment may also be applied to the second and third embodiments shown in fig. 2 or fig. 3. The media playing method includes the following steps S401 to S407.
In step S401, the operation information is detected, and a play control command is generated according to the operation information.
In step S402, the play control instruction is analyzed, and a play address of the target media file corresponding to the play control instruction is obtained.
In step S403, the play address is accessed, a first reading process is started, and the media information corresponding to the target media file is read in a first order.
In step S404, reading information fed back by the first reading process is acquired.
Specifically, after the first reading process performs reading, the fed back reading information is acquired.
In step S405, the read information is analyzed to obtain an expected read time.
Specifically, the reading time refers to an expected reading time calculated according to the size of the target media file. When the size of the target media file is larger, the expected read time is also longer.
In step S406, if the predicted reading time is greater than the preset time threshold, a second reading process is started, and the media information corresponding to the target media file is read in a second order.
Specifically, the preset time threshold may be preset, and when the expected reading time is greater than the preset time threshold, it indicates that the reading time is longer, and the user waiting time is also longer. At this time, in order to save the user waiting time, the reading of the media information is performed from the end in the second order by starting the second reading process. Wherein the second order is reading in reverse order starting from the tail.
In step S407, the target media file is loaded and played according to the media information.
As can be seen from the above, in the media playing method in the embodiment of the present invention, when playing the online media file, the online media file is first read in the first order through the first reading process, and can be read in the second order through the second reading process, so that the dual-process reading is implemented, the reading speed is increased, the playing speed is increased, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
Fig. 5 is a flowchart of a method of a media playing device according to a first embodiment of the present invention. The media playing device is applied to a terminal, and the terminal can be a computer, a desktop computer, a tablet computer and the like, and can also be a smart phone, an electronic book, a wearable device and the like. The media playing device comprises: the device comprises a detection module 501, a parsing module 502, a first reading module 503, a second reading module 504 and a playing module 505.
The detecting module 501 is configured to detect operation information and generate a play control instruction according to the operation information;
an analyzing module 502, configured to analyze the play control instruction, and obtain a play address of a target media file corresponding to the play control instruction;
a first reading module 503, configured to access the play address, start a first reading process, and read media information corresponding to the target media file in a first sequence;
a second reading module 504, configured to start a second reading process when a preset condition is met, and read media information corresponding to the target media file in a second order;
and a playing module 505, configured to load and play the target media file according to the media information.
Optionally, the detecting module 501 is specifically configured to:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
Optionally, the parsing module 502 is specifically configured to:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
Optionally, the first order is read from a header, and the media information includes a total duration of the target media file, a total number of data packets, a size of a header of a data packet, and an average bit rate.
Optionally, the second reading module 504 is specifically configured to:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail.
As can be seen from the above, when playing the online media file, the media playing device in the embodiment of the present invention first reads in the first order through the first reading process, and can read in the second order through the second reading process, thereby implementing dual-process reading, accelerating reading speed, increasing playing speed, saving user time, reducing waiting time in the caching process, and improving user experience.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. It is understood that the media playing method shown in fig. 1-4 and the media playing apparatus shown in fig. 5 can be applied to the mobile terminal shown in fig. 6. As shown in fig. 6, the mobile terminal includes a processor 601 (the number of processors 601 in the terminal may be one or more, and fig. 6 exemplifies one processor) and a memory 602. In the embodiment of the present invention, the processor 601 and the memory 602 may be connected by a bus or other means, wherein fig. 6 illustrates the connection by the bus.
The memory 602 stores therein an executable program, and the processor 601 executes the executable program to implement the following steps:
detecting operation information, and generating a play control instruction according to the operation information;
analyzing the playing control instruction, and acquiring a playing address of a target media file corresponding to the playing control instruction;
accessing the playing address, starting a first reading process, and reading the media information corresponding to the target media file in a first sequence;
if the preset conditions are met, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence;
and loading and playing the target media file according to the media information.
Optionally, the detecting, by the processor 601, the operation information, and generating the play control instruction according to the operation information includes:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
Optionally, the analyzing, by the processor 601, the playing control instruction to obtain a playing address of the media file corresponding to the playing control instruction includes:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
Optionally, the first order is read from a header, and the media information includes a total duration of the target media file, a total number of data packets, a size of a header of a data packet, and an average bit rate.
Optionally, the processor 601 is further configured to, if a preset condition is met, start a second reading process, and read media information corresponding to the target media file in a second order, where the reading process includes:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail.
As can be seen from the above, when playing the online media file, the mobile terminal in the embodiment of the present invention first reads in the first order through the first reading process, and can read in the second order through the second reading process, thereby implementing dual-process reading, accelerating reading speed, increasing playing speed, saving user time, reducing waiting time in the caching process, and improving user experience.
An embodiment of the present invention further provides a media playing system, where the media playing system includes the media playing apparatus shown in fig. 5, and is applicable to implement the media playing method shown in fig. 1 to fig. 4. For a detailed description of the media playing system, reference may be made to the descriptions of the media playing method and the media playing apparatus in fig. 1 to 5, which are not described herein again.
As can be seen from the above, in the media playing system in the embodiment of the present invention, when playing the online media file, the first reading process reads the online media file in the first order, and the second reading process reads the online media file in the second order, so that the two-process reading is implemented, the reading speed is increased, the playing speed is increased, the user time is saved, the waiting time in the caching process is reduced, and the user experience is improved.
The above embodiments provide that each module can be in communication connection with each other, and each module can be in communication connection with the central control device of the platform, and the rapid recording device through fingerprint identification provided in the above embodiments can execute the rapid recording method through fingerprint identification provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
It will be appreciated that the disclosure also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the disclosure into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as partially compiled form, or in any other form suitable for use in the implementation of the method according to the disclosure. It will also be noted that such programs may have many different architectural designs. For example, program code implementing the functionality of a method or system according to the present disclosure may be subdivided into one or more subroutines.
Many different ways to distribute the functionality among these subroutines will be apparent to the skilled person. The subroutines may be stored together in one executable file, forming a self-contained program. Such an executable file may include computer-executable instructions, such as processor instructions and/or interpreter instructions (e.g., Java interpreter instructions). Alternatively, one or more or all of the subroutines may be stored in at least one external library file and linked with the main program either statically or dynamically (e.g., at run time). The main program contains at least one call to at least one of the subroutines. Subroutines may also include function calls to each other. Embodiments directed to a computer program product comprising computer executable instructions for performing each of the process steps of at least one of the set forth methods. These instructions may be subdivided into subroutines and/or stored in one or more files, which may be statically or dynamically linked.
Another embodiment related to a computer program product comprises computer executable instructions for each of the means corresponding to at least one of the systems and/or products set forth. These instructions may be subdivided into subroutines and/or stored in one or more files, which may be statically or dynamically linked.
The carrier of the computer program may be any entity or device capable of carrying the program. For example, the carrier may comprise a storage medium such as a (ROM, e.g. a cd ROM or a semiconductor ROM) or a magnetic recording medium, e.g. a floppy disk or hard disk. Further, the carrier may be a transmissible carrier such as an electrical or optical signal, which may be conveyed via electrical or optical cable or by radio or other means. When the program is embodied in such a signal, the carrier may be constituted by such cable or device. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant method.
It should be noted that the above-mentioned embodiments illustrate rather than limit the disclosure, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. Use of the verb "comprise" and its conjugations does not exclude the presence of elements or steps other than those stated in a claim. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
If desired, the different functions discussed herein may be performed in a different order and/or concurrently with each other. Further, if desired, one or more of the functions described above may be optional or may be combined.
The steps discussed above are not limited to the order of execution in the embodiments, and different steps may be executed in different orders and/or concurrently with each other, if desired. Further, in other embodiments, one or more of the steps described above may be optional or may be combined.
Although various aspects of the disclosure are set out in the independent claims, other aspects of the disclosure comprise combinations of features from the described embodiments and/or the dependent claims with the features of the independent claims, and not solely the combinations explicitly set out in the claims.
It is noted herein that while the above describes example embodiments of the disclosure, these descriptions should not be viewed in a limiting sense. Rather, several variations and modifications may be made without departing from the scope of the present disclosure as defined in the appended claims.
It should be understood by those skilled in the art that the modules in the apparatus of the embodiment of the present disclosure may be implemented by a general-purpose computing apparatus, and the modules may be integrated into a single computing apparatus or a network group of computing apparatuses, and the apparatus in the embodiment of the present disclosure corresponds to the method in the foregoing embodiment, and may be implemented by executable program code, or by a combination of integrated circuits, so that the present disclosure is not limited to specific hardware or software, and combinations thereof.
It should be understood by those skilled in the art that the modules in the apparatus of the embodiment of the present disclosure may be implemented by a general-purpose mobile terminal, and the modules may be integrated in a single mobile terminal or a combination of devices composed of mobile terminals, and the apparatus in the embodiment of the present disclosure corresponds to the method in the foregoing embodiment, and may be implemented by editing executable program code or by a combination of integrated circuits, so that the present disclosure is not limited to specific hardware or software or a combination thereof.

Claims (11)

1. A media playing method, comprising:
detecting operation information, and generating a play control instruction according to the operation information;
analyzing the playing control instruction, and acquiring a playing address of a target media file corresponding to the playing control instruction;
accessing the playing address, starting a first reading process, and reading the media information corresponding to the target media file in a first sequence, wherein the first sequence is reading from the head in sequence;
if the preset conditions are met, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail;
loading and playing the target media file according to the media information;
wherein the preset conditions are as follows: acquiring reading information fed back by the first reading process; analyzing the reading information to obtain the predicted reading time; and if the predicted reading time is larger than a preset time threshold value.
2. The media playing method of claim 1, wherein the detecting operation information and generating the playing control command according to the operation information comprises:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
3. The media playing method according to claim 2, wherein the analyzing the playing control command to obtain the playing address of the media file corresponding to the playing control command comprises:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
4. The media playing method according to claim 2 or 3, wherein the media information comprises a total duration, a total number of packets, a packet header size, and an average bit rate of the target media file.
5. The method of claim 4, wherein if the predetermined condition is satisfied, starting a second reading process to read the media information corresponding to the target media file in a second order, the method comprising:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence.
6. A media playback apparatus, comprising:
the detection module is used for detecting the operation information and generating a playing control instruction according to the operation information;
the analysis module is used for analyzing the playing control instruction and acquiring a playing address of the target media file corresponding to the playing control instruction;
the first reading module is used for accessing the playing address, starting a first reading process and reading the media information corresponding to the target media file in a first sequence, wherein the first sequence is reading from the head;
the second reading module is used for starting a second reading process when a preset condition is met, and reading the media information corresponding to the target media file in a second sequence, wherein the second sequence is reverse-sequence reading from the tail;
the playing module is used for loading and playing the target media file according to the media information;
wherein the preset conditions are as follows: acquiring reading information fed back by the first reading process; analyzing the reading information to obtain the predicted reading time; and if the predicted reading time is larger than a preset time threshold value.
7. The media playback device of claim 6, wherein the detection module is specifically configured to:
detecting touch information on a terminal touch screen, and if an icon or a menu corresponding to the touch information is matched with an application program in a preset list, determining that the touch information is a playing instruction;
and generating a corresponding playing control instruction according to the attribute of the touch information.
8. The media playback device of claim 7, wherein the parsing module is specifically configured to:
acquiring first address information corresponding to the play control instruction;
and analyzing the first address information by adopting a preset analysis server, and acquiring a playing address of the target media file corresponding to the first address information, wherein the playing address is a network protocol address.
9. The media playing apparatus of claim 7 or 8, wherein the media information comprises a total duration, a total number of packets, a packet header size, and an average bitrate of the target media file.
10. The media playback apparatus of claim 9, wherein the second reading module is specifically configured to:
acquiring reading information fed back by the first reading process;
analyzing the reading information to obtain the predicted reading time;
and if the predicted reading time is larger than a preset time threshold, starting a second reading process, and reading the media information corresponding to the target media file in a second sequence.
11. A media playback system comprising a media playback apparatus as claimed in any one of claims 6 to 10.
CN201810476477.5A 2018-05-17 2018-05-17 Media playing method, device and system Active CN108650544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810476477.5A CN108650544B (en) 2018-05-17 2018-05-17 Media playing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810476477.5A CN108650544B (en) 2018-05-17 2018-05-17 Media playing method, device and system

Publications (2)

Publication Number Publication Date
CN108650544A CN108650544A (en) 2018-10-12
CN108650544B true CN108650544B (en) 2020-09-29

Family

ID=63756781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810476477.5A Active CN108650544B (en) 2018-05-17 2018-05-17 Media playing method, device and system

Country Status (1)

Country Link
CN (1) CN108650544B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363986B (en) * 2021-01-15 2021-07-02 北京东方通软件有限公司 Time optimization method for file caching

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1699229A1 (en) * 2005-03-02 2006-09-06 Thomson Licensing Method, circuit arrangement and camera for providing electronic scan reversal
CN101304433A (en) * 2008-04-17 2008-11-12 北京大学 Method and apparatus for providing data to player as well as multimedia play system
CN102332284A (en) * 2011-08-29 2012-01-25 上海文广科技(集团)有限公司 Multimedia data processing method and processing system suitable for digital media broadcast
CN105245912A (en) * 2015-10-21 2016-01-13 东方网力科技股份有限公司 Methods and devices for caching video data and reading video data
CN106331718A (en) * 2016-08-31 2017-01-11 浙江大华技术股份有限公司 Video back-playing method and device
CN106713221A (en) * 2015-07-29 2017-05-24 中兴通讯股份有限公司 Multimedia file download method and device
CN107622067A (en) * 2016-07-13 2018-01-23 杭州海康威视数字技术股份有限公司 A kind of storage, reading and display methods and device to multiple multimedia files
CN107959668A (en) * 2016-10-14 2018-04-24 南宁富桂精密工业有限公司 Streaming media optimization method and buffer storage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170063471A1 (en) * 2015-08-28 2017-03-02 Red Sunrise Co., Ltd. Audio signal transmission system with enhanced audio signal recognition and data processing method for the same
US10176845B2 (en) * 2016-09-23 2019-01-08 Apple Inc. Seamless forward-reverse video loops

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1699229A1 (en) * 2005-03-02 2006-09-06 Thomson Licensing Method, circuit arrangement and camera for providing electronic scan reversal
CN101304433A (en) * 2008-04-17 2008-11-12 北京大学 Method and apparatus for providing data to player as well as multimedia play system
CN102332284A (en) * 2011-08-29 2012-01-25 上海文广科技(集团)有限公司 Multimedia data processing method and processing system suitable for digital media broadcast
CN106713221A (en) * 2015-07-29 2017-05-24 中兴通讯股份有限公司 Multimedia file download method and device
CN105245912A (en) * 2015-10-21 2016-01-13 东方网力科技股份有限公司 Methods and devices for caching video data and reading video data
CN107622067A (en) * 2016-07-13 2018-01-23 杭州海康威视数字技术股份有限公司 A kind of storage, reading and display methods and device to multiple multimedia files
CN106331718A (en) * 2016-08-31 2017-01-11 浙江大华技术股份有限公司 Video back-playing method and device
CN107959668A (en) * 2016-10-14 2018-04-24 南宁富桂精密工业有限公司 Streaming media optimization method and buffer storage

Also Published As

Publication number Publication date
CN108650544A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN103793323B (en) The automatic testing equipment and its automatic test approach of embedded software
CN107832100B (en) APK plug-in loading method and terminal thereof
CN101526918B (en) Method for testing player and device
US20110131450A1 (en) Using synchronized event types for testing an application
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN108495185B (en) Video title generation method and device
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
CN109857537B (en) Background service starting method, device, medium and electronic equipment
CN109547335B (en) Session message processing method and device
CN109698979B (en) Video playing method and device and electronic equipment
CN103618786A (en) Playing error processing method and server
CN108650544B (en) Media playing method, device and system
CN110177300B (en) Program running state monitoring method and device, electronic equipment and storage medium
CN105005612A (en) Music file acquisition method and mobile terminal
CN103631872A (en) Method for playing multimedia files and electronic terminal
CN111510755A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN105812865A (en) Information processing method and electronic device
CN111954072B (en) Multimedia playing method, device, multimedia player and medium
EP3598738A1 (en) Video synthesis method, apparatus and device, and video playing method, apparatus and device
CN111382017A (en) Fault query method, device, server and storage medium
CN109614137B (en) Software version control method, device, equipment and medium
CN111200744B (en) Multimedia playing control method and device and intelligent equipment
CN110971960B (en) Video processing method and device, electronic equipment and storage medium
CN104850626A (en) Method and apparatus for displaying album as search result

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