CN113568593A - Content transmission method and device and electronic equipment - Google Patents

Content transmission method and device and electronic equipment Download PDF

Info

Publication number
CN113568593A
CN113568593A CN202110750136.4A CN202110750136A CN113568593A CN 113568593 A CN113568593 A CN 113568593A CN 202110750136 A CN202110750136 A CN 202110750136A CN 113568593 A CN113568593 A CN 113568593A
Authority
CN
China
Prior art keywords
content
file form
file
layer
transmitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110750136.4A
Other languages
Chinese (zh)
Inventor
周席龙
张晓平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110750136.4A priority Critical patent/CN113568593A/en
Publication of CN113568593A publication Critical patent/CN113568593A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a content transmission method, a content transmission device and electronic equipment; the method comprises the following steps: determining content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers; determining that the transmission mode of the first content is a first file form according to the transmission parameters of the first content; transmitting the first content based on the first file form and transmitting the second content based on a second file form, the first file form being the same as or different from the second file form.

Description

Content transmission method and device and electronic equipment
Technical Field
The present application relates to computer technologies, and in particular, to a content transmission method and apparatus, and an electronic device.
Background
With the rapid development of internet technology and the popularization of intelligent terminals, remote information interaction such as remote online conferences or remote online education and the like is more and more common; when performing the remote information interaction, in some scenarios, two electronic devices that need the remote information interaction can simultaneously display corresponding content and simultaneously display an operation for the content.
In the related art, one electronic device may transmit content to be displayed to another electronic device in the form of a video file, so as to enable the content to be displayed and an operation for the content to be displayed on the two electronic devices synchronously. However, when the scheme is adopted, all data are transmitted in the form of video files, and the occupied network bandwidth is large.
Disclosure of Invention
The embodiment of the application provides a content transmission method and device and electronic equipment.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a content transmission method, including: determining content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers;
determining that the transmission mode of the first content is a first file form according to the transmission parameters of the first content;
transmitting the first content based on the first file form and transmitting the second content based on a second file form, the first file form being the same as or different from the second file form.
In some embodiments, the determining, according to the transmission parameter of the first content, that the transmission mode of the first content is in a first file form includes:
identifying an identity of a first layer bearing the first content;
if the identifier of the first layer is a first identifier, determining that the transmission mode of the first content is the first file form; the first identifier is used for indicating that the first content is transmitted in the first file form.
In some embodiments, the determining, according to the transmission parameter of the first content, that the transmission mode of the first content is in a first file form further includes:
determining a state of the first layer;
if the first layer is in an activated state, determining that the transmission mode of the first content is the first file form, wherein the first file form is different from the second file form;
alternatively, the first and second electrodes may be,
and if the first layer is in an inactive state, determining that the transmission mode of the first content is the first file form, wherein the first file form is the same as the second file form.
In some embodiments, said transmitting said first content based on said first file form if said first layer is active comprises:
performing first coding on the first content to obtain a file in a first file form corresponding to the first content;
transmitting a file in a first file form corresponding to the first content so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end
In some embodiments, said transmitting said first content based on said first file form if said first layer is in an inactive state comprises:
performing second encoding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, wherein the first content at the sending end is displayed at a receiving end, and the operation aiming at the first content at the sending end is not displayed at the receiving end.
In some embodiments, the determining, according to the transmission parameter of the first content, that the transmission mode of the first content is in a first file form includes:
if the identification of the first layer carrying the first content is determined not to be the first identification or the first layer is not identified, obtaining an instruction aiming at the first content;
generating third content based on the first content in response to the instruction, and determining that the transmission mode of the third content is the first file form; wherein the first content and the third content are carried in different layers.
In some embodiments, said transmitting said first content based on said first file form comprises:
performing first coding on the third content generated based on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the third content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end, wherein the first file form is different from the second file form.
In some embodiments, the first file form is different from the second file form, the first file form being a video file form, the second file form being a data file form.
In a second aspect, an embodiment of the present application provides a content transmission apparatus, including:
a first determination unit configured to determine a content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers;
a second determining unit, configured to determine, according to the transmission parameter of the first content, that the transmission mode of the first content is a first file form;
a transmission unit, configured to transmit the first content based on the first file format and transmit the second content based on a second file format, where the first file format is the same as or different from the second file format. In some embodiments, the transmission parameter comprises an identification of a layer, the second determining unit is configured to identify an identification of a first layer carrying the first content;
if the identifier of the first layer is a first identifier, determining that the transmission mode of the first content is the first file form; the first identifier is used for indicating that the first content is transmitted in the first file form.
In some embodiments, if the first layer is in an active state, the second determining unit is configured to perform first encoding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end.
In some embodiments, if the first layer is in an inactive state, the transmission unit is configured to perform a second encoding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, wherein the first content at the sending end is displayed at a receiving end, and the operation aiming at the first content at the sending end is not displayed at the receiving end.
In some embodiments, the transmission parameter includes an instruction parameter, and the second determining unit is configured to obtain an instruction for the first content if it is determined that the identifier of the first layer carrying the first content is not the first identifier or the first layer is not identified;
generating third content based on the first content in response to the instruction, and determining that the transmission mode of the third content is the first file form; wherein the first content and the third content are carried in different layers.
In some embodiments, the transmission unit is configured to perform first encoding on the third content generated based on the first content, so as to obtain a file in a first file form corresponding to the third content;
and transmitting a file in a first file form corresponding to the third content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end, wherein the first file form is different from the second file form.
In some embodiments, the first file form is different from the second file form, the first file form being a video file form, the second file form being a data file form.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the content transmission method provided by the embodiment of the application when executing the executable instructions stored in the memory.
The embodiment of the present application provides a computer-readable storage medium, which stores executable instructions and is used for implementing the content transmission method provided by the embodiment of the present application when being executed by a processor.
The content transmission method provided by the embodiment of the application determines the content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers; determining that the transmission mode of the first content is a first file form according to the transmission parameters of the first content; transmitting the first content based on the first file form and transmitting the second content based on a second file form, the first file form being the same as or different from the second file form; when the first content is transmitted in the first file form, the content and the operation aiming at the content can be synchronously displayed on the two electronic devices. In this way, the transmission mode of the first content can be determined according to the transmission parameter of the first content, the transmission modes of the first content and the second content can be the same or different, and the transmission mode is more flexible.
Drawings
Fig. 1 is a schematic architecture diagram of a content transmission system provided in an embodiment of the present application;
fig. 2 is a schematic architecture diagram of a terminal device provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of an alternative content transmission method provided in the embodiment of the present application;
fig. 4 is a detailed processing flow diagram of a content transmission method provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a transmission of dynamic content provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of another transmission of dynamic content provided by an embodiment of the present application;
fig. 7 is a schematic diagram of another transmission of dynamic content according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein. In the following description, the term "plurality" referred to means at least two.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
The embodiment of the application provides a content transmission method, a content transmission device, electronic equipment and a computer-readable storage medium, which can save network bandwidth and simultaneously realize synchronous display of content and operation aiming at the content on the two electronic equipment. An exemplary application of the electronic device provided in the embodiment of the present application is described below, and the electronic device provided in the embodiment of the present application may be implemented as various types of terminal devices, and may also be implemented as a server.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a content transmission system provided in an embodiment of the present application, in which a first electronic device 100 is connected to one or more other electronic devices, such as a second electronic device 200 and a third electronic device, through a network; the network may be a wired network or a wireless network, a wide area network or a local area network, or a combination of the wide area network and the local area network.
In some embodiments, taking the electronic device as a terminal device as an example, the content transmission method provided in the embodiments of the present application may be implemented by a first electronic device. For example, the first electronic device 100 runs a client, which may be a client for executing the content transfer method. The client determines the content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers; determining that the transmission mode of the first content is a first file form according to the transmission parameters of the first content; transmitting the first content based on the first file form and transmitting the second content based on a second file form, the first file form being the same as or different from the second file form.
In some embodiments, the first electronic device 100 may implement the content transmission method provided by the embodiments of the present application by running a computer program, for example, the computer program may be a native program or a software module in an operating system; may be a local (Native) Application (APP), i.e. a program that needs to be installed in the operating system to run; or may be an applet, i.e. a program that can be run only by downloading it to the browser environment; but also an applet that can be embedded into any APP. In general, the computer programs described above may be any form of application, module or plug-in. The first electronic device 100 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like.
In some embodiments, the first electronic device 100 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a Cloud server providing basic Cloud computing services such as a Cloud service, a Cloud database, Cloud computing, a Cloud function, Cloud storage, a web service, Cloud communication, a middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform, where Cloud Technology (Cloud Technology) refers to a hosting Technology for unifying resources of hardware, software, a network, and the like in a wide area network or a local area network to implement computing, storing, processing, and sharing of data.
Taking the content transmission method provided by the embodiment of the present application as an example for illustration, it can be understood that, in the case where the content transmission method provided by the embodiment of the present application is implemented by a server, parts (e.g., a user interface, a presentation module, and an input processing module) in the structure shown in fig. 2 may be defaulted. Referring to fig. 2, fig. 2 is a schematic structural diagram of a terminal device 400 provided in an embodiment of the present application, where the terminal device 400 shown in fig. 2 includes: at least one processor 410, memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal device 400 are coupled together by a bus system 440. It is understood that the bus system 440 is used to enable communications among the components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 440 in fig. 2.
The Processor 410 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 450 optionally includes one or more storage devices physically located remote from processor 410.
The memory 450 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 450 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data, examples of which include programs, modules, and data structures, or a subset or superset thereof, to support various operations, as exemplified below.
An operating system 451, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 452 for communicating to other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a presentation module 453 for enabling presentation of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more output devices 431 (e.g., display screens, speakers, etc.) associated with user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the content transmission apparatus provided in the embodiments of the present application may be implemented in software, and fig. 2 illustrates the content transmission apparatus 455 stored in the memory 450, which may be software in the form of programs and plug-ins, and may include the following software modules: a first determination unit 4551, a second determination unit 4552 and a transmission unit 4553, which are logical and thus may be arbitrarily combined or further split depending on the functions implemented. The functions of the respective units will be explained below.
The content transmission method provided by the embodiment of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is an alternative flowchart of a content transmission method provided in an embodiment of the present application, which will be described with reference to the steps shown in fig. 3.
Step S101, determining content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are carried in different layers.
In some embodiments, the content to be transmitted may refer to content that is stored in a sending end and needs to be sent from the sending end to a receiving end, so as to be synchronously displayed at the receiving end.
In some embodiments, the page with the layer attribute may be a HyperText Markup Language (HTML 5) page. The different layers may refer to the base layer and the tool layer of the page, or multiple base layers of the page, or multiple sub-layers of a base layer. Wherein, the content of the tool layer and the operation aiming at the content can be synchronously displayed at the receiving end. Only part of conventional operations in the base layer can be synchronously displayed at the receiving end, and personalized operations cannot be synchronously displayed at the receiving end. The normal operation may be an operation frequently used by the user, such as a zoom operation, a highlight operation on text, and the like; when the content to be transmitted and the operation aiming at the content to be transmitted are transmitted through the basic layer, if the operation aiming at the content to be transmitted belongs to the conventional operation, the content to be transmitted and the first operation can be transmitted in the form of a data file through the basic layer. However, in the actual application process, there may be some operations that cannot be predefined, such as performing personalized operations like circle points and sketching by using irregular lines; since these personalized operations that cannot be predefined cannot be predetermined, nor can their corresponding data codes be predefined, the operations that cannot be predefined cannot be transmitted in the form of data files.
In some embodiments, the content to be transmitted may be content that needs to be presented on white boards of the teacher-side device and the student-side device in an online classroom.
Step S102, determining that the transmission mode of the first content is a first file form according to the transmission parameter of the first content.
In some embodiments, the transmission parameters of the first content may include an identification of a layer carrying the first content. And if the layer bearing the first content is the first layer and the identifier of the first layer is identified as the first identifier, determining that the transmission mode of the first content is the first file form. Wherein the first identifier is used for indicating that the first content is transmitted in the first file form.
For the case that the identifier of the first layer is the first identifier, the transmission parameter of the first content may further include a state of a layer carrying the first content. If the first layer is in an activated state, determining that the transmission mode of the first content is in the first file form; in this scenario, the first file form may be a video file form.
For the case that the identifier of the first layer is the first identifier, the transmission parameter of the first content may further include a state of a layer carrying the first content. If the first layer is in an inactive state, determining that the transmission mode of the first content is in the first file form; in this scenario, the first file form may be a data file form.
In other embodiments, the transmission parameters of the first content may include instruction parameters, which may be instruction parameters for the first content. If the identification of the first layer carrying the first content is determined not to be the first identification or the first layer is not identified, obtaining an instruction aiming at the first content; generating third content based on the first content in response to the instruction, and determining that the transmission mode of the third content is the first file form; the first content and the third content are carried in different layers, for example, the first content is carried in a first layer of a page base layer, and the third content is carried in other layers of the page above the base layer. As an example, if the first layer carrying the first content does not have the first identifier and receives an instruction for the first content, a third content is generated based on the first content, and a transmission mode of the third content is determined to be the first file form. The instruction for the first content may be a touch operation on an area on the transmitting end where the first content is displayed, such as a touch operation of clicking the area where the first content is displayed, double clicking the area where the first content is displayed, or sliding the area where the first content is displayed. In this scenario, the first file form may be a video file form.
The third content may be generated based on an operation corresponding to only the first content in the first layer of the base layer, the third content may also be generated based on the first content in the first layer of the base layer and an operation for the first content, the third content may also be generated based on an operation for all contents included in all layers of the base layer, and the third content may also be generated based on all contents included in all layers of the base layer and an operation for all contents included in the base layer.
In other embodiments, the transmission parameters of the first content may include instruction parameters, which may be instruction parameters for the first content. If the identification of the first layer carrying the first content is determined not to be the first identification or the first layer is not identified, obtaining an instruction aiming at the first content on the first layer; and directly determining that the transmission mode of the first content is the first file form in response to the instruction.
The instruction for the first content may be an instruction triggered on a display area for displaying the first content on a display interface of the sending end; the instruction may also be any instruction, where the instruction includes an identifier for indicating the first content, and the sending-end device may determine, according to the instruction, that the transmission mode of the first content is in the first file form.
Step S103, transmitting the first content based on the first file form and transmitting the second content based on a second file form, wherein the first file form is the same as or different from the second file form.
In some embodiments, if the layer carrying the first content is a first layer, the identifier of the first layer is a first identifier, and the first layer is in an active state, performing first encoding on the first content to obtain a file in a first file form corresponding to the first content; the first content is transmitted in a first file form, so that the first content of a transmitting end and the operation aiming at the first content can be synchronously displayed at a receiving end. Wherein the first encoding may be video encoding, the file in the first file form may be a video file, and the file in the second file form may be a data file. In this scenario, the first content and the operation for the first content may be displayed synchronously at the transmitting end and the receiving end of the first content.
Taking the first content as the thinking guidance in the online classroom and the second content as the text in the online classroom as an example, the video coding can be carried out on the thinking guide graph and the operation aiming at the thinking guide graph to obtain the thinking guide graph and the video file corresponding to the thinking guide graph; and the video file is born and sent to the student end equipment at the teacher end equipment. The thinking guide picture is transmitted in the form of a video file, so that the teacher-side equipment and the student-side equipment can synchronously display the thinking guide picture. Under the scene, the text in the online classroom is subjected to data coding, and a data file corresponding to the obtained text is borne on a basic layer of a page and is sent to student side equipment. Therefore, according to different contents to be transmitted, the contents to be transmitted can be coded in different modes and sent to the receiving end in different transmission modes, flexible transmission of the contents to be transmitted can be achieved, network bandwidth is saved, and the contents and the operation aiming at the contents are synchronously displayed on the two electronic devices.
In other embodiments, if the layer carrying the first content is a first layer, the identifier of the first layer is a first identifier, and the first layer is in an inactive state, performing second encoding on the first content to obtain a file in a first file form corresponding to the first content; and transmitting a file in a first file form corresponding to the first content through a base layer. The second code may be a data code, and the files in the first file form and the second file form may be data files. In the embodiment of the application, if the first layer is in an inactive state, the first content carried by the first layer is transmitted to the receiving end in the form of a data file, so that the network bandwidth is saved.
In still other embodiments, if the identity of the first layer carrying the first content is not the first identity or the first layer is not identified, and an instruction for the first content is received; generating third content based on the first content, and determining that the transmission mode of the third content is the first file form; the first content and the third content are carried in different layers, and if the first layer carrying the first content is a base layer, the layer carrying the third content may be located above the base layer. Performing first coding on the third content to obtain a file in a first file form corresponding to the third content; and transmitting a file in a first file form corresponding to the third content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end, wherein the first file form is different from the second file form. Wherein the first encoding may be video encoding, the file in the first file form may be a video file, and the file in the second file form may be a data file. In this scenario, the first content and the operation for the first content may be displayed synchronously at the transmitting end and the receiving end of the first content.
And the display proportion of the third content on the transmitting end, which is determined based on the first content, is the same as the display proportion of the third content on the receiving end.
In the embodiment of the application, the file in the second file form may be a data file, and when the second content is transmitted in the second file form, the second content is encoded into the data file and then transmitted to the receiving end by the transmitting end, so that the network bandwidth can be saved. The file in the first file form can be a video file, and when the first content is transmitted in the first file form, the first content and the operation aiming at the first content can be synchronously displayed at a transmitting end and a receiving end of the first content; the problem that the transmitting end and the receiving end cannot synchronously display is avoided.
In still other embodiments, if the identity of the first layer carrying the first content is not the first identity or the first layer is not identified, and an instruction for the first content is received; performing first coding on the first content to obtain a file in a first file form corresponding to the first content; and transmitting a file in a first file form corresponding to the first content so that the first content and the operation aiming at the first content at a sending end can be displayed at a receiving end, wherein the first file form is different from the second file form.
The following describes in detail a specific implementation process of the content transmission method provided by the embodiment of the present application, taking an application scenario of an online classroom as an example; in the application scenario, the content to be transmitted may include dynamic content, pictures, texts, and the like, where the dynamic content and the operation for the dynamic content need to be synchronously displayed on the teacher-side device and the student-side device, and the dynamic content may include animations, thinking guide diagrams, experiments, and the like.
As shown in fig. 4, a detailed processing flow of the content transmission method provided in the embodiment of the present application includes:
step S201, the teacher end equipment identifies whether the identifier of the first layer bearing the dynamic content is a first identifier; if yes, go to step S202; if not, go to step S203.
In some embodiments, the dynamic content carried by the first layer having the first identification may be transmitted by the teacher end device to the student end device in the form of a video file. The dynamic content may be animations, experimental or mind maps, etc.
In some embodiments, the first layer may be any one of the base layers of the page; for the application scenario of the online classroom, the base layer of the page may also be referred to as a lesson preparation content layer, and the first layer may also belong to one of the lesson preparation content layers.
Step S202, the teacher device determines the state of the first layer and transmits the dynamic content according to the state of the first layer.
In some embodiments, if the state of the first layer is the activated state, a transmission diagram of the dynamic content is shown in fig. 5, the teacher device performs first encoding on the dynamic content to obtain a video file corresponding to the dynamic content, and transmits the video file corresponding to the dynamic content from the teacher device to the student device through a channel corresponding to the video file. The data file corresponding to the text and the picture shown in fig. 5 is transmitted from the teacher-side device to the student-side device through the data file corresponding channel.
In other embodiments, if the state of the first layer is the inactive state, another schematic transmission diagram of the dynamic content is shown in fig. 6, where the teacher device performs a second encoding on the dynamic content to obtain a data file corresponding to the dynamic content, and the data file corresponding to the dynamic content is transmitted from the teacher device to the student device through a channel corresponding to the data file. The data file corresponding to the text and the picture shown in fig. 6 is transmitted from the teacher-side device to the student-side device through the data file corresponding channel.
In step S203, the instructor-side device receives an instruction for the dynamic content.
In some embodiments, the instructor-side device may accept instructions for the dynamic content in some scenarios if the identity of the first layer bearing the dynamic content is not marked or is not the first identity. The instruction for the dynamic content can be triggered through a specific area on a display interface of the teacher-side equipment; such as by clicking or sliding a button on a particular area of the display interface of the teacher device to trigger an instruction for dynamic content. The instruction for the dynamic content can be triggered through any area on a display interface of the teacher end device, the instruction carries the identification of the dynamic content, and the teacher end device can determine that the transmission mode of the dynamic content is in the form of a video file according to the identification in the instruction.
And step S204, the teacher end equipment responds to the instruction and sends whiteboard content to the student end equipment in the form of a video file.
In some embodiments, the teacher-side device generates third content based on the dynamic content, performs first encoding on the third content to obtain a video file corresponding to the third content, and transmits the video file corresponding to the third content from the teacher-side device to the student-side device through a channel corresponding to the video file. The third content may be generated based on an operation on the dynamic content, based on the dynamic content and an operation on the dynamic content, based on an operation on all the contents included in the lesson preparation content layer, or based on all the contents included in the lesson preparation content layer and an operation on all the contents included in the lesson preparation content layer.
In a specific implementation, as shown in fig. 7, a further transmission diagram of the dynamic content may be that the first layer carrying the third content is rendered above the lesson preparation content layer of the page and below the tool layer of the page, and the video file corresponding to the third content is transmitted from the teacher-side device to the student-side device through the channel corresponding to the video file.
In some embodiments, the display scale of the third content on the teacher-side device determined based on the dynamic content is the same as the display scale of the third content on the student-side device. If the proportion of the area for displaying the third content on the teacher-side device to the total display interface of the teacher-side device is X%, the proportion of the area for displaying the third content on the student-side device to the total display interface of the student device is also X%.
The implementation process of the content transmission method provided by the embodiment of the present application is described above only by taking an example that the application scene is an online classroom. In practical application, the content transmission method provided by the embodiment of the application can also be suitable for application scenes such as remote video conferences and remote training.
According to the content transmission method provided by the embodiment of the application, the layer bearing the content needing to be transmitted in the form of the video file is identified, or the display area of the sending end corresponding to the content needing to be transmitted in the form of the video file is operated, so that the sending end can determine the content needing to be transmitted in the form of the video file, and the content is sent to the receiving end in the form of the video file. For the content carried by the unidentified layer, the content is sent to a receiving end in a data file form; and transmitting the content corresponding to the display area of which the button is not clicked on the display area of the transmitting end to the receiving end in a data file mode. Therefore, the transmission mode of the content can be flexibly determined according to the actual scene, the problem of network bandwidth waste caused by the fact that all the content is transmitted in the form of video files is solved, and the content and the operation aiming at the content are synchronously displayed on the two electronic devices.
Continuing with the exemplary structure of the content transmission apparatus 455 provided by the embodiment of the present application implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the content transmission apparatus 455 of the memory 450 may include: a first determination unit 4551 configured to determine content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers; a second determining unit 4552, configured to determine, according to the transmission parameter of the first content, that the transmission mode of the first content is a first file form; a transmitting unit 4553, configured to transmit the first content based on the first file format, and transmit the second content based on a second file format, where the first file format is the same as or different from the second file format.
In some embodiments, the transmission parameter includes an identity of a layer, and the second determining unit 4552 is configured to identify an identity of a first layer that carries the first content; if the identifier of the first layer is a first identifier, determining that the transmission mode of the first content is the first file form; the first identifier is used for indicating that the first content is transmitted in the first file form.
In some embodiments, if the first layer is in an active state, the second determining unit 4552 is configured to perform first encoding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end.
In some embodiments, if the first layer is in an inactive state, the transmitting unit 4553 is configured to perform a second encoding on the first content, so as to obtain a file in a first file form corresponding to the first content; and transmitting a file in a first file form corresponding to the first content, wherein the first content at the sending end is displayed at a receiving end, and the operation aiming at the first content at the sending end is not displayed at the receiving end.
In some embodiments, the transmission parameters include instruction parameters, and the second determining unit 4552 is configured to obtain an instruction for the first content if it is determined that the identifier of the first layer carrying the first content is not the first identifier or the first layer is not identified;
generating third content based on the first content in response to the instruction, and determining that the transmission mode of the third content is the first file form; wherein the first content and the third content are carried in different layers.
In some embodiments, the transmitting unit 4553 is configured to perform first encoding on the third content generated based on the first content, so as to obtain a file in a first file form corresponding to the third content;
and transmitting a file in a first file form corresponding to the third content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end, wherein the first file form is different from the second file form.
In some embodiments, the first file form is different from the second file form, the first file form being a video file form, the second file form being a data file form.
An embodiment of the present application provides an electronic device, including: a memory for storing executable instructions; and the processor is used for realizing the image data processing method provided by the embodiment of the application when the executable instructions stored in the memory are executed.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the content transmission method described in the embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions, which when executed by a processor, will cause the processor to perform a method provided by embodiments of the present application, for example, a content transmission method as illustrated in fig. 3 to 7.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (10)

1. A method of content delivery, the method comprising:
determining content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers;
determining that the transmission mode of the first content is a first file form according to the transmission parameters of the first content;
transmitting the first content based on the first file form and transmitting the second content based on a second file form, the first file form being the same as or different from the second file form.
2. The method of claim 1, wherein the transmission parameter includes an identifier of a layer, and determining that the transmission mode of the first content is in a first file form according to the transmission parameter of the first content comprises:
identifying an identity of a first layer bearing the first content;
if the identifier of the first layer is a first identifier, determining that the transmission mode of the first content is the first file form; the first identifier is used for indicating that the first content is transmitted in the first file form.
3. The method of claim 2, wherein the transmission parameters further include a state of a layer, and the determining, according to the transmission parameters of the first content, that the transmission mode of the first content is in a first file form further comprises:
determining a state of the first layer;
if the first layer is in an activated state, determining that the transmission mode of the first content is the first file form, wherein the first file form is different from the second file form;
alternatively, the first and second electrodes may be,
and if the first layer is in an inactive state, determining that the transmission mode of the first content is the first file form, wherein the first file form is the same as the second file form.
4. The method of claim 3, wherein said transmitting the first content based on the first file form if the first layer is active comprises:
performing first coding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end.
5. The method of claim 3, transmitting the first content based on the first file form if the first layer is in an inactive state, comprising:
performing second encoding on the first content to obtain a file in a first file form corresponding to the first content;
and transmitting a file in a first file form corresponding to the first content, wherein the first content at the sending end is displayed at a receiving end, and the operation aiming at the first content at the sending end is not displayed at the receiving end.
6. The method of claim 1, wherein the transmission parameters include instruction parameters, and the determining, according to the transmission parameters of the first content, that the transmission mode of the first content is in a first file form comprises:
if the identification of the first layer carrying the first content is determined not to be the first identification or the first layer is not identified, obtaining an instruction aiming at the first content;
generating third content based on the first content in response to the instruction, and determining that the transmission mode of the third content is the first file form; wherein the first content and the third content are carried in different layers.
7. The method of claim 6, the transmitting the first content based on the first file form, comprising:
performing first coding on the third content generated based on the first content to obtain a file in a first file form corresponding to the third content;
and transmitting a file in a first file form corresponding to the third content, so that the first content and the operation aiming at the first content at a transmitting end can be displayed at a receiving end, wherein the first file form is different from the second file form.
8. The method of claim 5 or 7, the first file form being different from the second file form, the first file form being a video file form, the second file form being a data file form.
9. A data processing apparatus, the apparatus comprising:
a first determination unit configured to determine a content to be transmitted; the content to be transmitted is presented based on a page with layer attributes, the content to be transmitted at least comprises first content and second content, and the first content and the second content are borne in different layers;
a second determining unit, configured to determine, according to the transmission parameter of the first content, that the transmission mode of the first content is a first file form;
a transmission unit, configured to transmit the first content based on the first file format and transmit the second content based on a second file format, where the first file format is the same as or different from the second file format.
10. An electronic device, comprising:
a memory for storing executable instructions;
a processor configured to implement the content delivery method of any one of claims 1 to 8 when executing executable instructions stored in the memory.
CN202110750136.4A 2021-07-02 2021-07-02 Content transmission method and device and electronic equipment Pending CN113568593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110750136.4A CN113568593A (en) 2021-07-02 2021-07-02 Content transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110750136.4A CN113568593A (en) 2021-07-02 2021-07-02 Content transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113568593A true CN113568593A (en) 2021-10-29

Family

ID=78163520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110750136.4A Pending CN113568593A (en) 2021-07-02 2021-07-02 Content transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113568593A (en)

Similar Documents

Publication Publication Date Title
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
CN111737620A (en) Page access method, device, equipment and medium
CN113094613A (en) Online programming system, online programming method and related product
CN111935265A (en) Media information processing method and device
US20180211553A1 (en) Systems and methods for providing personalized electronic learning material in an educational infrastructure
CN109753644B (en) Rich text editing method and device, mobile terminal and storage medium
CN108491232B (en) Method and system for loading control on voice conversation platform
CN112711731A (en) Data point burying method, device, equipment and storage medium
CN113190229A (en) Method and device for generating government affair page
US20160277476A1 (en) Distributing content using a smartphone
CN112035113A (en) Navigation bar loading method, device, equipment and medium of H5 page
CN110618811B (en) Information presentation method and device
CN112492399A (en) Information display method and device and electronic equipment
CN113568593A (en) Content transmission method and device and electronic equipment
CN110088750B (en) Method and system for providing context function in static webpage
CN114443022A (en) Method for generating page building block and electronic equipment
CN115756692A (en) Method for automatically combining and displaying pages based on style attributes and related equipment thereof
CN114780183A (en) Online programming learning method and device, electronic equipment and storage medium
CN113709575A (en) Video editing processing method and device, electronic equipment and storage medium
CN112199090A (en) Information flow processing method, device and computer readable storage medium
KR20130017797A (en) Method and system for generating and managing annotation on electronic book
CN112051952A (en) Picture dynamic browsing method and device, electronic equipment and readable storage medium
KR101170322B1 (en) Method and device for providing cloud computing service using personal computer based on web
CN111158822A (en) Display interface control method and device, storage medium and electronic equipment
Piovesan et al. U-ALS: A Ubiquitous Learning Environment.

Legal Events

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