CN106454503A - Streaming media data acquisition method and device applied to smart television - Google Patents

Streaming media data acquisition method and device applied to smart television Download PDF

Info

Publication number
CN106454503A
CN106454503A CN201610940807.2A CN201610940807A CN106454503A CN 106454503 A CN106454503 A CN 106454503A CN 201610940807 A CN201610940807 A CN 201610940807A CN 106454503 A CN106454503 A CN 106454503A
Authority
CN
China
Prior art keywords
channel
playing
layer
address
media data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610940807.2A
Other languages
Chinese (zh)
Other versions
CN106454503B (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610940807.2A priority Critical patent/CN106454503B/en
Publication of CN106454503A publication Critical patent/CN106454503A/en
Application granted granted Critical
Publication of CN106454503B publication Critical patent/CN106454503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • 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/26258Content 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 for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/26283Content 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 for associating distribution time parameters to content, e.g. to generate electronic program guide data
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

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

Abstract

The invention discloses a streaming media data acquisition method and device applied to a smart television, and belongs to the technical field of computers. The method comprises the steps of acquiring channel information of a play channel by using a play control layer; sending the channel information to a channel service agent layer by using the play control layer, and acquiring a play address of the play channel according to the channel information by using the channel service agent layer; and at least downloading partial streaming media data from the play channel from a server provided with the play address by using the channel service agent layer before a media player enters a playing state. The streaming media data acquisition method solves a problem that a live broadcast application or a carousel application is low in speed when loading streaming media data for the first time because an initialization process of the play control layer and the process before the media player enters the playing state are complex in the related technology, and achieves an effect of improving the speed of the live broadcast application or the carousel application when loading the streaming media data for the first time.

Description

Streaming media data acquisition method and device applied to smart television
Technical Field
The invention relates to the technical field of computers, in particular to a streaming media data acquisition method and device applied to an intelligent television.
Background
At present, watching television programs by utilizing the live broadcast function or the carousel function of the smart television is a common entertainment mode.
In the related art, after the smart television is turned on, when a live application or a carousel application on the smart television is started to load a certain channel for the first time, a play control layer (english: play activity) needs to be created and initialized. And under the condition that the play control layer completes initialization, the intelligent television calls a media player for the current play channel by using the play control layer. After the smart television sets a listener and a playing address of the playing channel in the media player by using the playing control layer, the media player performs preparation (english). The media player enters a playing state after completing preparation, and the media player in the playing state can download and play the real-time streaming media data of the channel from the network.
However, the initialization process of the play control layer and the process before the media player enters the play state are complicated, which results in a slow speed for the live broadcast application or the carousel application to load the streaming media data for the first time.
Disclosure of Invention
In order to solve the problem that the speed of first loading streaming media data by a live broadcast application or a carousel application is low due to the fact that the initialization process of a play control layer and the process of a media player before the media player enters a play state in the prior art are complex, embodiments of the present invention provide a streaming media data acquisition method and apparatus applied to a smart television. The technical scheme is as follows:
in a first aspect, a method for acquiring streaming media data applied to a smart television is provided, where the smart television includes a play control layer, a media player, and a channel service agent layer, and the method includes:
acquiring channel information of a playing channel by using the playing control layer, wherein the channel information comprises any one of a channel identifier, a channel serial number and a playing address of the playing channel;
sending the channel information to the channel service agent layer by using the playing control layer, and acquiring a playing address of the playing channel by using the channel service agent layer according to the channel information;
before the media player enters a playing state, the channel service agent layer is utilized to download at least part of streaming media data of the playing channel from the server with the playing address.
In a second aspect, a streaming media data obtaining apparatus applied to a smart tv is provided, where the smart tv includes a play control layer, a media player, and a channel service agent layer, the apparatus includes:
a first obtaining module, configured to obtain channel information of a broadcast channel by using the broadcast control layer, where the channel information includes any one of a channel identifier, a channel serial number, and a broadcast address of the broadcast channel;
a sending module, configured to send, by using the play control layer, the channel information obtained by the first obtaining module to the channel service agent layer, and obtain, by using the channel service agent layer, a play address of the play channel according to the channel information;
and the first downloading module is used for downloading at least part of streaming media data of the playing channel from a server with the playing address by utilizing the channel service agent layer before the media player enters the playing state.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
acquiring channel information of a playing channel by using a playing control layer, sending the channel information to a channel service proxy layer by using the playing control layer, acquiring a playing address of the playing channel by using the channel service proxy layer according to the channel information of the playing channel before a media player enters a playing state, and downloading at least part of streaming media data of the playing channel from a server with the playing address by using the channel service proxy layer; the smart television can acquire the playing address of the playing channel by using the channel service agent layer before the media player enters the playing state, and stream media data are downloaded from the server with the playing address, so that the stream media data can be downloaded from the server with the playing address without waiting until the playing control layer is initialized and the complex process before the media player enters the playing state is finished, the problem that the speed of the stream media data are loaded for the first time by live broadcast application or carousel application in the related technology is low is solved, and the effect of improving the speed of the stream media data loaded for the first time by the live broadcast application or carousel application is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for acquiring streaming media data applied to a smart television according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a flow of loading a broadcast channel when a carousel application or a live application is first run in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a live channel selection interface provided in one embodiment of the invention;
FIG. 4 is a diagram illustrating a broadcast control layer sending channel information directly to a channel service broker layer in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart of downloading streaming media data of a broadcast channel from a server using a channel service proxy layer according to an embodiment of the present invention;
fig. 6 is a flow chart of downloading streaming media data of a preloaded channel provided in an embodiment of the present invention;
fig. 7 is a block diagram illustrating a structure of a streaming media data acquiring apparatus applied to a smart tv according to an embodiment of the present invention;
fig. 8 is a block diagram showing the structure of the smart tv according to some embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for acquiring streaming media data applied to a smart television according to an embodiment of the present invention, where the method for acquiring streaming media data is applicable to a smart television including a play control layer, a media player, and a channel service agent layer. As shown in fig. 1, the method for acquiring streaming media data applied to the smart television includes:
step 101, obtaining channel information of a broadcast channel by using a broadcast control layer, where the channel information at least includes any one of a channel identifier, a channel number, and a broadcast address of the broadcast channel.
The playing channel is a television channel currently played by the smart television, and may be a live channel or a carousel channel. Optionally, the channel identifier is a channel name of the channel.
Generally, after the smart television is turned on, when a live application or a carousel application installed in the smart television runs for the first time, a play control layer is created and initialized for the running application program, as shown in fig. 2. Wherein, the play control layer follows the activity lifecycle (including on create, on start, on resume, etc. states).
After the smart television is turned on, when the carousel application or the live application is first run, the smart television may directly load and play a certain live channel or a carousel channel, for example, the carousel channel may be a carousel channel last played when the smart television was turned off last time, and at this time, the play control layer corresponding to the running application program may directly obtain the channel identifier and/or the channel number of the channel (that is, the play channel).
Generally, the user can also select a channel to be played by the smart television through the control device. The intelligent television receives a control signal sent by the control equipment and generates a control instruction according to the control signal. And when the control instruction is used for instructing channel switching, sending the control instruction to a playing control layer. The playing control layer receives the control instruction, and acquires the channel identifier or the channel serial number of the playing channel according to the control instruction, wherein the playing channel is the channel selected by the user for playing. Wherein the control device may be a remote control or other mobile device (e.g., a smartphone).
For example, the number of the channel being played by the smart television is 15. When the smart television receives an infrared signal sent by a remote controller and used for indicating switching to a next channel, a control instruction corresponding to the signal and used for indicating switching to the next channel is sent to the playing control layer, and then the playing control layer can determine that the channel serial number of the playing channel selected by a user for playing is 16.
Taking the channel identifier as the channel name for example, the smart tv may provide a live channel selection interface to the user, as shown in fig. 3. The user may use the remote control to move the cursor over the channel name of the cardioverter channel. When the smart television receives a signal for indicating the determination of the selection, the determination instruction is sent to the playing control layer, and the playing control layer can determine that the playing channel selected by the user for playing is an international sports channel.
Optionally, after the playing control layer obtains the channel identifier or the channel serial number of the playing channel, the playing control layer may also query the playing address of the playing channel according to the channel identifier or the channel serial number. The broadcast address is usually a Uniform Resource Locator (URL) of the server corresponding to the broadcast channel.
Generally, an Electronic Program Guide (EPG) information records a channel number, a channel identifier, and a broadcast address of each channel. The playing control layer may query the EPG information for the obtained playing address corresponding to the channel identifier or the channel number, that is, the playing address of the playing channel selected by the user for playing.
102, sending the channel information to a channel service agent layer by using a play control layer, acquiring a play address of a play channel according to the channel information by using the channel service agent layer, and establishing a hypertext transfer protocol (HTTP) connection with a server with the play address.
The sending of the channel information to the channel service agent layer by using the play control layer can be implemented by the following two possible implementation manners.
In a first possible implementation, the play control layer is used to send the channel information directly to the channel service agent layer.
As shown in fig. 4, after acquiring the channel number or the channel identifier, the play control layer may directly send the acquired channel identifier or channel signal to the channel service agent layer. The playing control layer may also determine a playing address of the playing channel according to the obtained channel number or the channel identifier, and then directly send the playing address to the channel service agent layer.
In a second possible implementation manner, the playing control layer obtains the playing address of the playing channel according to the channel information, sends the playing address to the media player, and sends the playing address to the channel service agent layer by using the media player.
After receiving the playing address from the playing control layer, the media player can directly send the playing address to the channel service proxy layer, and the channel service proxy layer downloads the real-time streaming media data of the playing channel from the server.
Further, after the smart television obtains the broadcast address of the broadcast channel by using the channel service agent layer, the smart television establishes a Hyper Text Transfer Protocol (HTTP) connection with the server having the broadcast address by using the channel service agent layer.
Step 103, before the media player enters the playing state, the channel service proxy layer is used to download at least part of streaming media data of the playing channel from the server with the playing address.
Generally, before the media player enters the playing state, the smart tv may send the channel information to the channel service proxy layer by using the playing control layer or the media player, so that the channel service proxy layer obtains the playing address of the playing channel before the media player enters the playing state, and downloads the streaming media data of the playing channel from the server having the playing address. Therefore, before the media player enters the playing state, the channel service proxy layer downloads part of the streaming media data from the server with the playing address.
The streaming media data of the playing channel is streaming media data provided by the server in real time for the channel, and the streaming media data provided by the server in real time is streaming media data which needs to be played by the playing channel at the current moment.
Streaming media data provided by a server in real time is generally composed of a plurality of slice files. Generally, the server generally provides a second playlist for a broadcast channel, where the second playlist includes a Uniform Resource Identifier (URI) of a slice file corresponding to streaming media data that needs to be broadcast by the broadcast channel.
In addition, the server updates the second playlist according to the streaming media data which needs to be played at the current time of the playing channel.
Correspondingly, the intelligent television acquires a second play list of the playing channel from the server by using the channel service agent layer, the second play list is used for recording the URIs of the plurality of slice files, and the slice files are downloaded by using the channel service agent layer according to the URIs in the second play list.
In addition, the smart television also sends a second play list corresponding to the downloaded slice file to the media player, so that the media player can obtain each slice file according to the second play list.
And step 104, after the media player enters a playing state, acquiring the streaming media data downloaded by the channel service proxy layer in real time from the channel service proxy layer by using the media player.
Still referring to fig. 2, after the media player enters the playing state, the media player may start playing the streaming media data, and at this time, the media player obtains the streaming media data downloaded by the channel service proxy layer from the channel service proxy layer for playing.
It should be noted that, when the media player enters the playing state, the channel service agent layer does not interrupt the downloading of the streaming media data of the playing channel. That is, after the media player enters the playing state, the streaming media data of the playing channel is still downloaded from the server in real time by the channel service agent layer.
Optionally, step 104 may also be replaced by: after the media player enters a playing state, the media player is used for acquiring the streaming media data downloaded by the channel service proxy layer from the channel service proxy layer, and the streaming media data of the playing channel which is not downloaded by the channel service proxy layer is downloaded in real time from the server with the playing address.
Before the media player enters the preparation state, the streaming media data of the playing channel is downloaded in real time by the channel service agent layer. After the media player enters the preparation state, the intelligent television does not use the service agent layer to download the streaming media data of the playing channel in real time, and uses the media player to download the streaming media data of the playing channel in real time.
In summary, the method for acquiring streaming media data applied to a smart television according to the embodiments of the present invention acquires channel information of a broadcast channel by using a broadcast control layer, and sends the channel information to a channel service agent layer by using the broadcast control layer, before a media player enters a broadcast state, the channel service agent layer acquires a broadcast address of the broadcast channel according to the channel information of the broadcast channel, and the channel service agent layer downloads at least a part of streaming media data of the broadcast channel from a server having the broadcast address; the smart television can acquire the playing address of the playing channel by using the channel service agent layer before the media player enters the playing state, and stream media data are downloaded from the server with the playing address, so that the stream media data can be downloaded from the server with the playing address without waiting until the playing control layer is initialized and the complex process before the media player enters the playing state is finished, the problem that the speed of the stream media data are loaded for the first time by live broadcast application or carousel application in the related technology is low is solved, and the effect of improving the speed of the stream media data loaded for the first time by the live broadcast application or carousel application is achieved.
Optionally, after the HTTP connection is established between the channel proxy service and the server corresponding to a channel, the corresponding relationship between the broadcast address of the channel and the channel identifier or the channel number may be recorded in the first playlist. The first playlist is used for recording the playing address of the channel which is loaded by the channel service agent layer history.
Correspondingly, when the channel information received by the intelligent television by using the channel service agent layer is not a broadcast address, the channel service agent layer is used for inquiring the broadcast address corresponding to the channel information in the first broadcast list, wherein the channel information is a channel identifier or a channel serial number of a broadcast channel.
If the channel proxy server does not inquire the playing address of the playing channel in the first playing list, the playing address corresponding to the channel identifier or the channel serial number can be inquired in the EPG information to obtain the playing address of the playing channel.
Because the information data recorded in the EPG information is huge, the acquisition speed of the playing address can be increased by inquiring the playing address of the playing channel in the first playing list.
Alternatively, downloading the streaming media data of the broadcast channel from the server having the broadcast address by using the channel service proxy layer may also be implemented through several steps as shown in fig. 5.
Step 501, a channel service proxy layer is used to obtain a second playlist of a broadcast channel from a server having the broadcast address, where the second playlist is used to record URIs of multiple slice files provided by the server.
Step 502, at least two loading threads are created, and the at least two loading threads are used for downloading corresponding slice files according to URIs respectively.
The plurality of threads are started to simultaneously download the slice files corresponding to the URI, so that the downloading speed of the streaming media data is improved, and the jam of the audio and video data is reduced.
The intelligent television can download the streaming media data of the playing channel which is playing, and can also preload the streaming media data of other channels. For example, the preloaded channel may be a channel with a channel number adjacent to the channel number of the broadcast channel; for another example, preloading channels in a favorites list; for another example, the channel with the longest history playing time is preloaded. In particular, this can be achieved by several steps as shown in fig. 6.
Step 601, determining a channel adjacent to the playing channel as a preloaded channel, and sending a channel serial number of the preloaded channel to a channel service agent layer, where the channel serial number of the channel adjacent to the playing channel is adjacent to the channel serial number of the playing channel.
For example, if the channel number of the playing channel currently being played by the smart television is 15, the channel corresponding to the channel number 16 and the channel corresponding to the channel number 14 are determined as the preloaded channels, and the channel number 16 and the channel number 14 may be sent to the channel service agent layer.
Step 602, counting the historical playing time of each channel, determining the channel with the longest historical playing time as the preloaded channel, and sending the channel number or the channel identifier of the preloaded channel to the channel service agent layer.
The smart television can count the historical playing time of each channel. After the intelligent television is started, the channel with the longest historical playing time is obtained, and the channel serial number or the channel identification of the channel is sent to the channel service agent layer.
Step 603, determining the channel in the favorite list as a preloaded channel, and sending the channel number or the channel identifier of the preloaded channel to the channel service agent layer.
Some smart televisions have a channel collection function, and a user can collect channels by using the channel collection function provided by the smart television. Accordingly, the user can view or select the collected channels in the favorite list provided by the smart television.
After the smart television is started, the smart television can determine the channels in the favorite list as the preloaded channels, and send the channel serial numbers or the channel identifications of the preloaded channels to the channel service agent layer.
Step 604, downloading real-time streaming media data from the server corresponding to the preloaded channel by using the channel service agent layer.
The smart television can utilize the channel service agent layer to acquire the playing address of the preloaded channel according to the channel identification or the channel serial number, and establish HTTP connection with the server with the playing address.
The implementation that the smart television uses the channel service agent layer to download the streaming media data of the preloaded channel from the server corresponding to the preloaded channel may refer to the explanation of downloading the streaming media data of the playing channel in step 103, and details are not described here.
The pre-loading channel is usually a channel to which a user may switch, streaming media data is pre-loaded on the pre-loading channel, and when the user controls the smart television to play the pre-loading channel, a media player corresponding to the pre-loading channel enters a playing state and then can directly acquire and play the streaming media data downloaded by the pre-loading channel from the channel service agent layer.
Optionally, when the number of the slice files corresponding to the downloaded preloaded channel reaches a predetermined number, part of the slice files are deleted. The partial slice file referred to herein may be a predetermined number of slice files that are sorted in the downloaded slice file in the playing order. Wherein the predetermined number is typically set by a system developer.
The following are embodiments of the apparatus of the present invention, and for details not described in detail in the embodiments of the apparatus, reference may be made to the above-mentioned one-to-one corresponding method embodiments.
Fig. 7 is a block diagram illustrating a structure of a streaming media data acquiring apparatus applied to a smart tv according to an embodiment of the present invention. In this embodiment, the streaming media data acquiring apparatus is applied to an intelligent television including a play control layer, a media player and a channel service agent layer. The streaming media data acquisition device applied to the intelligent television comprises: a first obtaining module 710, a sending module 720, a first downloading module 730 and a channel service broker layer 740.
The first obtaining module 710 is configured to obtain channel information of a broadcast channel by using a broadcast control layer, where the channel information includes any one of a channel identifier, a channel serial number, and a broadcast address of the broadcast channel.
A sending module 720, configured to send the channel information obtained by the first obtaining module 710 to a channel service proxy layer by using a playing control layer, and obtain a playing address of a playing channel according to the channel information by using the channel service proxy layer.
Optionally, the channel service agent layer 740 includes an agent service control unit 741, and the agent service control unit 741 is configured to receive the channel information.
Optionally, the channel service agent layer 740 includes a broadcast address obtaining and managing unit 742, where the broadcast address obtaining and managing unit 742 is configured to obtain a broadcast address of a broadcast channel according to the channel information.
A first downloading module 730, configured to download at least a part of streaming media data of a playing channel from a server having the playing address by using the channel service proxy layer before the media player enters the playing state.
Optionally, in a possible implementation, the sending module includes: a first transmission unit or a second transmission unit.
And the first sending unit is used for directly sending the channel information to the channel service agent layer by using the playing control layer.
And the second sending unit is used for acquiring the playing address of the playing channel according to the channel information by using the playing control layer, sending the playing address to the media player and sending the playing address to the channel service agent layer by using the media player.
Optionally, in a possible implementation manner, the streaming media data obtaining apparatus applied to the smart television further includes: and a second obtaining module.
And the second acquisition module is used for acquiring the streaming media data downloaded by the channel service proxy layer in real time from the channel service proxy layer by using the media player after the media player enters the playing state.
Optionally, in a possible implementation manner, the streaming media data obtaining apparatus applied to the smart television further includes: and a second download module.
And the second downloading module is used for acquiring the streaming media data downloaded by the channel service proxy layer from the channel service proxy layer by using the media player after the media player enters a playing state, and downloading the streaming media data of the playing channel not downloaded by the channel service proxy layer in real time from the server with the playing address.
Optionally, still referring to fig. 7, the channel service agent layer 740 further includes a file management unit 743, and the file management unit 743 is used for managing the streaming media data downloaded by the channel service agent layer.
Optionally, in a possible implementation manner, the sending module 720 is further configured to, when the channel information received by the channel service agent layer is not a broadcast address, query, by using the channel service agent layer, the broadcast address corresponding to the channel information in a first playlist, where the first playlist is used to record the broadcast address of the channel historically loaded by the channel service agent layer, and the channel information is a channel identifier or a channel serial number.
Optionally, in a possible implementation, still referring to fig. 7, the first downloading module 730 includes: a playlist management unit 731 and a thread management unit 732.
A playlist management unit 731, configured to obtain, by using the channel service proxy layer, a second playlist of the broadcast channel from the server having the broadcast address, where the second playlist is used to record uniform resource identifiers URI of multiple slice files provided by the server.
Optionally, the playlist managing unit 731 is further configured to manage a second playlist, and send the newly acquired second playlist to the media player.
The thread management unit 732 is configured to create at least two loading threads, and download different slice files according to the URIs by using the at least two loading threads.
Optionally, in a possible implementation manner, the streaming media data obtaining apparatus applied to the smart television further includes: the device comprises a first determining module, a second determining module and a third downloading module.
The first determining module is used for determining a channel adjacent to the playing channel as a pre-loading channel, and sending a channel serial number of the pre-loading channel to the channel service agent layer, wherein the channel serial number of the channel adjacent to the playing channel is adjacent to the channel serial number of the playing channel.
And the second determining module is used for counting the historical playing time of each channel, determining the channel with the longest historical playing time as the preloaded channel, and/or determining the channels in the favorite list as the preloaded channel, and sending the channel serial number or the channel identifier of the preloaded channel to the channel service agent layer.
And the third downloading module is used for downloading the real-time streaming media data from the server corresponding to the preloading channel by using the channel service agent layer.
Optionally, the channel service proxy layer further includes an HTTP connection management module, configured to manage and maintain each HTTP connection instance established by the channel service proxy layer.
In summary, the streaming media data obtaining apparatus applied to the smart television according to the embodiments of the present invention sends the channel information to the channel service agent layer by using the play control layer, before the media player enters the play state, the channel service agent layer obtains the play address of the play channel according to the channel information of the play channel, and the channel service agent layer downloads at least a part of the streaming media data of the play channel from the server having the play address; the smart television can acquire the playing address of the playing channel by using the channel service agent layer before the media player enters the playing state, and stream media data are downloaded from the server with the playing address, so that the stream media data can be downloaded from the server with the playing address without waiting until the playing control layer is initialized and the complex process before the media player enters the playing state is finished, the problem that the speed of the stream media data are loaded for the first time by live broadcast application or carousel application in the related technology is low is solved, and the effect of improving the speed of the stream media data loaded for the first time by the live broadcast application or carousel application is achieved.
It should be noted that: in the above embodiment, when acquiring streaming media data, the streaming media data acquiring apparatus applied to the smart television is only illustrated by dividing the functional modules, and in practical application, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the smart television is divided into different functional modules to complete all or part of the functions described above. In addition, the streaming media data acquisition device applied to the smart television and the streaming media data acquisition method applied to the smart television provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Referring to fig. 8, a block diagram of an intelligent television according to some embodiments of the present invention is shown. The smart television 800 is configured to implement the streaming media data obtaining method applied to the smart television provided in the foregoing embodiment. The smart tv 800 in the present invention may include one or more of the following components: a processor for executing computer program instructions to perform the various processes and methods, Random Access Memory (RAM) and Read Only Memory (ROM) for information and storing program instructions, memory for storing data and information, I/O devices, interfaces, antennas, and the like. Specifically, the method comprises the following steps:
the smart tv 800 may include a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, a power source 882, a camera 890, and other components. Those skilled in the art will appreciate that the smart tv architecture shown in fig. 8 does not constitute a limitation of the smart tv, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The following describes each component of the smart tv 800 in detail with reference to fig. 8:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to the processor 880; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the smart tv 800 by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the smart tv 800, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the smart tv 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the smart tv 800. The display unit 840 may include a display panel 841, and the display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two independent components to implement the input and output functions of the smart tv 800, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the smart tv 800.
The smart tv 800 may also include at least one sensor 850, such as a gyroscope sensor, a magnetic induction sensor, a light sensor, a motion sensor, and others. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of ambient light. As for other sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the smart tv 800, detailed descriptions thereof are omitted.
The audio circuit 860, speaker 861, microphone 862 may provide an audio interface between the user and the smart tv 800. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another smart tv via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the smart tv 800 can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 870, and it provides the user with wireless broadband internet access. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of smart tv 800, and may be omitted entirely as needed within the scope not changing the essence of the disclosure.
The processor 880 is a control center of the smart tv 800, connects various parts of the entire smart tv using various interfaces and lines, and performs various functions and processes of the smart tv 800 by running or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby performing overall monitoring of the smart tv. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The smart tv 800 further includes a power source 882 (e.g., a battery) for supplying power to various components, and preferably, the power source may be logically connected to the processor 882 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
The camera 890 is generally composed of a lens, an image sensor, an interface, a digital signal processor, a CPU, a display screen, and the like. The lens is fixed above the image sensor, and the focusing can be changed by manually adjusting the lens; the image sensor is equivalent to the 'film' of a traditional camera and is the heart of a camera for acquiring images; the interface is used for connecting the camera with the smart television mainboard in a flat cable, board-to-board connector and spring connection mode and sending the acquired image to the memory 820; the digital signal processor processes the acquired image through a mathematical operation, converts the acquired analog image into a digital image, and transmits the digital image to the memory 820 through an interface.
Although not shown, the smart tv 800 may further include a bluetooth module, etc., which will not be described herein.
The smart tv 800 includes, in addition to the one or more processors 880, a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and execute the streaming media data obtaining method applied to the smart tv.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for acquiring streaming media data applied to an intelligent television is characterized in that the intelligent television comprises a play control layer, a media player and a channel service agent layer, and the method comprises the following steps:
acquiring channel information of a playing channel by using the playing control layer, wherein the channel information comprises any one of a channel identifier, a channel serial number and a playing address of the playing channel;
sending the channel information to the channel service agent layer by using the playing control layer, and acquiring a playing address of the playing channel by using the channel service agent layer according to the channel information;
before the media player enters a playing state, the channel service agent layer is utilized to download at least part of streaming media data of the playing channel from the server with the playing address.
2. The method of claim 1, wherein sending the channel information to the channel service agent layer using the playout control layer comprises:
directly sending the channel information to the channel service agent layer by using the playing control layer;
or,
and acquiring a playing address of the playing channel according to the channel information by using the playing control layer, sending the playing address to the media player, and sending the playing address to the channel service agent layer by using the media player.
3. The method of claim 1, wherein after the downloading, by the channel service agent layer, the partial streaming media data of the broadcast channel from the server having the broadcast address, the method further comprises:
after the media player enters a playing state, acquiring the downloaded streaming media data of the channel service proxy layer in real time from the channel service proxy layer by using the media player;
or,
and after the media player enters a playing state, the media player is utilized to acquire the streaming media data downloaded by the channel service proxy layer from the channel service proxy layer, and the streaming media data of the playing channel not downloaded by the channel service proxy layer is downloaded in real time from a server with the playing address.
4. The method of claim 1, wherein said obtaining, by the channel service agent layer, the broadcast address of the broadcast channel according to the channel information comprises:
when the channel information received by the channel service agent layer is not a broadcast address, the channel service agent layer is used for inquiring the broadcast address corresponding to the channel information in a first broadcast list, the first broadcast list is used for recording the broadcast address of the channel which is historically loaded by the channel service agent layer, and the channel information is a channel identifier or a channel serial number.
5. The method of claim 1, wherein the downloading, by the channel service agent layer, at least part of the streaming media data of the broadcast channel from the server having the broadcast address comprises:
acquiring a second play list of the play channel from a server with the play address by using the channel service proxy layer, wherein the second play list is used for recording Uniform Resource Identifiers (URIs) of a plurality of slice files provided by the server;
and creating at least two loading threads, and downloading different slice files according to the URI by utilizing the at least two loading threads.
6. The method according to any one of claims 1 to 5, further comprising:
determining a channel adjacent to the playing channel as a pre-loading channel, and sending a channel serial number of the pre-loading channel to the channel service agent layer, wherein the channel serial number of the channel adjacent to the playing channel is adjacent to the channel serial number of the playing channel;
and/or the presence of a gas in the gas,
counting the historical playing time of each channel, determining the channel with the longest historical playing time as a preloaded channel, and/or determining the channels in a favorite list as the preloaded channels, and sending the channel serial numbers or channel identifications of the preloaded channels to the channel service agent layer;
and downloading real-time streaming media data from a server corresponding to the preloading channel by using the channel service agent layer.
7. The utility model provides a be applied to streaming media data acquisition device of intelligent TV, its characterized in that, intelligent TV includes play control layer, media player and channel service agent layer, the device includes:
a first obtaining module, configured to obtain channel information of a broadcast channel by using the broadcast control layer, where the channel information includes any one of a channel identifier, a channel serial number, and a broadcast address of the broadcast channel;
a sending module, configured to send, by using the play control layer, the channel information obtained by the first obtaining module to the channel service agent layer, and obtain, by using the channel service agent layer, a play address of the play channel according to the channel information;
and the first downloading module is used for downloading at least part of streaming media data of the playing channel from a server with the playing address by utilizing the channel service agent layer before the media player enters the playing state.
8. The apparatus of claim 7, wherein the sending module comprises:
a first sending unit, configured to send the channel information directly to the channel service agent layer by using the play control layer;
or,
and the second sending unit is used for acquiring a playing address of the playing channel according to the channel information by using the playing control layer, sending the playing address to the media player, and sending the playing address to the channel service agent layer by using the media player.
9. The apparatus of claim 7, further comprising:
a second obtaining module, configured to obtain, by using the media player, streaming media data downloaded by the channel service proxy layer in real time from the channel service proxy layer after the media player enters a playing state;
or,
and the second downloading module is used for acquiring the streaming media data downloaded by the channel service proxy layer from the channel service proxy layer by using the media player after the media player enters a playing state, and downloading the streaming media data of the playing channel not downloaded by the channel service proxy layer in real time from a server with the playing address.
10. The apparatus of claim 7, wherein the sending module is further configured to, when the channel information received by the channel service proxy layer is not a broadcast address, query, by using the channel service proxy layer, a broadcast address corresponding to the channel information in a first playlist, where the first playlist is used to record the broadcast address of the channel historically loaded by the channel service proxy layer, and the channel information is a channel identifier or a channel number.
CN201610940807.2A 2016-10-25 2016-10-25 Stream medium data acquisition methods and device applied to smart television Active CN106454503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610940807.2A CN106454503B (en) 2016-10-25 2016-10-25 Stream medium data acquisition methods and device applied to smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610940807.2A CN106454503B (en) 2016-10-25 2016-10-25 Stream medium data acquisition methods and device applied to smart television

Publications (2)

Publication Number Publication Date
CN106454503A true CN106454503A (en) 2017-02-22
CN106454503B CN106454503B (en) 2019-07-02

Family

ID=58178449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610940807.2A Active CN106454503B (en) 2016-10-25 2016-10-25 Stream medium data acquisition methods and device applied to smart television

Country Status (1)

Country Link
CN (1) CN106454503B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613404A (en) * 2017-09-07 2018-01-19 北京达佳互联信息技术有限公司 Video broadcasting method, device and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297848A (en) * 2012-02-22 2013-09-11 华为终端有限公司 Play method of media streams and set top box
CN103297850A (en) * 2012-08-24 2013-09-11 乐视致新电子科技(天津)有限公司 Method for playing network video at starting of Android system
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching
CN104093044A (en) * 2014-01-20 2014-10-08 腾讯科技(深圳)有限公司 Online media playing method, server and system
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player
US20160249092A1 (en) * 2015-02-24 2016-08-25 Layer3 TV, Inc. System and method for digital video recording backfill

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297848A (en) * 2012-02-22 2013-09-11 华为终端有限公司 Play method of media streams and set top box
CN103297850A (en) * 2012-08-24 2013-09-11 乐视致新电子科技(天津)有限公司 Method for playing network video at starting of Android system
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching
CN104093044A (en) * 2014-01-20 2014-10-08 腾讯科技(深圳)有限公司 Online media playing method, server and system
CN104394475A (en) * 2014-11-28 2015-03-04 乐视致新电子科技(天津)有限公司 Streaming media file playing method and media player
US20160249092A1 (en) * 2015-02-24 2016-08-25 Layer3 TV, Inc. System and method for digital video recording backfill

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613404A (en) * 2017-09-07 2018-01-19 北京达佳互联信息技术有限公司 Video broadcasting method, device and terminal

Also Published As

Publication number Publication date
CN106454503B (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN106534940B (en) Display method and device of live broadcast entry preview
CN104883358B (en) Interactive approach based on recommendation and device
CN105430424B (en) A kind of methods, devices and systems of net cast
US20170302990A1 (en) Method, terminal, and system for processing data of video stream
JP6445719B2 (en) Pre-roll advertisement playback method, terminal, and video server
CN106792120B (en) Video picture display method and device and terminal
CN105554522B (en) Method, server and the terminal of audio are played in group
CN104066009B (en) program identification method, device, terminal, server and system
WO2015014144A1 (en) Method and apparatus for installing application, and terminal device
CN107333162B (en) Method and device for playing live video
CN109756767B (en) Preview data playing method, device and storage medium
CN112104897B (en) Video acquisition method, terminal and storage medium
CN106254910B (en) Method and device for recording image
CN106231433B (en) A kind of methods, devices and systems playing network video
US20150304701A1 (en) Play control method and device
CN108184143B (en) Method and device for acquiring resources
CN106953898B (en) Method and device for acquiring software package
CN111741352A (en) Screen projection control method, screen projection playing method and related device
CN106210919A (en) A kind of main broadcaster of broadcasting sings the methods, devices and systems of video
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN110460862B (en) Live broadcast processing method, terminal equipment and storage medium
CN105025064B (en) Download the method, apparatus and system of file
CN106961620B (en) Smart television starting method, smart television and remote controller
CN112383623B (en) Multimedia file processing method and device, terminal and network access point equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.