WO2020233142A1 - 多媒体文件播放方法、装置、电子设备和存储介质 - Google Patents

多媒体文件播放方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2020233142A1
WO2020233142A1 PCT/CN2020/071223 CN2020071223W WO2020233142A1 WO 2020233142 A1 WO2020233142 A1 WO 2020233142A1 CN 2020071223 W CN2020071223 W CN 2020071223W WO 2020233142 A1 WO2020233142 A1 WO 2020233142A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia file
multimedia
files
information
server
Prior art date
Application number
PCT/CN2020/071223
Other languages
English (en)
French (fr)
Inventor
徐子超
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2020233142A1 publication Critical patent/WO2020233142A1/zh

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/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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • 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/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4756End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for rating content, e.g. scoring a recommended movie
    • 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/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders

Definitions

  • the present disclosure relates to the field of information processing technology. Specifically, the present disclosure relates to a multimedia file playback method, device, electronic device, and storage medium.
  • some multimedia file playback platforms display too many multimedia files to the user on the display interface of the terminal device, and cannot provide enough prompt information for the user to refer to; and some multimedia file playback platforms display an excessive number of multimedia files on the display interface of the terminal device.
  • the number of multimedia files displayed by users is too small to make full use of page resources.
  • when using a system player to play multimedia files it is limited by the system player version, and there are certain restrictions on the encoding and decoding of multimedia files, which cannot meet the needs of users, and the user experience is poor.
  • the present disclosure provides a multimedia file playback method, device, electronic equipment and storage medium, which are used to solve the problems existing in the prior art.
  • a multimedia file playback method which is applied to a client application, and the method may include:
  • the first multimedia file is played through the preset player.
  • the predetermined type of trigger operation may include at least one of the following items:
  • displaying preview information corresponding to two multimedia files that meet the preset condition on the display interface may include:
  • the preview information corresponding to the two multimedia files that meet the preset conditions is displayed in a vertical arrangement on the display interface.
  • the method may further include:
  • the video source code rate of the first multimedia file is determined according to the network environment information and the device performance information, and the first multimedia file is played according to the video source code rate through a preset player.
  • the multimedia file may be a multimedia file of H.264 encoding type or H.265 encoding type.
  • the method may further include:
  • the interactive operation includes at least one of a comment operation, an evaluation operation, a forwarding operation, or a sharing operation;
  • the interactive information is sent to the server for the server to update the information to be displayed in the interactive area corresponding to the second multimedia file according to the interactive information.
  • a multimedia file playback device which is applied to a client application, and the device may include:
  • the sending module is configured to send a multimedia file acquisition request to the server when a predetermined type of trigger operation is detected;
  • the receiving module is configured to receive at least two multimedia files and preview information corresponding to the at least two multimedia files sent by the server;
  • the display module is configured to display preview information corresponding to two multimedia files that meet preset conditions on the display interface;
  • the play module is configured to play the first multimedia file through a preset player when a play operation for the first multimedia file among the two multimedia files is detected.
  • the apparatus may further include:
  • An obtaining module configured to obtain current network environment information and device performance information of the terminal device where the client application is located;
  • the playing module can be further configured as:
  • the video source code rate of the first multimedia file is determined according to the network environment information and the device performance information, and the first multimedia file is played according to the video source code rate through a preset player.
  • an electronic device which may include:
  • One or more processors are One or more processors;
  • One or more application programs where one or more application programs are stored in a memory and configured to be executed by one or more processors, and one or more programs are configured to execute as shown in the first aspect of the present disclosure The corresponding operation of the multimedia file playback method.
  • the present disclosure provides a computer-readable storage medium, which is used to store computer instructions. When it runs on a computer, the computer can execute the multimedia as shown in the first aspect of the present disclosure. File playback method.
  • a multimedia file acquisition request is sent to the server; at least two multimedia files sent by the server and preview information corresponding to the at least two multimedia files are received;
  • the interface displays the preview information corresponding to the two multimedia files that meet the preset conditions; when the playback operation for the first multimedia file of the two multimedia files is detected, the first multimedia file is processed through the preset player To play.
  • FIG. 1 is a schematic flowchart of a multimedia file playback method provided by an embodiment of the disclosure
  • FIG. 2 is a schematic structural diagram of a multimedia file playback device provided by an embodiment of the disclosure.
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the disclosure.
  • the application scenario of the embodiment of the present disclosure is that the user uses the terminal device to enter the multimedia file playback platform through the application program.
  • the multimedia file playback platform displays the preview information of the multimedia file to the user.
  • the user selects the multimedia file according to the preview information and displays it on the terminal device through the player. Interface to play.
  • FIG. 1 is a schematic flowchart of a multimedia file playback method provided by an embodiment of the present disclosure. As shown in FIG. 1, the method may include:
  • Step S101 when a predetermined type of trigger operation is detected, a multimedia file acquisition request is sent to the server;
  • Step S102 receiving at least two multimedia files and respective preview information corresponding to the at least two multimedia files sent by the server;
  • Step S103 Display preview information corresponding to two multimedia files that meet the preset conditions on the display interface
  • Step S104 When a play operation for the first multimedia file among the two multimedia files is detected, play the first multimedia file through a preset player.
  • a multimedia file acquisition request is sent to the server; at least two multimedia files sent by the server and preview information corresponding to the at least two multimedia files are received;
  • the interface displays the preview information corresponding to the two multimedia files that meet the preset conditions; when the playback operation for the first multimedia file of the two multimedia files is detected, the first multimedia file is processed through the preset player To play.
  • Step S101 when a predetermined type of trigger operation is detected, a multimedia file acquisition request is sent to the server;
  • the terminal device when it detects a predetermined type of trigger operation input by the user for the application program, it sends a multimedia file acquisition request to the server of the application program.
  • the application program is an application program corresponding to the multimedia file playback platform.
  • the predetermined type of trigger operation includes at least one of the following items:
  • a trigger operation for opening the client an upward sliding operation triggered by the display interface; a downward sliding operation triggered by the display interface.
  • the terminal device sends a multimedia file acquisition request to the server, including two situations: one situation is that when the user performs an opening operation on the application corresponding to the multimedia file playback platform of the client, an opening trigger operation is generated, and the terminal device detects After the trigger operation is turned on, the multimedia file data is requested from the server; in another case, for the opened application, the display interface of the terminal device displays the preview information of at least one multimedia file, and the user presses down or Swipe upwards to select multimedia files. Each time you perform a sliding operation, the preview information of the multimedia file displayed on the display interface will change. When the terminal device detects the upward or downward sliding operation, it requests multimedia file data from the server.
  • Step S102 receiving at least two multimedia files and respective preview information corresponding to the at least two multimedia files sent by the server;
  • the server selects the multimedia file data to be sent to the terminal device in the multimedia file database according to the request of the terminal device, which also includes preview information corresponding to each multimedia file.
  • the preview information may be the picture information displayed in the state where the multimedia file is to be played, and the picture may be in a static picture format, or may also be a dynamic picture.
  • the multimedia file database may be a database constructed according to the video and audio files uploaded by the user.
  • the user selects the multimedia file to be sent to the terminal device, he can send to the terminal device the upload time corresponding to the multimedia file, the geographic location of the user, the user's preferences, etc., select at least two multimedia files in the multimedia file database, and The preview information corresponding to the multimedia file.
  • the terminal device receives the multimedia file sent by the server and the corresponding preview information, it is stored in the local memory.
  • Step S103 Display preview information corresponding to two multimedia files that meet the preset conditions on the display interface
  • the terminal device After the terminal device receives the multimedia file and preview information sent by the server, it determines the preset conditions according to the upload time corresponding to the multimedia file, the geographic location of the user, and the user's preferences, etc., and selects the two multimedia files that most meet the conditions.
  • the preview information corresponding to the multimedia file is displayed on the display interface.
  • a multimedia file playback platform usually displays information about one or more multimedia files to users. If the number of displayed multimedia files is too small, the page resources cannot be fully utilized; if the number of displayed multimedia files is too large, it cannot provide enough information. There are more prompt messages for users to refer to; therefore, the user experience is poor. In this embodiment, displaying preview information of two multimedia files can not only display enough information for users to refer to, but also ensure the number of multimedia files and make full use of page resources.
  • the preview information corresponding to the multimedia file is also provided with a play button for the user to click and play.
  • displaying the preview information corresponding to the two multimedia files meeting the preset condition on the display interface includes: arranging the preview information corresponding to the two multimedia files meeting the preset condition in the vertical direction on the display interface Way to display.
  • Step S104 When a play operation for the first multimedia file among the two multimedia files is detected, play the first multimedia file through a preset player.
  • the terminal device when the terminal device detects that the user clicks the play button in the preview information of the multimedia file in the display interface, it reads the multimedia file corresponding to the preview information from the local memory through a preset player and plays it.
  • the preset player plays the multimedia file, it can be played in the current area, or it can be played in a full-screen display.
  • the preset player in the present disclosure includes a network protocol module, a format analysis module, a decoding module, an audio-visual synchronization module, and a video rendering module.
  • the network protocol module is used to request network data, including the Real Time Messaging Protocol (RTMP) unit, the Real Time Streaming Protocol (RTSP) unit, and the Hyper Text Transfer Protocol (HTTP) ) Unit, while the prior art
  • RTMP Real Time Messaging Protocol
  • RTSP Real Time Streaming Protocol
  • HTTP Hyper Text Transfer Protocol
  • the system player can only support the HTTP protocol.
  • the format parsing module is used to parse audio files and video files in multimedia files, including parsing files in MP3, MP4 format, etc., and parsing flv format files; while the prior art The system player can only support MP4 format files.
  • the decoding module is used to restore compressed video data and audio data, decode video data and audio data into original data, and decode yuv format video files and pcm format audio files.
  • the audio and video synchronization module is used to synchronize audio and video images to obtain multimedia data synchronized with audio and video.
  • the video rendering module is used to render the audio and video synchronization data, and then output the multimedia files with rendering effects.
  • the multimedia file is a multimedia file of H.264 encoding type or H.265 encoding type.
  • the preset player in the present disclosure supports both H.264 encoding type video and H.265 encoding type video.
  • the H.265 encoding type video file has better performance and can be smoother and clearer.
  • Only systems above iOS 11 can support H265 decoding, and systems below iOS 11 only support H.264 decoding.
  • the preset player in this disclosure is not limited by the system version, and supports H.264 encoding type files and H.264 .265 encoding type file.
  • the method further includes: obtaining current network environment information and device performance information of the terminal device where the client application is located; playing the first multimedia file through a preset player, including: according to network environment information and The device performance information determines the video source code rate of the first multimedia file, and plays the first multimedia file according to the video source code rate through a preset player.
  • network environment information includes information such as network transmission speed and transmission quality
  • device performance information includes device screen resolution, etc.
  • the preset player can match the video source rate according to the network environment information and device performance information, such as high definition (HD), full high definition (Full HD), ultra-definition (or ultra high-definition, Super HD), standard, blur, etc. Play multimedia files with corresponding video source rate.
  • the method may further include: receiving interactive information for the interactive operation of the second multimedia file input by the user through the interactive area in the display interface, the interactive operation includes comment operation, evaluation operation, forwarding operation and sharing Operation: Send interactive information to the server for the server to update the information to be displayed in the interactive area corresponding to the second multimedia file according to the interactive information.
  • each multimedia file on the display interface of the terminal device application corresponds to a display unit.
  • Each display unit includes a player display area and an interaction area.
  • the player display area is provided with a play button, and the interaction area displays the interaction Information, there are trigger buttons corresponding to various interactive operations.
  • Various interactive operations can include, for example, one or more of comment operation, evaluation operation, forwarding operation or sharing operation; when the user input interactive information is detected, the server will be sent to the server Send interactive information; the server counts the data corresponding to the interactive information, updates the information to be displayed in the interactive area, and displays the interactive information entered by the user in the interactive area of the corresponding multimedia file, for example, displays the like operation in the interactive area of the corresponding multimedia file, Display comment information.
  • an embodiment of the present disclosure also provides a multimedia file playback device 20.
  • the multimedia file playback device 20 may include:
  • the sending module 201 is configured to send a multimedia file acquisition request to the server when a predetermined type of trigger operation is detected;
  • the receiving module 202 is configured to receive at least two multimedia files and preview information corresponding to the at least two multimedia files sent by the server;
  • the display module 203 is configured to display preview information corresponding to two multimedia files that meet preset conditions on a display interface
  • the play module 204 is configured to play the first multimedia file through a preset player when a play operation on the first multimedia file among the two multimedia files is detected.
  • the sending module 201 may be configured to send a multimedia file acquisition request to the server when a predetermined type of trigger operation is detected;
  • the receiving module 202 may be configured to receive at least two multimedia files sent by the server And the preview information corresponding to at least two multimedia files;
  • the display module 203 may be configured to display the preview information corresponding to the two multimedia files that meet the preset conditions on the display interface;
  • the playback module 204 may be configured to During the play operation of the first multimedia file in the multimedia files, the first multimedia file is played through the preset player.
  • the present disclosure realizes that an appropriate amount of multimedia files are displayed to the user through the display interface of the terminal device, and while providing sufficient prompt information to the user, the page resources are also fully utilized, and the multimedia files are played through preset playback, which breaks through the system player The limitation of playing files improves the user experience.
  • the predetermined type of trigger operation includes at least one of the following items:
  • a trigger operation for opening the client an upward sliding operation triggered by the display interface; a downward sliding operation triggered by the display interface.
  • the terminal device sends a multimedia file acquisition request to the server, including two situations: one situation is that when the user opens the application corresponding to the multimedia file playback platform of the client, an opening trigger operation is generated, and the terminal device detects the opening trigger After the operation, request multimedia file data from the server; in another case, for the opened application, the display interface of the terminal device displays the preview information of at least one multimedia file, and the user selects the multimedia file by sliding down or up , Each time a sliding operation is performed, the preview information of the multimedia file displayed on the display interface will change. When the terminal device detects the upward or downward sliding operation, it will request the multimedia file data from the server.
  • the display module 203 may be further configured to display the preview information corresponding to the two multimedia files that meet the preset condition in a vertical arrangement on the display interface.
  • a multimedia file playback platform usually displays information about one or more multimedia files to users. If the number of displayed multimedia files is too small, the page resources cannot be fully utilized; if the number of displayed multimedia files is too large, it cannot provide enough information. There are more prompt messages for users to refer to; therefore, the user experience is poor. In this embodiment, displaying preview information of two multimedia files can not only display enough information for users to refer to, but also ensure the number of multimedia files and make full use of page resources.
  • the preview information corresponding to the multimedia file is also provided with a play button for the user to click and play.
  • the multimedia file playback apparatus further includes an acquisition module configured to acquire current network environment information and device performance information of the terminal device where the client application is located; the playback module 204 may be further configured to: according to network environment information And the device performance information to determine the video source code rate of the first multimedia file, and play the first multimedia file according to the video source code rate through a preset player.
  • the network environment information includes at least one of network transmission speed or transmission quality
  • the device performance information includes device screen resolution and the like.
  • the preset player can match the video source rate according to the network environment information and device performance information, such as high definition (HD), full high definition (Full HD), ultra-definition (or ultra high-definition, Super HD), standard, blur, etc. Play multimedia files with corresponding video source rate.
  • the multimedia file is a multimedia file of the H.264 encoding type or the H.265 encoding type.
  • the preset player in the present disclosure supports both H.264 encoding type video and H.265 encoding type video.
  • the H.265 encoding type video file has better performance and can be smoother and clearer.
  • Only systems above iOS 11 can support H.265 decoding, systems below iOS 11 only support H.264 decoding, and the default player in this disclosure is not limited by the system version, and supports H.264 encoding type files. With H.265 encoding type files.
  • the multimedia file playback device may further include an interactive module configured to receive interactive information for the interactive operation of the second multimedia file input by the user through the interactive area in the display interface, wherein the interactive operation includes One or more of comment operation, evaluation operation, forwarding operation or sharing operation; sending interactive information to the server for the server to update the information to be displayed in the interactive area corresponding to the second multimedia file according to the interactive information.
  • an interactive module configured to receive interactive information for the interactive operation of the second multimedia file input by the user through the interactive area in the display interface, wherein the interactive operation includes One or more of comment operation, evaluation operation, forwarding operation or sharing operation; sending interactive information to the server for the server to update the information to be displayed in the interactive area corresponding to the second multimedia file according to the interactive information.
  • each multimedia file on the display interface of the terminal device application corresponds to a display unit.
  • Each display unit includes a player display area and an interaction area.
  • the player display area is provided with a play button, and the interaction area displays the interaction Information, there are trigger buttons corresponding to various interactive operations.
  • Various interactive operations may include at least one of comment operation, evaluation operation, forwarding operation or sharing operation.
  • the multimedia file playback device of the embodiments of the present disclosure can execute the multimedia file playback method provided by the embodiments of the present disclosure, and the implementation principles are similar.
  • the actions performed by each module in the multimedia file playback device in the embodiments of the present disclosure are Corresponding to the steps in the multimedia file playback method in each embodiment of the present disclosure, for the detailed function description of each module of the multimedia playback device, please refer to the description in the corresponding multimedia playback method shown in the preceding text. Repeat it again.
  • the embodiment of the present disclosure also provides an electronic device.
  • the electronic device may include, but is not limited to, one or more processors; a memory; one or Multiple application programs, one or more application programs are stored in the memory and configured to be executed by one or more processors, and one or more programs are configured to: execute the multimedia file playback method according to the embodiment of the present disclosure The corresponding operation.
  • a multimedia file acquisition request is sent to the server; at least two multimedia files sent by the server and preview information corresponding to the at least two multimedia files are received;
  • the display interface displays the preview information corresponding to the two multimedia files that meet the preset conditions; when the playback operation for the first multimedia file of the two multimedia files is detected, the first multimedia file The file is played.
  • the embodiment of the present disclosure also provides a computer-readable storage medium.
  • the computer-readable storage medium is used to store computer instructions. When running, the computer can execute the multimedia file playback method shown in the embodiment of the present disclosure.
  • a multimedia file acquisition request is sent to the server; at least two multimedia files sent by the server and a preview corresponding to the at least two multimedia files are received.
  • Information; the preview information corresponding to the two multimedia files that meet the preset conditions is displayed on the display interface; when the playback operation for the first multimedia file of the two multimedia files is detected, the first multimedia file is selected through the preset player Multimedia files are played.
  • the present disclosure realizes that an appropriate amount of multimedia files are displayed to the user through the display interface of the terminal device, and while providing sufficient prompt information to the user, the page resources are also fully utilized, and the multimedia files are played through preset playback, which breaks through the system player The limitation of playing files improves the user experience.
  • FIG. 3 shows a schematic structural diagram of an electronic device (such as the terminal device or the server in FIG. 1) 300 suitable for implementing the embodiments of the present disclosure.
  • the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 3 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 300 may include a processing device (such as a central processing unit, a graphics processor, etc.) 301, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 302 or from a storage device 308
  • the program in the memory (RAM) 303 executes various appropriate actions and processing.
  • various programs and data required for the operation of the electronic device 300 are also stored.
  • the processing device 301, ROM 302, and RAM 303 are connected to each other through a bus 304.
  • An input/output (I/O) interface 305 is also connected to the bus 304.
  • the following devices can be connected to the I/O interface 305: including input devices 306 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibration An output device 307 such as a device; a storage device 308 such as a magnetic tape and a hard disk; and a communication device 309.
  • the communication device 309 may allow the electronic device 300 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 3 shows an electronic device 300 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • the process described above with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302.
  • the processing device 301 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet protocol addresses; and sends to the node evaluation device including the at least two A node evaluation request for an Internet Protocol address, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein, the obtained The Internet Protocol address indicates the edge node in the content distribution network.
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; Among the at least two Internet Protocol addresses, select an Internet Protocol address; return the selected Internet Protocol address; wherein, the received Internet Protocol address indicates an edge node in the content distribution network.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner.
  • the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”

Abstract

本公开提供了一种多媒体文件播放发方法、装置、电子设备及存储介质,涉及信息处理技术领域。该方法包括:当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。本公开实现了通过终端设备的显示界面向用户展示适量的多媒体文件,并且通过预设播放器进行播放,突破了系统播放器对播放文件的限制,提升了用户体验。

Description

多媒体文件播放方法、装置、电子设备和存储介质
相关申请的交叉引用
本公开要求于2019年5月21日在中国国家知识产权局提交的申请号为201910424698.2的中国专利申请的权益,该中国专利申请公开的内容通过引用整体并入本文。
技术领域
本公开涉及信息处理技术领域,具体而言,本公开涉及一种多媒体文件播放方法、装置、电子设备和存储介质。
背景技术
随着计算机技术和移动通信技术的迅速发展,基于终端设备的各种多媒体文件播放平台得到了普遍应用,极大地丰富了人们的日常生活。用户可以通过各种多媒体文件播放平台方便地观看各种类型的多媒体文件,以及与多媒体文件提供方进行数据交互。
现有技术中,有些多媒体文件播放平台在终端设备的显示界面向用户展示的多媒体文件数量过多,无法提供足够多的提示信息供用户参阅;还有些多媒体文件播放平台在终端设备的显示界面向用户展示的多媒体文件数量过少,无法充分利用页面资源。而且,利用系统播放器播放多媒体文件时,受限于系统播放器版本的限制,对多媒体文件编解码有一定限制,无法满足用户需求,用户体验较差。
发明内容
本公开提供了一种多媒体文件播放方法、装置、电子设备和存储介质,用于解决现有技术中存在的问题。
第一方面,提供了一种多媒体文件播放方法,应用于客户端应用,该 方法可以包括:
当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;
在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。
本公开第一方面的可选实施例中,预定类型的触发操作,可以包括以下各项中的至少一项:
针对客户端的开启触发操作;
通过显示界面触发的向上滑动操作;
通过显示界面触发的向下滑动操作。
本公开第一方面的可选实施例中,在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息,可以包括:
在显示界面上将满足预设条件的两个多媒体文件分别对应的预览信息以纵向排列的方式进行显示。
本公开第一方面的可选实施例中,该方法可以进一步包括:
获取当前网络环境信息和客户端应用所在终端设备的设备性能信息;
根据网络环境信息和设备性能信息确定第一多媒体文件的视频源码率,并通过预设播放器根据视频源码率对第一多媒体文件进行播放。
本公开第一方面的可选实施例中,多媒体文件可以为H.264编码类型或者H.265编码类型的多媒体文件。
本公开第一方面的可选实施例中,方法还可以包括:
接收用户通过显示界面中的交互区域输入的针对第二多媒体文件的交互操作的交互信息,其中交互操作包括评论操作、评价操作、转发操作或分享操作中的至少一项操作;
向服务器发送交互信息,以用于服务器根据交互信息更新第二多媒体文件对应的交互区域的待显示信息。
第二方面,提供了一种多媒体文件播放装置,应用于客户端应用,该装置可以包括:
发送模块,被配置为当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
接收模块,被配置为接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;
显示模块,被配置为在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
播放模块,被配置为当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。
本公开第二方面的可选实施例中,装置还可以包括:
获取模块,被配置为获取当前网络环境信息和所述客户端应用所在终端设备的设备性能信息;
其中,播放模块可以被进一步配置为:
根据网络环境信息和设备性能信息确定第一多媒体文件的视频源码率,并通过预设播放器根据视频源码率对第一多媒体文件进行播放。
第三方面,本公开提供了一种电子设备,该电子设备可以包括:
一个或多个处理器;
存储器;
一个或多个应用程序,其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个程序被配置为执行如本公开的第一方面所示的多媒体文件播放方法对应的操作。
第四方面,本公开提供了一种计算机可读存储介质,计算机可读存储介质用于存储计算机指令,当其在计算机上运行时,使得计算机可以执行如本公开的第一方面所示的多媒体文件播放方法。
本公开提供的技术方案带来的有益效果是:
在本公开实施例的方案中,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;在显示界面显示满足预设条件 的两个多媒体文件分别对应的预览信息;当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。本公开实现了通过终端设备的显示界面向用户展示适量的多媒体文件,向用户提供足够多的提示信息的同时,也充分利用了页面资源,并且通过预设播放播放多媒体文件,突破了系统播放器对播放文件的限制,提升了用户体验。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍。
图1为本公开实施例提供的一种多媒体文件播放方法的流程示意图;
图2为本公开实施例提供的一种多媒体文件播放装置的结构示意图;
图3为本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能解释为对本公开的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本 公开实施方式作进一步地详细描述。
下面以具体地实施例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本公开的实施例进行描述。
本公开实施例的应用场景为用户利用终端设备通过应用程序进入多媒体文件播放平台,多媒体文件播放平台向用户展示多媒体文件的预览信息,用户根据预览信息选择多媒体文件,通过播放器在终端设备的显示界面进行播放。
图1为本公开实施例提供的一种多媒体文件播放方法的流程示意图,如图1所示,该方法可以包括:
步骤S101,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
步骤S102,接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;
步骤S103,在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
步骤S104,当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。
在本公开实施例的方案中,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。本公开实现了通过终端设备的显示界面向用户展示适量的多媒体文件,向用户提供足够多的提示信息的同时,也充分利用了页面资源,并且通过预设播放播放多媒体文件,突破了系统播放器对播放文件的限制,提升了用户体验。
下面对本公开实施例的上述方案进行具体展开说明。
步骤S101,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
其中,终端设备检测用户针对应用程序输入的预定类型的触发操作时,向应用程序的服务器发送多媒体文件获取请求。该应用程序为多媒体文件播放平台对应的应用程序。
在本公开实施例中,预定类型的触发操作,包括以下各项中的至少一项:
针对客户端的开启触发操作;通过显示界面触发的向上滑动操作;通过显示界面触发的向下滑动操作。
在实际应用中,终端设备向服务器发送多媒体文件获取请求,包括两种情况:一种情况是,用户对客户端的多媒体文件播放平台对应的应用程序执行开启操作时,生成开启触发操作,终端设备检测到开启触发操作后,向服务器请求多媒体文件数据;另一种情况是,针对已经开启的应用程序,终端设备的显示界面展示了至少一个多媒体文件的预览信息,用户在显示界面中通过向下或者向上滑动操作来选择多媒体文件,每进行一次滑动操作,显示界面显示的多媒体文件的预览信息就会发生变化,终端设备检测到向上或向下滑动操作时,就向服务器请求多媒体文件数据。
步骤S102,接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;
在实际应用中,终端设备向服务器请求多媒体文件数据后,服务器根据终端设备的请求,在多媒体文件数据库中选择待向终端设备发送的多媒体文件数据,其中还包括每个多媒体文件对应的预览信息,预览信息可以是多媒体文件待播放状态下显示的图片信息,该图片可以是静态图片格式,或者也可以是动态图片。
其中,多媒体文件数据库可以是根据用户上传的视音频文件构造的数据库。用户在选择待向终端设备发送的多媒体文件时,可以向终端设备发送多媒体文件对应的上传时间、用户所处的地理位置、用户的喜好等条件在多媒体文件数据库中选择至少两个多媒体文件、以及多媒体文件对应的预览信息。终端设备接收到服务器发送的多媒体文件以及对应的预览信息 之后,存储到本地内存中。
步骤S103,在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
终端设备接收到服务器发送的多媒体文件及预览信息后,按照多媒体文件对应的上传时间、用户所处的地理位置、用户的喜好等确定预设条件,选择出最符合条件的两个多媒体文件,将多媒体文件对应的预览信息在显示界面进行显示。
现有技术中,多媒体文件播放平台通常向用户展示一个或两个以上多媒体文件相关信息,展示的多媒体文件数量过少,则无法充分利用页面资源;展示的多媒体文件数量过多,则无法提供足够多的提示信息供用户参阅;因此用户体验较差。本实施例中,展示两个多媒体文件的预览信息,不仅能够展示足够多的信息以供用户参阅,而且能够确保多媒体文件数量,充分利用页面资源。
另外,多媒体文件对应的预览信息上还设置有播放按钮,供用户点击播放操作。
在本公开实施例中,在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息,包括:在显示界面上将满足预设条件的两个多媒体文件分别对应的预览信息以纵向排列的方式进行显示。
需要说明的是,预览信息在显示界面上的排列方式可以有多种,此处不做限定。
步骤S104,当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。
在实际应用中,当终端设备检测到用户点击显示界面中的多媒体文件的预览信息中的播放按钮时,则通过预设的播放器从本地内存中读取预览信息对应的多媒体文件进行播放。
其中,预设播放器播放多媒体文件时,可以在当前区域进行播放,也可以通过全屏显示的方式进行播放。
需要说明的是,本公开中的预设播放器包括网络协议模块、格式解析模块、解码模块、音画同步模块和视频渲染模块。网络协议模块用于请求 网络数据,包括实时消息传输协议(Real Time Messaging Protocol,RTMP是)单元和实时流传输协议(Real Time Streaming Protocol,RTSP)单元以及超文本传输协议(Hyper Text Transfer Protocol,HTTP)单元,而现有技术中的
Figure PCTCN2020071223-appb-000001
系统播放器只能支持HTTP协议。格式解析模块用于解析多媒体文件中的音频文件、视频文件,包括解析MP3、MP4格式等的文件,解析flv格式文件;而现有技术中的
Figure PCTCN2020071223-appb-000002
系统播放器只能支持MP4格式的文件。解码模块用于还原压缩的视频数据、音频数据,将视频数据、音频数据解码成原始数据,解码yuv格式视频文件、pcm格式音频文件。音画同步模块用于将声音和视频画面进行同步处理,得到音视频同步的多媒体数据。视频渲染模块用于将音视频同步数据进行渲染,得到具有渲染效果的多媒体文件后再输出。
在本公开实施例中,多媒体文件为H.264编码类型或者H.265编码类型的多媒体文件。
本公开中的预设播放器既支持H.264编码类型的视频又支持H.265编码类型的视频,H.265编码类型的视频文件性能较好,能够更加流畅、清晰,现有技术中,iOS 11以上的系统才可以支持H265解码,iOS 11以下的系统只支持H.264解码,而本公开中的预设播放器则可以不被系统版本限制,同时支持H.264编码类型文件与H.265编码类型文件。
在本公开实施例中,方法还包括:获取当前网络环境信息和客户端应用所在终端设备的设备性能信息;通过预设播放器对第一多媒体文件进行播放,包括:根据网络环境信息和设备性能信息确定第一多媒体文件的视频源码率,并通过预设播放器根据视频源码率对第一多媒体文件进行播放。
其中,网络环境信息包括网络传输速度、传输质量等信息,设备性能信息包括设备屏幕分辨率等。预设播放器能够实现根据网络环境信息和设备性能信息匹配视频源码率,如,高清(HD)、全高清(Full HD)、超清(或超高清,Super HD)、标准、模糊等,然后播放相应视频源码率的多媒体文件。
在本公开实施例中,方法还可以包括:接收用户通过显示界面中的交互区域输入的针对第二多媒体文件的交互操作的交互信息,交互操作包括 评论操作、评价操作、转发操作和分享操作;向服务器发送交互信息,以用于服务器根据交互信息更新第二多媒体文件对应的交互区域的待显示信息。
在实际应用中,终端设备应用程序的显示界面上每个多媒体文件对应一个显示单元,每个显示单元包括播放器显示区域和交互区域,播放器显示区域上设置有播放按钮,交互区域中显示交互信息,设置有多种交互操作对应的触发按钮,多种交互操作可以包括例如评论操作、评价操作、转发操作或分享操作中的一个或更多个;当检测到用户输入交互信息,则向服务器发送交互信息;服务器统计交互信息对应的数据,更新交互区域的待显示信息,将用户输入的交互信息显示在对应的多媒体文件的交互区域,例如,在对应多媒体文件的交互区域显示点赞操作、显示评论信息。
基于与图1中所示方法相同的原理,本公开的实施例中还提供了一种多媒体文件播放装置20,如图2所示,该多媒体文件播放装置20可以包括:
发送模块201,被配置为当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
接收模块202,被配置为接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;
显示模块203,被配置为在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
播放模块204,被配置为当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。
在本公开实施例的方案中,发送模块201可以被配置为当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收模块202可以被配置为接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;显示模块203可以被配置为在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;播放模块204可以被配置为当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。本公开实现了通过终端设备 的显示界面向用户展示适量的多媒体文件,向用户提供足够多的提示信息的同时,也充分利用了页面资源,并且通过预设播放播放多媒体文件,突破了系统播放器对播放文件的限制,提升了用户体验。
在本公开实施例中,预定类型的触发操作,包括以下各项中的至少一项:
针对客户端的开启触发操作;通过显示界面触发的向上滑动操作;通过显示界面触发的向下滑动操作。
在实际应用中,终端设备向服务器发送多媒体文件获取请求,包括两种情况:一种情况是,用户开启客户端的多媒体文件播放平台对应的应用程序时,生成开启触发操作,终端设备检测到开启触发操作后,向服务器请求多媒体文件数据;另一种情况是,针对已经开启的应用程序,终端设备的显示界面展示了至少一个多媒体文件的预览信息,用户通过向下或者向上滑动操作来选择多媒体文件,每进行一次滑动操作,显示界面显示的多媒体文件的预览信息就会发生变化,终端设备检测到向上或向下滑动操作时,就向服务器请求多媒体文件数据。
在本公开实施例中,显示模块203可以被进一步配置为:在显示界面上将满足预设条件的两个多媒体文件分别对应的预览信息以纵向排列的方式进行显示。
现有技术中,多媒体文件播放平台通常向用户展示一个或两个以上多媒体文件相关信息,展示的多媒体文件数量过少,则无法充分利用页面资源;展示的多媒体文件数量过多,则无法提供足够多的提示信息供用户参阅;因此用户体验较差。本实施例中,展示两个多媒体文件的预览信息,不仅能够展示足够多的信息以供用户参阅,而且能够确保多媒体文件数量,充分利用页面资源。
另外,多媒体文件对应的预览信息上还设置有播放按钮,供用户点击播放操作。
需要说明的是,预览信息在显示界面上的排列方式可以有多种,此处不做限定。
在本公开实施例中,多媒体文件播放装置还包括获取模块,其被配置 为获取当前网络环境信息和客户端应用所在终端设备的设备性能信息;播放模块204可以被进一步配置为:根据网络环境信息和设备性能信息确定第一多媒体文件的视频源码率,并通过预设播放器根据视频源码率对第一多媒体文件进行播放。
其中,网络环境信息包括网络传输速度或传输质量等信息中的至少一项,设备性能信息包括设备屏幕分辨率等。预设播放器能够实现根据网络环境信息和设备性能信息匹配视频源码率,如,高清(HD)、全高清(Full HD)、超清(或超高清,Super HD)、标准、模糊等,然后播放相应视频源码率的多媒体文件。
其中,多媒体文件为H.264编码类型或者H.265编码类型的多媒体文件。
本公开中的预设播放器既支持H.264编码类型的视频又支持H.265编码类型的视频,H.265编码类型的视频文件性能较好,能够更加流畅、清晰,现有技术中,iOS 11以上的系统才可以支持H.265解码,iOS 11以下的系统只支持H.264解码,而本公开中的预设播放器则可以不被系统版本限制,同时支持H.264编码类型文件与H.265编码类型文件。
在本公开实施例中,多媒体文件播放装置还可以包括交互模块,其被配置为接收用户通过显示界面中的交互区域输入的针对第二多媒体文件的交互操作的交互信息,其中交互操作包括评论操作、评价操作、转发操作或分享操作中的一项或更多项;向服务器发送交互信息,以用于服务器根据交互信息更新第二多媒体文件对应的交互区域的待显示信息。
在实际应用中,终端设备应用程序的显示界面上每个多媒体文件对应一个显示单元,每个显示单元包括播放器显示区域和交互区域,播放器显示区域上设置有播放按钮,交互区域中显示交互信息,设置有多种交互操作对应的触发按钮,多种交互操作可以包括例如评论操作、评价操作、转发操作或分享操作中的至少一项,当检测到用户输入交互信息,则向服务器发送交互信息;服务器统计交互信息对应的数据,更新交互区域的待显示信息,将用户输入的交互信息显示在对应的多媒体文件的交互区域,例如,在对应多媒体文件的交互区域显示点赞操作、显示评论信息。
本公开实施例的多媒体文件播放装置可执行本公开的实施例所提供的多媒体文件播放方法,其实现原理相类似,本公开各实施例中的多媒体文件播放装置中的各模块所执行的动作是与本公开各实施例中的多媒体文件播放方法中的步骤相对应的,对于多媒体播放装置的各模块的详细功能描述具体可以参见前文中所示的对应的多媒体播放方法中的描述,此处不再赘述。
基于与本公开的实施例中的用户列表生成方法相同的原理,本公开的实施例中还提供了一种电子设备,该电子设备可以包括但不限于一个或多个处理器;存储器;一个或多个应用程序,其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个程序配置用于:执行如本公开实施例的多媒体文件播放方法对应的操作。
在本公开实施例的电子设备中,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一多媒体文件进行播放。本公开实现了通过终端设备的显示界面向用户展示适量的多媒体文件,向用户提供足够多的提示信息的同时,也充分利用了页面资源,并且通过预设播放播放多媒体文件,突破了系统播放器对播放文件的限制,提升了用户体验。
基于与本公开的实施例中的多媒体文件播放方法相同的原理,本公开的实施例中还提供了一种计算机可读存储介质,计算机可读存储介质用于存储计算机指令,当其在计算机上运行时,使得计算机可以执行如本公开实施例所示的多媒体文件播放方法。
在本公开实施例的计算机可读存储介质中,当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;接收服务器发送的至少两个多媒体文件以及至少两个多媒体文件分别对应的预览信息;在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;当检测到针对两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对第一 多媒体文件进行播放。本公开实现了通过终端设备的显示界面向用户展示适量的多媒体文件,向用户提供足够多的提示信息的同时,也充分利用了页面资源,并且通过预设播放播放多媒体文件,突破了系统播放器对播放文件的限制,提升了用户体验。
下面参考图3,其示出了适于用来实现本公开实施例的电子设备(例如图1中的终端设备或服务器)300的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图3所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储装置308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的各种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图3示出了具有各种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装, 或者从ROM302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取至少两个网际协议地址;向节点评价设备发送包括所述至少两个网际协议地址的节点评价请求,其中,所述节点评价设备从所述至少两个网际协议地址中,选取网际协议地址并返回;接收所述节点评价设备返回的网际协议地址;其中,所获取的网际协议地址指示内容分发网络中的边缘节点。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或 者多个程序被该电子设备执行时,使得该电子设备:接收包括至少两个网际协议地址的节点评价请求;从所述至少两个网际协议地址中,选取网际协议地址;返回选取出的网际协议地址;其中,接收到的网际协议地址指示内容分发网络中的边缘节点。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本 领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (10)

  1. 一种多媒体文件播放方法,应用于客户端应用,包括:
    当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
    接收所述服务器发送的至少两个多媒体文件以及所述至少两个多媒体文件分别对应的预览信息;
    在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
    当检测到针对所述两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对所述第一多媒体文件进行播放。
  2. 根据权利要求1所述的多媒体文件播放方法,其中,所述预定类型的触发操作,包括以下各项中的至少一项:
    针对所述客户端的开启触发操作;
    通过所述显示界面触发的向上滑动操作;
    通过所述显示界面触发的向下滑动操作。
  3. 根据权利要求1或2所述的多媒体文件播放方法,其中,所述在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息,包括:
    在显示界面上将满足预设条件的两个多媒体文件分别对应的预览信息以纵向排列的方式进行显示。
  4. 根据权利要求1或2所述的多媒体文件播放方法,进一步包括:
    获取当前网络环境信息和所述客户端应用所在终端设备的设备性能信息;
    根据所述网络环境信息和所述设备性能信息确定所述第一多媒体文件的视频源码率,并通过预设播放器根据所述视频源码率对所述第一多媒体文件进行播放。
  5. 根据权利要求1或2所述的多媒体文件播放方法,其中,所述多媒体文件为H.264编码类型或者H.265编码类型的多媒体文件。
  6. 根据权利要求1所述的多媒体文件播放方法,还包括:
    接收用户通过所述显示界面中的交互区域输入的针对第二多媒体文件的交互操作的交互信息,其中所述交互操作包括评论操作、评价操作、转发操作或分享操作中的至少一项操作;
    向所述服务器发送所述交互信息,以用于所述服务器根据所述交互信息更新所述第二多媒体文件对应的交互区域的待显示信息。
  7. 一种多媒体文件播放装置,应用于客户端应用,包括:
    发送模块,被配置为当检测到预定类型的触发操作时,向服务器发送多媒体文件获取请求;
    接收模块,被配置为接收所述服务器发送的至少两个多媒体文件以及所述至少两个多媒体文件分别对应的预览信息;
    显示模块,被配置为在显示界面显示满足预设条件的两个多媒体文件分别对应的预览信息;
    播放模块,被配置为当检测到针对所述两个多媒体文件中的第一多媒体文件的播放操作时,通过预设播放器对所述第一多媒体文件进行播放。
  8. 根据权利要求7所述的多媒体文件播放装置,其中,所述装置还包括:
    获取模块,被配置为获取当前网络环境信息和所述客户端应用所在终端设备的设备性能信息;
    其中,所述播放模块被进一步配置为:
    根据所述网络环境信息和所述设备性能信息确定所述第一多媒体文件的视频源码率,并通过预设播放器根据所述视频源码率对所述第一多媒体文件进行播放。
  9. 一种电子设备,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被配置为执行根据权利要求1~6任一项所述的多媒体文件播放方法。
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机指令,当其在计算机上运行时,使得计算机可以执行上述权利要求1至6中任一项所述的多媒体文件播放方法。
PCT/CN2020/071223 2019-05-21 2020-01-09 多媒体文件播放方法、装置、电子设备和存储介质 WO2020233142A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910424698.2A CN110149539A (zh) 2019-05-21 2019-05-21 多媒体文件播放方法、装置、电子设备和存储介质
CN201910424698.2 2019-05-21

Publications (1)

Publication Number Publication Date
WO2020233142A1 true WO2020233142A1 (zh) 2020-11-26

Family

ID=67592485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071223 WO2020233142A1 (zh) 2019-05-21 2020-01-09 多媒体文件播放方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN110149539A (zh)
WO (1) WO2020233142A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149539A (zh) * 2019-05-21 2019-08-20 北京字节跳动网络技术有限公司 多媒体文件播放方法、装置、电子设备和存储介质
CN111813969A (zh) * 2019-11-08 2020-10-23 厦门雅基软件有限公司 多媒体数据处理方法、装置、电子设备及计算机存储介质
CN110855539B (zh) * 2019-11-18 2021-11-23 北京小米移动软件有限公司 设备发现方法、装置及存储介质
CN110996115B (zh) * 2019-12-17 2022-02-11 广州酷狗计算机科技有限公司 直播视频播放方法、装置、设备、存储介质和程序产品
CN111262744B (zh) * 2020-01-20 2022-03-15 北京字节跳动网络技术有限公司 多媒体信息发送方法、备份服务器及介质
CN113254680B (zh) * 2020-02-10 2023-07-25 北京百度网讯科技有限公司 多媒体信息的封面图处理方法、客户端和电子设备
CN114630172A (zh) * 2020-12-11 2022-06-14 腾讯科技(深圳)有限公司 基于多媒体信息处理方法、装置、电子设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916681A (zh) * 2013-01-04 2014-07-09 云联(北京)信息技术有限公司 一种流媒体内容播放方法、装置及系统
US20160103589A1 (en) * 2014-03-28 2016-04-14 Spotify Ab System and method for playback of media content with audio touch menu functionality
CN105898610A (zh) * 2015-10-15 2016-08-24 乐视网信息技术(北京)股份有限公司 视频列表的自动播放方法和装置
CN106101766A (zh) * 2016-07-11 2016-11-09 乐视控股(北京)有限公司 一种视频广告的播放控制方法、装置及电子设备
CN106998477A (zh) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 直播视频的封面显示方法和装置
CN109218834A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种直播列表浏览交互方法及装置
CN109618177A (zh) * 2018-12-26 2019-04-12 北京微播视界科技有限公司 视频处理方法、装置、电子设备及计算机可读存储介质
CN110149539A (zh) * 2019-05-21 2019-08-20 北京字节跳动网络技术有限公司 多媒体文件播放方法、装置、电子设备和存储介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105992068A (zh) * 2015-05-19 2016-10-05 乐视移动智能信息技术(北京)有限公司 一种视频文件预览方法及装置
CN106412621B (zh) * 2016-09-28 2019-11-26 广州华多网络科技有限公司 网络直播间的视频显示方法及装置、控制方法与相关设备
CN106534939B (zh) * 2016-10-09 2019-07-05 北京金山安全软件有限公司 一种多视频预览方法、装置及电子设备
CN108259941A (zh) * 2018-03-01 2018-07-06 北京达佳互联信息技术有限公司 视频播放方法和装置
CN109462779B (zh) * 2018-11-30 2022-07-12 北京微播视界科技有限公司 视频预览信息的播放控制方法、应用客户端及电子设备
CN109246461A (zh) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 视频预加载的方法、应用客户端及电子设备
CN109688473B (zh) * 2018-12-07 2020-12-22 广州市百果园信息技术有限公司 多视频播放方法及存储介质、计算机设备
CN109640188B (zh) * 2018-12-28 2020-02-07 北京微播视界科技有限公司 视频预览方法、装置、电子设备及计算机可读存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916681A (zh) * 2013-01-04 2014-07-09 云联(北京)信息技术有限公司 一种流媒体内容播放方法、装置及系统
US20160103589A1 (en) * 2014-03-28 2016-04-14 Spotify Ab System and method for playback of media content with audio touch menu functionality
CN105898610A (zh) * 2015-10-15 2016-08-24 乐视网信息技术(北京)股份有限公司 视频列表的自动播放方法和装置
CN106101766A (zh) * 2016-07-11 2016-11-09 乐视控股(北京)有限公司 一种视频广告的播放控制方法、装置及电子设备
CN106998477A (zh) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 直播视频的封面显示方法和装置
CN109218834A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种直播列表浏览交互方法及装置
CN109618177A (zh) * 2018-12-26 2019-04-12 北京微播视界科技有限公司 视频处理方法、装置、电子设备及计算机可读存储介质
CN110149539A (zh) * 2019-05-21 2019-08-20 北京字节跳动网络技术有限公司 多媒体文件播放方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN110149539A (zh) 2019-08-20

Similar Documents

Publication Publication Date Title
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
CN109618177B (zh) 视频处理方法、装置、电子设备及计算机可读存储介质
WO2021004221A1 (zh) 特效的展示处理方法、装置及电子设备
WO2020082870A1 (zh) 即时视频显示方法、装置、终端设备及存储介质
WO2021218518A1 (zh) 视频的处理方法、装置、设备及介质
WO2021147462A1 (zh) 标签展示方法、装置、电子设备和计算机可读介质
WO2021160143A1 (zh) 用于显示视频的方法、装置、电子设备和介质
WO2020151599A1 (zh) 视频同步发布方法、装置、电子设备及可读存储介质
WO2022237908A1 (zh) 信息展示方法、装置、电子设备和存储介质
EP3107267A1 (en) Techniques to push content to a connected device
WO2023160416A1 (zh) 信息展示方法、装置、电子设备、存储介质和程序产品
WO2021114979A1 (zh) 视频页面显示方法、装置、电子设备和计算机可读介质
US11482257B2 (en) Image display method and apparatus
WO2022095840A1 (zh) 直播间创建方法、装置、电子设备及存储介质
WO2023088442A1 (zh) 一种直播预览方法、装置、设备、程序产品及介质
WO2023072296A1 (zh) 多媒体信息处理方法、装置、电子设备和存储介质
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
CN109168027B (zh) 即时视频展示方法、装置、终端设备及存储介质
CN109462779B (zh) 视频预览信息的播放控制方法、应用客户端及电子设备
WO2023005831A1 (zh) 一种资源播放方法、装置、电子设备和存储介质
WO2021218556A1 (zh) 信息展示方法、装置和电子设备
WO2023116479A1 (zh) 视频的发布方法、装置、电子设备、存储介质和程序产品
CN111818383B (zh) 视频数据的生成方法、系统、装置、电子设备及存储介质
CN112770159A (zh) 多屏互动系统、方法、装置、设备及存储介质
WO2023273615A1 (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20809966

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20809966

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20809966

Country of ref document: EP

Kind code of ref document: A1