WO2019140963A1 - 数据传输 - Google Patents

数据传输 Download PDF

Info

Publication number
WO2019140963A1
WO2019140963A1 PCT/CN2018/111093 CN2018111093W WO2019140963A1 WO 2019140963 A1 WO2019140963 A1 WO 2019140963A1 CN 2018111093 W CN2018111093 W CN 2018111093W WO 2019140963 A1 WO2019140963 A1 WO 2019140963A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
video file
target file
video
size
Prior art date
Application number
PCT/CN2018/111093
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 北京三快在线科技有限公司
Priority to KR1020207023720A priority Critical patent/KR102445154B1/ko
Priority to AU2018403361A priority patent/AU2018403361B2/en
Publication of WO2019140963A1 publication Critical patent/WO2019140963A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/401Support for services or applications wherein the services involve a main real-time session and one or more additional parallel real-time or time sensitive sessions, e.g. white board sharing or spawning of a subconference
    • H04L65/4015Support for services or applications wherein the services involve a main real-time session and one or more additional parallel real-time or time sensitive sessions, e.g. white board sharing or spawning of a subconference where at least one of the additional parallel sessions is real time or time sensitive, e.g. white board sharing, collaboration or spawning of a subconference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, medium, and electronic device.
  • the purpose of the embodiments of the present disclosure is to provide a data transmission method, apparatus, medium, and electronic device, which at least to some extent overcome the existing inability to transmit large files for the instant messaging transmission scheme, and the user experience is low.
  • the problem is to provide a data transmission method, apparatus, medium, and electronic device, which at least to some extent overcome the existing inability to transmit large files for the instant messaging transmission scheme, and the user experience is low.
  • a data transmission method which is applied to an instant messaging client, the data transmission method includes: acquiring a target file; and if the size of the target file does not exceed a predetermined threshold, Transmitting the target file in a transmission form; if the size of the target file exceeds the predetermined threshold, transmitting the target file by using a second transmission form.
  • the target file includes a video file
  • the transmitting the target file by using the first transmission form includes: performing format conversion processing on the video file, to obtain the instant
  • the communication software can directly play the multimedia file of the specified format; and transmit the multimedia file of the specified format.
  • the method before the transmitting the target file by using the first transmission format, the method further includes: determining whether the video file is capable of performing format conversion processing; And performing the format conversion process, the target file is transmitted by the first transmission form; if it is determined that the video file cannot perform the format conversion process, the target file is transmitted by the second transmission form.
  • the method before the transmitting the multimedia file of the specified format, the method further includes: performing compression processing on the multimedia file of the specified format.
  • the data transmission method further includes: generating a preview image corresponding to the multimedia file of the specified format, according to the foregoing solution; after the multimedia file transmission of the specified format is completed, displaying the Preview the map and display the play logo on the preview.
  • the target file includes a video file
  • the transmitting the target file by using the second transmission form includes: directly transmitting the video file by transmitting a file.
  • the data transmission method further includes: displaying the file identifier and the information of the video file after the video file transmission is completed.
  • the target file includes a video file
  • determining whether the size of the target file exceeds the predetermined threshold comprises: determining whether a play duration of the video file exceeds a predetermined duration, And/or determining whether the data amount of the video file exceeds a predetermined data amount; if the playing time of the video file exceeds the predetermined length of time, and/or if the data amount of the video file exceeds the predetermined data amount, then Determining that the size of the target file exceeds the predetermined threshold; if the playing duration of the video file does not exceed the predetermined duration, and/or if the data amount of the video file does not exceed the predetermined amount of data, determining The size of the target file does not exceed the predetermined threshold.
  • a data transmission apparatus which is applied to a client installed with instant messaging software, the data transmission apparatus comprising: an obtaining unit, configured to acquire a target file; and a first transmission unit, And transmitting, by the first transmission form, the target file when the size of the target file does not exceed a predetermined threshold; and the second transmission unit is configured to pass the second transmission when the size of the target file exceeds the predetermined threshold
  • the target file is transmitted in the form.
  • a computer readable medium having stored thereon a computer program, the program being executed by a processor to implement the data transmission method as described in the first aspect of the above embodiments.
  • an electronic device comprising: one or more processors; storage means for storing one or more programs when the one or more programs are When executed by the plurality of processors, the one or more processors are caused to implement the data transmission method as described in the first aspect of the above embodiments.
  • the target file in the instant messaging, by acquiring the target file, and when the size of the target file does not exceed a predetermined threshold, the target file is transmitted through the first transmission form, and in the target file.
  • the target file is transmitted through the second transmission format, so that the file of any size can be transmitted in the instant messaging client, which solves the problem that the instant file cannot be transmitted due to the large file.
  • the technical solution of the embodiment of the present disclosure can select different transmission formats based on the size of the target file. Therefore, for a larger file, a transmission format with a shorter processing time before transmission can be selected, thereby reducing the processing load of the terminal and improving The performance of instant messaging software, and can also improve the user experience.
  • the target file is a video file and the target file is transmitted by using the first transmission form
  • by performing format conversion processing on the video file it can be obtained in the instant messaging software.
  • the multimedia file of the specified format is directly played, so that when the video file is small, the format conversion processing of the video file can be performed, thereby ensuring that the transmitted multimedia file can be directly played in the instant messaging software, so that the processing efficiency can be ensured under the premise of ensuring processing efficiency.
  • the video file in a case where the target file is a video file and the target file is transmitted through the second transmission form, the video file is directly transmitted in the form of a transmission file, so that the video file is in the video file.
  • the video file can be directly sent without processing the video file, thereby reducing the waiting time of the user, reducing the processing load of the terminal, improving the performance of the software, and transmitting the video file of any size.
  • FIG. 1 schematically shows a flow chart of a data transmission method according to an embodiment of the present disclosure
  • FIG. 2 schematically shows a flowchart of a data transmission method according to another embodiment of the present disclosure
  • FIG. 3 shows a schematic diagram of a display interface of a video file after transmission, in accordance with one embodiment of the present disclosure
  • FIG. 4 illustrates a schematic diagram of a display interface when a video file is selected, in accordance with one embodiment of the present disclosure
  • FIG. 5 illustrates a schematic diagram of a display interface of a video file after transmission according to another embodiment of the present disclosure
  • FIG. 6 schematically shows a block diagram of a data transmission device according to an embodiment of the present disclosure
  • FIG. 7 shows a block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
  • FIG. 1 schematically shows a flow chart of a data transmission method applied to instant messaging, such as to a client performing instant messaging, in accordance with an embodiment of the present disclosure.
  • a data transmission method includes the following steps:
  • Step S110 acquiring an object file.
  • an object file that needs to be transmitted using instant messaging software can be obtained.
  • the instant messaging software is, for example, software for realizing online chat, communication, and the like through instant messaging technology.
  • the target files transmitted by the instant messaging software may be video files, audio files, pictures, documents, and the like.
  • Step S120 if the size of the target file does not exceed a predetermined threshold, transmitting the target file by using the first transmission form;
  • Step S130 If the size of the target file exceeds the predetermined threshold, the target file is transmitted by using the second transmission form.
  • the first transmission form is for transmitting a smaller target file
  • the second transmission form is for transmitting a larger target file.
  • the cooperation between the first transmission form and the second transmission form enables the transmission of files of any size when the client performs instant communication, thereby solving the problem that the file cannot be transmitted due to the large file size.
  • the technical solution of the embodiment of the present disclosure can select different transmission formats based on the size of the target file, the transmission format that is processed before the transmission can be selected for the larger file, thereby reducing the processing load of the terminal and improving the instant messaging.
  • the performance of the software and can also improve the user experience.
  • whether the size of the video file exceeds a predetermined threshold may be determined by the following three embodiments:
  • Embodiment 1 for judging whether the size of the video file exceeds a predetermined threshold:
  • whether the size of the video file exceeds a predetermined threshold may be determined according to the playing duration of the video file. For example, determining whether the playing duration of the video file exceeds a predetermined duration; if the playing duration of the video file exceeds the predetermined duration, determining that the size of the video file exceeds the predetermined threshold; if the playing duration of the video file does not exceed the predetermined duration The duration determines that the size of the video file does not exceed the predetermined threshold.
  • Embodiment 2 for judging whether the size of the video file exceeds a predetermined threshold:
  • whether the size of the video file exceeds a predetermined threshold may be determined according to the amount of data of the video file. For example, determining whether the data amount of the video file exceeds a predetermined data amount; if the data amount of the video file exceeds the predetermined data amount, determining that the size of the video file exceeds the predetermined threshold; if the data amount of the video file does not exceed the predetermined amount The amount of data determines that the size of the video file does not exceed the predetermined threshold.
  • Embodiment 3 for judging whether the size of the video file exceeds a predetermined threshold:
  • whether the size of the video file exceeds a predetermined threshold may be determined according to the data amount of the video file and the playing duration. For example, determining whether the play duration of the video file exceeds a predetermined duration, and determining whether the data amount of the video file exceeds a predetermined data amount; if the play duration of the video file exceeds the predetermined duration, and the data amount of the video file exceeds the predetermined data amount Determining that the size of the video file exceeds the predetermined threshold; if the playing duration of the video file does not exceed the predetermined duration, or the data amount of the video file does not exceed the predetermined amount of data, determining that the size of the video file does not exceed the The threshold is predetermined.
  • the above embodiments 1 to 3 are only illustrative, and the method of determining whether the size of the video file exceeds a predetermined threshold is not limited to the above three methods.
  • transmitting the video file by using the first transmission form includes: performing format conversion processing on the video file to obtain a multimedia file of a specified format that can be directly played in the instant messaging software; and transmitting the multimedia file A multimedia file of the specified format.
  • a multimedia file of a specified format that can be directly played in the instant messaging software is obtained, so that when the video file is small, the video file can be format converted, thereby ensuring
  • the instant messaging software can directly play the transmitted multimedia files, thereby improving the user experience under the premise of ensuring processing efficiency.
  • the multimedia file of the specified format may be a video file of a specified format (such as a video file of the MP4 format), or may be a dynamic picture. It should be noted that if the video file to be transmitted is itself in the specified format, the format conversion processing may not be performed.
  • the data transmission method before the transmitting the multimedia file of the specified format, further includes: performing compression processing on the multimedia file of the specified format.
  • the data transmission method when the video file is transmitted by the first transmission form, the data transmission method further includes: generating a preview image corresponding to the multimedia file of the specified format; after the multimedia file transmission of the specified format is completed Displaying the preview image in an interface of the instant messaging software, and displaying a play identifier on the preview image.
  • the preview image is displayed in the interface of the instant messaging software, and the play identifier is displayed on the preview image, so that the user can intuitively display the preview image and the play logo according to the display. It is understood that the multimedia file can be played directly for further operation by the user.
  • the size of the video file does not exceed the predetermined threshold, it may be determined whether the video file to be transmitted can be formatted, and if the format conversion process can be performed, The video file is transmitted in a transmission form; if the format conversion processing cannot be performed, the video file can be transmitted through the second transmission form.
  • the technical solution of this embodiment can implement transmission of video files of any format.
  • transmitting the video file by the second transmission form includes directly transmitting the video file in the form of a transmission file.
  • the video file in the form of a transmission file
  • the video file can be directly sent without processing the video file, thereby reducing the waiting time of the user and reducing the time.
  • the processing load of the terminal, the performance of the software are improved, and the video file of any size can also be transmitted.
  • the data transmission method when the video file is transmitted by the second transmission form, the data transmission method further includes: displaying information of the video file after the video file transmission is completed.
  • This information may include a file identification for identifying the video file, a file size, and the like.
  • information such as file identification and video file size can be displayed in the interface of the instant messaging software.
  • the user can intuitively understand the video file according to the information of the displayed video file, so as to further the user. operating.
  • the data transmission solution of the embodiment of the present disclosure may be applied to an instant messaging APP (Application) on a mobile phone.
  • the specific implementation process is as shown in FIG. 2, and includes the following steps:
  • Step S210 Receive a video to be sent selected by the user.
  • step S220 it is determined whether the video duration is greater than 5 min (the specific value is merely an example here), and if so, step S250 is performed; otherwise, step S230 is performed.
  • step S250 or perform step S230 it may also be determined whether to perform step S250 or perform step S230 by determining whether the data amount of the video is greater than a predetermined amount of data. Specifically, when the data amount of the video is greater than the predetermined data amount (for example, 10 MB), step S250 is performed; otherwise, step S230 is performed.
  • a predetermined amount of data for example, 10 MB
  • step S230 it is determined whether the video format supports conversion, and if so, step S240 is performed; otherwise, step S250 is performed.
  • step S250 is performed to ensure that all formats of video can be transmitted.
  • step S240 the video is processed and transmitted.
  • processing the video includes converting the video format and compressing the converted video.
  • step S250 the processing is directly performed in the form of a file without processing.
  • processing methods for sending video in the embodiments of the present disclosure are mainly as follows:
  • the video is formatted and compressed, and the video is transmitted. As shown in 302 in FIG. 3, after the video is transmitted in this manner, the video is displayed in the form of [Preview] + [Play Button] in the interface of the instant messaging software.
  • a pop-up prompt informs the user that the file will be sent as a file.
  • the prompt box 402 in FIG. 4 when the user selects “Continue” in the prompt box, the video is not processed, and the video is directly sent as a file.
  • the video is displayed in the interface of the instant messaging software in the form of [file icon] + [file name] + [file size].
  • the same prompt can be displayed to inform the user that the file will be sent as a file. If the user does not process the video after confirming the transmission, the video is directly sent as a file. As shown in 502 of FIG. 5, after the video is transmitted in this manner, the video is displayed in the interface of the instant messaging software in the form of [file icon] + [file name] + [file size].
  • the image When the image needs to be sent by instant messaging software, if the image has a large amount of data and/or a high resolution, it can be sent in the form of a file.
  • the file icon After the transmission, the file icon can be used in the interface of the instant messaging software.
  • the file name] + [file size] is displayed in the form of a file; if the image has a small amount of data and/or a low resolution, the image can be format converted (converted to a format that can be directly displayed in the instant messaging software) And compressing (in other embodiments of the present disclosure, compression processing may also not be performed), and then transmitting, after the transmission, the image may be displayed in the form of a preview image in the interface of the instant messaging software.
  • the instant messaging software When it is necessary to use the instant messaging software to send audio, if the amount of audio data is large and/or the playing time is long, it can be directly sent through the file format. After sending, you can use the [file icon] in the interface of the instant messaging software. [File name] + [file size] display the audio; if the audio data volume is small and / or the playback time is short, the audio can be format converted (converted to the format that the instant messaging software can play directly) And compressing (in other embodiments of the present disclosure, the compression processing may not be performed), and then transmitting, after the transmission, the identifier that can be directly played can be displayed in the interface of the instant messaging software.
  • the document When a document needs to be sent by instant messaging software, if the data volume of the document is large, the document can be compressed and then sent; if the data volume of the document is small, it can be directly sent.
  • the device embodiments of the present disclosure are described below and can be used to perform the above described data transmission methods of the present disclosure.
  • FIG. 6 schematically illustrates a block diagram of a data transmission device applied to a client installed with instant messaging software, in accordance with an embodiment of the present disclosure.
  • a data transmission device 600 includes an acquisition unit 602, a first transmission unit 604, and a second transmission unit 606.
  • the obtaining unit 602 is configured to acquire the target file.
  • the first transmitting unit 604 is configured to: when the size of the target file does not exceed a predetermined threshold, transmit the target file by using a first transmission form; When the size of the target file exceeds the predetermined threshold, the target file is transmitted by the second transmission form.
  • the target file includes a video file
  • the first transmission unit 604 is configured to: perform format conversion processing on the video file, to obtain that the instant messaging software can directly play a multimedia file of a specified format; a multimedia file of the specified format is transmitted.
  • the data transmission apparatus 600 further includes: a first determining unit, configured to determine, when the size of the target file does not exceed the predetermined threshold, whether the video file is based on the foregoing solution
  • the first transmission unit 604 is configured to: when the first determining unit determines that the video file is capable of performing format conversion processing, transmitting the target file by using the first transmission format
  • the second transmission unit 606 is configured to transmit the target file by using the second transmission form when the first determining unit determines that the video file cannot perform format conversion processing.
  • the first transmission unit 604 is further configured to perform compression processing on the multimedia file of the specified format before transmitting the multimedia file in the specified format.
  • the data transmission apparatus 600 further includes: a generating unit, configured to generate a preview image corresponding to the multimedia file in the specified format; and a first display unit, configured to After the transfer of the multimedia file in the specified format is completed, the preview image is displayed, and the play logo is displayed on the preview image.
  • the object file includes a video file
  • the second transmission unit 606 is configured to directly transfer the video file in the form of a transmission file.
  • the data transmission device 600 further includes: a second display unit, configured to display the video file after the second transmission unit 606 completes the transmission Video file information.
  • the target file includes a video file
  • the data transmission device 600 further includes: a second determining unit, configured to determine whether a playing duration of the video file exceeds a predetermined duration, And/or determining whether the data amount of the video file exceeds a predetermined data amount; if the playing time of the video file exceeds the predetermined length of time, and/or if the data amount of the video file exceeds the predetermined data amount, then Determining that the size of the target file exceeds the predetermined threshold; if the playing duration of the video file does not exceed the predetermined duration, and/or if the data amount of the video file does not exceed the predetermined amount of data, determining The size of the target file does not exceed the predetermined threshold.
  • FIG. 7 a block diagram of a computer system 700 suitable for use in implementing an electronic device of an embodiment of the present disclosure is shown.
  • the computer system 700 of the electronic device illustrated in FIG. 7 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • computer system 700 includes a central processing unit (CPU) 701 that can be loaded into a program in random access memory (RAM) 703 according to a program stored in read only memory (ROM) 702 or from storage portion 708. And perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read only memory
  • RAM 703 various programs and data required for system operation are also stored.
  • the CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704.
  • An input/output (I/O) interface 705 is also coupled to bus 704.
  • the following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 708 including a hard disk or the like And a communication portion 709 including a network interface card such as a LAN card, a modem, or the like.
  • the communication section 709 performs communication processing via a network such as the Internet.
  • Driver 710 is also connected to I/O interface 705 as needed.
  • a removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage portion 708 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via communication portion 709, and/or installed from removable media 711.
  • the central processing unit (CPU) 701 the above-described functions defined in the system of the present application are executed.
  • the computer readable medium shown 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 can be, for example, but not limited to, an electronic, 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 having 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 foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • each block of the flowchart or block diagrams can represent a module, a program segment, or a portion of code that includes one or more Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams or flowcharts, and combinations of blocks in the block diagrams or flowcharts can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be used A combination of dedicated hardware and computer instructions is implemented.
  • the units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in the processor.
  • the names of these units do not in any way constitute a limitation on the unit itself.
  • the present application further provides a computer readable medium, which may be included in an electronic device described in the above embodiments, or may be separately present without being assembled into the electronic device.
  • the computer readable medium carries one or more programs that, when executed by one of the electronic devices, cause the electronic device to implement the data transmission method as described in the above embodiments.
  • the electronic device may be implemented as shown in FIG. 1 : step S110, acquiring an object file; and step S120, if the size of the target file does not exceed a predetermined threshold, transmitting the target file by using the first transmission form Step S130: If the size of the target file exceeds the predetermined threshold, the target file is transmitted by using the second transmission form.
  • the electronic device can implement the various steps as shown in FIG. 2.
  • the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
  • a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
  • a number of instructions are included to cause a computing device (which may be a personal computer, server, touch terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.

Abstract

本公开实施例提供了一种数据传输方法、装置、介质及电子设备,该数据传输方法应用于安装有即时通讯软件的客户端。根据该方法,获取目标文件;若所述目标文件的大小未超过预定阈值,则通过第一传输形式传输所述目标文件;若所述目标文件的大小超过所述预定阈值,则通过第二传输形式传输所述目标文件。

Description

数据传输
相关申请的交叉引用
本专利申请要求于2018年1月18日提交的、申请号为201810048591.8、发明名称为“数据传输方法、装置、介质及电子设备”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。
技术领域
本公开涉及通信技术领域,具体而言,涉及一种数据传输方法、装置、介质及电子设备。
背景技术
随着即时通讯软件的普及,用户使用即时通讯软件传输文件的频率越来越高,但是用户在利用即时通讯软件传输文件时会遇到各种各样的问题,比如视频过大导致无法发送、发送前对较大视频的处理时间较长等,这些问题的存在不仅影响了用户的体验,而且加重了终端的处理负担,降低了软件的性能。
发明内容
本公开实施例的目的在于提供一种数据传输方法、装置、介质及电子设备,进而至少在一定程度上克服现有的针对即时通讯时传输方案存在的无法传输较大文件,以及用户体验较低的问题。
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。
根据本公开实施例的第一方面,提供了一种数据传输方法,应用于即时通讯客户端,该数据传输方法包括:获取目标文件;若所述目标文件的大小未超过预定阈值,则通过第一传输形式传输所述目标文件;若所述目标文件的大小超过所述预定阈值,则通过第二传输形式传输所述目标文件。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,所述通过第一传输形式传输所述目标文件,包括:对所述视频文件进行格式转换处理,得到所述 即时通讯软件能够直接播放的指定格式的多媒体文件;传输所述指定格式的多媒体文件。
在本公开的一些实施例中,基于前述方案,在通过所述第一传输形式传输所述目标文件之前,还包括:判断所述视频文件是否能够进行格式转换处理;若判定所述视频文件能够进行格式转换处理,则通过所述第一传输形式传输所述目标文件;若判定所述视频文件不能进行格式转换处理,则通过所述第二传输形式传输所述目标文件。
在本公开的一些实施例中,基于前述方案,在传输所述指定格式的多媒体文件之前,还包括:对所述指定格式的多媒体文件进行压缩处理。
在本公开的一些实施例中,基于前述方案,所述的数据传输方法还包括:生成所述指定格式的多媒体文件对应的预览图;在所述指定格式的多媒体文件传输完成之后,显示所述预览图,并在所述预览图上显示播放标识。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,所述通过第二传输形式传输所述目标文件,包括:通过传输文件的形式直接传输所述视频文件。
在本公开的一些实施例中,基于前述方案,所述的数据传输方法还包括:在所述视频文件传输完成之后,显示文件标识和所述视频文件的信息。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,判断所述目标文件的大小是否超过所述预定阈值,包括:判断所述视频文件的播放时长是否超过预定时长,和/或判断所述视频文件的数据量是否超过预定数据量;若所述视频文件的播放时长超过所述预定时长,和/或若所述视频文件的数据量超过所述预定数据量,则确定所述目标文件的大小超过所述预定阈值;若所述视频文件的播放时长未超过所述预定时长,和/或若所述视频文件的数据量未超过所述预定数据量,则确定所述目标文件的大小未超过所述预定阈值。
根据本公开实施例的第二方面,提供了一种数据传输装置,应用于安装有即时通讯软件的客户端,该数据传输装置包括:获取单元,用于获取目标文件;第一传输单元,用于在所述目标文件的大小未超过预定阈值时,通过第一传输形式传输所述目标文件;第二传输单元,用于在所述目标文件的大小超过所述预定阈值时,通过第二传输形式传输所述目标文件。
根据本公开实施例的第三方面,提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述实施例中第一方面所述的数据传输方法。
根据本公开实施例的第四方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中第一方面所述的数据传输方法。
本公开实施例提供的技术方案可以包括以下有益效果:
在本公开的一些实施例所提供的技术方案中,在即时通讯中,通过获取目标文件,并在目标文件的大小未超过预定阈值时,通过第一传输形式传输目标文件,而在目标文件的大小超过预定阈值时,通过第二传输形式传输目标文件,使得在即时通讯客户端中能够传输任意大小的文件,解决了即时通讯中由于文件较大导致无法传输的问题。同时,由于本公开实施例的技术方案可以基于目标文件的大小选择不同的传输形式,因此对于较大的文件可以选择在发送前处理时间较短的传输形式,进而能够减轻终端的处理负担,提高即时通讯软件的性能,并且也能够提高用户的使用体验。
在本公开的一些实施例所提供的技术方案中,在目标文件为视频文件、且通过第一传输形式传输目标文件的情况下,通过对视频文件进行格式转换处理,得到能够在即时通讯软件中直接播放的指定格式的多媒体文件,使得在视频文件较小时,能够对视频文件进行格式转换处理,进而保证在即时通讯软件中能够直接播放传输的多媒体文件,从而可以在保证处理效率的前提下,提高用户的使用体验。
在本公开的一些实施例所提供的技术方案中,通过在判定视频文件不能进行格式转换处理时,通过第二传输形式传输目标文件,使得能够实现对任意格式的视频文件进行传输。
在本公开的一些实施例所提供的技术方案中,在目标文件为视频文件、且通过第二传输形式传输目标文件的情况下,通过传输文件的形式直接传输所述视频文件,使得在视频文件较大时,能够不对视频文件进行处理而直接发送视频文件,进而既可以减少用户等待的时间,又能够降低终端的处理负担、提高软件的性能,同时也能够实现对任意大小的视频文件进行发送。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:
图1示意性示出了根据本公开的一个实施例的数据传输方法的流程图;
图2示意性示出了根据本公开的另一个实施例的数据传输方法的流程图;
图3示出了根据本公开的一个实施例的视频文件在传输之后的显示界面示意图;
图4示出了根据本公开的一个实施例的在选择视频文件时的显示界面示意图;
图5示出了根据本公开的另一个实施例的视频文件在传输之后的显示界面示意图;
图6示意性示出了根据本公开的实施例的数据传输装置的框图;
图7示出了适于用来实现本公开实施例的电子设备的计算机系统的结构示意图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以 合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。
图1示意性示出了根据本公开的一个实施例的数据传输方法的流程图,该数据传输方法应用于即时通讯中,比如可以应用到进行即时通讯的客户端中。
参照图1所示,根据本公开的一个实施例的数据传输方法,包括如下步骤:
步骤S110,获取目标文件。
在本公开的一个实施例中,可以获取需要利用即时通讯软件传输的目标文件。其中,即时通讯软件例如是通过即时通讯技术来实现在线聊天、交流的软件等等。利用即时通讯软件传输的目标文件可以是视频文件、音频文件、图片、文档等。
步骤S120,若所述目标文件的大小未超过预定阈值,则通过第一传输形式传输所述目标文件;
步骤S130,若所述目标文件的大小超过所述预定阈值,则通过第二传输形式传输所述目标文件。
在本公开的实施例中,第一传输形式用于传输较小的目标文件,第二传输形式用于传输较大的目标文件。第一传输形式和第二传输形式的配合能够实现在客户端进行即时通讯时传输任意大小的文件,解决了由于文件较大导致无法传输的问题。同时,由于本公开实施例的技术方案可以基于目标文件的大小选择不同的传输形式,因此对于较大的文件可以选择在发送前进行处理的传输形式,进而能够减轻终端的处理负担,提高即时通讯软件的性能,并且也能够提高用户的使用体验。
以下以利用即时通讯软件传输视频文件为例,对本公开实施例的技术方案的实现细节进行详细阐述:
在本公开的实施例中,对于视频文件而言,可以通过如下三个实施例判断视频文件的大小是否超过预定阈值:
判断视频文件的大小是否超过预定阈值的实施例1:
在本公开的一个实施例中,可以根据视频文件的播放时长来确定视频文件的大小是否超过预定阈值。例如,判断视频文件的播放时长是否超过预定时长;若视频文件的播放时长超过所述预定时长,则确定视频文件的大小超过所述预定阈值;若所述视频文件的播放时长未超过所述预定时长,则确定所述视频文件的大小未超过所述预定阈值。
判断视频文件的大小是否超过预定阈值的实施例2:
在本公开的一个实施例中,可以根据视频文件的数据量来确定视频文件的大小是否超过预定阈值。例如,判断视频文件的数据量是否超过预定数据量;若视频文件的数据量超过所述预定数据量,则确定视频文件的大小超过所述预定阈值;若视频文件的数据量未超过所述预定数据量,则确定视频文件的大小未超过所述预定阈值。
判断视频文件的大小是否超过预定阈值的实施例3:
在本公开的一个实施例中,可以根据视频文件的数据量和播放时长来确定视频文件的大小是否超过预定阈值。例如,判断视频文件的播放时长是否超过预定时长,并判断视频文件的数据量是否超过预定数据量;若视频文件的播放时长超过所述预定时长,且视频文件的数据量超过所述预定数据量,则确定视频文件的大小超过所述预定阈值;若视频文件的播放时长未超过所述预定时长,或者视频文件的数据量未超过所述预定数据量,则确定视频文件的大小未超过所述预定阈值。
以上实施例1至3仅起说明作用,确定视频文件的大小是否超过预定阈值的方法并不限于以上3种方法。
以下对通过第一传输形式和通过第二传输形式分别传输视频文件的具体细节进行详细阐述:
通过第一传输形式传输视频文件:
在本公开的一个实施例中,通过第一传输形式传输视频文件包括:对所述视频文件进行格式转换处理,得到能够在所述即时通讯软件中直接播放的指定格式的多媒体文件;传输所述指定格式的多媒体文件。
在该实施例中,通过对视频文件进行格式转换处理,得到能够在即时通讯软件中直接播放的指定格式的多媒体文件,使得在视频文件较小时,能够对视频文件进行格式转换处理,进而保证在即时通讯软件中能够直接播放传输的多媒体文件,从而可以在保证处理效率的前提下,提高用户的使用体验。
在本公开的一个实施例中,指定格式的多媒体文件可以是指定格式的视频文件(如MP4格式的视频文件),也可以是动态图片。需要说明的是,如果待传输的视频文件本身就是上述的指定格式,那么也可以不用进行格式转换处理。
在本公开的一个实施例中,在传输所述指定格式的多媒体文件之前,该数据传输方法还包括:对所述指定格式的多媒体文件进行压缩处理。
在该实施例中,通过在传输指定格式的多媒体文件之前,对该指定格式的多媒体文件进行压缩处理,使得能够减少指定格式的多媒体文件在传输时的数据量,进而能够提高传输效率。
在本公开的一个实施例中,当通过第一传输形式传输视频文件时,该数据传输方法还包括:生成上述指定格式的多媒体文件对应的预览图;在所述指定格式的多媒体文件传输完成之后,在所述即时通讯软件的界面中显示所述预览图,并在所述预览图上显示播放标识。
在该实施例中,通过在指定格式的多媒体文件传输完成之后,在即时通讯软件的界面中显示预览图,并在预览图上显示播放标识,使得用户能够根据显示的预览图及播放标识非常直观地了解到该多媒体文件可以直接播放,以便于用户的进一步操作。
此外,在本公开的一个实施例中,如果视频文件的大小未超过上述的预定阈值,则可以先判断待传输的视频文件是否能够进行格式转换处理,如果能进行格式转换处理,那么可以通过第一传输形式传输该视频文件;如果不能进行格式转换处理,那么可以通过第二传输形式传输该视频文件。
该实施例的技术方案能够实现对任意格式的视频文件进行传输。
通过第二传输形式传输视频文件:
在本公开的一个实施例中,通过第二传输形式传输视频文件包括:通过传输文件的形式直接传输所述视频文件。
在该实施例中,通过以传输文件的形式直接传输所述视频文件,使得在视频文件较大时,可以不对视频文件进行处理而直接发送视频文件,既可以减少用户等待的时间,又能够降低终端的处理负担、提高软件的性能,同时也能够实现对任意大小的视频文件进行发送。
在本公开的一个实施例中,当通过第二传输形式传输视频文件时,该数据传输方法还包括:在所述视频文件传输完成之后,显示所述视频文件的信息。该信息可以包括用于标识该视频文件的文件标识以及文件大小等等。比如可以在即时通讯软件的界面中显示文件标识和视频文件大小等信息。
在该实施例中,通过在视频文件传输完成之后,在即时通讯软件的界面中显示视频文件的信息,使得用户能够根据显示的视频文件的信息直观地了解到该视频文件,以便于用户的进一步操作。
以下结合图2至图5对本公开实施例的数据传输方案的一个具体应用场景进行详细阐述:
在本公开的一个具体应用场景中,可以将本公开实施例的数据传输方案应用在手机上的即时通讯APP(Application,应用程序)上,具体的实现流程如图2所示,包括如下步骤:
步骤S210,接收用户选择的待发送视频。
步骤S220,判断视频时长是否大于5min(具体数值在此仅为示例),若是,则执行步骤S250;否则,执行步骤S230。
在本公开的实施例中,还可以通过判断视频的数据量是否大于预定数据量来确定是执行步骤S250还是执行步骤S230。具体地,在视频的数据量大于预定数据量(比如10MB)时,执行步骤S250;否则,执行步骤S230。
步骤S230,判断视频格式是否支持转换,若是,则执行步骤S240;否则执行步骤S250。
在本公开的一个实施例中,如果视频时长大小并未超过5min,但是视频格式不支持转换,那么执行步骤S250,以确保能够对所有格式的视频进行发送。
步骤S240,处理视频,并发送。
在本公开的一个实施例中,对视频进行处理包括对视频格式进行转换处理,以及对转换后的视频进行压缩处理。
步骤S250,不进行处理,直接以文件形式进行发送。
综上,本公开实施例中对视频发送时的处理方式主要有如下几种:
1、当视频大小在预定范围内且视频格式支持转换时,对视频进行格式转换及压缩处理,并发送视频。如图3中的302所示,按照这种方式发送视频后,在即时通讯软件的界面中以【预览图】+【播放按钮】的形式展示该视频。
2、当用户选择的视频的大小超过预定范围时,弹出提示告知用户将以文件形式发送。具体如图4中的提示框402所示,当用户在该提示框中选择“继续”时,不对视频进行处理,直接以文件形式发送视频。如图5中的502所示,按照这种方式发送视频后,在即时通讯软件的界面中以【文件图标】+【文件名】+【文件大小】的形式展示该视频。
3、当用户选择的视频的大小在预定范围内,但视频格式不支持转换时,同样可以弹 出提示告知用户将以文件形式发送。若用户确认发送后,不对视频进行处理,直接以文件形式发送视频。如图5中的502所示,按照这种方式发送视频后,在即时通讯软件的界面中以【文件图标】+【文件名】+【文件大小】的形式展示该视频。
需要说明的是,上述实施例中以发送视频为例对本公开实施例的技术方案进行了详细阐述,本公开上述实施例的技术方案同样适用于对其它类型的文件进行传输,比如图片、文档、音频等,以下简要进行说明:
当需要利用即时通讯软件发送图片时,若图片的数据量较大和/或分辨率较高,则可以通过文件的形式进行发送,发送后可以在即时通讯软件的界面中以【文件图标】+【文件名】+【文件大小】的形式展示该图片;若图片的数据量较小和/或分辨率较低,则可以对图片进行格式转换处理(转换为能够在即时通讯软件中直接显示的格式),并进行压缩(在本公开的其它实施例中,也可以不进行压缩处理),然后再进行发送,发送后可以在即时通讯软件的界面中以预览图的形式展示该图片。
当需要利用即时通讯软件发送音频时,若音频的数据量较大和/或播放时长较长,则可以直接通过文件的形式进行发送,发送后可以在即时通讯软件的界面中以【文件图标】+【文件名】+【文件大小】的形式展示该音频;若音频的数据量较小和/或播放时长较短,则可以对音频进行格式转换处理(转换为即时通讯软件能够直接播放的格式),并进行压缩(在本公开的其它实施例中,也可以不进行压缩处理),然后再进行发送,发送后可以在即时通讯软件的界面中显示能够直接播放的标识。
当需要利用即时通讯软件发送文档时,若文档的数据量较大,则可以对文档进行压缩,然后再进行发送;若文档的数据量较小,则可以直接进行发送。
以下介绍本公开的装置实施例,可以用于执行本公开上述的数据传输方法。
图6示意性示出了根据本公开的实施例的数据传输装置的框图,该数据传输装置应用于安装有即时通讯软件的客户端。
参照图6所示,根据本公开的实施例的数据传输装置600,包括:获取单元602、第一传输单元604和第二传输单元606。
其中,获取单元602用于获取目标文件;第一传输单元604用于在所述目标文件的大小未超过预定阈值时,通过第一传输形式传输所述目标文件;第二传输单元606用于在所述目标文件的大小超过所述预定阈值时,通过第二传输形式传输所述目标文件。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,所述第一 传输单元604配置为:对所述视频文件进行格式转换处理,得到所述即时通讯软件能够直接播放的指定格式的多媒体文件;传输所述指定格式的多媒体文件。
在本公开的一些实施例中,基于前述方案,所述数据传输装置600还包括:第一判断单元,用于在所述目标文件的大小未超过所述预定阈值时,判断所述视频文件是否能够进行格式转换处理;所述第一传输单元604用于在所述第一判断单元判定所述视频文件能够进行格式转换处理时,通过所述第一传输形式传输所述目标文件;所述第二传输单元606用于在所述第一判断单元判定所述视频文件不能进行格式转换处理时,通过所述第二传输形式传输所述目标文件。
在本公开的一些实施例中,基于前述方案,所述第一传输单元604还用于,在传输所述指定格式的多媒体文件之前,对所述指定格式的多媒体文件进行压缩处理。
在本公开的一些实施例中,基于前述方案,所述的数据传输装置600还包括:生成单元,用于生成所述指定格式的多媒体文件对应的预览图;第一显示单元,用于在所述指定格式的多媒体文件传输完成之后,显示所述预览图,并在所述预览图上显示播放标识。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,所述第二传输单元606配置为:通过传输文件的形式直接传输所述视频文件。
在本公开的一些实施例中,基于前述方案,所述的数据传输装置600还包括:第二显示单元,用于在所述第二传输单元606对所述视频文件传输完成之后,显示所述视频文件的信息。
在本公开的一些实施例中,基于前述方案,所述目标文件包括视频文件,所述数据传输装置600还包括:第二判断单元,用于判断所述视频文件的播放时长是否超过预定时长,和/或判断所述视频文件的数据量是否超过预定数据量;若所述视频文件的播放时长超过所述预定时长,和/或若所述视频文件的数据量超过所述预定数据量,则确定所述目标文件的大小超过所述预定阈值;若所述视频文件的播放时长未超过所述预定时长,和/或若所述视频文件的数据量未超过所述预定数据量,则确定所述目标文件的大小未超过所述预定阈值。
由于本公开的示例实施例的数据传输装置的各个功能模块与上述数据传输方法的示例实施例的步骤对应,因此对于本公开装置实施例中未披露的细节,请参照本公开上述的数据传输方法的实施例。
下面参考图7,其示出了适于用来实现本公开实施例的电子设备的计算机系统700的结构示意图。图7示出的电子设备的计算机系统700仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。
以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的系统中限定的上述功能。
需要说明的是,本公开所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代 码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中所述的数据传输方法。
例如,所述的电子设备可以实现如图1中所示的:步骤S110,获取目标文件;步骤S120,若所述目标文件的大小未超过预定阈值,则通过第一传输形式传输所述目标文件;步骤S130,若所述目标文件的大小超过所述预定阈值,则通过第二传输形式传输所述目标文件。
又如,所述的电子设备可以实现如图2所示的各个步骤。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个 或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本公开实施方式的方法。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (11)

  1. 一种数据传输方法,应用于安装有即时通讯软件的客户端,包括:
    获取目标文件;
    若所述目标文件的大小未超过预定阈值,则通过第一传输形式传输所述目标文件;
    若所述目标文件的大小超过所述预定阈值,则通过第二传输形式传输所述目标文件。
  2. 根据权利要求1所述的数据传输方法,其特征在于,所述目标文件包括视频文件,通过所述第一传输形式传输所述目标文件,包括:
    对所述视频文件进行格式转换处理,得到所述即时通讯软件能够直接播放的指定格式的多媒体文件;
    传输所述指定格式的多媒体文件。
  3. 根据权利要求2所述的数据传输方法,其特征在于,在通过所述第一传输形式传输所述目标文件之前,还包括:
    判断所述视频文件是否能够进行格式转换处理;
    若判定所述视频文件能够进行格式转换处理,则通过所述第一传输形式传输所述目标文件;
    若判定所述视频文件不能进行格式转换处理,则通过所述第二传输形式传输所述目标文件。
  4. 根据权利要求2所述的数据传输方法,其特征在于,在传输所述指定格式的多媒体文件之前,还包括:
    对所述指定格式的多媒体文件进行压缩处理。
  5. 根据权利要求2所述的数据传输方法,其特征在于,还包括:
    生成所述指定格式的多媒体文件对应的预览图;
    在所述指定格式的多媒体文件传输完成之后,显示所述预览图,并在所述预览图上显示播放标识。
  6. 根据权利要求1所述的数据传输方法,其特征在于,所述目标文件包括视频文件,通过所述第二传输形式传输所述目标文件,包括:
    通过传输文件的形式直接传输所述视频文件。
  7. 根据权利要求6所述的数据传输方法,其特征在于,还包括:
    在所述视频文件传输完成之后,显示文件标识和所述视频文件的信息。
  8. 根据权利要求1至7中任一项所述的数据传输方法,其特征在于,所述目标文 件包括视频文件,判断所述目标文件的大小是否超过所述预定阈值,包括:
    判断所述视频文件的播放时长是否超过预定时长,和/或判断所述视频文件的数据量是否超过预定数据量;
    若所述视频文件的播放时长超过所述预定时长,和/或若所述视频文件的数据量超过所述预定数据量,则确定所述目标文件的大小超过所述预定阈值;
    若所述视频文件的播放时长未超过所述预定时长,和/或若所述视频文件的数据量未超过所述预定数据量,则确定所述目标文件的大小未超过所述预定阈值。
  9. 一种数据传输装置,应用于安装有即时通讯软件的客户端,其特征在于,包括:
    获取单元,用于获取目标文件;
    第一传输单元,用于在所述目标文件的大小未超过预定阈值时,通过第一传输形式传输所述目标文件;
    第二传输单元,用于在所述目标文件的大小超过所述预定阈值时,通过第二传输形式传输所述目标文件。
  10. 一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1至8中任一项所述的数据传输方法。
  11. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至8中任一项所述的数据传输方法。
PCT/CN2018/111093 2018-01-18 2018-10-19 数据传输 WO2019140963A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020207023720A KR102445154B1 (ko) 2018-01-18 2018-10-19 데이터 전송
AU2018403361A AU2018403361B2 (en) 2018-01-18 2018-10-19 Data transmission

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810048591.8 2018-01-18
CN201810048591.8A CN108566328B (zh) 2018-01-18 2018-01-18 数据传输方法、装置、介质及电子设备

Publications (1)

Publication Number Publication Date
WO2019140963A1 true WO2019140963A1 (zh) 2019-07-25

Family

ID=63529850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111093 WO2019140963A1 (zh) 2018-01-18 2018-10-19 数据传输

Country Status (4)

Country Link
KR (1) KR102445154B1 (zh)
CN (1) CN108566328B (zh)
AU (1) AU2018403361B2 (zh)
WO (1) WO2019140963A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566328B (zh) * 2018-01-18 2021-03-02 北京三快在线科技有限公司 数据传输方法、装置、介质及电子设备
CN116233805B (zh) * 2021-12-06 2024-04-05 荣耀终端有限公司 分享文件的方法和电子设备

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599986A (zh) * 2008-06-02 2009-12-09 宏碁股份有限公司 加速文件传输速度的方法及计算机系统
CN102685159A (zh) * 2011-03-10 2012-09-19 腾讯科技(深圳)有限公司 文件传输方法及装置
CN106161633A (zh) * 2016-07-20 2016-11-23 柏科数据技术(深圳)股份有限公司 一种基于云计算环境下打包文件的传输方法及系统
WO2017001941A1 (en) * 2015-06-30 2017-01-05 Yandex Europe Ag System and method for duplicating files on client device for cloud storage
CN106657269A (zh) * 2016-11-16 2017-05-10 西安诺瓦电子科技有限公司 文件传输方法
WO2017128070A1 (zh) * 2016-01-26 2017-08-03 陈学良 文件传送的方法以及传送系统
WO2017128068A1 (zh) * 2016-01-26 2017-08-03 陈学良 手机传送文件时的技术数据发送方法以及传送系统
WO2017128069A1 (zh) * 2016-01-26 2017-08-03 陈学良 传送文件时的信息推送方法以及传送系统
CN108566328A (zh) * 2018-01-18 2018-09-21 北京三快在线科技有限公司 数据传输方法、装置、介质及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366779B1 (en) * 2000-06-19 2008-04-29 Aol Llc, A Delaware Limited Liability Company Direct file transfer between subscribers of a communications system
CN100407708C (zh) * 2003-08-27 2008-07-30 腾讯科技(深圳)有限公司 一种即时通讯中音/视频分享的方法和系统
CN101547161B (zh) * 2008-03-28 2012-09-26 阿里巴巴集团控股有限公司 文件夹传输系统、文件夹传输装置及文件夹传输方法
US20140359431A1 (en) * 2011-12-12 2014-12-04 Motorola Solutions, Inc. Effectively communicating large presence documents within high latency and lossy network environments
KR101731425B1 (ko) * 2014-08-13 2017-04-28 에스프린팅솔루션 주식회사 클라우드 시스템 및 클라우드 시스템에서 컨텐츠를 디스플레이하는 방법
US20160234494A1 (en) * 2015-02-10 2016-08-11 Qualcomm Incorporated Restriction on palette block size in video coding
KR20170036300A (ko) * 2015-09-24 2017-04-03 삼성전자주식회사 동영상 제공 방법 및 이를 수행하는 전자 장치

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599986A (zh) * 2008-06-02 2009-12-09 宏碁股份有限公司 加速文件传输速度的方法及计算机系统
CN102685159A (zh) * 2011-03-10 2012-09-19 腾讯科技(深圳)有限公司 文件传输方法及装置
WO2017001941A1 (en) * 2015-06-30 2017-01-05 Yandex Europe Ag System and method for duplicating files on client device for cloud storage
WO2017128070A1 (zh) * 2016-01-26 2017-08-03 陈学良 文件传送的方法以及传送系统
WO2017128068A1 (zh) * 2016-01-26 2017-08-03 陈学良 手机传送文件时的技术数据发送方法以及传送系统
WO2017128069A1 (zh) * 2016-01-26 2017-08-03 陈学良 传送文件时的信息推送方法以及传送系统
CN106161633A (zh) * 2016-07-20 2016-11-23 柏科数据技术(深圳)股份有限公司 一种基于云计算环境下打包文件的传输方法及系统
CN106657269A (zh) * 2016-11-16 2017-05-10 西安诺瓦电子科技有限公司 文件传输方法
CN108566328A (zh) * 2018-01-18 2018-09-21 北京三快在线科技有限公司 数据传输方法、装置、介质及电子设备

Also Published As

Publication number Publication date
CN108566328B (zh) 2021-03-02
CN108566328A (zh) 2018-09-21
KR20200108348A (ko) 2020-09-17
KR102445154B1 (ko) 2022-09-19
AU2018403361B2 (en) 2021-07-08
AU2018403361A1 (en) 2020-09-10

Similar Documents

Publication Publication Date Title
CN109168026B (zh) 即时视频显示方法、装置、终端设备及存储介质
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
WO2022262459A1 (zh) 投屏方法、装置、电子设备和存储介质
WO2020151599A1 (zh) 视频同步发布方法、装置、电子设备及可读存储介质
CN103166941A (zh) 一种数据分享的方法及装置
WO2020207085A1 (zh) 信息分享方法、装置、电子设备及存储介质
CN106998485B (zh) 视频直播方法及装置
CN110365973B (zh) 视频的检测方法、装置、电子设备及计算机可读存储介质
CN110489440B (zh) 数据查询方法和装置
WO2020007082A1 (zh) 视频播放处理方法、终端设备、服务器及存储介质
US20230093621A1 (en) Search result display method, readable medium, and terminal device
US11758087B2 (en) Multimedia conference data processing method and apparatus, and electronic device
WO2023045973A1 (zh) 直播礼物云渲染方法、装置、电子设备及存储介质
WO2023103861A1 (zh) 投屏方法、投屏装置、投屏显示装置、投屏系统及介质
CN111818383B (zh) 视频数据的生成方法、系统、装置、电子设备及存储介质
WO2019140963A1 (zh) 数据传输
WO2021143317A1 (zh) 邀请链接信息处理方法、装置、电子设备及可读介质
JP2021530905A (ja) ビデオ処理方法、装置、端末及び記憶媒体
WO2020233171A1 (zh) 歌单切换方法、装置、系统、终端和存储介质
CN112612919A (zh) 一种视频资源的关联方法、装置、设备及介质
WO2022218028A1 (zh) 页面加载方法、装置、设备及存储介质
CN113766266B (zh) 音视频处理方法、装置、设备以及存储介质
CN111246313A (zh) 一种视频关联方法、装置,服务器、终端设备及存储介质
CN113194277B (zh) 会议终端多屏幕视频的方法、装置及存储介质
CN115022693A (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: 18901769

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20207023720

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2018403361

Country of ref document: AU

Date of ref document: 20181019

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 18901769

Country of ref document: EP

Kind code of ref document: A1