HK1233099A - Method and device for palying television signal - Google Patents
Method and device for palying television signal Download PDFInfo
- Publication number
- HK1233099A HK1233099A HK17106769.7A HK17106769A HK1233099A HK 1233099 A HK1233099 A HK 1233099A HK 17106769 A HK17106769 A HK 17106769A HK 1233099 A HK1233099 A HK 1233099A
- Authority
- HK
- Hong Kong
- Prior art keywords
- television signal
- terminal
- television
- digital media
- frequency point
- Prior art date
Links
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for playing a television signal.
Background
With the development of society, in order to meet the further requirements of people for quality of life, the trend of terminals to play television signals is multifunctional, including picture-in-picture.
The picture-in-picture usually adopts double high frequency head, and an antenna distributor sends a path of digital television signal into the sub high frequency head, and the digital television signal is compressed to become a sub picture with 1/9 or 1/16 size of an original picture, and the sub picture is displayed on one corner of a screen, and simultaneously, the sound is filtered.
I.e., on a normally viewed main picture, while inserting a compressed sub-picture, so as to watch other channels while enjoying the main picture.
Because two paths of television signals are limited to be displayed on one screen and are mutually interfered, a certain picture has poor image quality, the picture size is inconsistent with the screen size, audio cannot be played, and the playing effect is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a playing method of a television signal and a corresponding playing apparatus of a television signal, which overcome or at least partially solve the above problems.
In order to solve the above problem, the present application discloses a method for playing a television signal, including:
a first terminal receives a first television signal and a second television signal;
the first terminal plays the first television signal;
the first terminal discovers the second terminal;
the first terminal sets the first terminal as a digital media server, and sets the second terminal as a digital media player;
and the first terminal transmits the second television signal from the digital media server to the digital media player so as to play the second television signal in the second terminal.
Preferably, the step of the first terminal discovering the second terminal comprises:
when a new terminal is added to a current network, broadcasting a query request to the terminal; the inquiry request comprises a multicast address and a television signal playing service;
detecting a response message returned by the terminal when the terminal supports the television signal playing service in a port corresponding to the multicast address;
and confirming that the terminal is the second terminal.
Preferably, the step of the first terminal discovering the second terminal comprises:
detecting a notification message sent by a terminal in a port corresponding to a multicast address of a current network;
and when the notification message comprises television signal playing service, confirming that the terminal is a second terminal.
Preferably, the step of the first terminal transmitting the second television signal from the digital media server to the digital media player to play the second television signal in the second terminal comprises:
decoding the second television signal to obtain a video stream;
segmenting the video stream to obtain video segment data;
generating a configuration file; the configuration file comprises a download address of the video clip data;
and transmitting the configuration file from the digital media server to the digital media player so as to download the video segment data according to the download address in the second terminal.
Preferably, before said step of decoding said second television signal to obtain a video stream,
the step of the first terminal transmitting the second television signal from the digital media server to the digital media player for playing the second television signal in the second terminal further comprises:
and when the second television signal is an analog television signal, converting the second television signal into a digital television signal.
Preferably, prior to said step of slicing said video stream to obtain video clip data,
the step of the first terminal transmitting the second television signal from the digital media server to the digital media player for playing the second television signal in the second terminal further comprises:
and compressing the video stream according to the screen parameters of the second terminal.
Preferably, the method further comprises:
and when receiving a television signal adjustment request sent by the second terminal, the first terminal adjusts the first television signal and/or the second television signal according to the television signal adjustment request.
Preferably, the step of adjusting the first television signal and/or the second television signal according to the television signal adjustment request includes:
extracting a channel number from the television signal adjustment request;
searching a first frequency point related to the channel number;
and selecting the television program signal in the second television signal to the first frequency point.
Preferably, the step of adjusting the first television signal and/or the second television signal according to the television signal adjustment request includes:
when a channel switching identifier is extracted from the television signal adjustment request, recording a second frequency point of the first television signal and a third frequency point of the second television signal;
selecting the television program signal in the first television signal to the third frequency point;
and selecting the television program signals in the second television signals to the second frequency point.
The embodiment of the application also discloses a playing device of television signals, the device is located in the first terminal, the device includes:
the television signal receiving module is used for receiving a first television signal and a second television signal;
the television signal playing module is used for playing the first television signal;
a device discovery module for discovering the second terminal;
the setting module is used for setting the first terminal as a digital media server and setting the second terminal as a digital media player;
and the television signal transmission module is used for transmitting the second television signal from the digital media server to the digital media player so as to play the second television signal in the second terminal.
Preferably, the device discovery module includes:
the query request broadcasting sub-module is used for broadcasting a query request to the terminal when a new terminal is added to the current network; the inquiry request comprises a multicast address and a television signal playing service;
a response message detection submodule, configured to detect, in a port corresponding to the multicast address, a response message returned by the terminal when the terminal supports the television signal playing service;
and the confirming submodule is used for confirming that the terminal is the second terminal.
Preferably, the device discovery module includes:
the notification message detection module is used for detecting the notification message sent by the terminal in the port corresponding to the multicast address of the current network;
and the second confirmation module is used for confirming that the terminal is the second terminal when the notification message comprises the television signal playing service.
Preferably, the television signal transmission module includes:
a decoding sub-module for decoding the second television signal to obtain a video stream;
the segmentation submodule is used for segmenting the video stream to obtain video segment data;
the configuration file generation submodule is used for generating a configuration file; the configuration file comprises a download address of the video clip data;
a video streaming sub-module, configured to transmit the configuration file from the digital media server to the digital media player, so as to download the video clip data according to the download address in the second terminal.
Preferably, the television signal transmission module further comprises:
and the transcoding submodule is used for converting the second television signal into a digital television signal when the second television signal is an analog television signal.
Preferably, the television signal transmission module includes:
and the compression submodule is used for compressing the video stream according to the screen parameters of the second terminal.
Preferably, the apparatus further comprises:
and the television signal adjusting module is used for adjusting the first television signal and/or the second television signal according to the television signal adjusting request when receiving the television signal adjusting request sent by the second terminal.
Preferably, the television signal adjusting module includes:
a channel number extracting submodule for extracting a channel number from the television signal adjustment request;
the first frequency point searching submodule is used for searching the first frequency point related to the channel number;
and the first adjusting submodule is used for selecting the television program signal in the second television signal to the first frequency point.
Preferably, the television signal adjusting module includes:
the frequency point sub-module is used for recording a second frequency point of the first television signal and a third frequency point of the second television signal when extracting a channel switching identifier from the television signal adjusting request;
the second adjusting submodule is used for selecting the television program signal in the first television signal to the third frequency point;
and the third adjusting submodule is used for selecting the television program signals in the second television signals to the second frequency point.
The embodiment of the application has the following advantages:
according to the embodiment of the application, the first television signal is played at the first terminal, the first television signal is set as the digital media server, the found second terminal is set as the digital media player, the second television signal is transmitted, the second television signal is played in the second terminal, the two paths of television signals are respectively played at different terminals, the two paths of television signals do not interfere with each other, the picture quality is guaranteed, the audio frequency does not need to be filtered, and the playing quality is greatly improved.
According to the embodiment of the application, the slice file is updated in real time, and the second terminal continuously downloads and plays the latest slice, so that the playing real-time performance is guaranteed.
According to the embodiment of the application, the frequency points of two paths of television signals can be switched rapidly, unnecessary frequency point adjustment operation is reduced, and the simplicity of operation is improved.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for playing a television signal according to the present application;
fig. 2 is a block diagram of an embodiment of a playing apparatus for television signals according to the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Traditional televisions support a pip functionality, and the user still can only see one path of full-screen video content at the same time, which effectively wastes the ability of the television to provide two paths of full-screen video simultaneously.
In practical application, DLNA (DIGITAL LIVING NETWORK ALLIANCE ) makes a master device (generally, a mobile device such as a mobile phone and a tablet computer with rich content but limited display area) discover other devices (generally, a device such as a smart television with a large screen display function) supporting DLNA specification in a wireless local area NETWORK by formulating a specification, and can transmit multimedia resources (including pictures, audio and video) on the master device to the discovered devices for display and play, and the transmission of the multimedia resources passes through a wireless NETWORK in a home to support the play of high-definition video.
The technology embodies the fact that multimedia resources can be transmitted from one device to another device to be played through a wireless network and a DLNA specification.
Obviously, in the DLNA specification, the television can also play the role of a video provider, and with the rapid development of technologies, the mobile device has the capability of playing the role of a video player, so that the content on the television can be transmitted to the mobile device for playing. Particularly, with the popularization of smart televisions, the televisions can be used as not only passive playing devices but also active audio and video providing devices.
Therefore, one of the core concepts of the embodiment of the application is provided, and in combination with the picture-in-picture function and the DLNA specification, the television outputs two paths of television signals simultaneously, one of the two paths of television signals is transmitted to the mobile device to be played, and the other path of television signal is played on the television.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a television signal playing method according to the present application is shown, which may specifically include the following steps:
step 101, a first terminal receives a first television signal and a second television signal;
it should be noted that the first terminal may be a terminal with dual tuners to support simultaneous playing of two tv signals, where one tv signal is from a cable tv and the other tv signal is from another video source (e.g., a set-top box or other video playing devices).
That is, in the embodiment of the present application, the first television signal may be an analog television signal or a digital television signal; the second television signal may be an analog television signal or a digital television signal.
The television signal generally includes information such as a television program signal, a channel list, and program announcement information.
In a specific implementation, the first terminal may include a Television (Television, TV, Video), and may particularly refer to a technology and a device for transmitting moving images using an electronic device, that is, a Television receiver.
The tv may include an LCD (Liquid Crystal Display) tv, an LED (Light Emitting Diode) tv, a plasma tv, and the like, which is not limited in the embodiments of the present invention.
Further, the television may include a smart television, which may refer to a fully-open platform, which is loaded with an operating system, such as an Android system, an IOS system, a Windows system, and the like, and may be used by a user to install and uninstall applications (i.e., third-party applications) provided by third-party service providers, such as application programs, games, and the like, and continuously expand functions of the television through the applications, and may be used to implement internet access through a network cable and a wireless network.
Further, a set-top box refers to an information device having a division of analog and digital for enhancing or expanding the functions of a terminal.
Among them, a digital Set Top Box (STB), which is a device for connecting a tv set and an external signal source, can convert a compressed digital tv signal into an analog tv signal and display the analog tv signal on the tv set, so as to provide a high-quality tv program to a user. The digital television signals it receives may come from cable, satellite dish, broadband network, terrestrial broadcast, and so on.
102, a first terminal plays the first television signal;
in television signals, television program signals are typically the core.
For digital television signals, if a certain frequency point is selected, the corresponding television program signals can be decoded and converted into video streams for playing.
For analog television signals, the analog television signals can be converted into digital television signals, and if a certain frequency point is selected, the corresponding television program signals are decoded and converted into video streams for playing.
103, the first terminal discovers a second terminal;
it should be noted that the second terminal may be a terminal supporting playing of the second signal, and further, the second terminal may be a terminal supporting television signal playing service (tvoutput).
The DLNA specification already contains a UPnP (Universal Plug and Play) protocol of the device discovery part, and in this embodiment, the UPnP protocol may be applied to perform discovery between the first terminal and the second terminal.
The second terminal may be a mobile device, such as a mobile phone, a tablet computer, a watch, and the like, or may be a fixed device, such as a television, a notebook computer, and the like, which is not limited in this embodiment of the present application.
In a UPnP network (a network applying the UPnP protocol, such as a wireless routing network in a home), services, devices, and control points are basic components.
A Service (Service);
in a UPnP network, the smallest control unit is a service. A service describes the activity of a device and the state of the device in different situations.
A Device (Device);
the devices defined in the UPnP network have a wide meaning, and various home appliances, computer peripherals, intelligent devices, wireless devices, personal computers, and the like can be one of them. A UPnP device may be a nested set of bearers and sub-devices for multiple services.
Control point (ControlPoint);
in the UPnP network, a control point refers to a control device that can discover and control other devices. In a UPnP network, devices can merge with control points. That is, the same device may have both the function of the device and the function of the control point, i.e., may serve as a device, and may also serve as a control point to discover and control other devices.
In the embodiment of the present application, the first terminal and the second terminal are devices, and the first terminal may be a control point.
The basis of the UPnP network is a TCP/IP (Transmission Control Protocol/internet Protocol) Protocol suite, and an IP address, namely Addressing, may be allocated to each UPnP component (device and Control point, such as the second terminal and the first terminal).
A general procedure for UPnP device addressing is:
sending DHCPDISCOVER message to DHCP (Dynamic Host Configuration protocol) server, if the device does not receive DHCPOFFERS response message in appointed time, the device uses Auto-IP mode to complete the setting of IP address.
Of course, UPnP devices may also use higher layer protocols beyond UPnP that will use friendly names for the devices. In this case, DNS (Domain name system) is generally used to resolve these friendly host names into IP addresses. Devices using this functionality may include a DNS client and support dynamic DNS registration, where their own name is added to the address profile by registration.
If the device is connected to the network and an address is assigned, a discovery operation may be performed.
Device discovery may be defined by the simple discovery protocol ssdp (simple Service discovery protocol).
In a preferred embodiment of the present application, step 103 may comprise the following sub-steps:
substep S11, when a new terminal is added to the current network, broadcasting an inquiry request to the terminal;
substep S12, detecting a response message returned by the terminal when supporting the television signal playing service in a port corresponding to the multicast address;
and a sub-step S13 of confirming that the terminal is a second terminal.
In an embodiment of the present application, when a control point joins a network, the device discovery process allows the control point to find devices of interest on the network.
In particular, the query request may be broadcast by unicast transmission, and may include some specific information of the device or information of a certain service, such as a multicast address, a type (e.g., a tv signal playing service), an identifier, and a pointer to an XML device description document.
An example of a query request may be as follows:
M-SEARCH*HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:seconds to delay response
ST:urn:schemas-upnp-org:service:tvoutput:1.0
the role of each field in the query request is shown in the following table:
the ST can comprise urn, schema-upnp-org, service-Type and version, and is used for inquiring the service Type specified by the service-Type field.
In this example, the service-Type field is customized to tvoutput, meaning that devices supporting tvoutput (television signal playing service) Type services are queried.
When a device receives a query request and the query type (ST field value) matches this device, the device replies a response message to the multicast address.
An example of a response message may be as follows:
HTTP/1.1200OK
CACHE-CONTROL:max-age=seconds until advertisement expires
DATE:when reponse was generated
EXT:
LOCATION:http://192.168.1.10:2800/tvoutput.xml
SERVER:OS/Version UPNP/1.0product/version
ST:urn:schemas-upnp-org:service:tvouput:1.0
USN:advertisement UUID
the role of each field in the response message is shown in the following table:
wherein, the message interested by the first terminal can be a device description file (http://192.168.1.10:2800/tvoutput. xml):
in this document can be described:
1. the device type: such as a cell phone or tablet.
2. The size and resolution of the screen.
3. Whether streaming media playback is supported.
4. Other features related to TV play.
In another preferred embodiment of the present application, step 103 may comprise the following sub-steps:
substep S21, detecting the notification message sent by the terminal in the port corresponding to the multicast address of the current network;
and a substep S22, confirming the terminal as the second terminal when the notification message includes the television signal playing service.
In an embodiment of the present application, when a device joins a network, the device may be allowed to inform a control point on the network of services it provides, such as a television signal playing service (tvouput).
In particular, the device may transmit the notification message, including the notification, in a multicast transmission
An example of a notification message may be as follows:
NOTIFY*HTTP/1.1
HOST:239.255.255.250:1900CACHE-CONTROL:max-age=secondsuntil advertisement expires
LOCATION:http://192.168.1.10:2800/tvoutput.xml
NT:urn:schemas-upnp-org:service:tvouput:1.0
NTS:ssdp:alive
USN:advertisement UUID
the role of each field in the notification message is shown in the following table:
in this example, the NT field is customized to tvoutput, meaning that the broadcaster supports tvoutput (television signal playing service) type services.
The message of interest to the first terminal may be a device description file (http://192.168.1.10:2800/tvoutput. xml):
in this document can be described:
1. the device type: such as a cell phone or tablet.
2. The size and resolution of the screen.
3. Whether streaming media playback is supported.
4. Other features related to TV play.
Step 104, the first terminal sets the first terminal as a digital media server, and sets the second terminal as a digital media player;
DLNA specifies classes of devices, which may be physical and logical objects implemented by the DLNA standard.
Which comprises the following steps:
a Digital Media Server (DMS) provides Media acquisition, recording, storage, and output functions.
A Digital Media Player (DMP) can search and acquire media content from the DMS for playing and rendering display.
In the DLNA specification, a function of outputting video from a DMS (digital media server) to a DMP (digital media player) for playback has been incorporated.
Some current applications typically set the mobile device as the DMS and the television as the DMP.
In the embodiment of the present application, the first terminal (e.g., a television) is configured as a DMS, and the second terminal (e.g., a mobile phone, a tablet, etc.) is configured as a DMP, so that a television signal is output from the first terminal to the second terminal.
In a specific implementation, after the device discovery operation, the control point (the first terminal) may discover a device (the second terminal) of interest, and enable the control point (the first terminal) to obtain a description of device capabilities (supporting a television signal playing service), and present the description to a User at a User Interface (UI).
When the user selects the second terminal for playing the second television signal on the user interface, that is, the first terminal receives the second terminal for playing the second television signal, the first terminal may be set as the digital media server, and the second terminal may be set as the digital media player.
For example, when a user calls a television menu and selects "search playable devices", a list of devices that can support television signal playing in the same local area network, such as a mobile phone, a tablet computer, a personal computer, a television, etc., may be listed, and the user may select a device that needs to play a television signal by using a remote controller, a panel key, etc.
Step 105, transmitting the second television signal from the digital media server to the digital media player, so as to play the second television signal in the second terminal.
In a specific implementation, the first terminal transmits the second television signal to the second terminal through the DLNA specification, and the second terminal can call the player to play the video when receiving the second television signal.
In addition, the second terminal can actively request to acquire information such as a channel list, program forecast information and the like, the first terminal can convert the information into a text format and transmit the text format to the second terminal, and the text format is interpreted by the second terminal and presented to a user for interaction.
According to the embodiment of the application, the first television signal is played at the first terminal, the first television signal is set as the digital media server, the found second terminal is set as the digital media player, the second television signal is transmitted, the second television signal is played in the second terminal, the two paths of television signals are respectively played at different terminals, the two paths of television signals do not interfere with each other, the picture quality is guaranteed, the audio frequency does not need to be filtered, and the playing quality is greatly improved.
In a family, a plurality of family members generally exist, and the requirements of each family member on programs are different, for example, the old people like watching Beijing opera, and the young people like watching idome drama, and the like.
In a preferred embodiment of the present application, step 105 may comprise the following sub-steps:
substep S31, decoding the second television signal to obtain a video stream;
in the embodiment of the present application, a transport stream media in an m3u8 format in an HTTP (HyperText Transfer Protocol) Protocol may be applied.
Streaming (Streaming) is a general technical term for transmitting multimedia data through a network.
Streaming media can refer broadly to a series of techniques that form audio and video into stable and continuous transport and playback streams.
Of course, in the embodiment of the present application, basic encoding operations such as video encoding (e.g., h.264) and Audio encoding (Advanced Audio Coding, AAC, Advanced Audio Coding) may be performed on the decoded original video stream.
A substep S32 of slicing the video stream to obtain video clip data;
in the embodiment of the present application, the code stream (i.e., the encoded video stream) may be sliced at regular time intervals, for example, 10 seconds, and cyclically stored in a series of TS files (video segment data), for example, 1.TS to 5.TS (cyclic storage means that one slice is stored to 5.TS, and then the next slice is stored to 1. TS).
A substep S33 of generating a configuration file;
the configuration file may record a file of parameters of how to play the video clip data, which may be an xml (eXtensible Markup Language) file.
In a specific implementation, the configuration file may include a download address of the video clip data.
An example of an m3u8 format configuration file may be as follows:
#EXTM3U
10// maximum duration per fraction of 10 seconds
SEQUENCE number 1 of # EXT-X-MEDIA-SEQUENCE: 1// first section
TS info of # EXTINF:10,// slice 1: length of 10 seconds
http://192.168.1.2/live/1. TS// download address of 1 st slice TS
#EXTINF:10,
http://192.168.1.2/live/2.ts
#EXTINF:10,
http://192.168.1.2/live/3.ts
#EXTINF:10,
http://192.168.1.2/live/4.ts
#EXTINF:10,
http://192.168.1.2/live/5.ts
#EXT-X-ENDLIST
Sub-step S34, transmitting the configuration file from the digital media server to the digital media player, so as to download the video clip data according to the download address in the second terminal.
In a specific implementation, the process of transmitting the video clip data is a process in which the digital media player downloads TS files one by one from the digital media server according to a link (download address) in the m3u8 file, and is a file downloading process based on the http protocol.
Specifically, the second terminal may call a player supporting parsing m3u8 format playing, such as native multimedia player of android, input a download address in the player of the second terminal, and send a request to the server (i.e., the first terminal).
If the TCP protocol is applied, the second terminal can wait for the message fed back by the playing source, which indicates that the server receives the message, otherwise, the request is retransmitted; and then, the server sends a TCP packet to the second terminal, and the second terminal feeds back a message to the server when receiving a TCP packet to indicate that the TCP packet is received, wherein the TCP packet comprises video fragment data.
Since the video stream is not stored during transmission and is completely played, the situation can be transmitted by using a User Datagram Protocol (UDP), each UDP packet includes video segment data, and packet loss is unlikely due to the fact that QoS in a local area network is generally high.
According to the embodiment of the application, the slice file is updated in real time, and the second terminal continuously downloads and plays the latest slice, so that the playing real-time performance is guaranteed.
Of course, the above transmission method is only an example, and when the embodiment of the present application is implemented, other transmission methods may be set according to actual situations, for example, a Real Time Streaming Protocol (RTSP) Protocol (RFC 2326) Protocol is applied, and the embodiment of the present application is not limited thereto. In addition, besides the above transmission modes, those skilled in the art may also adopt other transmission modes according to actual needs, and the embodiment of the present application is not limited thereto.
In a preferred embodiment of the present application, before the sub-step S31, step 105 may further include the sub-steps of:
and a substep S35 of converting the second television signal into a digital television signal when the second television signal is an analog television signal.
In many cases, the second terminal, such as a mobile phone or a tablet computer, does not have a digital-to-analog conversion function, so that when the second television signal is an analog television signal, the analog television signal can be converted into a digital television signal in the first terminal.
In a preferred embodiment of the present application, before the sub-step S32, step 105 may further include the sub-steps of:
and a sub-step S36 of compressing the video stream according to the screen parameters of the second terminal.
In the embodiment of the present invention, if the second television signal is transmitted to the second terminal such as the mobile phone and the tablet pc for playing, since the screen of the second terminal is not adapted to the second television signal in many cases, the video stream is compressed, and the compression ratio can be determined according to the screen parameters (such as resolution, size, and the like) of the second terminal, so that the second television signal is adapted to the screen of the second terminal, that is, the second terminal can play the second television signal in full screen.
In a preferred embodiment of the present application, the method may further comprise the steps of:
and step 106, when receiving the television signal adjustment request sent by the second terminal, the first terminal adjusts the first television signal and/or the second television signal according to the television signal adjustment request.
The television signal adjustment request may refer to an indication to adjust a television signal (e.g., a first television signal, a second television signal).
The seventh of the seven layers of the UPnP protocol is the Remote UI (Remote user interface) that enables Remote control, which functions like a Remote control for a television.
In a specific implementation, the second terminal may simulate the same defined buttons on the tv remote controller, so that the user may achieve the same control function.
Of course, since the first terminal and the second terminal know the IP address of the other terminal, a link may be established between the first terminal and the second terminal, and the request (HTTP request, such as a television signal adjustment request) and the response are directly sent to each other, which is not limited in this embodiment of the present application.
In a preferred embodiment of the present application, step 106 may comprise the following sub-steps:
substep S41, extracting a channel number from the television signal adjustment request;
substep S42, searching a first frequency point associated with the channel number;
and a substep S43, selecting the television program signal in the second television signal to the first frequency point.
In this embodiment, the television signal adjustment request may be a request for adjusting a frequency point of a television program signal in the second television signal.
In practical applications, the user may trigger the tv signal adjustment request on the second terminal through the number and the orientation keys (e.g. up and down).
If the user selects a number, the number may be set as a channel number; if the user selects the azimuth key, the channel number to be set may be determined on the basis of the current channel number, for example, the current channel number is 8, and if the user presses the up key, the channel number to be set is determined to be 7.
In the first terminal, the correspondence between the channel number and the frequency point may be preset, for example, the frequency point corresponding to the channel number 7 is 57.75MHz, which is the set of the central tv station 1.
It should be noted that the first terminal may not care about the frequency point of the television program signal in the second television signal, and after adjusting the frequency point, the first terminal still continues to transmit the second television signal to the second terminal (i.e., continues to execute step 105).
In a preferred embodiment of the present application, step 106 may comprise the following sub-steps:
substep S41, when extracting a channel switching identifier from the television signal adjustment request, recording a second frequency point of the first television signal and a third frequency point of the second television signal;
substep S42, selecting the television program signal in the first television signal to the third frequency point;
and a substep S43, selecting the television program signal in the second television signal to the second frequency point.
In this embodiment, the television signal adjustment request may be a request for interchanging the frequency point of the first television signal and the frequency point of the second television signal.
In practical applications, if the user watches a television program on the mobile device (the second terminal) and is limited by the screen size, the television program can be directly switched to the television with a large screen (the first terminal) for viewing.
If the user wants to leave the front of the television (the first terminal) but wants to continue the television program on the television (the first terminal), the user can directly switch to switch the television program to the mobile device (the second terminal) to continue watching.
It should be noted that the first terminal may not care about the frequency point of the television program signal in the first television signal and the television program signal in the second television signal, and after the frequency point is switched, the first terminal still continues to transmit the second television signal to the second terminal (i.e., continues to perform step 105).
According to the embodiment of the application, the frequency points of two paths of television signals can be switched rapidly, unnecessary frequency point adjustment operation is reduced, and the simplicity of operation is improved.
Of course, the above adjustment manner is only an example, and when the embodiment of the present application is implemented, other adjustment manners, such as adjusting volume, chromaticity, and the like, may be set according to practical situations, and the embodiment of the present application is not limited thereto. In addition, besides the above adjustment modes, a person skilled in the art may also adopt other adjustment modes according to actual needs, and the embodiment of the present application is not limited thereto.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 2, a block diagram of an embodiment of a playing apparatus for television signals according to the present application is shown, where the apparatus is located in a first terminal, and the apparatus may include the following modules:
a television signal receiving module 201, configured to receive a first television signal and a second television signal;
a television signal playing module 202, configured to play the first television signal;
a device discovery module 203, configured to discover the second terminal;
a setting module 204, configured to set the first terminal as a digital media server, and set the second terminal as a digital media player;
a television signal transmission module 205, configured to transmit the second television signal from the digital media server to the digital media player, so as to play the second television signal in the second terminal.
In a preferred embodiment of the present application, the device discovery module 202 may include the following sub-modules:
the query request broadcasting sub-module is used for broadcasting a query request to the terminal when a new terminal is added to the current network; the inquiry request comprises a multicast address and a television signal playing service;
a response message detection submodule, configured to detect, in a port corresponding to the multicast address, a response message returned by the terminal when the terminal supports the television signal playing service;
and the confirming submodule is used for confirming that the terminal is the second terminal.
In another preferred embodiment of the present application, the device discovery module 202 may include the following sub-modules:
the notification message detection module is used for detecting the notification message sent by the terminal in the port corresponding to the multicast address of the current network;
and the second confirmation module is used for confirming that the terminal is the second terminal when the notification message comprises the television signal playing service.
In a preferred embodiment of the present application, the television signal transmission module 205 may include the following sub-modules:
a decoding sub-module for decoding the second television signal to obtain a video stream;
the segmentation submodule is used for segmenting the video stream to obtain video segment data;
the configuration file generation submodule is used for generating a configuration file; the configuration file comprises a download address of the video clip data;
a video streaming sub-module, configured to transmit the configuration file from the digital media server to the digital media player, so as to download the video clip data according to the download address in the second terminal.
In a preferred embodiment of the present application, the television signal transmission module 205 may further include the following sub-modules:
and the transcoding submodule is used for converting the second television signal into a digital television signal when the second television signal is an analog television signal.
In a preferred embodiment of the present application, the television signal transmission module 205 may further include the following sub-modules:
and the compression submodule is used for compressing the video stream according to the screen parameters of the second terminal.
In a preferred embodiment of the present application, the apparatus may further include the following modules:
and the television signal adjusting module is used for adjusting the first television signal and/or the second television signal according to the television signal adjusting request when receiving the television signal adjusting request sent by the second terminal.
In a preferred embodiment of the present application, the television signal adjusting module may include the following sub-modules:
a channel number extracting submodule for extracting a channel number from the television signal adjustment request;
the first frequency point searching submodule is used for searching the first frequency point related to the channel number;
and the first adjusting submodule is used for selecting the first frequency point for the television program signal in the second television signal tuner.
In a preferred embodiment of the present application, the television signal adjusting module may include the following sub-modules:
the frequency point sub-module is used for recording a second frequency point of the first television signal and a third frequency point of the second television signal when extracting a channel switching identifier from the television signal adjusting request;
the second adjusting submodule is used for selecting the television program signal in the first television signal to the third frequency point;
and the third adjusting submodule is used for selecting the television program signals in the second television signals to the second frequency point.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (fransitory media), such as modulated data signals and carrier waves.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing describes in detail a television signal playing method and a television signal playing apparatus provided by the present application, and specific examples are applied herein to explain the principle and implementation of the present application, and the description of the foregoing examples is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (18)
1. A method for playing a television signal, comprising:
a first terminal receives a first television signal and a second television signal;
the first terminal plays the first television signal;
the first terminal discovers the second terminal;
the first terminal sets the first terminal as a digital media server, and sets the second terminal as a digital media player;
and the first terminal transmits the second television signal from the digital media server to the digital media player so as to play the second television signal in the second terminal.
2. The method of claim 1, wherein the step of the first terminal discovering the second terminal comprises:
when a new terminal is added to a current network, broadcasting a query request to the terminal; the inquiry request comprises a multicast address and a television signal playing service;
detecting a response message returned by the terminal when the terminal supports the television signal playing service in a port corresponding to the multicast address;
and confirming that the terminal is the second terminal.
3. The method of claim 1, wherein the step of the first terminal discovering the second terminal comprises:
detecting a notification message sent by a terminal in a port corresponding to a multicast address of a current network;
and when the notification message comprises television signal playing service, confirming that the terminal is a second terminal.
4. The method of claim 1, 2 or 3, wherein the step of the first terminal transmitting the second television signal from the digital media server to the digital media player for playing the second television signal in the second terminal comprises:
decoding the second television signal to obtain a video stream;
segmenting the video stream to obtain video segment data;
generating a configuration file; the configuration file comprises a download address of the video clip data;
and transmitting the configuration file from the digital media server to the digital media player so as to download the video segment data according to the download address in the second terminal.
5. The method of claim 4, wherein, prior to said step of decoding said second television signal to obtain a video stream,
the step of the first terminal transmitting the second television signal from the digital media server to the digital media player for playing the second television signal in the second terminal further comprises:
and when the second television signal is an analog television signal, converting the second television signal into a digital television signal.
6. The method of claim 4, wherein prior to the step of slicing the video stream to obtain video clip data,
the step of the first terminal transmitting the second television signal from the digital media server to the digital media player for playing the second television signal in the second terminal further comprises:
and compressing the video stream according to the screen parameters of the second terminal.
7. The method of claim 1, 2, 3, 5, or 6, further comprising:
and when receiving a television signal adjustment request sent by the second terminal, the first terminal adjusts the first television signal and/or the second television signal according to the television signal adjustment request.
8. The method of claim 7, wherein said step of adjusting said first television signal and/or said second television signal in accordance with said television signal adjustment request comprises:
extracting a channel number from the television signal adjustment request;
searching a first frequency point related to the channel number;
and selecting the television program signal in the second television signal to the first frequency point.
9. The method of claim 7, wherein said step of adjusting said first television signal and/or said second television signal in accordance with said television signal adjustment request comprises:
when a channel switching identifier is extracted from the television signal adjustment request, recording a second frequency point of the first television signal and a third frequency point of the second television signal;
selecting the television program signal in the first television signal to the third frequency point;
and selecting the television program signals in the second television signals to the second frequency point.
10. An apparatus for playing a television signal, the apparatus being located in a first terminal, the apparatus comprising:
the television signal receiving module is used for receiving a first television signal and a second television signal;
the television signal playing module is used for playing the first television signal;
a device discovery module for discovering the second terminal;
the setting module is used for setting the first terminal as a digital media server and setting the second terminal as a digital media player;
and the television signal transmission module is used for transmitting the second television signal from the digital media server to the digital media player so as to play the second television signal in the second terminal.
11. The apparatus of claim 10, wherein the device discovery module comprises:
the query request broadcasting sub-module is used for broadcasting a query request to the terminal when a new terminal is added to the current network; the inquiry request comprises a multicast address and a television signal playing service;
a response message detection submodule, configured to detect, in a port corresponding to the multicast address, a response message returned by the terminal when the terminal supports the television signal playing service;
and the confirming submodule is used for confirming that the terminal is the second terminal.
12. The apparatus of claim 10, wherein the device discovery module comprises:
the notification message detection module is used for detecting the notification message sent by the terminal in the port corresponding to the multicast address of the current network;
and the second confirmation module is used for confirming that the terminal is the second terminal when the notification message comprises the television signal playing service.
13. The apparatus of claim 10, 11 or 12, wherein the television signal transmission module comprises:
a decoding sub-module for decoding the second television signal to obtain a video stream;
the segmentation submodule is used for segmenting the video stream to obtain video segment data;
the configuration file generation submodule is used for generating a configuration file; the configuration file comprises a download address of the video clip data;
a video streaming sub-module, configured to transmit the configuration file from the digital media server to the digital media player, so as to download the video clip data according to the download address in the second terminal.
14. The apparatus of claim 13, wherein the television signal transmission module further comprises:
and the transcoding submodule is used for converting the second television signal into a digital television signal when the second television signal is an analog television signal.
15. The apparatus of claim 13, wherein the television signal transmission module comprises:
and the compression submodule is used for compressing the video stream according to the screen parameters of the second terminal.
16. The apparatus of claim 10 or 11 or 12 or 14 or 15, further comprising:
and the television signal adjusting module is used for adjusting the first television signal and/or the second television signal according to the television signal adjusting request when receiving the television signal adjusting request sent by the second terminal.
17. The apparatus of claim 16, wherein the television signal conditioning module comprises:
a channel number extracting submodule for extracting a channel number from the television signal adjustment request;
the first frequency point searching submodule is used for searching the first frequency point related to the channel number;
and the first adjusting submodule is used for selecting the television program signal in the second television signal to the first frequency point.
18. The apparatus of claim 16, wherein the television signal conditioning module comprises:
the frequency point sub-module is used for recording a second frequency point of the first television signal and a third frequency point of the second television signal when extracting a channel switching identifier from the television signal adjusting request;
the second adjusting submodule is used for selecting the television program signal in the first television signal to the third frequency point;
and the third adjusting submodule is used for selecting the television program signals in the second television signals to the second frequency point.
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1233099A true HK1233099A (en) | 2018-01-19 |
| HK1233099A1 HK1233099A1 (en) | 2018-01-19 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101271996B1 (en) | A Method for providing a external device list and display apparatus thereof | |
| US9602774B2 (en) | Method and apparatus for providing virtual channels | |
| US10009656B2 (en) | Multi-option sourcing of content | |
| US10779045B2 (en) | Multi-option sourcing of content and interactive television | |
| US8918810B2 (en) | Apparatus and method for providing available codec information | |
| CN106464933B (en) | Apparatus and method for remotely controlling rendering of multimedia content | |
| KR20150025514A (en) | Method for relaying contents in contents reproducing device | |
| CN102577416B (en) | Method, device and system for selectively outputting multimedia content | |
| US20240163514A1 (en) | Media data processing method and media data processing device | |
| JP5782524B2 (en) | Video signal transmission / reception method, display device, and decoding device | |
| JPWO2018079295A1 (en) | Information processing apparatus and information processing method | |
| CN102547397B (en) | Web TV intelligence EPG system and Web TV thereof | |
| JP2011109171A (en) | Broadcast receiving apparatus | |
| KR20120046988A (en) | Method and computer readable recording medium for controlling multimedia display device and voice recorder | |
| JP6360119B2 (en) | Method and apparatus for remotely tuning a channel using DLNA DMS service | |
| KR20070028077A (en) | DLAN system capable of digital broadcasting data service and processing method of data service | |
| KR101271086B1 (en) | Systems for viewing multimedia, apparatus for receiving a broadcasting signal, methods for viewing multimedia thereof, and methods for receiving a broadcasting signal thereof | |
| KR101715945B1 (en) | A method for automatic control of sound of an audio device | |
| HK1233099A (en) | Method and device for palying television signal | |
| HK1233099A1 (en) | Method and device for palying television signal | |
| KR101923687B1 (en) | Method for managing memory and display device therefor | |
| JP7783964B2 (en) | Receiving device and receiving method | |
| KR20240049333A (en) | Media data processing method and media data processing device | |
| JP2025142241A (en) | Reception device and reception method | |
| CN114286168A (en) | Program list processing method, display device and storage medium |