CN110730368B - Code stream automatic switching method, smart television and storage medium - Google Patents

Code stream automatic switching method, smart television and storage medium Download PDF

Info

Publication number
CN110730368B
CN110730368B CN201810786133.4A CN201810786133A CN110730368B CN 110730368 B CN110730368 B CN 110730368B CN 201810786133 A CN201810786133 A CN 201810786133A CN 110730368 B CN110730368 B CN 110730368B
Authority
CN
China
Prior art keywords
code stream
client
playing
automatic switching
parameters
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
CN201810786133.4A
Other languages
Chinese (zh)
Other versions
CN110730368A (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 TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology 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 TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201810786133.4A priority Critical patent/CN110730368B/en
Publication of CN110730368A publication Critical patent/CN110730368A/en
Application granted granted Critical
Publication of CN110730368B publication Critical patent/CN110730368B/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content 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 the scheduling operation being performed under constraints
    • 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/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a code stream automatic switching method, an intelligent television and a storage medium, wherein the method comprises the following steps: starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing; distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface; and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection. The invention realizes automatic switching of code stream input in the automatic test of the TV through automatic switching of code streams, meets the functional test of different scenes and realizes the automatic test of the TV client.

Description

Code stream automatic switching method, smart television and storage medium
Technical Field
The invention relates to the technical field of TV automatic testing, in particular to a code stream automatic switching method, an intelligent TV and a storage medium.
Background
With the popularization and application of h.264 video compression (h.264 is a standard of a highly compressed digital video codec), in the prior art, comprehensive and wide research is respectively developed on h.264 code stream control (used for realizing control on the size of a video stream code stream) from a Multi-Frame level (Multi-Frame level), a single-Frame level (Frame level) and a Macro-block level (Macro-block level), and an h.264 code stream control algorithm is implemented in a chip by combining actual engineering application, so that full high-definition productization and engineering of h.264 are realized.
The H.264 is an extremely efficient compression technology, which can compress large files in a large scale and reduce the bit rate on the premise of not affecting the image quality, so that the popularization speed of the megapixel camera is expected to be improved, and although the H.264 can save the network bandwidth and the storage cost, the H.264 puts higher performance requirements on the network camera and the display terminal.
In the test of the TV, the demand for the code stream is indispensable, and to realize the automatic test of the TV, the automatic switching of the code stream is required to be realized.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention aims to solve the technical problem that the invention provides a code stream automatic switching method, an intelligent television and a storage medium aiming at realizing automatic switching of code stream input in the automatic test of the TV through automatic switching of the code stream, meeting the functional test of different scenes and realizing the automatic test of a TV client.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a code stream automatic switching method comprises the following steps:
starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing;
distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface;
and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection.
The code stream automatic switching method, wherein the starting of the socket service establishes a socket connection with at least one TV client, and sending the playing parameters and setting parameters of the code stream playing specifically comprises:
the code stream control server starts a socket service and starts a plurality of routines to wait for connection of the TV client;
the code stream control server receives a socket request sent by at least one TV client and establishes socket connection with the at least one TV client;
and after the socket connection is established, the code stream control server receives the playing parameters and the setting parameters sent by the TV client through the network TCP protocol.
The method for automatically switching the code streams comprises the steps that the TV client calls a code stream playing interface by setting a test case, and sends a socket request to a code stream control server.
The automatic code stream switching method comprises the steps that the playing parameters and the setting parameters comprise code stream files, times, systems, frequency points, modulation modes, guard intervals, bandwidths and coding efficiency.
The code stream automatic switching method, wherein the allocating of the idle code stream playing resources to the TV client, assembling the playing parameters and the setting parameters into a script and executing, and implementing the playing of the code stream by calling the interface specifically includes:
after receiving a message sent by a TV client, a code stream control server searches whether an idle code stream playing resource exists at present;
if no idle code stream playing resources exist, adding the TV client into a waiting queue, and when other TV clients release the code stream playing resources, sequentially distributing the released code stream playing resources according to the queue;
if the idle code stream playing resource exists, allocating an idle code stream playing resource and continuously analyzing the message sent by the TV client;
and after the TV client distributes the code stream playing resources, the code stream control server continues to analyze the messages sent by the client, assembles the playing parameters and the setting parameters into a script and executes the script, and realizes the playing of the code stream by calling a relevant SDK interface of Dektec.
The method for automatically switching the code stream, wherein if there is an idle code stream playing resource, allocating an idle code stream playing resource, and after continuously analyzing the message sent by the TV client, the method further comprises the following steps:
inquiring frequency points played by all currently played code stream playing resources, and judging whether the frequency points sent by the TV client have the currently played code stream playing resources;
if a frequency point is used, adding the TV client into a waiting queue, and after the playing resources of the frequency point are released, sequentially distributing the released code stream playing resources according to the queue;
and if no frequency point is used, the TV client successfully allocates the code stream playing resource.
The code stream automatic switching method includes the steps that after the code stream is successfully played and the test case is executed, the code stream playing resources are released, a message of successful release is sent to the TV client, and the socket connection disconnection specifically includes:
when the code stream is successfully played, the code stream control server returns a message of successful playing to the TV client through socket connection;
when the TV client receives the message of successful playing, the TV client continues to execute the test case, and when the test case is executed, the code stream control server releases the code stream playing resource;
the code stream control server releases the code stream playing resources to an idle code stream playing resource pool for other TV clients to use;
and when the release is successful, the code stream control server side sends a message of successful release to the TV client side, and the TV client side disconnects the socket connection after receiving the message of successful code stream release.
The code stream automatic switching method needs different code stream files, times, systems, frequency points, modulation modes, guard intervals, bandwidths and coding efficiency for test scenes of different modules in a test case.
An intelligent television, wherein the intelligent television comprises: the code stream automatic switching method comprises a memory, a processor and a code stream automatic switching program which is stored on the memory and can run on the processor, wherein the code stream automatic switching program is executed by the processor to realize the steps of the code stream automatic switching method.
A storage medium, wherein the storage medium stores a code stream automatic switching program, and the code stream automatic switching program implements the steps of the code stream automatic switching method as described above when executed by a processor.
The invention discloses a code stream automatic switching method, an intelligent television and a storage medium, wherein the method comprises the following steps: starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing; distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface; and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection. The invention realizes automatic switching of code stream input in the automatic test of the TV through automatic switching of code streams, meets the functional test of different scenes and realizes the automatic test of the TV client.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the automatic code stream switching method according to the present invention;
FIG. 2 is a flowchart of step S10 in the preferred embodiment of the code stream automatic switching method of the present invention;
FIG. 3 is a flowchart of step S20 in the preferred embodiment of the method for automatically switching code streams according to the invention;
FIG. 4 is a flowchart of step S30 in the preferred embodiment of the code stream automatic switching method of the present invention;
fig. 5 is a schematic operating environment diagram of a smart tv according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the method for automatically switching code streams according to the preferred embodiment of the present invention is an automatic code stream switching method, wherein the method for automatically switching code streams includes the following steps:
and step S10, starting socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing.
Please refer to fig. 2, which is a flowchart of step S10 in the method for automatically switching code streams according to the present invention.
As shown in fig. 2, the step S10 includes:
s11, starting socket service by the code stream control server, and starting a plurality of routines to wait for connection of the TV client;
s12, the code stream control server receives a socket request sent by at least one TV client and establishes socket connection with the at least one TV client;
the TV client calls a code stream playing interface by setting a test case and sends a socket request to a code stream control server.
And S13, after the socket connection is established, the code stream control server receives the playing parameters and the setting parameters sent by the TV client through the network TCP protocol.
The playing parameters and the setting parameters comprise code stream files, times, systems, frequency points, modulation modes, guard intervals, bandwidths, coding efficiency and the like.
Specifically, the code stream control server (server managing the playing of the code stream) starts a socket (computer terminology, two programs on the network realize the exchange of data through a bidirectional communication connection, one end of the connection is called a socket, and the Chinese name is socket) service, starts a plurality of co-programs to wait for the connection of the TV client, in the automation case of the TV client, designing a code stream playing case (the test case is a group of test input, execution conditions and expected results compiled for a special target so as to test a certain program path or verify whether a certain specific requirement is met), calling a code stream playing interface, sending a socket request to a code stream control server, receiving the socket request sent by a TV client by the code stream control server, and establishing socket connection (the code stream control server can establish a plurality of socket connections with a plurality of TV clients at the same time).
And step S20, distributing the idle code stream playing resources to the TV client, assembling the playing parameters and the setting parameters into a script and executing, and realizing the playing of the code stream by calling an interface.
Please refer to fig. 3, which is a flowchart of step S20 in the method for automatically switching code streams according to the present invention.
As shown in fig. 3, the step S20 includes:
s21, after the code stream control server receives the message sent by the TV client, searching whether there is an idle code stream playing resource at present;
s22, if no free code stream playing resources exist, adding the TV client into a waiting queue, and when other TV clients release the code stream playing resources, sequentially distributing the released code stream playing resources according to the queue;
s23, if there is free code stream playing resource, allocating a free code stream playing resource, and continuing to analyze the message sent by the TV client;
and S24, after the TV client distributes the code stream playing resources, the code stream control server continues to analyze the messages sent by the client, assembles the playing parameters and the setting parameters into scripts and executes the scripts, and realizes the playing of the code stream by calling a Dektec related SDK interface.
Specifically, the step S23 is followed by: inquiring frequency points played by all currently played code stream playing resources, and judging whether the frequency points sent by the TV client have the currently played code stream playing resources; if a frequency point is used, adding the TV client into a waiting queue, and after the playing resources of the frequency point are released, sequentially distributing the released code stream playing resources according to the queue; and if no frequency point is used, the TV client successfully allocates the code stream playing resource.
The method comprises the steps that a code stream control server end receives a message sent by a TV client end, firstly, whether an idle code stream playing resource (service capable of playing a code stream file) exists or not is searched, if the idle code stream playing resource does not exist, the TV client end is added into a waiting queue, when other users release the code stream playing resource, the code stream playing resource is sequentially taken out from the queue to be redistributed, and if the idle code stream playing resource exists, the idle code stream playing resource is distributed; then, analyzing the message sent by the client, inquiring the frequency points played by all the currently played code stream playing resources, judging whether the frequency points sent by the TV client have the currently played code stream playing resources, if so, adding the TV client into a waiting queue, and after the playing resources of the frequency points are released, sequentially taking out the TV client from the waiting queue, wherein the TV client successfully distributes the code stream playing resources, and if not, the TV client successfully distributes the code stream playing resources.
Further, after the TV client allocates the code stream playing resource, the code stream control server continues to parse the message sent by the TV client, assemble the playing parameters and setting parameters (such as code stream file, times, format, frequency point, modulation mode, guard interval, bandwidth, coding efficiency, etc.) of the code stream playing into a script and execute it, and implement the code stream playing by calling the interface of the Software Development Kit (SDK) related to Dektec (Dektec), which is generally a collection of Development tools used by some Software engineers when establishing application Software for a specific Software package, Software framework, hardware platform, operating system, etc.).
And step S30, when the code stream is successfully played and the test case is executed, releasing the code stream playing resource, sending a message of successful release to the TV client, and disconnecting the socket connection.
Please refer to fig. 4, which is a flowchart of step S30 in the method for automatically switching code streams according to the present invention.
As shown in fig. 4, the step S30 includes:
s31, when the code stream is played successfully, the code stream control server returns the successfully played message to the TV client through the socket connection;
s32, when the TV client receives the message of successful playing, the test case is continuously executed, and when the test case is executed, the code stream control server releases the code stream playing resource;
s33, the code stream control server releases the code stream playing resources to an idle code stream playing resource pool for other TV clients to use;
and S34, when the release is successful, the code stream control server end sends a message of successful release to the TV client end, and the TV client end disconnects the socket connection after receiving the message of successful code stream release.
Specifically, after the code stream is successfully played, the code stream control server returns a successful message to the TV client through socket connection, after the TV client receives the message that the playing is successful, the TV client continues to execute the test case, the pause, stop, playing, switching setting and the like of the code stream playing resource can be controlled in the process, when the test case for the module is executed, the TV client sends the message to the code stream control server to release the code stream playing resource, after the code stream control server receives the message, the code stream playing resource is released to an idle code stream playing resource pool to be used by other TV clients, after the release is successful, the code stream control server sends the message that the release is successful to the TV client, and after the TV client receives the message that the code stream release is successful, the socket connection is disconnected.
In the test case, different code stream files, times, systems, frequency points, modulation modes, guard intervals, bandwidths, coding efficiency and other parameters are needed for test scenes of different modules, and the code streams are automatically switched through the process description, so that the automatic test of the TV client is realized.
As shown in fig. 5, based on the above method for automatically switching code streams, the present invention further provides a smart television, where the smart television includes a processor 10, a memory 20, and a display 30. Fig. 5 shows only some of the components of the smart television, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The storage 20 may be an internal storage unit of the smart tv in some embodiments, for example, a hard disk or a memory of the smart tv. In other embodiments, the memory 20 may also be an external storage device of the Smart tv, such as a plug-in hard disk provided on the Smart tv, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on. Further, the memory 20 may also include both an internal storage unit and an external storage device of the smart tv. The memory 20 is used for storing application software installed in the smart television and various types of data, such as program codes for installing the smart television. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a code stream automatic switching program 40, and the code stream automatic switching program 40 can be executed by the processor 10, so as to implement the code stream automatic switching method in the present application.
The processor 10 may be a Central Processing Unit (CPU), a microprocessor or other data Processing chip in some embodiments, and is configured to run program codes stored in the memory 20 or process data, for example, execute the code stream automatic switching method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information on the smart television and for displaying a visual user interface. The components 10-30 of the smart television communicate with each other via a system bus.
In one embodiment, when the processor 10 executes the code stream automatic switching program 40 in the memory 20, the following steps are implemented:
starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing;
distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface;
and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection.
The starting of the socket service, the establishment of the socket connection with at least one TV client, the sending of the playing parameters and the setting of the parameters of the code stream playing specifically include:
the code stream control server starts a socket service and starts a plurality of routines to wait for connection of the TV client;
the code stream control server receives a socket request sent by at least one TV client and establishes socket connection with the at least one TV client;
and after the socket connection is established, the code stream control server receives the playing parameters and the setting parameters sent by the TV client through the network TCP protocol.
The allocating the idle code stream playing resources to the TV client, assembling the playing parameters and the setting parameters into a script and executing the script, and realizing the code stream playing by calling the interface specifically comprises the following steps:
after receiving a message sent by a TV client, a code stream control server searches whether an idle code stream playing resource exists at present;
if no idle code stream playing resources exist, adding the TV client into a waiting queue, and when other TV clients release the code stream playing resources, sequentially distributing the released code stream playing resources according to the queue;
if the idle code stream playing resource exists, allocating an idle code stream playing resource and continuously analyzing the message sent by the TV client;
and after the TV client distributes the code stream playing resources, the code stream control server continues to analyze the messages sent by the client, assembles the playing parameters and the setting parameters into a script and executes the script, and realizes the playing of the code stream by calling a relevant SDK interface of Dektec.
If there is an idle code stream playing resource, allocating an idle code stream playing resource, and after continuously analyzing the message sent by the TV client, the method further comprises:
inquiring frequency points played by all currently played code stream playing resources, and judging whether the frequency points sent by the TV client have the currently played code stream playing resources;
if a frequency point is used, adding the TV client into a waiting queue, and after the playing resources of the frequency point are released, sequentially distributing the released code stream playing resources according to the queue;
and if no frequency point is used, the TV client successfully allocates the code stream playing resource.
When the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection specifically comprises:
when the code stream is successfully played, the code stream control server returns a message of successful playing to the TV client through socket connection;
when the TV client receives the message of successful playing, the TV client continues to execute the test case, and when the test case is executed, the code stream control server releases the code stream playing resource;
the code stream control server releases the code stream playing resources to an idle code stream playing resource pool for other TV clients to use;
and when the release is successful, the code stream control server side sends a message of successful release to the TV client side, and the TV client side disconnects the socket connection after receiving the message of successful code stream release.
The invention also provides a storage medium, wherein the storage medium stores a code stream automatic switching program, and the code stream automatic switching program realizes the steps of the code stream automatic switching method when being executed by a processor; as described above.
In summary, the present invention provides a code stream automatic switching method, a smart television and a storage medium, where the method includes: starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing; distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface; and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection. The invention realizes automatic switching of code stream input in the automatic test of the TV through automatic switching of code streams, meets the functional test of different scenes and realizes the automatic test of the TV client.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (9)

1. A code stream automatic switching method is characterized by comprising the following steps:
starting a socket service, establishing socket connection with at least one TV client, and sending play parameters and setting parameters of code stream playing;
the starting of the socket service, the establishment of the socket connection with at least one TV client, the sending of the playing parameters and the setting of the parameters of the code stream playing specifically include:
the code stream control server starts a socket service and starts a plurality of routines to wait for connection of the TV client;
the code stream control server receives a socket request sent by at least one TV client and establishes socket connection with the at least one TV client;
after socket connection is established, the code stream control server receives a playing parameter and a setting parameter sent by a TV client through a network TCP protocol;
the code stream control server receives a socket request sent by a TV client through setting a test case and calling a code stream playing interface;
distributing the idle code stream playing resources to a TV client, assembling playing parameters and setting parameters into a script and executing the script, and playing the code stream by calling an interface;
and when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection.
2. The code stream automatic switching method according to claim 1, wherein the TV client calls a code stream playing interface by setting a test case, and sends a socket request to a code stream control server.
3. The method of claim 1, wherein the playback parameters and setting parameters include code stream file, times, format, frequency points, modulation mode, guard interval, bandwidth, and coding efficiency.
4. The method according to claim 1, wherein the allocating of the idle code stream playing resources to the TV client, assembling the playing parameters and the setting parameters into a script and executing, and implementing the code stream playing by calling the interface specifically includes:
after receiving a message sent by a TV client, a code stream control server searches whether an idle code stream playing resource exists at present;
if no idle code stream playing resources exist, adding the TV client into a waiting queue, and when other TV clients release the code stream playing resources, sequentially distributing the released code stream playing resources according to the queue;
if the idle code stream playing resource exists, allocating an idle code stream playing resource and continuously analyzing the message sent by the TV client;
and after the TV client distributes the code stream playing resources, the code stream control server continues to analyze the messages sent by the client, assembles the playing parameters and the setting parameters into a script and executes the script, and realizes the playing of the code stream by calling a relevant SDK interface of Dektec.
5. The method according to claim 4, wherein if there is an idle code stream playing resource, allocating an idle code stream playing resource, and after continuing to parse the message sent by the TV client, further comprising:
inquiring frequency points played by all currently played code stream playing resources, and judging whether the frequency points sent by the TV client have the currently played code stream playing resources;
if a frequency point is used, adding the TV client into a waiting queue, and after the playing resources of the frequency point are released, sequentially distributing the released code stream playing resources according to the queue;
and if no frequency point is used, the TV client successfully allocates the code stream playing resource.
6. The method according to claim 1, wherein when the code stream is successfully played and the test case is executed, releasing the code stream playing resources, sending a message of successful release to the TV client, and disconnecting the socket connection specifically comprises:
when the code stream is successfully played, the code stream control server returns a message of successful playing to the TV client through socket connection;
when the TV client receives the message of successful playing, the TV client continues to execute the test case, and when the test case is executed, the code stream control server releases the code stream playing resource;
the code stream control server releases the code stream playing resources to an idle code stream playing resource pool for other TV clients to use;
and when the release is successful, the code stream control server side sends a message of successful release to the TV client side, and the TV client side disconnects the socket connection after receiving the message of successful code stream release.
7. The method according to claim 3, wherein different code stream files, times, formats, frequency points, modulation modes, guard intervals, bandwidths and coding efficiencies are required for test scenarios of different modules in the test case.
8. An intelligent television, characterized in that the intelligent television comprises: the code stream automatic switching method comprises a memory, a processor and a code stream automatic switching program which is stored on the memory and can run on the processor, wherein when the code stream automatic switching program is executed by the processor, the steps of the code stream automatic switching method according to any one of claims 1-7 are realized.
9. A storage medium, characterized in that the storage medium stores a code stream automatic switching program, and the code stream automatic switching program realizes the steps of the code stream automatic switching method according to any one of claims 1 to 7 when executed by a processor.
CN201810786133.4A 2018-07-17 2018-07-17 Code stream automatic switching method, smart television and storage medium Active CN110730368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810786133.4A CN110730368B (en) 2018-07-17 2018-07-17 Code stream automatic switching method, smart television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810786133.4A CN110730368B (en) 2018-07-17 2018-07-17 Code stream automatic switching method, smart television and storage medium

Publications (2)

Publication Number Publication Date
CN110730368A CN110730368A (en) 2020-01-24
CN110730368B true CN110730368B (en) 2022-03-01

Family

ID=69217476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810786133.4A Active CN110730368B (en) 2018-07-17 2018-07-17 Code stream automatic switching method, smart television and storage medium

Country Status (1)

Country Link
CN (1) CN110730368B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368945A (en) * 2013-06-05 2013-10-23 青岛海信宽带多媒体技术有限公司 Method of recording code streams and code stream recording system
CN106657995A (en) * 2016-10-09 2017-05-10 深圳创维数字技术有限公司 Parameter testing method and parameter testing system based on multi-turner set-top box
WO2017155371A1 (en) * 2016-03-11 2017-09-14 삼성전자 주식회사 Apparatus and method for providing service in digital broadcasting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368945A (en) * 2013-06-05 2013-10-23 青岛海信宽带多媒体技术有限公司 Method of recording code streams and code stream recording system
WO2017155371A1 (en) * 2016-03-11 2017-09-14 삼성전자 주식회사 Apparatus and method for providing service in digital broadcasting system
CN106657995A (en) * 2016-10-09 2017-05-10 深圳创维数字技术有限公司 Parameter testing method and parameter testing system based on multi-turner set-top box

Also Published As

Publication number Publication date
CN110730368A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN101917385B (en) Dispatch server and distributed system for multimedia trans-coding
CN104539977A (en) Live broadcast previewing method and device
CN102739981A (en) Video switch control method and system thereof
CN102118448A (en) Method, system and terminal for realizing cloud computing
CN111796885A (en) Display method and device of cloud application program and electronic equipment
CN100558142C (en) A kind of method, application and device that changes application state in a plurality of current service
CN110730368B (en) Code stream automatic switching method, smart television and storage medium
CN103037198A (en) System and method for monitoring videos
CN104391576A (en) Remote input method and device based on wireless Ethernet
CN106791992A (en) Signal source method for pushing and system
CN115022725A (en) Video playing method and device
CN102694869B (en) Signal source access method and system
CN113094165A (en) Method for increasing speed of loading application program at cloud end
WO2017092315A1 (en) Method and device for controlling television
CN114124604A (en) Communication method, intelligent device, operation business platform and communication system
CN110798512A (en) Centralized data pushing method, intelligent terminal and storage medium
CN113194277B (en) Method, device and storage medium for multi-screen video of conference terminal
CN114401254B (en) Streaming media service processing method and device, electronic equipment and storage medium
CN103607620A (en) Mobile communication terminal method and apparatus for controlling intelligent television
CN112162868B (en) Data communication method, device and storage medium applied to cluster processing
CN107749857A (en) Method, storage medium and client a kind of while that check multi-channel video
CN113382299B (en) Screen transmission method, system and storage medium
WO2021136125A1 (en) Method and system for taking down content, and storage medium
CN103677908A (en) Method and system for updating transcoding service
CN117118954A (en) Data acquisition method and device

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