CN112351299A - Propaganda and education broadcasting method and device - Google Patents

Propaganda and education broadcasting method and device Download PDF

Info

Publication number
CN112351299A
CN112351299A CN202011221847.4A CN202011221847A CN112351299A CN 112351299 A CN112351299 A CN 112351299A CN 202011221847 A CN202011221847 A CN 202011221847A CN 112351299 A CN112351299 A CN 112351299A
Authority
CN
China
Prior art keywords
terminal
media
propaganda
education
server
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.)
Granted
Application number
CN202011221847.4A
Other languages
Chinese (zh)
Other versions
CN112351299B (en
Inventor
巩家雨
王军
孙浩然
孟萌
宋可鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yahua Electronics Co ltd
Original Assignee
Shandong Yahua Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yahua Electronics Co ltd filed Critical Shandong Yahua Electronics Co ltd
Priority to CN202011221847.4A priority Critical patent/CN112351299B/en
Publication of CN112351299A publication Critical patent/CN112351299A/en
Application granted granted Critical
Publication of CN112351299B publication Critical patent/CN112351299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • 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/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • 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/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/233Processing of audio elementary streams
    • H04N21/2335Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method and a device for propaganda and education broadcasting, wherein the method comprises the following steps: the method comprises the steps that a media server receives streaming media data sent by a first terminal in a first local area network and temporarily stores the streaming media data in a unique memory of the media server, the address of the unique memory is distributed to a plurality of threads of the media server, and a preset number of destination terminal addresses are distributed to each thread; the media server establishes connection with the first terminal and the target terminal through a WebRTC frame, and controls each thread in the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology; the destination terminal is located in a second local area network, and the second local area network and the first local area network are two different local area networks in the same area. The propaganda and education form that the propaganda and education content is demonstrated in real time and played in real time at the patient terminal is realized.

Description

Propaganda and education broadcasting method and device
Technical Field
The application relates to the field of medical equipment, in particular to a propaganda and education broadcasting method and equipment.
Background
The health propaganda is an important means for maintaining the health of patients in hospitals, and the effective health propaganda can inform the patients of not only the correct understanding of the diseases, but also the correct prevention of the diseases. The specialized health propaganda and education can change the original unknown wrong living habits of people, reduce the occurrence of common diseases and the admission times, and relieve the shortage of medical resources to a certain extent, so the health propaganda and education is a beneficial behavior for patients and hospitals.
The current propaganda and education in hospital ward mainly depends on the form of audio-video broadcasting to perform propaganda and education in the ward. The audio or video is recorded into a media file in advance, the patient terminal downloads the recorded audio or video media file from the server to the local, and then each patient terminal plays the audio or video media file. At present, no propaganda and education mode that nurses carry out real-time propaganda and education demonstration at a nurse terminal and send demonstration videos to a patient terminal for real-time playing exists. And no matter play media file or demonstrate the video in real time, all need solve the problem that the media file broadcast of each patient terminal is asynchronous, to the broadcast terminal that is nearer with the ward, the video broadcast is asynchronous can make adjacent bed interfere with each other, influences the propaganda and education environment and propaganda and education quality.
And current technique often only can broadcast the propaganda and education simultaneously at the terminal station in same LAN, if the ward is great or network terminal is too many, can't all configure a terminal station in the ward to a LAN, then when broadcasting, just can't accomplish that all terminals can both broadcast the propaganda and education simultaneously. In some application scenarios, some hosting areas host the control of one ward terminal in another ward, for example, hosting the control of a terminal in a second ward of a pediatrics in a first ward of the pediatrics, but the terminals in different ward are not in a local area network, so that broadcasting and teaching on the first ward of the pediatrics and the second ward of the pediatrics cannot be performed simultaneously, and the teaching efficiency is reduced.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the application provides a propaganda and education broadcasting method and equipment, and solves the problems that the conventional propaganda and education technology cannot be used for propaganda and education in a video real-time demonstration mode and audio/video cross-local area network propaganda and education are not synchronous.
In one aspect, an embodiment of the present application provides a method for announcements and education broadcasting, including: the method comprises the steps that a media server receives streaming media data sent by a first terminal in a first local area network and temporarily stores the streaming media data in a unique memory of the media server, the address of the unique memory is distributed to a plurality of threads of the media server, and a preset number of destination terminal addresses are distributed to each thread; the media server establishes connection with the first terminal and the target terminal through a WebRTC frame, and controls each thread in the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology, so that the target terminal plays the streaming media data while receiving the streaming media data; the destination terminal is located in a second local area network, and the second local area network and the first local area network are two different local area networks in the same area.
According to the embodiment of the application, the video data which are real-timely demonstrated at the nurse terminal are forwarded to the patient terminals in different local area networks through the media server, cross-local area network propaganda and education are realized through asynchronous distribution and multithread distribution, the time difference that the video data sequentially reach different patient terminals is greatly shortened, and when the propaganda and education video is played at the same time at the patient terminal in the same ward, the effect of synchronous playing of a plurality of patients in sense organs can be achieved; the real-time demonstration video is played on the patient terminal in real time, and the near live broadcasting mode can enable nurses to teach more efficiently, and the patients can acquire teaching knowledge more timely.
In one embodiment, before the media server receives streaming media data sent by a first terminal in a first local area network, the method further includes: the signaling forwarding server forwards the propaganda and education instruction sent by the first terminal to a plurality of target terminals in a second local area network appointed by the propaganda and education instruction, wherein the propaganda and education instruction at least comprises one or more instructions of starting propaganda and education time, ending propaganda and education time, propaganda and education content and switching a propaganda and education file; and the target terminals determine whether to accept the propaganda according to the current service state, respond to the instruction of the propaganda and access the media server so as to establish connection with the first terminal.
Appointed target terminal who accepts the propaganda and education by first terminal, probably business operations such as talking when the propaganda and education begins, inconvenient propaganda and education carries out at once, the propaganda and education instruction that this application embodiment forwarded first terminal and sent through signaling server gives target terminal, target terminal can judge whether can accept the propaganda and education at once according to the running state of self, if can not, then send and refuse the signaling, if can, then initialize and insert media server, prepare to accept the propaganda and education, can avoid forcing the propaganda and education to lead to interrupting patient and use the sick bed extension like this, cause inconvenient problem for patient.
In one embodiment, after the allocating the preset number of destination terminal addresses to each thread, the method further includes: and sequentially sending the streaming media data through network cards in the media server, and using a plurality of network cards to throughput the data in parallel by the media server under the condition that the number of the target terminals exceeds a preset value.
Under the condition that the number of the patient terminals needing to be forwarded is too large to cause large delay, the data sending speed is increased by doubling the data sending speed by using a plurality of network cards to send and send data in parallel, and the delay of data sending is reduced.
In one embodiment, after the destination terminal receiving the instruction responds to the instruction and accesses the media server, the method further includes: the media server receives a recorded audio file or video file sent by a first terminal, transcodes the audio file into an OPUS format, transcodes the video file into an H.264 format and stores the video file into a propaganda and education media file library in the media server; the first terminal sends a media file list to be played to a media server, and the media server links and accesses a corresponding media file in the propaganda media file library according to the media file list; and the first terminal initiates a propaganda and education request message to a media server, and the media server sequentially encapsulates corresponding media files into RTP packets according to the sequence of the media files in the media file list, and simultaneously pushes the RTP packets to the plurality of destination terminals and plays the RTP packets.
According to the embodiment of the application, the recorded audio file or video file is transcoded into the uniform format, so that unnecessary workload is prevented from being increased when the media file is forwarded by the media server due to different media file formats.
In one embodiment, after the media server links the corresponding media file in the announced media file library according to the media file manifest, the method further comprises: and the Web page terminal calls a service server interface, stores the contents in the propaganda and education media file library into a database of the service server, and writes the relation between the media file list and the media file into the database of the service server so as to complete the service requirement on the service server.
In one embodiment, after storing the library of promotional media files in the database of the business server, the method further comprises: and the Web page terminal compares all the media files successfully transcoded in the propaganda and education media file library with the corresponding media files in the database in the service server based on a preset time interval, and if the contents of the two media files are different, the database content of the service server is updated according to the contents of the propaganda and education resource media file library.
According to the embodiment of the application, specific service operations are transferred to the service server, so that various service processing, such as some display services, some field modification services and the like, performed by each terminal on the media data are decoupled from the media server, the media server is separated from specific product services, the workload of the media server is reduced, the operating efficiency of the media server is improved, and the distribution rate of the media data on the media server is accelerated.
In one embodiment, the initiating, by the first terminal, an announcement request message to the media server specifically includes: the announcement request message at least comprises a name of a media file list or a name of a single media file selected by the first terminal and a play mode of the media file list or the media file; wherein the playing modes at least include sequential playing, loop playing and random playing.
On the other hand, this application embodiment provides a propaganda and education broadcasting equipment, and equipment includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: receiving streaming media data sent by a first terminal in a first local area network, temporarily storing the streaming media data in a unique memory of a media server, allocating addresses of the unique memory to a plurality of threads of the media server, and allocating a preset number of destination terminal addresses to each thread; establishing connection with the first terminal and the target terminal through a WebRTC frame, and controlling each thread of the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology, so that the target terminal plays the streaming media data while receiving the streaming media data; the destination terminal is located in a second local area network, and the second local area network and the first local area network are two different local area networks in the same area.
The embodiment of the application realizes real-time demonstration of the nurse terminal and sends the demonstration to the patient terminals of different local area networks through the WebRTC protocol, the real-time playing publicity and education form similar to 'live broadcast', and the asynchronous distribution technology and the multithreading distribution technology shorten the time difference of sent media data reaching different patient terminals, so that when different patient terminals in the same ward play videos at the same time, the synchronous effect on sense can be achieved, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of an announcement broadcasting device according to an embodiment of the present application;
fig. 2 is a flowchart of an announcement broadcasting method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an announcement broadcasting device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a propaganda and education broadcasting method and device, and the technical scheme provided by the embodiment of the application is explained in detail through the accompanying drawings.
Fig. 1 is a schematic structural diagram of an announcements broadcasting device according to an embodiment of the present application, and as shown in fig. 1, the announcements broadcasting device includes a service server 111, a media server 112, a signaling forwarding server 113, and a plurality of nurse terminals, doctor terminals, and patient terminals located in different local area networks.
Specifically, the signaling forwarding server 113 is configured to forward the propaganda and education instruction sent by the first terminal to a plurality of destination terminals in the local area network 1 or the local area network 2 specified in the propaganda and education instruction, and further configured to forward the reception propaganda and education or the announcement rejection signaling fed back by the destination terminals to the first terminal and the media server 112.
The first terminal is not limited to a nurse terminal or a doctor terminal, and the destination terminal is not limited to a nurse terminal, a doctor terminal or a patient terminal. In practical situations, the number of the nurse terminals, the doctor terminals and the patient terminals is greater than or equal to one, and only one nurse terminal, one doctor terminal and one patient terminal are shown in each local area network in fig. 1 for representation. For convenience of description, the following description continues using the first terminal and the destination terminal.
In one example, the destination terminal is not in the same local area network as the first terminal; in another example, a portion of the destination terminals are in the same lan as the first terminal, and another portion of the destination terminals are not in the same lan as the first terminal.
The media server 112 is configured to receive the streaming media data sent by the first terminal and temporarily store the streaming media data in the memory of the media server 112, where the streaming media data is only stored in the same memory buffer and only one copy of the streaming media data is stored, so as to avoid time delay caused by copying the streaming media data. Allocating the addresses of the memory buffer area to a plurality of threads of the media server 112, and allocating a preset number of destination terminal addresses to each thread; the media server 112 controls each thread to transmit the streaming media data to the destination terminal allocated to each thread through the UDP protocol by the asynchronous task distribution technique.
The media server 112 is further configured to receive the recorded audio file or video file sent by the first terminal, transcode the audio file, for example, in the MP3 format, into the OPUS format, transcode the video file, for example, in the MP4, MOV, FLV, AVI, or other formats, into the h.264 format, and store the transcoded video file in the propaganda and education media file library in the media server 112; the media server 112 links and accesses the corresponding media files in the propaganda and education media file library according to the media file list which is sent by the first terminal and needs to be played, and sequentially encapsulates the corresponding media files into RTP packets according to the sequence of the media files in the media file list, and meanwhile, pushes the RTP packets to a plurality of destination terminals.
The service server 111 is used for responding to the operation of a nurse on the Web page terminal, storing the contents in the announced media file library of the media server 112 into the database of the service server 111, and updating the database according to the contents of the announced media file library when the preset time is reached. And also for writing the relation of the media file list to the media file into the database of the service server 111.
In one embodiment, the nurse terminal 130 in the local area network 1 serves as a first terminal, initiates the propaganda and education instruction, and specifies destination terminals for receiving the propaganda and education instruction in the propaganda and education instruction as the patient terminal 132 in the local area network 1 and the nurse terminal 140, the doctor terminal 141 and the patient terminal 142 in the local area network 2. The instruction is first sent to the signaling forwarding server 113, and the signaling forwarding server 113 processes the instruction: for example, according to the destination terminal specified in the instruction for public education, the address of each destination terminal is added to the instruction for public education, and the processed instruction for public education is sent to the patient terminal 132 in the local area network 1 and the nurse terminal 140, the doctor terminal 141 and the patient terminal 142 in the local area network 2.
Assuming that the nurse terminal 140 and the doctor terminal 141 are in the use state at this time, a signaling for denying the education is issued, and a signaling for accepting the education is issued when the patient terminal 132 and the patient terminal 142 are not in the use state, and the signaling is forwarded to the nurse terminal 130 and the media server 112 through the signaling transfer server 113. The patient terminal 132 and the patient terminal 142 signal acceptance of the instruction and access the media server 112. The nurse terminal 130 also accesses the media server 112 after receiving the feedback information from each destination terminal, and establishes a connection with each destination terminal.
The nurse terminal 130 records the nurse education video in real time and transmits the recorded video to the media server 112 in real time in the form of streaming data. The media server 112 stores the received streaming media data in a memory buffer and sequentially transmits the streaming media data to the patient terminal 132 and the patient terminal 142 through multi-thread distribution and asynchronous distribution. The patient terminal 132 and the patient terminal 142 receive the streaming media data and then play the streaming media data through the WebRTC protocol, and continuously play the streaming media data along with the continuous transmission of the streaming media data until the recording of the nurse terminal 130 is finished, and the last part of the streaming media data is transmitted and played completely, thereby finishing the propaganda and education task.
The present application will be described in detail below with reference to flowcharts. Fig. 2 is a flowchart of an announcement broadcasting method according to an embodiment of the present application.
S201, the first terminal sends a propaganda and education instruction and sends the instruction to a specified destination terminal through the signaling forwarding server 113.
Specifically, the announcement instruction sent by the first terminal includes, but is not limited to, the following: the announcement and education method comprises the steps of announcement and education start time, announcement and education end time, announcement and education content, instruction for switching the announcement and education content and designation of which terminals are used as target terminals. The signaling forwarding server 113 performs corresponding processing on the instruction according to the content in the instruction and forwards the instruction to each specified destination terminal.
S202, the destination terminal accesses the media server 112 after receiving the instruction.
Specifically, after receiving the instruction of propaganda and education, the destination terminal learns the information about to start propaganda and education, and judges whether the destination terminal receives the propaganda and education according to whether the destination terminal is running or in use.
In an example, if the patient terminal 142 receiving the instruction for instruction announcement is in a call, and if the instruction for instruction announcement is received immediately, the call will be interrupted, which causes inconvenience to the patient, then the patient terminal 142 will return an instruction for refusing the instruction announcement to the signaling forwarding server 113 after detecting that the patient terminal is running. If the patient terminal 142 is in idle state when receiving the instruction, it returns an instruction to receive the instruction to the signaling forwarding server 113 and accesses the media server 112.
The signaling forwarding server 113 forwards the feedback instruction to the first terminal and the media server 112 after receiving the feedback instruction.
S203, the first terminal sends the streaming media data to the media server 112.
Specifically, after receiving the feedback instruction, the first terminal accesses the media server 112 and starts to send streaming media data to the media server 112.
Streaming media data refers to compressing a series of media data and then sending the compressed media data in segments, and the media data is played by specific playing software immediately after being sent to a patient terminal. In the embodiment of the application, a nurse can record the propaganda and education content at a nurse terminal, the nurse terminal records the side, the propaganda and education video is sent to the media server 112 after being compressed in a segmented mode, the video is sent to the target terminal after being processed by the media server 112, and the data is played immediately after reaching the target terminal, so that the nurse terminal is not required to record all the propaganda and education content completely and then upload the whole media file, and a patient can acquire the propaganda and education content in time.
S204, the media server 112 performs a synchronization process on the streaming media data.
Specifically, the media server 112 allocates memory addresses for storing the streaming media data to the multiple task threads, and then allocates a certain number of destination terminal addresses to each of the multiple task threads according to the total number of destination terminals that have received the instruction, when the streaming media data is forwarded, the multiple task threads on the media server 112 work simultaneously, and each task thread respectively and sequentially sends the streaming media data to the allocated destination terminals by using an asynchronous distribution technology. The asynchronous distribution process comprises the following steps: after a task thread sends the streaming media data to a target terminal, the task thread does not need to wait for the completion of sending, and immediately sends the streaming media data to another target terminal after sending, so that only a tiny time difference exists between two times of sending.
In one example, since the streaming media data needs to be sequentially sent out through the network cards after being sent out in the media server 112, if the destination terminal receiving the announcement exceeds a certain value, only one network card throughput data may cause a relatively large sending delay, and at this time, multiple network cards may be enabled to throughput data in parallel, thereby avoiding data blocking.
S205, each thread in the media server 112 sends the streaming media data to the destination terminal to which each thread is assigned, respectively, through the UDP protocol.
S206, the target terminal immediately plays the streaming media data through the WebRTC protocol while receiving the streaming media data.
It should be noted that, the destination terminals in the same ward are preferentially allocated to the same thread, and after asynchronous distribution, the streaming media data reaches the destination terminals in the same ward through the local area network.
In one embodiment, when the nurse terminal sends the last piece of streaming media data to the media server 112 after the nurse presentation is finished, a media file of the whole presentation process is generated in the media server 112 and stored in the propaganda media file library of the media server for later review of the propaganda video.
S207, the first terminal may further send the recorded media file to the media server.
S208, the media server 112 transcodes the media file into a uniform format and stores the uniform format into the propaganda and education media resource library.
Specifically, the media server 112 transcodes an audio file such as MP3 format into OPUS format, transcodes a video file such as MP4, MOV, FLV, AVI, etc. format into h.264 format, and saves the transcoded audio file or video file in the library of the announced media file.
S209, the Web page terminal calls the service server interface to write the content in the media server into the service server database.
Specifically, a user calls a service server interface and a media server interface at a Web page terminal, and writes all contents in a propaganda media file library of the media server into a database of the service server. At intervals, the Web page terminal compares the contents in the announcement media file library in the media server 112 with the contents in the database of the service server 111, and if the contents in the two libraries are different, the database of the service server 111 is updated according to the contents of the announcement media file library.
S210, the Web page terminal sends a media file list, and the media server synchronously pushes the media file to the first terminal and the target terminal.
Specifically, the user may select one or more media files on the Web page terminal or the first terminal to generate one or more media file lists, and at this time, the media server 112 generates a file directory corresponding to the media file lists and links the corresponding media files.
In one embodiment, a user may select one or more media file listings on the first terminal and set a play mode of the listings, such as a loop play mode, a random play mode, etc.; it is also possible to select a media file in a media file list and set a play mode of the media file. The settings are then sent to the media server 112 in the form of a propaganda instruction, and the media server 112 then pushes the media file to the destination terminal according to the specified playback mode based on the content of the propaganda instruction request.
The Web page terminal may recall the service server interface and write the relationship between the media file and the media file list into the database of the service server 111. Therefore, when the Web page terminal and other types of terminals need to display or modify data, the Web page terminal and other types of terminals only need to interact with the service server.
In one example, a nurse logs in the media server 112 in the nurse terminal 130, selects a media file to be played, generates a media file list, and the media server 112 searches a corresponding media file in the publicity media file library according to the media file list and links the media file list. Then, the interface of the service server 111 is called, and the corresponding relationship between the media file list and the media file is written into the database of the service server 111. When the name or other fields of the media file need to be modified subsequently, the nurse only needs to operate on the service server 111, so that the specific service can be divided from the media server 112, the workload of the media server 112 is reduced, and the efficiency of forwarding the media data by the media server 112 is improved.
S211, the first terminal and the destination terminal play the media file at the same time.
Specifically, the media server 112 receives an instruction of the first terminal to play a media file list, sequentially encapsulates the media files stored in the propaganda and education media file library into RTP packets according to the media file list, and transmits the RTP packets to each destination terminal through a multithreading and asynchronous distribution technology and plays the RTP packets.
Fig. 3 is a schematic diagram of an announcement broadcasting device according to an embodiment of the present application, and as shown in fig. 3, the announcement broadcasting device 300 includes at least one processor 301; and a memory 302 communicatively coupled to the at least one processor.
In one embodiment, the memory 302 stores instructions executable by the at least one processor 301 to cause the at least one processor 301 to: receiving streaming media data sent by a first terminal, temporarily storing the streaming media data in a unique memory of the media server 112, allocating addresses of the unique memory to a plurality of threads of the media server 112, and allocating a preset number of destination terminal addresses to each thread; and establishing connection with the first terminal and the target terminal through a WebRTC frame, and controlling each thread in the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology so that the target terminal can play the streaming media data while receiving the streaming media data.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application. It should be noted that various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement and the like made without departing from the principle of the present invention shall be included in the scope of the claims of the present application.

Claims (8)

1. A method of announcements broadcasting, the method comprising:
the method comprises the steps that a media server receives streaming media data sent by a first terminal in a first local area network and temporarily stores the streaming media data in a unique memory of the media server, the address of the unique memory is distributed to a plurality of threads of the media server, and a preset number of destination terminal addresses are distributed to each thread;
the media server establishes connection with the first terminal and the target terminal through a WebRTC frame, and controls each thread in the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology, so that the target terminal plays the streaming media data while receiving the streaming media data;
the destination terminal is located in a second local area network, and the second local area network and the first local area network are two different local area networks in the same area.
2. The announcement broadcasting method of claim 1, wherein before the media server receives streaming media data sent by the first terminal in the first local area network, the method further comprises:
the signaling forwarding server forwards the propaganda and education instruction sent by the first terminal to a plurality of target terminals in a second local area network appointed by the propaganda and education instruction, wherein the propaganda and education instruction at least comprises one or more instructions of starting propaganda and education time, ending propaganda and education time, propaganda and education content and switching a propaganda and education file;
and the target terminals determine whether to accept the propaganda according to the current service state, respond to the instruction of the propaganda and access the media server so as to establish connection with the first terminal.
3. The announcement broadcasting method of claim 1, wherein after the allocating the preset number of destination terminal addresses to each thread, the method further comprises:
and sequentially sending the streaming media data through network cards in the media server, and using a plurality of network cards to throughput the data in parallel by the media server under the condition that the number of the target terminals exceeds a preset value.
4. The announcements broadcasting method of claim 2, wherein after the destination terminal receiving announcements responds to the announcements instructions and accesses the media server, the method further comprises:
the media server receives a recorded audio file or video file sent by a first terminal, transcodes the audio file into an OPUS format, transcodes the video file into an H.264 format and stores the video file into a propaganda and education media file library in the media server;
the first terminal sends a media file list to be played to a media server, and the media server links and accesses a corresponding media file in the propaganda media file library according to the media file list; and the first terminal initiates a propaganda and education request message to a media server, and the media server sequentially encapsulates corresponding media files into RTP packets according to the sequence of the media files in the media file list, and simultaneously pushes the RTP packets to the plurality of destination terminals and plays the RTP packets.
5. The announcement broadcasting method of claim 4, wherein after the media server links corresponding media files in the announcement media file library according to the media file list, the method further comprises:
and the Web page terminal calls a service server interface, stores the contents in the propaganda and education media file library into a database of the service server, and writes the relation between the media file list and the media file into the database of the service server so as to complete the service requirement on the service server.
6. The announced broadcasting method according to claim 5, wherein after storing the announced media file library in the database of the service server, the method further comprises:
and the Web page terminal compares all the media files successfully transcoded in the propaganda and education media file library with the corresponding media files in the database in the service server based on a preset time interval, and if the contents of the two media files are different, the database content of the service server is updated according to the contents of the propaganda and education resource media file library.
7. The announcement broadcasting method according to claim 4, wherein the first terminal initiates an announcement request message to the media server, and specifically comprises:
the announcement request message at least comprises a name of a media file list or a name of a single media file selected by the first terminal and a play mode of the media file list or the media file; wherein the playing modes at least include sequential playing, loop playing and random playing.
8. An announcements broadcasting apparatus, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to:
receiving streaming media data sent by a first terminal in a first local area network, temporarily storing the streaming media data in a unique memory of a media server, allocating addresses of the unique memory to a plurality of threads of the media server, and allocating a preset number of destination terminal addresses to each thread;
establishing connection with the first terminal and the target terminal through a WebRTC frame, and controlling each thread of the plurality of threads to respectively send the streaming media data to the target terminal distributed by each thread through an RTP data packet through an asynchronous task distribution technology, so that the target terminal plays the streaming media data while receiving the streaming media data;
the destination terminal is located in a second local area network, and the second local area network and the first local area network are two different local area networks in the same area.
CN202011221847.4A 2020-11-05 2020-11-05 Propaganda and education broadcasting method and device Active CN112351299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011221847.4A CN112351299B (en) 2020-11-05 2020-11-05 Propaganda and education broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011221847.4A CN112351299B (en) 2020-11-05 2020-11-05 Propaganda and education broadcasting method and device

Publications (2)

Publication Number Publication Date
CN112351299A true CN112351299A (en) 2021-02-09
CN112351299B CN112351299B (en) 2022-11-04

Family

ID=74429397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011221847.4A Active CN112351299B (en) 2020-11-05 2020-11-05 Propaganda and education broadcasting method and device

Country Status (1)

Country Link
CN (1) CN112351299B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824973A (en) * 2021-08-04 2021-12-21 杭州星犀科技有限公司 Multi-platform direct-push plug flow method, system, electronic device and storage medium
CN115334321A (en) * 2022-08-10 2022-11-11 北京百度网讯科技有限公司 Method and device for acquiring access heat of video stream, electronic equipment and medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001039506A2 (en) * 1999-11-22 2001-05-31 Spiderdance, Inc. System and method for synchronizing online activities with broadcast programming
CN1728657A (en) * 2004-07-30 2006-02-01 Ut斯达康通讯有限公司 Load simulator and simulation system for stream media service
CN103248956A (en) * 2013-05-20 2013-08-14 浙江传媒学院 Realizing method and system of intelligent home video business in multi-screen cooperating mode
CN105578224A (en) * 2014-11-10 2016-05-11 阿里巴巴集团控股有限公司 Multimedia data acquisition method, device, smart television and set-top box
CN105957519A (en) * 2016-06-30 2016-09-21 广东美的制冷设备有限公司 Method and system for carrying out voice control in multiple regions simultaneously, server and microphone
CN108111505A (en) * 2017-12-18 2018-06-01 上海京颐科技股份有限公司 For live broadcasting method and device, storage medium, the computing device of medical care terminal
WO2018121738A1 (en) * 2016-12-30 2018-07-05 北京奇虎科技有限公司 Method and apparatus for processing streaming data task
CN109446170A (en) * 2018-09-13 2019-03-08 北京米文动力科技有限公司 A kind of profile data synchronous method and equipment
CN109756286A (en) * 2019-01-23 2019-05-14 重庆邮电大学 A kind of Network Synchronization broadcasting method of DMB audio
CN109814996A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Streaming media control method, device and storage medium, computer equipment
WO2019129667A1 (en) * 2017-12-29 2019-07-04 Unify Patente Gmbh & Co. Kg Real-time collaboration platform and method for outputting media streams via a real-time announcement system
CN110392071A (en) * 2018-04-18 2019-10-29 网宿科技股份有限公司 Upload, method for down loading, dissemination system and the streaming media server of streaming media resource
CN110401854A (en) * 2019-07-11 2019-11-01 贵阳语玩科技有限公司 A kind of reliable flow media distribution system and method for high concurrent low time delay
CN110459308A (en) * 2019-07-12 2019-11-15 广东群创信息科技有限公司 A kind of method, system, platform and the storage medium of sickroom multimedia propaganda and education
CN111013133A (en) * 2019-11-29 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device
CN111479121A (en) * 2020-04-08 2020-07-31 北京智能工场科技有限公司 Live broadcasting method and system based on streaming media server

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001039506A2 (en) * 1999-11-22 2001-05-31 Spiderdance, Inc. System and method for synchronizing online activities with broadcast programming
CN1728657A (en) * 2004-07-30 2006-02-01 Ut斯达康通讯有限公司 Load simulator and simulation system for stream media service
CN103248956A (en) * 2013-05-20 2013-08-14 浙江传媒学院 Realizing method and system of intelligent home video business in multi-screen cooperating mode
CN105578224A (en) * 2014-11-10 2016-05-11 阿里巴巴集团控股有限公司 Multimedia data acquisition method, device, smart television and set-top box
CN105957519A (en) * 2016-06-30 2016-09-21 广东美的制冷设备有限公司 Method and system for carrying out voice control in multiple regions simultaneously, server and microphone
WO2018121738A1 (en) * 2016-12-30 2018-07-05 北京奇虎科技有限公司 Method and apparatus for processing streaming data task
CN108111505A (en) * 2017-12-18 2018-06-01 上海京颐科技股份有限公司 For live broadcasting method and device, storage medium, the computing device of medical care terminal
WO2019129667A1 (en) * 2017-12-29 2019-07-04 Unify Patente Gmbh & Co. Kg Real-time collaboration platform and method for outputting media streams via a real-time announcement system
CN110392071A (en) * 2018-04-18 2019-10-29 网宿科技股份有限公司 Upload, method for down loading, dissemination system and the streaming media server of streaming media resource
CN109446170A (en) * 2018-09-13 2019-03-08 北京米文动力科技有限公司 A kind of profile data synchronous method and equipment
CN109814996A (en) * 2019-01-04 2019-05-28 平安科技(深圳)有限公司 Streaming media control method, device and storage medium, computer equipment
CN109756286A (en) * 2019-01-23 2019-05-14 重庆邮电大学 A kind of Network Synchronization broadcasting method of DMB audio
CN110401854A (en) * 2019-07-11 2019-11-01 贵阳语玩科技有限公司 A kind of reliable flow media distribution system and method for high concurrent low time delay
CN110459308A (en) * 2019-07-12 2019-11-15 广东群创信息科技有限公司 A kind of method, system, platform and the storage medium of sickroom multimedia propaganda and education
CN111013133A (en) * 2019-11-29 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device
CN111479121A (en) * 2020-04-08 2020-07-31 北京智能工场科技有限公司 Live broadcasting method and system based on streaming media server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824973A (en) * 2021-08-04 2021-12-21 杭州星犀科技有限公司 Multi-platform direct-push plug flow method, system, electronic device and storage medium
CN115334321A (en) * 2022-08-10 2022-11-11 北京百度网讯科技有限公司 Method and device for acquiring access heat of video stream, electronic equipment and medium
CN115334321B (en) * 2022-08-10 2024-04-09 北京百度网讯科技有限公司 Method and device for acquiring access heat of video stream, electronic equipment and medium

Also Published As

Publication number Publication date
CN112351299B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
US7996538B2 (en) Information processing apparatus and content information processing method for transmitting content and event information to a client
JP3628359B2 (en) Data transfer method, data transmission device, data reception device, and video mail system
US7376747B2 (en) Streaming of data
US8799495B2 (en) Multiple devices multimedia control
CN102474671B (en) Information processing system and information processor
US20040045036A1 (en) Delivery system and method of real-time multimedia streams
US9055193B2 (en) System and method of a remote conference
US20090249222A1 (en) System and method for simultaneous media presentation
CN112351299B (en) Propaganda and education broadcasting method and device
EP1611728B1 (en) Contents distribution system with intergrated recording rights control
JP4294933B2 (en) Multimedia content editing apparatus and multimedia content reproducing apparatus
JP4285444B2 (en) Reproduction system, reproduction apparatus, reception reproduction apparatus, and reproduction method
WO2015180446A1 (en) System and method for maintaining connection channel in multi-device interworking service
JP2005318250A (en) Live content viewing/listening continuation system, method, device, and program
US9270779B2 (en) Display service method, network device capable of performing the method, and storage medium storing the method
EP1001581B1 (en) Network apparatus and network communication method for image delivery in a mobile network
JP2001242876A (en) Method and device for receiving and reproducing data and method and device for transmitting data
JP2007166572A (en) Method, computing system, and computer readable medium for group reproduction applied on network
JP4055776B2 (en) Content distribution system, and peer and peer program used therefor
CN108668140B (en) Audio and video interaction state synchronization method and device
US20160173551A1 (en) System and method for session mobility for adaptive bitrate streaming
WO2019188485A1 (en) Information processing device, information processing device, and program
JP2002262286A (en) Data transmission method, data transmitter, data reproduction method and reproducing device
JP2002185948A (en) Method and device for distributing stream
JP4539102B2 (en) Content reproduction method and apparatus

Legal Events

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