CN113923510B - Method, device, equipment and readable storage medium for forwarding digital television content - Google Patents

Method, device, equipment and readable storage medium for forwarding digital television content Download PDF

Info

Publication number
CN113923510B
CN113923510B CN202111180070.6A CN202111180070A CN113923510B CN 113923510 B CN113923510 B CN 113923510B CN 202111180070 A CN202111180070 A CN 202111180070A CN 113923510 B CN113923510 B CN 113923510B
Authority
CN
China
Prior art keywords
terminal
protocol
digital television
source
television content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111180070.6A
Other languages
Chinese (zh)
Other versions
CN113923510A (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202111180070.6A priority Critical patent/CN113923510B/en
Publication of CN113923510A publication Critical patent/CN113923510A/en
Application granted granted Critical
Publication of CN113923510B publication Critical patent/CN113923510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Abstract

The invention discloses a method, a device, equipment and a readable storage medium for forwarding digital television content, wherein, a source end and a terminal are in communication connection through a preset protocol, the source end and the terminal are both configured with the preset protocol and are connected through the preset protocol, then the source end collects TS stream data packets of channels to complete the channel data collection of the digital television, then the TS stream data packets of the channels are transmitted to the terminal through the preset protocol, the terminal receives the TS stream data packets of the channels and then performs demultiplexing and decoding to obtain a playable decoding file, and finally the playable decoding file is played, thereby realizing the technical effect of transmitting the content of the digital television to the terminal for playing. The method for forwarding the digital television content disclosed by the invention can solve the technical problem that the digital television media content cannot be watched through mobile equipment such as a mobile phone.

Description

Method, device, equipment and readable storage medium for forwarding digital television content
Technical Field
The invention belongs to the technical field of intelligent refrigerators, and particularly relates to a method, a device, equipment and a readable storage medium for forwarding digital television content.
Background
The digital television (Digital Television) is a television system for digitally processing signals from program acquisition, program production, program transmission to the user side, i.e. all links from studio to transmission, transmission and reception use digital signals, or are propagated by a digital sequence consisting of 0, 1 digital strings. Digital television is a third generation television type following black-and-white analog television and color analog television, and is a concept relative to analog television. Compared with analog television, digital television has higher image quality, stronger function, better sound effect, richer content and usually has interactivity and communication function.
The television or the set top box supports digital television signal receiving, and the digital signal television is used as a resource for watching the multimedia content, has the advantages of not occupying the bandwidth of the Internet and not consuming the mobile signal flow, so that more and more consumers today rely on mobile equipment such as mobile phones to watch the media content, and the existing digital television can watch the media content only through the television, and has the problem that the digital television cannot watch the media content through the mobile equipment such as the mobile phones.
Disclosure of Invention
In order to overcome the above drawbacks of the prior art, the present invention is directed to a method, apparatus, device and readable storage medium for forwarding digital television content, which aims to solve the technical problem that digital television media content cannot be watched through mobile devices such as mobile phones.
The invention adopts the following technical scheme to achieve the aim of the invention:
a method of forwarding digital television content for a source, comprising the steps of:
acquiring a connection request of a terminal;
establishing a connection channel with a terminal according to a preset protocol;
acquiring TS stream data packets of channels;
and transmitting the TS stream data packet to the terminal.
Further, the preset protocol is combined in the middleware; the step of collecting TS stream data packets of the channel further comprises the following steps: and acquiring TS stream data packets of the channels through an intermediate interface.
Correspondingly, the invention also provides a method for forwarding the digital television content, which is used for the terminal and comprises the following steps:
sending a connection request to a source end, and establishing a connection channel with the source end according to a preset protocol;
acquiring TS stream data packets of a source end;
demultiplexing and decoding TS stream data packets and generating a decoding file;
and playing the decoded file.
Further, the step of demultiplexing and decoding the TS stream packet further includes the steps of:
demultiplexing TS stream data packets through ffmpeg to generate media data;
and decoding the media data by using a media codec technology to generate a decoding file.
Further, the step of sending the connection request to the source end further includes the following steps:
discovering a source end through a device discovery protocol;
then acquiring source end information through a preset protocol;
judging whether a corresponding source terminal is provided with a preset protocol or not through the source terminal information;
and if the source end is provided with a preset protocol, sending a connection request to the source end.
Further, in the step of sending the connection request to the source end and establishing a connection channel with the source end according to a preset protocol, the connection channel is a connection channel based on a websocket protocol.
Further, before the step of sending the connection request to the source end and establishing the connection channel with the source end, the method further comprises the following steps:
the source is discovered through the SSDP protocol.
Correspondingly, the invention also provides a device for forwarding the digital television content, which is used for a source terminal and comprises the following components:
the acquisition module is used for acquiring a connection request of the terminal;
the connection module establishes a connection channel with the terminal according to a preset protocol;
the acquisition module is used for acquiring TS stream data packets of channels;
and the sending module is used for sending the TS stream data packet to the terminal.
Correspondingly, the invention also provides a device for forwarding the digital television content, which is used for a terminal and comprises:
the establishing module is used for sending a connection request to the source end and establishing a connection channel with the source end;
the TS stream module is used for acquiring TS stream data packets of the terminal;
the decoding module is used for demultiplexing and decoding the TS stream data packet and generating a decoding file;
and the playing module is used for playing the decoded file.
Correspondingly, the invention also provides a device for forwarding the digital television content, which comprises a memory, a processor and a forwarding digital television content program stored on the memory and capable of running on the processor, wherein the forwarding digital television content program is configured to realize the steps of the method for forwarding the digital television content.
Correspondingly, the invention also provides a readable storage medium, on which a program for forwarding digital television content is stored, which when executed by a processor, implements the steps of the method for forwarding digital television content as described above.
Compared with the prior art, the invention has the beneficial effects that:
the method for forwarding the digital television content provided by the invention has the advantages that the source end is in communication connection with the terminal through the preset protocol, the source end and the terminal are both configured with the preset protocol and are connected through the preset protocol, then the source end collects TS stream data packets of channels to complete the channel data collection of the digital television, then the TS stream data packets of the channels are transmitted to the terminal through the preset protocol, the terminal receives the TS stream data packets of the channels and then performs demultiplexing and decoding to obtain playable decoding files, and finally playing is performed, so that the technical problem that the digital television media content cannot be watched through mobile equipment such as a mobile phone in the prior art is solved, and the technical effect of transmitting the digital television content to the terminal for playing is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an apparatus for forwarding digital television content in a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for forwarding digital television content for a source according to an embodiment of the present invention;
fig. 3 is a flow chart of a method for transferring digital television content for a terminal according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. The embodiments of the present invention and the features in the embodiments may be combined with each other without collision. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, and the described embodiments are merely some, rather than all, embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
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 invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an apparatus for forwarding digital television content in a hardware running environment according to an embodiment of the present invention.
The device for forwarding digital television content according to the embodiment of the present invention may be a terminal device having a storage function.
As shown in fig. 1, the apparatus for forwarding digital television content may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the apparatus for forwarding digital television content shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a program for forwarding digital television content may be included in a memory 1005, which is a computer-readable storage medium.
In the apparatus for forwarding digital television content as shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 mainly includes an input unit such as a keyboard including a wireless keyboard and a wired keyboard for connecting to a client for data communication with the client; and the processor 1001 may be configured to call a program for forwarding digital television content stored in the memory 1005 and perform operations in the method for forwarding digital television content in any of the embodiments described below.
Based on the above hardware structure, the embodiment of the method for forwarding digital television content is provided.
Referring to fig. 2, an embodiment of the present invention provides:
a method of forwarding digital television content for a source, comprising the steps of:
step S110, obtaining a connection request of a terminal;
specifically, in this embodiment, the source end and the terminal need to be connected in the same lan, so that the connection request of the terminal can be obtained.
Step S120, a connection channel is established with the terminal according to a preset protocol;
specifically, the preset protocol in this embodiment is a private protocol, and the private protocol is based on the websocket protocol to modify and freely define the format of the transmission content of the private protocol to form the private protocol, so that the preset protocol is based on the websocket protocol, and the connection channel is a transmission channel of the websocket protocol, and is mainly used for realizing message transmission between the terminal and the source end and transmission of the TS data packet; the format of the transmission content is freely defined according to the use requirement and becomes a private protocol; the message transmission comprises the steps of acquiring a program list, EPG, controlling the source end to switch, controlling the source end to stop screen, acquiring the playing state of the source end and the like; more specifically, a transmission channel established by the source end and the terminal adopts a websocket protocol, and the websocket protocol is suitable for transmitting TS stream data in long-time communication data transmission performance, so that stability and integrity of DTV data transmission are guaranteed to the greatest extent, and the technical effect that a data transmission process is more stable and the duration is longer is realized.
Step S130, TS stream data packets of channels are collected;
specifically, in this embodiment, the source end collects the TS packets of the channels through the middleware, so as to achieve the effect of collecting and obtaining the DTV data of the digital television.
Step S140, the TS stream data packet is transmitted to the terminal.
Specifically, in this embodiment, the TS packets of each channel acquired in the above steps are mainly sent to the terminal through the websocket protocol, so that the technical effect of sending the active end of the digital television signal data DTV to the terminal is achieved, and the technical effect of playing the digital television on the terminal can be completed by the terminal receiving and decoding and playing the TS packets.
More specifically, in this embodiment, the source end may be a digital television end or an end such as a set top box that may have a DTV function; the source end is mainly used for receiving digital television signal data DTV, namely a digital television or a set top box and the like which are commonly used in the prior art, wherein the DTV in the prior art can only be played in the digital television, and people use the mobile end more frequently nowadays, so that the problem that the DTV cannot be played in the mobile end exists; the preset protocol is a private protocol, the source end and the terminal are both configured with the private protocol and establish connection through the private protocol, then the source end collects TS stream data packets of channels to complete channel data collection of the digital television, the TS stream data packets of the channels are transmitted to the terminal through the private protocol, the terminal receives the TS stream data packets of the channels and then performs demultiplexing and decoding to obtain playable decoding files, and finally playing is performed, so that the technical problem that the digital television media contents cannot be watched through mobile equipment such as a mobile phone is solved, and the technical effect of transmitting the digital television contents to the terminal for playing is achieved.
Further, the preset protocol is combined in the middleware; the step of collecting TS stream data packets of the channel further comprises the following steps: and acquiring TS stream data packets of the channels through an intermediate interface.
Specifically, in this embodiment, the preset protocol is started along with the start of the source end, and the preset protocol is mainly combined with the original intermediate interface of the source end to obtain the data such as the channel list and the TS stream data packet of each channel, and meanwhile, the control operations such as switching or screen-off can be performed through the middleware.
Further, step S150 is further included, in which a control signal of the terminal is obtained;
step S160, changing the corresponding state according to the control signal;
specifically, the control signals in this embodiment include signals for acquiring a program list, an EPG, controlling source-side switching, controlling source-side screen-off, and the like; when the control signal is acquired, the preset protocol completes corresponding control operation through the middleware, for example, when the preset protocol acquires the screen-extinguishing signal, the preset protocol sends the corresponding signal to the middleware, and the middleware performs screen-extinguishing control operation according to the corresponding signal, so that screen-extinguishing actions are completed, and the technical effect of controlling various operations of a source end through a terminal is achieved.
Referring to fig. 3, the present invention also provides a method for forwarding digital television content, for a terminal, comprising the steps of:
step S210, a connection request is sent to a source end, and a connection channel is established with the source end according to a preset protocol;
specifically, the terminal in this embodiment may be a mobile terminal such as a mobile phone terminal, a tablet terminal, or a PC terminal; the terminal is provided with a preset protocol, and after the terminal sends a connection request to the source end, the terminal establishes a connection channel with the source end through communication connection of the preset protocol; therefore, the technical effects of signal and data transmission between the terminal and the source terminal are realized;
step S220, TS stream data packets of a source end are obtained;
specifically, in this embodiment, a websocket protocol transmission channel established through a preset protocol receives a TS stream packet from an acquisition source.
Step S230, demultiplexing and decoding TS stream data packets and generating a decoding file;
specifically, in this embodiment, the TS stream packets are demultiplexed and decoded for subsequent playback, and different device environments may use different tools to decode according to actual situations, so as to finally generate a playable decoded file.
Step S240, playing the decoded file.
Specifically, the calibration of audio and video synchronization is needed to be performed again for generating the decoding file, and after the audio and video synchronization is completed, the digital television is finally broadcasted, so that the technical effect of broadcasting the digital television on the mobile terminal is completed.
Further, in step S210, the step of sending the connection request to the source end further includes the following steps:
step S211, the source end is discovered through the device discovery protocol;
specifically, in this embodiment, the source end and the terminal need to be connected to the same lan, and when the terminal is connected to the source end and the same lan, the source end in the search area can be implemented through the device discovery protocol, so as to send a connection request to the source end; more specifically, the device discovery protocol may use SSDP type protocol to implement discovery and searching in the wireless lan, for example, DLNA protocol may be used for android device.
Step S212, acquiring source end information through a preset protocol;
specifically, after the source is found, the source information of the source is obtained through a preset protocol, namely websocket protocol.
Step S213, judging whether the corresponding source terminal is provided with a preset protocol or not according to the source terminal information;
specifically, the source information in the embodiment includes a source device model, control system information, various protocol information, and the like; whether a preset protocol is set or not is judged through inquiry, so that the transmission of the TS stream data packet can be achieved through judgment, and if the preset protocol is not set at the source end, a connection request cannot be sent to the source end.
Step S214, if the source end is provided with a preset protocol, a connection request is sent to the source end.
Specifically, in this embodiment, after determining that the source end is provided with the preset protocol, the source end can send a connection request; more specifically, the terminal may embed the function into the mobile APP to implement a quick connection between the mobile device and the tv, for example, the terminal establishes an APP item and provides a button for one-touch connection on the UI, and determines to send a connection request to the source terminal by pressing the button.
Further, in step S230, the step of demultiplexing and decoding the TS stream data packet further includes the steps of:
step S231, de-multiplexing TS stream data packets through ffmpeg to generate media data;
step S232, decoding the media data by using a media encoding and decoding technology to generate a decoding file.
Specifically, the source media data is decoded by using ffmpeg to demultiplex TS stream data packets, and a media codec technology, wherein a MediaCodec type Android provides an interface for accessing a low-level multimedia codec, which is a part of an Android low-level multimedia architecture, is generally used in combination with MediaExtractor, mediaMuxer, audioTrack, and can codec common audio and video formats such as H.264, H.265, AAC, 3gp and the like; the TS stream data packet is decoded through the ffmpeg and the media to generate a playable decoding file, and finally the technical effect that the terminal can play the digital television is realized.
Step S220, before the step of obtaining the TS stream packet of the terminal, further includes the following steps:
step S221, obtaining channel list information of a source terminal;
step S222, sending a control signal to the source.
Specifically, in this embodiment, channel list information of the source end is obtained by communication between the preset protocol and the source end, so that a user can select a desired channel according to the channel list information, thereby obtaining a TS stream data packet of a corresponding channel, and having a technical effect of flexible obtaining; similarly, the terminal sends a control signal to the source end through a preset protocol, and the source end performs corresponding control operation through the middleware.
Further, the step of establishing a connection channel with the source end includes the following steps:
and establishing a websocket protocol transmission connection channel with the source end.
Specifically, in this embodiment, a connection channel is mainly established with the source end, where the connection channel adopts a websocket protocol, and the websocket protocol is suitable for transmitting TS stream data in long-time communication data transmission performance, so as to ensure stability and integrity of DTV data transmission to the greatest extent, that is, achieve the technical effect that the data transmission process is more stable and the duration is longer.
More specifically, as described above, the present application provides a method for forwarding digital television content, which adopts a method in which a source terminal collects DTV data, performs local area network forwarding, and a terminal obtains DTV data and decodes and plays the DTV data.
The main technical effects that realize:
a. the digital television content (channel list, EPG, live broadcast) can not be directly watched on the mobile phone, and is synchronized to the mobile phone screen through the private protocol, thereby realizing the playing of the digital television content on the mobile phone. The digital television content on the television can be watched normally on the mobile phone, and cross-platform content sharing is realized.
b. The mobile phone terminal can embed functions into the mobile phone APP, so that the mobile device and the television can be quickly connected.
c. The television only forwards the digital television content, and can play television programs in environments where a large screen is not applicable (such as a bathroom or when a user is lying in a bed to watch portable mobile equipment).
Correspondingly, the invention also provides a device for forwarding the digital television content, which is used for a source terminal and comprises the following components:
the acquisition module is used for acquiring a connection request of the terminal;
the judging module is used for judging whether the terminal is provided with a preset protocol or not;
the determining module establishes communication connection with the terminal when the terminal is provided with a preset protocol;
the acquisition module is used for acquiring TS stream data packets of channels;
and the sending module is used for sending the TS stream data packet to the terminal.
Correspondingly, the invention also provides a device for forwarding the digital television content, which is used for a terminal and comprises:
the establishing module is used for sending a connection request to the source end and establishing a connection channel with the source end;
the TS stream module is used for acquiring TS stream data packets of the terminal;
the decoding module is used for demultiplexing and decoding the TS stream data packet and generating a decoding file;
and the playing module is used for playing the decoded file.
Correspondingly, the invention also provides a readable storage medium, on which a program for forwarding digital television content is stored, which when executed by a processor, implements the steps of the method for forwarding digital television content as described above.
It should be noted that, regarding the apparatus for forwarding digital television content in the above embodiments, the specific manner in which each module or unit performs the operation has been described in detail in the embodiments related to the method, and those skilled in the art will understand that the details are not repeated here.
Correspondingly, an embodiment of the present invention further provides a readable storage medium, which is a computer readable storage medium, and has stored thereon a program for forwarding digital television content, where the program for forwarding digital television content, when executed by a processor, implements the steps of the method for forwarding digital television content in any of the foregoing embodiments.
In the present embodiment, the above-mentioned readable storage medium may include, but is not limited to, any type of disk (including a floppy disk, a hard disk, an optical disk, a CD-ROM, and a magneto-optical disk), a ROM (Read-Only Memory), a RAM (Random AccessMemory ), an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), a flash Memory, a magnetic card, or an optical card, and the like, which can store the program codes.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be noted that, the method and apparatus for forwarding digital television content, the device for forwarding digital television content, and other content of the readable storage medium disclosed in the present invention may refer to the prior art, and are not described herein again.
The foregoing description is only of optional embodiments of the present invention, and is not intended to limit the present invention in any way, so any modifications, equivalent variations and alterations to the above embodiments according to the technical principles of the present invention will still fall within the scope of the technical solutions of the present invention.

Claims (9)

1. A method for forwarding digital television content, for a source, comprising the steps of:
acquiring a connection request of a terminal, wherein a source terminal and the terminal are connected in the same local area network, the connection request is sent after the terminal realizes the source terminal in a search area through a device discovery protocol, and the device discovery protocol can adopt an SSDP type protocol to realize the discovery and search in a wireless local area network;
establishing a connection channel with a terminal according to a preset protocol, wherein the preset protocol is combined in a middleware, the middleware is used for switching or screen-off, and the preset protocol is a private protocol for modifying a format freely defining transmission content based on a websocket protocol;
acquiring a control signal of a terminal, wherein the control signal at least comprises a program list, an EPG, a control source terminal cutting table and a control source terminal screen;
changing the corresponding state according to the control signal;
acquiring TS stream data packets of channels;
transmitting the TS stream data packet to a terminal;
the step of collecting TS stream data packets of the channel further comprises the following steps:
and acquiring TS stream data packets of the channels through an intermediate interface.
2. A method of forwarding digital television content for a terminal, comprising the steps of:
after realizing the source end in the search area through the equipment discovery protocol, sending a connection request to the source end, and establishing a connection channel with the source end according to a preset protocol, wherein the source end and the terminal are connected in the same local area network, and the equipment discovery protocol can adopt an SSDP type protocol to realize the discovery and search in the wireless local area network;
the method comprises the steps of obtaining channel list information of a source terminal through communication between a preset protocol and the source terminal, and sending a control signal to the source terminal according to a channel required by selection, wherein the control signal at least comprises a program list obtaining, an EPG (electronic program guide), a source terminal switching control and a source terminal screen-off control, the preset protocol is combined in a middleware, and the preset protocol is a private protocol which is modified based on a websocket protocol and freely defines the format of transmission content;
acquiring TS stream data packets of a source end;
demultiplexing and decoding the TS stream data packet, and generating a decoding file;
and playing the decoded file.
3. The method for forwarding digital television content according to claim 2, wherein said step of demultiplexing and decoding said TS stream packets further comprises the steps of:
demultiplexing TS stream data packets through ffmpeg to generate media data;
and decoding the media data by using a media coding and decoding technology to generate a decoding file.
4. The method for forwarding digital television content according to claim 2, wherein the step of sending the connection request to the source terminal further comprises the steps of:
discovering a source end through a device discovery protocol;
then acquiring source end information through a preset protocol;
judging whether a corresponding source terminal is provided with a preset protocol or not through the source terminal information;
and if the source end is provided with a preset protocol, sending a connection request to the source end.
5. The method according to claim 2, wherein in the step of sending a connection request to the source terminal and establishing a connection channel with the source terminal according to a predetermined protocol, the connection channel is a connection channel based on a websocket protocol.
6. A device for forwarding digital television content, comprising:
the acquisition module is used for acquiring a connection request of the terminal, wherein the source terminal and the terminal are connected in the same local area network, the connection request is sent after the terminal realizes the source terminal in the search area through a device discovery protocol, and the device discovery protocol can adopt an SSDP type protocol to realize the discovery and search in the wireless local area network;
the connection module establishes a connection channel with the terminal according to a preset protocol, wherein the preset protocol is combined in a middleware, the middleware is used for switching or screen-off, and the preset protocol is a private protocol for modifying the format of freely defined transmission content based on a websocket protocol;
the acquisition module is further used for acquiring control signals of the terminal, wherein the control signals at least comprise a program list, an EPG, a control source terminal station cutting and a control source terminal screen;
the acquisition module is used for acquiring TS stream data packets of channels;
the sending module is used for sending the TS stream data packet to a terminal;
the acquisition module is further used for:
and acquiring TS stream data packets of the channels through an intermediate interface.
7. A device for forwarding digital television content, characterized in that it is used for a terminal, comprising:
the establishing module is used for sending a connection request to the source end after the source end in the searching area is realized through the equipment discovery protocol, and establishing a connection channel with the source end, wherein the source end and the terminal are connected in the same local area network, and the equipment discovery protocol can adopt an SSDP type protocol to realize discovery and searching in the wireless local area network;
the acquisition module is used for acquiring channel list information of the source terminal through communication between a preset protocol and the source terminal, and transmitting a control signal to the source terminal according to a channel required by selection, wherein the control signal at least comprises a program list acquisition, an EPG, a source terminal switching control and a source terminal screen control, the preset protocol is combined in a middleware, and the preset protocol is a private protocol which is used for modifying a format freely defining transmission content based on a websocket protocol;
the TS stream module is used for acquiring TS stream data packets of the terminal;
the decoding module is used for demultiplexing and decoding the TS stream data packet and generating a decoding file;
and the playing module is used for playing the decoded file.
8. An apparatus for forwarding digital television content, comprising a memory, a processor, and a forwarding digital television content program stored on the memory and executable on the processor, the forwarding digital television content program configured to implement the steps of the method of forwarding digital television content of claim 1 or the method of forwarding digital television content of any of claims 2 to 5.
9. A readable storage medium, having stored thereon a program of forwarding digital television content, which when executed by a processor, implements the method of forwarding digital television content according to claim 1 or the steps of the method of forwarding digital television content according to any one of claims 2 to 5.
CN202111180070.6A 2021-10-11 2021-10-11 Method, device, equipment and readable storage medium for forwarding digital television content Active CN113923510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111180070.6A CN113923510B (en) 2021-10-11 2021-10-11 Method, device, equipment and readable storage medium for forwarding digital television content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111180070.6A CN113923510B (en) 2021-10-11 2021-10-11 Method, device, equipment and readable storage medium for forwarding digital television content

Publications (2)

Publication Number Publication Date
CN113923510A CN113923510A (en) 2022-01-11
CN113923510B true CN113923510B (en) 2024-02-02

Family

ID=79238901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111180070.6A Active CN113923510B (en) 2021-10-11 2021-10-11 Method, device, equipment and readable storage medium for forwarding digital television content

Country Status (1)

Country Link
CN (1) CN113923510B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531612B (en) * 2022-02-21 2024-02-13 深圳市宝力威新材料有限公司 Household informatization system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458087A (en) * 2013-08-30 2013-12-18 华南理工大学 Remote mobile phone test experiencing method based on RTMP
CN104967904A (en) * 2014-04-10 2015-10-07 腾讯科技(深圳)有限公司 Method for recording and playing back terminal video and apparatus thereof
CN106371998A (en) * 2016-09-13 2017-02-01 网易(杭州)网络有限公司 Mobile application testing system and method
CN106685959A (en) * 2016-12-28 2017-05-17 福建星网视易信息系统有限公司 Method for controlling set top box by mobile terminal in real time, device and system
CN207184720U (en) * 2017-09-21 2018-04-03 福建星网视易信息系统有限公司 A kind of mobile terminal wirelessly throws screen order programme
CN111225271A (en) * 2020-01-19 2020-06-02 上海小麦互动企业发展有限公司 Multi-engine image capturing and screen recording method based on android set top box platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011101507A1 (en) * 2010-02-22 2011-08-25 Telefonica, S.A. Method for transcoding and playing video files back using grid technology on devices having limited computing power

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458087A (en) * 2013-08-30 2013-12-18 华南理工大学 Remote mobile phone test experiencing method based on RTMP
CN104967904A (en) * 2014-04-10 2015-10-07 腾讯科技(深圳)有限公司 Method for recording and playing back terminal video and apparatus thereof
CN106371998A (en) * 2016-09-13 2017-02-01 网易(杭州)网络有限公司 Mobile application testing system and method
CN106685959A (en) * 2016-12-28 2017-05-17 福建星网视易信息系统有限公司 Method for controlling set top box by mobile terminal in real time, device and system
CN207184720U (en) * 2017-09-21 2018-04-03 福建星网视易信息系统有限公司 A kind of mobile terminal wirelessly throws screen order programme
CN111225271A (en) * 2020-01-19 2020-06-02 上海小麦互动企业发展有限公司 Multi-engine image capturing and screen recording method based on android set top box platform

Also Published As

Publication number Publication date
CN113923510A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
US8473994B2 (en) Communication system and method
CN108259813B (en) Multifunctional screen transmission device, system and method
JP2016213884A (en) Information processing device, information processing method, and program
US20080271097A1 (en) System And Method For Receiving And Playing Network Television Programs
CN112019927B (en) Video live broadcast method, microphone connecting equipment, live broadcast system and storage medium
KR20060095090A (en) System and method for providing personal broadcasting service with wireless terminal
US20150020099A1 (en) Set top box interaction method and related set top box system
KR20090003809A (en) Method for playing data using networks and device using the same
CN106464933B (en) Apparatus and method for remotely controlling rendering of multimedia content
CN102638443A (en) Method and system for sharing streaming media resources, and device with DLNA (Digital Living Network Alliance) function
CN110662114B (en) Video processing method and device, electronic equipment and storage medium
KR20150025514A (en) Method for relaying contents in contents reproducing device
CN103096128A (en) Method capable of achieving video interaction, server, terminal and system
KR20070055894A (en) Homenetwork/broadcast linkage system and method for using multimedia contents between home network and broadcast
KR100765888B1 (en) Method and device for displaying digital broadcasting data
CN105142003B (en) Television program playing method and device
CN101577650A (en) Household palmtop mobile television system
CN113923510B (en) Method, device, equipment and readable storage medium for forwarding digital television content
KR102630037B1 (en) Information processing device, information processing method, transmission device, and transmission method
JPWO2017047434A1 (en) Transmitting apparatus, receiving apparatus, and data processing method
CN113014950A (en) Live broadcast synchronization method and system and electronic equipment
CN101527153A (en) Method of synchronously displaying asynchronous transmitted text and audio and video data on mobile terminal
KR100800834B1 (en) Mobile communication terminal for playing digital broadcasting and a method thereof
CN110662092B (en) Digital television signal processing method and device based on intelligent digital set top box
KR100530860B1 (en) Live tv service providing method for mobile terminal and the service system using the same

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