CN106454503B - Stream medium data acquisition methods and device applied to smart television - Google Patents

Stream medium data acquisition methods and device applied to smart television Download PDF

Info

Publication number
CN106454503B
CN106454503B CN201610940807.2A CN201610940807A CN106454503B CN 106454503 B CN106454503 B CN 106454503B CN 201610940807 A CN201610940807 A CN 201610940807A CN 106454503 B CN106454503 B CN 106454503B
Authority
CN
China
Prior art keywords
channel
broadcasting
service agent
agent layer
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610940807.2A
Other languages
Chinese (zh)
Other versions
CN106454503A (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 kind of stream medium data acquisition methods and device applied to smart television, belong to field of computer technology.This method comprises: utilizing the channel information for playing control layer acquisition broadcasting channel;The channel information is sent to channel service Agent layer using control layer is played, obtains the broadcast address of the broadcasting channel according to channel information using channel service Agent layer;Before media player enters broadcast state, the part stream medium data of the broadcasting channel is at least downloaded from the server for having the broadcast address using channel service Agent layer.It solves the initialization process for playing control layer in the related technology and media player enters the process complexity before broadcast state, cause live streaming application or carousel using the slow-footed problem for loading stream medium data for the first time, has achieved the effect that raising live streaming is applied or carousel is using the speed for loading stream medium data for the first time.

Description

Stream medium data acquisition methods and device applied to smart television
Technical field
The present invention relates to field of computer technology, in particular to a kind of stream medium data acquisition side applied to smart television Method and device.
Background technique
Currently, being a kind of relatively common amusement using direct broadcast function or carousel function the viewing TV programme of smart television Mode.
In the related technology, after smart television booting, load is opened in live streaming application or carousel application on smart television for the first time When certain channel, need to create and initialize broadcasting control layer (English: play activity).It is completed initially playing control layer In the case where change, smart television is that current broadcasting channel calls media player using control layer is played.In smart television benefit After with broadcasting control layer, the broadcast address of monitor and the broadcasting channel is set in the media player, the media player It is prepared (English: prepare).The media player is completed to enter broadcast state after preparing, and the media under broadcast state are broadcast The real-time stream medium data of broadcasting channel could be downloaded from network by putting device.
However, the initialization process and media player of broadcasting control layer enter the process complexity before broadcast state, lead The speed for causing live streaming application or carousel application to load stream medium data for the first time is slow.
Summary of the invention
In order to solve the initialization process for playing control layer in the prior art and before media player enters broadcast state Process it is complicated, lead to that live streaming is applied or carousel application loads the slow-footed problem of stream medium data for the first time, the present invention is implemented Example provides a kind of stream medium data acquisition methods and device applied to smart television.The technical solution is as follows:
In a first aspect, providing a kind of stream medium data acquisition methods applied to smart television, the smart television packet It includes and plays control layer, media player and channel service Agent layer, which comprises
The channel information of broadcasting channel is obtained using the broadcasting control layer, the channel information includes the broadcasting channel Channel identication, any one in channel number and broadcast address;
The channel information is sent to the channel service Agent layer using the broadcasting control layer, utilizes the channel Service broker's layer obtains the broadcast address of the broadcasting channel according to the channel information;
Before the media player enters broadcast state, using the channel service Agent layer from having the broadcasting The server of address at least downloads the part stream medium data of the broadcasting channel.
Second aspect provides a kind of stream medium data acquisition device applied to smart television, the smart television packet Including broadcasting control layer, media player and channel service Agent layer, described device includes:
First obtains module, for obtaining the channel information of broadcasting channel, the channel letter using the broadcasting control layer Breath includes any one in the channel identication, channel number and broadcast address of the broadcasting channel;
Sending module, for being sent the channel information that the first acquisition module is got using the broadcasting control layer To the channel service Agent layer, the broadcasting channel is obtained according to the channel information using the channel service Agent layer Broadcast address;
First download module, for utilizing the channel service generation before the media player enters broadcast state Reason layer at least downloads the part stream medium data of the broadcasting channel from the server for having the broadcast address.
Technical solution provided in an embodiment of the present invention has the benefit that
By channel information being sent using control layer is played using the channel information for playing control layer acquisition broadcasting channel To channel service Agent layer, before media player enters broadcast state, using channel service Agent layer according to broadcasting channel Channel information obtain broadcasting channel broadcast address, using channel service Agent layer from the server for having the broadcast address to The part stream medium data of the broadcasting channel is downloaded less;Due to smart television can before media player enters broadcast state, The broadcast address that broadcasting channel is obtained using channel service Agent layer downloads Streaming Media number from the server for having the broadcast address According to, it is no longer necessary to after the Complicated Flow before the initialization of broadcasting control layer and media player enter broadcast state Stream medium data could be downloaded from the server for having the broadcast address, therefore solve live streaming application or carousel in the related technology Using the slow-footed problem for loading stream medium data for the first time, raising live streaming application or carousel application load stream matchmaker for the first time are reached The effect of volume data speed.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the method for the stream medium data acquisition methods applied to smart television provided in one embodiment of the invention Flow chart;
Fig. 2 is the carousel application provided in one embodiment of the invention or the live streaming application broadcasting channel stream of operation load for the first time The schematic diagram of journey;
Fig. 3 is the schematic diagram of the direct broadcast band selection interface provided in one embodiment of the invention;
Fig. 4 is that channel information is sent directly to channel service generation by the broadcasting control layer provided in one embodiment of the invention Manage the schematic diagram of layer;
Fig. 5 be provided in one embodiment of the invention using channel service Agent layer from server download broadcasting channel The flow chart of stream medium data;
Fig. 6 is the flow chart that the downloading provided in one embodiment of the invention preloads the stream medium data of channel;
Fig. 7 is the structure of the stream medium data acquisition device applied to smart television provided in one embodiment of the invention Block diagram;
Fig. 8 is the structural block diagram of the smart television provided in section Example of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the method for the stream medium data acquisition methods applied to smart television provided in one embodiment of the invention Flow chart, the stream medium data acquisition methods can be applied to include to play control layer, media player and channel service In the smart television of Agent layer.As shown in Figure 1, should include: applied to the stream medium data acquisition methods of smart television
Step 101, using the channel information for playing control layer acquisition broadcasting channel, which includes at least the broadcasting Any one in the channel identication of channel, channel number and broadcast address.
Wherein, broadcasting channel is the television channel that smart television is currently played, and can be direct broadcast band, or Carousel channel.Optionally, channel identication is the channel designation of channel.
In general, when the live streaming application or carousel application that it is installed after smart television booting are run for the first time, for operation The broadcasting control layer that application program is created and initialized, as shown in Figure 2.Wherein, play control layer follow activity (English: Activity) life cycle (including the states such as on create, on start, on resume).
When carousel application or live streaming application are run for the first time after smart television booting, it is a certain that smart television can be loaded directly into broadcasting Direct broadcast band or carousel channel, such as the carousel channel can be the carousel frequency finally played when the shutdown of smart television last time Road, broadcasting control layer corresponding to the application program of the operation at this time can be directly obtained the channel (that is, broadcasting channel) Channel identication and/channel number.
In general, the channel that user can also select smart television to need to play out by control equipment.Smart television connects The control signal that control equipment issues is received, control instruction is generated according to the control signal.It is to be used to indicate frequency in the control instruction When the instruction of road switching, which is sent to broadcasting control layer.It plays control layer and receives control instruction, according to the control Instruction obtains the channel identication or channel number of broadcasting channel, and broadcasting channel said here is chosen by user to be played out Channel.Wherein, control equipment can be remote controler or other mobile devices (for example, smart phone).
For example, the serial number 15 of smart television channel being played on.It is issued when smart television receives remote controler When being used to indicate the infrared signal for switching to succeeding channel, be used to indicate corresponding with the signal is switched into succeeding channel Control instruction is sent to broadcasting control layer, then playing control layer can determine that the frequency that the broadcasting channel played out is chosen by user Road serial number 16.
Come using channel identication as channel designation again for example, smart television can provide a user direct broadcast band selection circle Face, as shown in Figure 3.Cursor can be moved on the channel designation for admiring channel by user using remote controler.When smart television receives To be used to indicate determine choose signal when, determine instruction is sent to broadcasting control layer, then play control layer can determine that by It is international sport channel that user, which chooses the broadcasting channel played out,.
Optionally, control layer is played after the channel identication or channel number for getting broadcasting channel, it can also be according to the frequency Road mark or the channel number inquire the broadcast address of the broadcasting channel.Broadcast address said here is usually broadcasting channel pair Answer the uniform resource locator (English: uniform resource locator, URL) of server.
In general, being had recorded in electronic program guides (English: electronic program guide, EPG) information each Channel number, channel identication and the broadcast address of channel.The channel mark got can be inquired in EPG information by playing control layer Broadcast address corresponding to knowledge or channel number, namely the broadcast address of the broadcasting channel played out is chosen by user.
Step 102, channel information is sent to channel service Agent layer using broadcasting control layer, is acted on behalf of using channel service Layer obtains the broadcast address of broadcasting channel according to above-mentioned channel information, and hypertext biography is established with the server for having the broadcast address Defeated agreement HTTP connection.
Wherein, channel information is sent to channel service Agent layer using broadcasting control layer can be possible by following two Embodiment is realized.
In the first possible embodiment, channel information is sent directly to channel service generation using control layer is played Manage layer.
As shown in figure 4, control layer is played after getting channel number or channel identication, the channel that can directly will acquire Mark or channel signals are sent to channel service Agent layer.Playing control layer can also be according to getting channel number or channel mark After knowing the broadcast address for determining broadcasting channel, broadcast address is sent directly to channel service Agent layer.
In second of possible embodiment, the broadcasting of broadcasting channel is obtained according to channel information using broadcasting control layer Broadcast address is sent to media player by address, and the broadcast address is sent to channel service using media player and is acted on behalf of Layer.
The broadcast address directly can be sent to channel after receiving broadcast address from broadcasting control layer by media player Service broker's layer downloads the real-time stream medium data of broadcasting channel from server by channel service Agent layer.
Further, smart television utilizes frequency after the broadcast address for obtaining broadcasting channel using channel service Agent layer Road service broker layer establishes hypertext transfer protocol (English: hyper text with the server for having the broadcast address Transfer protocol, HTTP) connection.
Step 103, before media player enters broadcast state, using channel service Agent layer from having the broadcasting The server of location at least downloads the part stream medium data of broadcasting channel.
In general, before media player enters broadcast state, smart television is just using broadcasting control layer or matchmaker Channel information is sent to channel service Agent layer by body player, so that channel service Agent layer enters broadcasting in media player The broadcast address that broadcasting channel is obtained before state, from the Streaming Media number for the server downloading broadcasting channel for having the broadcast address According to.Therefore, before media player enters broadcast state, channel service Agent layer is from the server for having the broadcast address Download part stream medium data.
The stream medium data of broadcasting channel is the stream medium data that server is directed to that the channel provides in real time, and server is real-time The stream medium data of offer is the stream medium data that the broadcasting channel needed to broadcast at current time.
The stream medium data that server provides in real time is usually made of multiple slice files.In general, the usual needle of server The second playlist, the stream medium data for needing to broadcast comprising the broadcasting channel in second playlist are provided to broadcasting channel The uniform resource identifier (English: uniform resource identifier, URI) of corresponding slice file.
In addition, server updates the second played column in the stream medium data that current time needs to broadcast according to broadcasting channel Table.
Correspondingly, smart television obtains the second playlist of broadcasting channel using channel service Agent layer from server, Second playlist is used to record the URI of multiple slice files, using channel service Agent layer according in the second playlist URI downloading slice file.
In addition, corresponding second playlist of the slice file that downloading is completed also is sent to media play by smart television Device, so that media player obtains each slice file according to the second playlist.
Step 104, it after media player enters broadcast state, is obtained in real time using media player from channel service Agent layer The stream medium data for taking channel service Agent layer to download.
Still referring to shown in Fig. 2, after media player enters broadcast state, media player can start playing stream media number According to media player obtains the stream medium data that channel service Agent layer has been downloaded from channel service Agent layer and broadcast at this time It puts.
It should be noted is that channel service Agent layer does not interrupt broadcasting when media player enters broadcast state The stream medium data of channel is downloaded.That is, after media player enters broadcast state, still by channel service Agent layer In real time from the stream medium data of server downloading broadcasting channel.
Optionally, step 104 may be replaced by: after media player enters broadcast state, using media player from Channel service Agent layer obtains the stream medium data that channel service Agent layer has been downloaded, real from the server for having the broadcast address When the stream medium data of broadcasting channel not yet downloaded of download channels service brokers layer.
Before media player enters preparation state, the Streaming Media of broadcasting channel is downloaded in real time by channel service Agent layer Data.After media player enters preparation state, smart television does not recycle service broker's layer downloading broadcasting channel in real time Stream medium data, download the stream medium data of broadcasting channel in real time using media player.
In conclusion the stream medium data acquisition methods provided in an embodiment of the present invention applied to smart television, pass through benefit With the channel information for playing control layer acquisition broadcasting channel, channel information is sent to channel service agency using control layer is played Layer is obtained using channel service Agent layer according to the channel information of broadcasting channel before media player enters broadcast state The broadcast address of broadcasting channel at least downloads broadcasting frequency from the server for having the broadcast address using channel service Agent layer The part stream medium data in road;Since smart television can utilize channel service generation before media player enters broadcast state The broadcast address that layer obtains broadcasting channel is managed, downloads stream medium data from the server for having the broadcast address, it is no longer necessary to etc. To play control layer initialization and media player enter broadcast state before Complicated Flow after could be from having this The server of broadcast address downloads stream medium data, therefore solves live streaming application in the related technology or carousel application loads for the first time The slow-footed problem of stream medium data has reached and has improved live streaming application or carousel using load stream medium data speed for the first time Effect.
Optionally, it after channel agency service server corresponding with a channel establishes HTTP connection, can be played first The corresponding relationship between the broadcast address of the channel and channel identication or channel number is recorded in list.Wherein, first broadcasting List is used to record the broadcast address for the channel that channel service Agent layer history loaded.
Correspondingly, when the channel information that smart television is received using channel service Agent layer is not broadcast address, benefit The corresponding broadcast address of channel information, channel information said here are inquired in the first playlist with channel service Agent layer For the channel identication or channel number of broadcasting channel.
It, can be if not inquiring the broadcast address of broadcasting channel in the first playlist using channel proxy server Channel identication or the corresponding broadcast address of channel number are inquired in EPG information, obtain the broadcast address of broadcasting channel.
Since the information data recorded in EPG information is huge, by inquiring broadcasting for broadcasting channel in the first playlist Address is put, the acquisition speed of broadcast address can be improved.
Optionally, the stream matchmaker of broadcasting channel is downloaded from the server for having above-mentioned broadcast address using channel service Agent layer Volume data can also be realized by several steps as shown in Figure 5.
Step 501, the second of broadcasting channel is obtained from the server for having the broadcast address using channel service Agent layer Playlist, second playlist are used to record the URI of multiple slice files of server offer.
Step 502, at least two load thread of creation is downloaded according to URI respectively using above-mentioned at least two loads thread Corresponding slice file.
By opening multiple threads, download URI is sliced file accordingly simultaneously, improves the speed of download of stream medium data, Reduce the Caton of audio, video data.
Smart television is downloaded in addition to the stream medium data to broadcasting channel being played on, can also be preloaded The stream medium data of other channels.It can be adjacent with the channel number of broadcasting channel for channel number for example, preloading channel Channel;For another example, the channel in the favorites list is preloaded;For another example, the longest channel of history playing duration is preloaded.Specifically , it can be realized by several steps as shown in FIG. 6.
Step 601, the channel adjacent with broadcasting channel is determined as preloading channel, by the channel sequence of the preloading channel Number it is sent to channel service Agent layer, the channel number of the above-mentioned channel adjacent with broadcasting channel and the channel sequence of the broadcasting channel It is number adjacent.
For example, the channel number for the broadcasting channel that smart television is currently played is 15, then by channel number 16 Corresponding channel and the corresponding channel of channel number 14 are determined as preloading channel, can be by channel number 16 and channel number 14 are sent to channel service Agent layer.
Step 602, the longest channel of history playing duration is determined as preloading by the history playing duration for counting each channel The channel number of the preloading channel or channel identication are sent to channel service Agent layer by channel.
The history playing duration of the statistics available each channel of smart television.After smart television booting, history playing duration is obtained The channel number of the channel or channel identication are sent to channel service Agent layer by longest channel.
Step 603, the channel in the favorites list is determined as preloading channel, by the channel number of the preloading channel or Channel identication is sent to channel service Agent layer.
Some smart televisions have channel collecting function, and user can be using the channel collecting function that smart television provides to frequency It is collected in road.Correspondingly, user can check or choose the channel collected in the favorites list that smart television provides.
After smart television booting, the channel in the favorites list can be determined as preloading channel by smart television, by the pre-add The channel number or channel identication in carrier frequency road are sent to channel service Agent layer.
Step 604, stream matchmaker in real time is downloaded from the corresponding server of above-mentioned preloading channel using channel service Agent layer Volume data.
Smart television can be obtained according to channel identication or channel number using channel service Agent layer and preload broadcasting for channel Address is put, HTTP is established with the server for having the broadcast address and connect.
Smart television preloads channel from the corresponding server downloading of channel is preloaded using channel service Agent layer The realization of stream medium data can refer to the explanation that the stream medium data of broadcasting channel is downloaded in step 103, no longer superfluous herein It states.
Preloading channel is usually the channel that user may switch to, by carrying out stream medium data to preloading channel It preloads, when user's control smart television plays the channel preloaded, the corresponding media player of preloading channel, which enters, to be broadcast The stream medium data that the preloading channel has been downloaded can be directly obtained and played from channel service Agent layer after putting state.
Optionally, it when the slice file corresponding to the preloading channel downloaded reaches predetermined quantity, deletes part and cuts Piece file.Partial slice file said here can be preceding predetermined of playing sequence sequence in the slice file downloaded Several slice files.Wherein, predetermined number is usually set by system developer.
It is following that the details of description not detailed in Installation practice can be referred to above-mentioned for apparatus of the present invention embodiment One-to-one embodiment of the method.
Fig. 7 is the structure of the stream medium data acquisition device applied to smart television provided in one embodiment of the invention Block diagram.The present embodiment is applied to include to play control layer, media player and frequency with the stream medium data acquisition device In the smart television of road service broker layer.The stream medium data acquisition device for being applied to smart television includes: the first acquisition mould Block 710, sending module 720, the first download module 730 and channel service Agent layer 740.
First obtains module 710, and for obtaining the channel information of broadcasting channel using broadcasting control layer, channel information includes Any one in the channel identication of the broadcasting channel, channel number and broadcast address.
Sending module 720, for being sent to the channel information that the first acquisition module 710 is got using broadcasting control layer Channel service Agent layer obtains the broadcast address of broadcasting channel using channel service Agent layer according to the channel information.
Optionally, channel service Agent layer 740 includes agency service control unit 741, the agency service control unit 741 For receiving channel information.
Optionally, channel service Agent layer 740 include broadcast address obtain with administrative unit 742, broadcast address obtain with Administrative unit 742 is used to obtain the broadcast address of broadcasting channel according to the channel information.
First download module 730, for being acted on behalf of using the channel service before the media player enters broadcast state Layer at least downloads the part stream medium data of broadcasting channel from the server for having the broadcast address.
Optionally, in a kind of possible embodiment, sending module, comprising: the first transmission unit or the second transmission are single Member.
First transmission unit, for the channel information to be sent directly to channel service Agent layer using broadcasting control layer.
Second transmission unit, for the broadcast address of the broadcasting channel to be obtained according to channel information using broadcasting control layer, The broadcast address is sent to media player, the broadcast address is sent to channel service Agent layer using media player.
It optionally, should be applied to the stream medium data acquisition device of smart television, also in a kind of possible embodiment It include: the second acquisition module.
Second obtains module, after entering broadcast state for media player, using media player from channel service generation Reason layer obtains the stream medium data that channel service Agent layer has been downloaded in real time.
It optionally, should be applied to the stream medium data acquisition device of smart television, also in a kind of possible embodiment It include: the second download module.
Second download module, after entering broadcast state for media player, using media player from the channel service Agent layer obtains the stream medium data that channel service Agent layer has been downloaded, and descends carrier frequency in real time from the server for having the broadcast address The stream medium data for the broadcasting channel that road service broker layer is not yet downloaded.
Optionally, still referring to Fig. 7, channel service Agent layer 740 further includes file management unit 743, file management list Member 743 is for managing the stream medium data of channel service Agent layer downloading.
Optionally, in a kind of possible embodiment, sending module 720 is also used to receive in channel service Agent layer To channel information be not broadcast address when, the channel information pair is inquired in the first playlist using channel service Agent layer The broadcast address answered, the first playlist are used to record the broadcast address for the channel that channel service Agent layer history loaded, on Stating channel information is channel identication or channel number.
Optionally, in a kind of possible embodiment, still referring to Fig. 7, the first download module 730, comprising: played column Table administrative unit 731 and thread-management unit 732.
Playlist management unit 731, for being obtained using channel service Agent layer from the server for having the broadcast address The second playlist of the broadcasting channel is taken, which is used to record multiple slice files of server offer Uniform resource identifier URI.
Optionally, playlist management unit 731 is also used to manage the second playlist, and newly get second is played List is sent to media player.
Thread-management unit 732 is distinguished for creating at least two load threads using above-mentioned at least two loads thread Different slice files is downloaded according to URI.
It optionally, should be applied to the stream medium data acquisition device of smart television, also in a kind of possible embodiment It include: the first determining module, the second determining module and third download module.
First determining module preloads channel for the channel adjacent with broadcasting channel to be determined as, will preload channel Channel number be sent to channel service Agent layer, the channel number of the above-mentioned channel adjacent with broadcasting channel and broadcasting channel Channel number is adjacent.
Second determining module, it is for counting the history playing duration of each channel, the longest channel of history playing duration is true It is set to preloading channel, and/or, the channel in the favorites list is determined as to preload channel, the channel sequence of channel will be preloaded Number or channel identication be sent to channel service Agent layer.
Third download module, for being downloaded in real time using channel service Agent layer from the corresponding server of channel is preloaded Stream medium data.
Optionally, channel service Agent layer further includes HTTP connection management module, for managing and maintaining channel service generation Each HTTP connection example that reason layer is established.
In conclusion the stream medium data acquisition device provided in an embodiment of the present invention applied to smart television, passes through benefit Channel information is sent to channel service Agent layer with control layer is played, before media player enters broadcast state, is utilized Channel service Agent layer obtains the broadcast address of broadcasting channel according to the channel information of broadcasting channel, utilizes channel service Agent layer The part stream medium data of the broadcasting channel is at least downloaded from the server for having the broadcast address;Since smart television can be in matchmaker Body player enters before broadcast state, and the broadcast address of broadcasting channel is obtained using channel service Agent layer, is broadcast from having this Put the server downloading stream medium data of address, it is no longer necessary to broadcast until the initialization of broadcasting control layer and media player enter Stream medium data could be downloaded after Complicated Flow before putting state from the server for having the broadcast address, therefore is solved Live streaming application or carousel application load the slow-footed problem of stream medium data for the first time in the related technology, have reached raising live streaming Using or carousel application for the first time load stream medium data speed effect.
It should be understood that the stream medium data acquisition device applied to smart television provided in above-described embodiment is obtaining When taking stream medium data, only the example of the division of the above functional modules, in practical application, can according to need and Above-mentioned function distribution is completed by different functional modules, i.e., the internal structure of smart television is divided into different function moulds Block, to complete all or part of the functions described above.In addition, the stream matchmaker provided by the above embodiment applied to smart television Volume data acquisition device belongs to same design with the stream medium data acquisition methods embodiment for being applied to smart television, specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Shown in Figure 8, it illustrates the structural block diagrams of the smart television provided in section Example of the present invention.It should Smart television 800 is for implementing the stream medium data acquisition methods provided by the above embodiment applied to smart television.The present invention In smart television 800 may include one or more following component part: it is each to complete for executing computer program instructions The processor of kind process and method, for information and storage program instruction random access memory (RAM) and read-only memory (ROM), for storing data with the memory of information, I/O equipment, interface, antenna etc..Specifically:
Smart television 800 may include radio frequency (English: radio frequency, abbreviation: RF) circuit 810, memory 820, input unit 830, display unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (English: wireless Fidelity, referred to as: WiFi) components such as module 870, processor 880, power supply 882, camera 890.Those skilled in the art can To understand, smart television structure shown in Fig. 8 does not constitute the restriction to smart television, may include more or more than illustrating Few component perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 8 to smart television 800:
RF circuit 810 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 880;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (English: low noise Amplifier, referred to as: LNA), duplexer etc..In addition, RF circuit 810 can also by wireless communication with network and other equipment Communication.Any communication standard or agreement, including but not limited to global system for mobile communications (English can be used in the wireless communication Text: global system of mobile communication, referred to as: GSM), general packet radio service (English: General packet radio service, referred to as: GPRS), CDMA (English: code division multiple Access, referred to as: CDMA), wideband code division multiple access (English: wideband code division multiple access, letter Claim: WCDMA), long term evolution (English: long term evolution, referred to as: LTE), Email, short message service (English Text: short messaging service, referred to as: SMS) etc..
Memory 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation Software program and module, thereby executing the various function application and data processing of smart television 800.Memory 820 can It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored according to smart television 800 Use created data (such as audio data, phone directory etc.) etc..In addition, memory 820 may include that high speed is deposited at random Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other easily The property lost solid-state memory.
Input unit 830 can be used for receiving the number or character information of input, and generate the user with smart television 800 Setting and the related key signals input of function control.Specifically, input unit 830 may include touch panel 831 and other Input equipment 832.Touch panel 831, also referred to as touch screen collect the touch operation of user on it or nearby and (for example use Family uses the behaviour of any suitable object or attachment on touch panel 831 or near touch panel 831 such as finger, stylus Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 831 may include touch detection dress It sets and two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation and bring Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is turned It changes contact coordinate into, then gives processor 880, and order that processor 880 is sent can be received and executed.Furthermore, it is possible to Touch panel 831 is realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 831, input unit 830 can also include other input equipments 832.Specifically, other input equipments 832 may include but unlimited In one of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. or It is a variety of.
Display unit 840 can be used for showing information input by user or the information and smart television that are supplied to user 800 various menus.Display unit 840 may include display panel 841, optionally, can using liquid crystal display (English: Liquid crystal display, referred to as: LCD), Organic Light Emitting Diode (English: organic light-Emitting The forms such as diode, referred to as: OLED) configure display panel 841.Further, touch panel 831 can cover display panel 841, after touch panel 831 detects touch operation on it or nearby, processor 880 is sent to determine touch event Type, be followed by subsequent processing device 880 according to the type of touch event and corresponding visual output be provided on display panel 841.Although In fig. 8, touch panel 831 and display panel 841 be as two independent components come the input of realizing smart television 800 and Input function, but in some embodiments it is possible to touch panel 831 and display panel 841 are integrated and realize smart television 800 output and input function.
Smart television 800 may also include at least one sensor 850, such as gyro sensor, magnetic induction sensor, light Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and close sensing Device, wherein ambient light sensor can adjust the brightness of display panel 841 according to the light and shade of ambient light.As for smart television The other sensors such as 800 barometer, hygrometer, thermometer, the infrared sensors that can also configure, details are not described herein.
Voicefrequency circuit 860, loudspeaker 861, microphone 862 can provide the audio interface between user and smart television 800. Electric signal after the audio data received conversion can be transferred to loudspeaker 861, be converted by loudspeaker 861 by voicefrequency circuit 860 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 862, is connect by voicefrequency circuit 860 Audio data is converted to after receipts, then by after the processing of audio data output processor 880, is sent to through RF circuit 810 such as another One smart television, or audio data is exported to memory 820 to be further processed.
WiFi belongs to short range wireless transmission technology, and smart television 800 can help user to receive and dispatch by WiFi module 870 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 WiFi module 870 is shown, but it is understood that, and it is not belonging to must be configured into for smart television 800, it completely can root It is omitted according in the range for needing the essence disclosed in not changing.
Processor 880 is the control centre of smart television 800, utilizes various interfaces and the entire smart television of connection Various pieces by running or execute the software program and/or module that are stored in memory 820, and are called and are stored in Data in reservoir 820 execute the various functions and processing data of smart television 800, to carry out whole prison to smart television Control.Optionally, processor 880 may include one or more processing units;Preferably, processor 880 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 880.
Smart television 800 further includes the power supply 882 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 882 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.
Camera 890 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens At.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensor It is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plate Connector, spring connection type are connect with smart television mainboard, and the image of acquisition is sent to the memory 820;Number Signal processor is handled by image of the mathematical operation to acquisition, and the analog image of acquisition is converted to digital picture and is led to It crosses interface and is sent to memory 820.
Although being not shown, smart television 800 can also be including bluetooth module etc., and details are not described herein.
Smart television 800 in addition to including one or more processor 880, further include have memory and one or Multiple programs, one or more program are stored in memory, and are configured to be held by one or more processor Row executes the above-mentioned stream medium data acquisition methods applied to smart television.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of stream medium data acquisition methods applied to smart television, which is characterized in that the smart television includes playing Control layer, media player and channel service Agent layer, which comprises
After smart television booting, when the live streaming application being mounted on the smart television or carousel application are run for the first time, It creates and initializes the broadcasting control layer;
The channel information of broadcasting channel is obtained using the broadcasting control layer, the channel information includes the frequency of the broadcasting channel Any one in road mark, channel number and broadcast address;
The channel information is sent to the channel service Agent layer using the broadcasting control layer, utilizes the channel service Agent layer obtains the broadcast address of the broadcasting channel according to the channel information;
In the case where the broadcasting control layer is completed to initialize, the media player complete to prepare and enter broadcast state it Before, the part of the broadcasting channel is at least downloaded from the server for having the broadcast address using the channel service Agent layer Stream medium data.
2. the method according to claim 1, wherein described utilize the broadcasting control layer by the channel information It is sent to the channel service Agent layer, comprising:
The channel information is sent directly to the channel service Agent layer using the broadcasting control layer;
Alternatively,
The broadcast address for obtaining the broadcasting channel according to the channel information using the broadcasting control layer, by the broadcasting ground Location is sent to the media player, and the broadcast address is sent to the channel service using the media player and is acted on behalf of Layer.
3. the method according to claim 1, wherein utilizing the channel service Agent layer from having described State broadcast address server download the part stream medium data of the broadcasting channel after, the method also includes:
After the media player enters broadcast state, obtained in real time using the media player from the channel service Agent layer The stream medium data for taking the channel service Agent layer to download;
Alternatively,
After the media player enters broadcast state, institute is obtained from the channel service Agent layer using the media player The stream medium data that channel service Agent layer has been downloaded is stated, downloads the channel in real time from the server for having the broadcast address The stream medium data for the broadcasting channel that service broker's layer is not yet downloaded.
4. the method according to claim 1, wherein described utilize the channel service Agent layer according to the frequency The broadcast address of broadcasting channel described in road acquisition of information, comprising:
When the channel information that the channel service Agent layer receives is not broadcast address, the channel service Agent layer is utilized The corresponding broadcast address of the channel information is inquired in the first playlist, first playlist is for recording the frequency The broadcast address for the channel that road service broker layer history loaded, the channel information are channel identication or channel number.
5. the method according to claim 1, wherein described described from having using the channel service Agent layer The server of broadcast address at least downloads the part stream medium data of the broadcasting channel, comprising:
Obtain the broadcasting channel from the server for having the broadcast address using the channel service Agent layer second is broadcast Table is emplaced, second playlist is used to record the uniform resource identifier for multiple slice files that the server provides URI;
At least two load thread of creation downloads different cut according to the URI respectively using at least two loads thread Piece file.
6. according to claim 1 to any method in 5, which is characterized in that the method also includes:
The channel adjacent with the broadcasting channel is determined as to preload channel, the channel number for preloading channel is sent To the channel service Agent layer, the channel number of the channel adjacent with the broadcasting channel and the frequency of the broadcasting channel Road serial number is adjacent;
And/or
The longest channel of history playing duration is determined as preloading channel by the history playing duration for counting each channel, and/or, Channel in the favorites list is determined as to preload channel, the channel number for preloading channel or channel identication are sent to The channel service Agent layer;
Real-time stream medium data is downloaded from the corresponding server of the preloading channel using the channel service Agent layer.
7. a kind of stream medium data acquisition device applied to smart television, which is characterized in that the smart television includes playing Control layer, media player and channel service Agent layer, described device include:
First obtains module, live streaming application or the wheel for after smart television booting, being mounted on the smart television It broadcasts using when running for the first time, creates and initialize the broadcasting control layer, obtain broadcasting channel using the broadcasting control layer Channel information, the channel information include any in the channel identication, channel number and broadcast address of the broadcasting channel It is a kind of;
Sending module, for the channel information that the first acquisition module is got to be sent to institute using the broadcasting control layer Channel service Agent layer is stated, obtains the broadcasting of the broadcasting channel according to the channel information using the channel service Agent layer Address;
First download module, in the case where the broadcasting control layer is completed to initialize, the media player to be completed quasi- Before standby and entrance broadcast state, at least downloaded using the channel service Agent layer from the server for having the broadcast address The part stream medium data of the broadcasting channel.
8. device according to claim 7, which is characterized in that the sending module, comprising:
First transmission unit, for the channel information to be sent directly to the channel service generation using the broadcasting control layer Manage layer;
Or,
Second transmission unit, for obtaining the broadcasting of the broadcasting channel according to the channel information using the broadcasting control layer The broadcast address is sent to the media player by address, is sent the broadcast address using the media player To the channel service Agent layer.
9. device according to claim 7, which is characterized in that described device further include:
Second obtains module, after entering broadcast state for the media player, using the media player from the frequency Road service broker layer obtains the stream medium data that the channel service Agent layer has been downloaded in real time;
Or,
Second download module, after entering broadcast state for the media player, using the media player from the frequency Road service broker layer obtains the stream medium data that the channel service Agent layer has been downloaded, from the service for having the broadcast address Device downloads the stream medium data for the broadcasting channel that the channel service Agent layer is not yet downloaded in real time.
10. device according to claim 7, which is characterized in that the sending module was also used in the channel service generation When the channel information that reason layer receives is not broadcast address, inquired in the first playlist using the channel service Agent layer The corresponding broadcast address of the channel information, first playlist is for recording the channel service Agent layer history load The broadcast address for the channel crossed, the channel information are channel identication or 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 CN106454503A (en) 2017-02-22
CN106454503B true 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)

Families Citing this family (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297850A (en) * 2012-08-24 2013-09-11 乐视致新电子科技(天津)有限公司 Method for playing network video at starting of Android system
CN103297848A (en) * 2012-02-22 2013-09-11 华为终端有限公司 Play method of media streams and set top box
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160249092A1 (en) * 2015-02-24 2016-08-25 Layer3 TV, Inc. System and method for digital video recording backfill

Patent Citations (5)

* 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

Also Published As

Publication number Publication date
CN106454503A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN105338368B (en) A kind of method, apparatus and system of the live stream turning point multicast data of video
CN109819179B (en) Video editing method and device
CN105187930B (en) Interactive approach and device based on net cast
CN105430424B (en) A kind of methods, devices and systems of net cast
JP6445719B2 (en) Pre-roll advertisement playback method, terminal, and video server
CN104822090B (en) The methods, devices and systems of video playback
CN104780415B (en) Multimedia file playing method and device
CN105979379B (en) method and device for playing audition content
CN107948664A (en) Direct broadcasting room video playing control method, device and terminal
CN104159136B (en) The acquisition methods of interactive information, terminal, server and system
CN108123945B (en) Distribution method, system and the intelligent terminal of random data
CN107333162B (en) Method and device for playing live video
CN106131692B (en) Interactive control method, device and server based on net cast
CN104469143A (en) Video sharing method and device
CN105681872A (en) Method and device for information interaction in live broadcasting process
CN104394481A (en) Video playing method and device
CN105959482B (en) A kind of control method and electronic equipment of scene audio
CN104967608B (en) Play method, mobile terminal and the fixed terminal of multimedia file
CN106302087A (en) Instant communication method, Apparatus and system
CN108038185A (en) Video dynamic edit methods, device and intelligent mobile terminal
CN109151494A (en) Multimedia data transmission method, multimedia collection equipment and server
CN110536175A (en) A kind of code rate switching method and apparatus
CN106303734A (en) Main broadcaster's method for subscribing and device
CN108933964A (en) A kind of barrage display methods, playback equipment and controlling terminal
CN106033467A (en) Image file sharing method and device

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

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.

CP01 Change in the name or title of a patent holder