WO2013189436A2 - 一种基于网络电视实现网络广播的方法、装置及网络电视 - Google Patents

一种基于网络电视实现网络广播的方法、装置及网络电视 Download PDF

Info

Publication number
WO2013189436A2
WO2013189436A2 PCT/CN2013/082301 CN2013082301W WO2013189436A2 WO 2013189436 A2 WO2013189436 A2 WO 2013189436A2 CN 2013082301 W CN2013082301 W CN 2013082301W WO 2013189436 A2 WO2013189436 A2 WO 2013189436A2
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
network
top box
server
network broadcast
Prior art date
Application number
PCT/CN2013/082301
Other languages
English (en)
French (fr)
Other versions
WO2013189436A3 (zh
Inventor
江晓磊
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013189436A2 publication Critical patent/WO2013189436A2/zh
Publication of WO2013189436A3 publication Critical patent/WO2013189436A3/zh

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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2381Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network

Definitions

  • the present invention relates to network television technology and network broadcasting technology, and in particular, to a method, device and network television for implementing network broadcasting based on network television. Background technique
  • IPTV Internet Television
  • Internet TV technology is a combination of broadband cable TV network, Internet, multimedia, communication and other technologies to provide home users with digital TV.
  • a new technology for multiple interactive services In recent years, IPTV systems have become more and more popular, user groups have grown, market share has increased year by year, and value-added services based on IPTV have gradually enriched.
  • Network broadcasting is an important manifestation of the multimedia form of network communication, and it is also a major form of online development of radio and television media.
  • users can only listen to them by visiting their portals or installing clients, so traditional network broadcasts are not convenient for a wide range of users. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a method, a device, and a network television for implementing network broadcasting based on network television, which can facilitate the listening of a large number of network broadcast users and bring new value-added services to IPTV users.
  • a method, a device, and a network television for implementing network broadcasting based on network television, which can facilitate the listening of a large number of network broadcast users and bring new value-added services to IPTV users.
  • the embodiment of the present invention provides a method for implementing network broadcast based on a network television, and the method includes the following steps:
  • the broadcast channel information is broadcast channel information of a plurality of live broadcast channels or broadcast channel information of a plurality of on-demand broadcast channels transmitted by the network broadcast server corresponding to the broadcast program area where the set top box is located.
  • the method further includes the following steps:
  • the broadcast channel information when the broadcast channel information is received by the network broadcast server and the broadcast channel information of the plurality of live broadcast channels corresponding to the broadcast program area where the set top box is located, the broadcast channel information further includes the following steps:
  • the plurality of live broadcast channels are sorted according to a preset rule, and sending, according to the sorting, the set top box corresponding to the next one of the plurality of live broadcast channels
  • the network broadcast play command of the code stream address causes the set top box to interact with the network broadcast server, and the second broadcast program corresponding to the code stream address is acquired and played by the network broadcast server.
  • the broadcast channel information when the broadcast channel information is received by the network broadcast server and the broadcast channel information of the plurality of on-demand broadcast channels corresponding to the broadcast program area where the set-top box is located, the broadcast channel information further includes the following Steps:
  • the user listens to the on-demand broadcast channel, sends an authentication request to the network broadcast server; after receiving the network broadcast server authentication success identifier, sends a code stream corresponding to one of the plurality of on-demand broadcast channels selected by the user to the set-top box
  • the network broadcast play command of the address causes the set top box to interact with the network broadcast server, and the third broadcast program corresponding to the code stream address is acquired and played by the network broadcast server.
  • the method further comprises:
  • a play operation request including play, pause or stop is sent to the set top box by pressing a button of the remote controller, so that the set top box obtains the current key value, and performs a play operation corresponding to the current key value.
  • the method further comprises:
  • the search parameter information is transmitted to the network broadcast server such that the network broadcast server returns broadcast channel information corresponding to the parameter, the parameters including search key information and search type information.
  • An embodiment of the present invention further provides an apparatus for implementing network broadcast based on a network television, where the apparatus includes:
  • a first sending module configured to send a play request message to the network broadcast server, where the first receiving module is configured to receive a plurality of broadcast channel information request response messages returned by the network broadcast server, where the broadcast channel information includes the multiple broadcasts The code stream address corresponding to the channel;
  • the second sending module is configured to send, to the set-top box, a network broadcast play command that carries the code stream address corresponding to the broadcast channel, so that the set-top box interacts with the network broadcast server, and acquires and plays by using the network broadcast server.
  • the first broadcast program corresponding to the code stream address.
  • the broadcast channel information is broadcast channel information or a plurality of on-demand broadcasts of a plurality of live broadcast channels corresponding to a broadcast program area where the set top box is located, which is sent by the network broadcast server.
  • Channel broadcast channel information is broadcast channel information or a plurality of on-demand broadcasts of a plurality of live broadcast channels corresponding to a broadcast program area where the set top box is located, which is sent by the network broadcast server.
  • the broadcast channel information of the plurality of live broadcast channels corresponding to the broadcast program area of the set top box is further included:
  • the live broadcast channel switching module is configured to: when the user needs to switch the broadcast channel, send a network broadcast play instruction that carries the code stream address corresponding to another one of the plurality of live broadcast channels to the set top box, so that The set top box interacts with the network broadcast server, and the second broadcast program corresponding to the code stream address is acquired and played by the network broadcast server.
  • the live broadcast channel switching module is further configured to: when the user needs to switch the broadcast channel, sort the plurality of live broadcast channels according to a preset rule, and send the plurality of live broadcasts to the set top box according to the sorting. And a network broadcast play instruction of the code stream address corresponding to the next broadcast channel in the channel, so that the set top box interacts with the network broadcast server, and the network broadcast server acquires and plays the corresponding code stream address. Second broadcast program.
  • the broadcast channel information when the broadcast channel information is received by the network broadcast server and the broadcast channel information of the plurality of on-demand broadcast channels corresponding to the broadcast program area where the set-top box is located, the broadcast channel information further includes an on-demand broadcast channel processing module, and the on-demand broadcast channel processing module Includes:
  • An authentication unit configured to send an authentication request to the network broadcast server when the user listens to the on-demand broadcast channel
  • the first sending unit is configured to: after receiving the network broadcast server authentication success identifier, send, to the set top box, a network broadcast play command that carries a code stream address corresponding to a broadcast channel selected by the user from the plurality of on-demand broadcast channels, so that the set top box And interacting with the network broadcast server, and acquiring, by the network broadcast server, a third broadcast program corresponding to the code stream address.
  • the device further comprises:
  • the third sending module is configured to send a play operation request including playing, pausing or stopping to the set top box by pressing the remote controller button, so that the set top box obtains the current key value, and performs a playing operation corresponding to the current key value.
  • the device further comprises:
  • the broadcast channel search module is configured to send search parameter information to the network broadcast server, so that the network broadcast server returns broadcast channel information corresponding to the parameter, the parameters including search keyword information and search type information.
  • the embodiment of the invention further provides a network television, which comprises the above-mentioned device for implementing network broadcast based on a network television.
  • the network broadcast is played on the IPTV, which not only facilitates the listening of the majority of network broadcast users, but also brings a new value-added service experience to the IPTV user.
  • FIG. 1 is a schematic flowchart showing an implementation of a method for implementing network broadcast based on a network television according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a device, a network broadcast server, and a set top box for implementing network broadcast based on a network television according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing a specific structure of a device for implementing network broadcasting based on network television, a network broadcast server, and a set top box according to an embodiment of the present invention
  • FIG. 4 is a functional framework diagram of partial parameter settings included in a listening network broadcast UI interface initiated by a browser mode according to a method for implementing network broadcast by IPTV according to the present invention. detailed description
  • the embodiment provides a method for implementing network broadcast based on a network television, which is used for network television, and the method includes the following steps:
  • Step 101 Send a play request message to a network broadcast server.
  • Step 102 Receive a request response message that is sent by the network broadcast server and that carries multiple broadcast channel information, where the broadcast channel information includes a code stream address corresponding to the multiple broadcast channels.
  • Step 103 Send a network broadcast play command carrying the code stream address corresponding to the broadcast channel to the set top box, so that the set top box interacts with the network broadcast server, and the code stream is acquired and played by the network broadcast server.
  • the code stream address of the corresponding broadcast channel is sent to the set top box, so that the set top box interacts with the network broadcast server, through the network broadcast server. Acquiring and playing the first broadcast program corresponding to the code stream address.
  • the network broadcast appears in front of users in the form of an IPTV value-added service, which not only facilitates the listening of the majority of network broadcast users, but also brings new value-added service experience to IPTV users.
  • iHeartRadio is a relatively large online broadcast site in North America. It provides an Open Application Programming Interface (API) interface for broadcast data, which provides the possibility for network broadcast broadcast control on IPTV.
  • API Application Programming Interface
  • the network broadcast server in this embodiment is an iHeartRadio server, but is not limited thereto, and any network broadcast server that can provide an open API interface for broadcasting data can be used in the embodiment of the present invention.
  • the broadcast channel information may include broadcast channel information of multiple live broadcast channels and broadcast channel information of multiple on-demand broadcast channels or other forms of broadcast channel information in all areas, but in order to save network resources, And convenient for the user to listen, the broadcast channel information includes a broadcast of a plurality of live broadcast channels corresponding to the broadcast program area where the set top box is located. Channel information and broadcast channel information for a plurality of on-demand broadcast channels.
  • the broadcast channel information returned by the network broadcast server includes live broadcast channel information or on-demand broadcast channel information, and the user can select the broadcast type to be listened to according to his own needs.
  • On-demand broadcast two kinds of ⁇ listening form.
  • the broadcast channel information is broadcast channel information of a plurality of live broadcast channels corresponding to a broadcast program area in which the set top box is located, which is sent by the network broadcast server.
  • the method for implementing network broadcast based on IPTV further includes the following steps:
  • the method for implementing network broadcast based on IPTV further includes the following steps:
  • the plurality of live broadcast channels are sorted according to a preset rule, and sending, according to the sorting, the set top box corresponding to the next one of the plurality of live broadcast channels
  • the network broadcast play command of the code stream address causes the set top box to interact with the network broadcast server, and the second broadcast program corresponding to the code stream address is acquired and played by the network broadcast server.
  • the plurality of live broadcast channels are sorted according to a preset rule, and any one of the plurality of broadcast channels that is not being played may be randomly played, the pre-predetermined Setting a rule may be the name of the plurality of live broadcast channels, It may be of the type of the plurality of live broadcast channels, and is not limited herein.
  • the plurality of live broadcast channels are switched by name sorting, and cyclically switching. For example, if there are 10 channels and the current playback is 5, then scan (switching operation) is 6, then scan-time is 7, then arrives at 10, then scan-time arrives at 1, if the Scan operation is abnormal, it stays on the current channel.
  • Live broadcast type online broadcast service logic Each online broadcast channel has a corresponding session Id (sessionld), which enables different broadcasts to be played by calling different sessionld.
  • the method for implementing network broadcast based on IPTV further includes the following steps:
  • the broadcast channel information is broadcast channel information of a plurality of on-demand broadcast channels corresponding to a broadcast program area in which the set top box is located, which is sent by the network broadcast server.
  • the user For the broadcast of the on-demand type, the user needs to log in (authenticated by the network broadcast server) before using it to verify the authentication status of the user on the network broadcast server, that is, the web broadcast server returns a message indicating whether the user has successfully logged in. If the login is successful, the network broadcast server returns the login success information and sessionld. If the login fails, an error message is returned, prompting the user for the cause of the error.
  • the method for implementing network broadcast based on IPTV comprises the following steps:
  • the user email/password credentials are sent to the external interface of the iHeartRadio server (webcast server) (https://api2.iheart.com/api/vl/account/login), and the design class name is com.zte. .pcc.app.iheart.rest.QueryStationResource, method loginUser().
  • the on-demand broadcast function can be used. After each user logs in, there is a unique user sessionld corresponding to the user's playback control of the underlying player of the set top box. After the user logs out, the sessionld is logged off and the corresponding playback interface (UI interface) is closed.
  • UI interface playback interface
  • On-demand broadcasts of the on-demand type are only available if the user logs in (via the authentication of the webcast server), and the user can directly enter the play page through the recommended album displayed on the UI interface.
  • the on-demand type of broadcast includes functions such as pause, play, and next track, and displays progress information of the currently played track.
  • the method further includes: monitoring a set-top box to play a playing state of the network broadcast, and performing corresponding processing according to the playing state.
  • the main playback states are onReady, onError, onStateChange, and so on.
  • these state monitoring are added when the player is initialized, and the onReady state response is that the broadcast stream data of the user-specified index is played after the network broadcast server accepts the play request; the onError state is when the broadcast data stream is loaded with an error.
  • onStateChange is mainly to monitor the broadcast status of the broadcast, such as the broadcast is not started (-1), and the progress bar is initialized to move the slider to the end; when it is the playback state (1), the broadcast information is refreshed and initialized Broadcast control panel; When the playback status is end (0), and the broadcast is the last broadcast of the group, the code stream address of the next set of data is sent to the set top box, so that the set top box interacts with the network broadcast server, and the broadcast group is currently played.
  • the playerReadyHandler event is: 3 ⁇ 4 into the set playback interface (videoLoader.content is the object we operate) and adds playback status monitoring to the playback interface.
  • the layerErrorHandler event handles the loading failure, mainly reloading and adding playback status monitoring (event monitoring).
  • the method further includes: A play operation request including play, pause, or stop is sent to the set top box by pressing a button of the remote controller, so that the set top box obtains the current key value, and performs a play operation corresponding to the current key value.
  • buttons of the remote control mainly to add a listener and respond to the KeyboardEvent.KEY_DOWN event.
  • iHeartRadio captures the current key value, and determines which button trigger event is currently used to perform different processing according to the key value.
  • the user may search for the broadcast channel to be listened to according to the preference of the user.
  • the search keyword information is transmitted to the network broadcast server such that the web broadcast server returns broadcast channel information corresponding to the keyword.
  • the search of the broadcast channel may be in the broadcast program corresponding to the keyword in all the live broadcast channels and the on-demand broadcast channels in the broadcast program area where the set top box is located; in order to save the search time and reduce the number of search results, the definition may also be limited.
  • the type of search in which the keyword is located may also be limited.
  • the sending the search keyword information to the network broadcast server, so that the network broadcast server returns the broadcast channel information corresponding to the keyword specifically includes:
  • the search keyword information and the search type information are transmitted to the network broadcast server, so that the network broadcast server returns the broadcast channel information corresponding to the search type and the keyword.
  • the search is implemented in the form of a Representational State Transfer (REST) interface, which is identified by different parameters in the REST interface for different search types.
  • REST Representational State Transfer
  • searchStation (keywords , startIndex, maxRo ws , query Artist, queryStation, queryTrack);
  • the input of the keyword can be operated by the control of the remote controller.
  • the method for implementing the network broadcast based on the IPTV further includes: starting and closing the function of the network broadcast on the ⁇ , and opening a user interface (UI interface) for listening to the network broadcast, FIG. 4
  • UI interface user interface
  • FIG. 4 The function framework diagram of the partial parameters that the user can set after the user listens to the network broadcast UI interface through the browser mode is shown. details as follows:
  • Step 1 hide the main window browser, start the sub-window browser to call iHeartRadioAPP, the APP runs based on the browser kernel, and the browser component is provided by the set top box.
  • the IPTV SDK further encapsulates the component communication, and sends the relevant json command through the UDevice class of the SDK.
  • the browser window is divided into a main window and a sub-window.
  • the main window serves as the bearer page of the IPTV main service, and cannot be closed.
  • the sub-window can be both, and both can be hidden. Here we use the child window to open the browser page.
  • the UI layer first provides the base class QZteGraphicsBaseUI, including basic function functions, including: setting the page background, setting the page logo, setting the page name, Set the font (size, color, etc.), in the background setting function, give the default value, if the calling module has no input parameter, the default background is displayed.
  • basic function functions including: setting the page background, setting the page logo, setting the page name, Set the font (size, color, etc.), in the background setting function, give the default value, if the calling module has no input parameter, the default background is displayed.
  • Step 401 Inherit QZteGraphicsBase
  • Step 402 Read the background image into the parameter sessionld, set the background;
  • Step 403 Read the logo image into the parameter spLogo, set the logo;
  • Step 404 Read the page name into the parameter spPagename, set the page name;
  • Step 405 Set the font size function, such as (20px, 24px, 30px);
  • Step 406 setting the bold
  • Step 407 Set the color, such as (#acd751, #888888, #666666, #15a8f7).
  • the present invention further provides an apparatus for implementing network broadcast based on a network television, including:
  • the first sending module 21 is configured to send a play request message to the network broadcast server.
  • the first receiving module 22 is configured to receive a plurality of broadcast channel information request response messages returned by the network broadcast server, where the broadcast channel information includes the multiple The code stream address corresponding to the broadcast channel;
  • the second sending module 23 is configured to send, to the set-top box, a network broadcast play command that carries the code stream address corresponding to the broadcast channel, so that the set-top box interacts with the network broadcast server, and obtains by using the network broadcast server. Playing the first broadcast program corresponding to the code stream address.
  • the first sending module 21, the first receiving module 22, and the second sending module 23 may be a central processing unit (CPU, Central) in a device that implements network broadcasting based on a network television.
  • CPU Central
  • Processing Unit Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the network broadcast appears in front of the user in the form of an IPTV value-added service, which not only facilitates the listening of the majority of network broadcast users, but also brings new to the IPTV user. Value-added business experience.
  • iHeartRadio is a relatively large online broadcast site in North America. It provides an open API interface for broadcast data, which makes it possible for network broadcast broadcast control to be implemented on IPTV.
  • the network broadcast server in this embodiment is an iHeartRadio server, but is not limited thereto, as long as a network broadcast server of an open API interface for broadcasting data can be provided.
  • the broadcast channel information returned by the network broadcast server includes live broadcast channel information and on-demand broadcast channel information, and the user can select the broadcast type to be listened to according to his own needs.
  • live broadcast and on-demand broadcast modes are respectively introduced. .
  • the broadcast channel information is broadcast channel information of a plurality of live broadcast channels corresponding to a broadcast program area in which the set top box is transmitted, which is sent by the network broadcast server.
  • the device for implementing network broadcast based on the network television further includes:
  • the live broadcast channel switching module 24 is configured to: when the user needs to switch the broadcast channel, send a network broadcast play instruction that carries the code stream address corresponding to another one of the plurality of live broadcast channels to the set top box, The set top box is caused to interact with the network broadcast server, and the second broadcast program corresponding to the code stream address is acquired and played by the network broadcast server.
  • the play request message sent to the network broadcast server carries the IP address of the user set-top box, so that the network broadcast server determines the broadcast program area where the user is located according to the latitude and longitude of the IP address of the user set-top box, and provides the user with the IP address. All live broadcast types of live broadcasts within the broadcast program area.
  • the live broadcast channel switching module 24 is further configured to: when the user needs to switch the broadcast channel, sort the plurality of live broadcast channels according to a preset rule, and send the plurality of live broadcasts to the set top box according to the sorting. And a network broadcast play instruction of the code stream address corresponding to the next broadcast channel in the channel, so that the set top box interacts with the network broadcast server, and the network broadcast server acquires and plays the corresponding code stream address. Second broadcast program.
  • the plurality of live broadcast channels are sorted according to a preset rule, and the preset rule may be the name of the plurality of live broadcast channels, or may be the plurality of live broadcast channels.
  • the preset rule may be the name of the plurality of live broadcast channels, or may be the plurality of live broadcast channels.
  • the type there is no limit here.
  • the plurality of live broadcast channels are switched by name sorting, and cyclically switching. For example, there are 10 channels, the current play 5, then scan once is 6, then scan-time is 7, arrives at 10, then scan-time arrives at 1, if the Scan operation is abnormal, it stays in the current channel.
  • Live broadcast type online broadcast service logic Each online broadcast channel has a corresponding sessionld, which enables different broadcasts by calling different sessionld. Specific practices: Write the play method of the live broadcast type, call the iHeartRadio system API interface, and handle the parsing of the returned data. The following is an example of a live broadcast broadcast method:
  • the device that implements the network broadcast based on the network television further includes:
  • the broadcast channel information is a broadcast festival sent by the receiving network broadcast server and the set top box Broadcast channel information of a plurality of on-demand broadcast channels corresponding to the destination area.
  • the user For the broadcast of the on-demand type, the user needs to log in before using it to verify the authentication status of the user on the network broadcast server, that is, whether the user logs in successfully. If the login is successful, the network broadcast server returns personal information and sessionld. If the login fails, an error message is returned, prompting the user for the cause of the error.
  • the device for implementing network broadcast based on the network television further includes an on-demand broadcast channel processing module 25, and the on-demand broadcast channel processing module 25 includes:
  • the authentication unit 251 is configured to send an authentication request to the network broadcast server when the user listens to the on-demand broadcast channel;
  • the first sending unit 252 is configured to: after receiving the network broadcast server authentication success identifier, send, to the set top box, a network broadcast play instruction that carries a code stream address corresponding to a broadcast channel selected by the user from the plurality of on-demand broadcast channels, so that The set top box interacts with the network broadcast server, and acquires and plays a third broadcast program corresponding to the code stream address by using the network broadcast server.
  • the user email/password credentials are sent to the external interface of the iHeartRadio server (network wide server) (https: ⁇ api2.iheart.com/api/vl/account/login), and the design class name com.zte .pcc.app.iheart.rest.QueryStationResource and method loginUser().
  • iHeartRadio server network wide server
  • design class name com.zte .pcc.app.iheart.rest.QueryStationResource and method loginUser().
  • the on-demand broadcast function can be used.
  • Each user has a unique user sessionld corresponding to the login, configured as the user's playback control of the underlying player of the set-top box. After the user logs out, the sessionld is logged off and the corresponding playback interface (UI interface) is closed.
  • UI interface playback interface
  • On-demand broadcasts of the on-demand type are only available if the user logs in (via the authentication of the webcast server), and the user can directly enter the play page through the recommended album displayed on the UI interface.
  • the on-demand type of broadcast includes functions such as pause, play, and next track, and displays progress information of the currently played track.
  • the device for performing the network broadcast based on the IPTV further includes:
  • the play status monitoring and processing module 26 is configured to monitor the play status of the set-top box to play the network broadcast, and perform corresponding processing according to the play status.
  • the main playback mode is onReady, onError, onStateChange, and so on.
  • these state monitoring are added when the player is initialized, the onReady state response is the broadcast stream data of the user-specified index after the network broadcast server accepts the play request; the onError state is when the broadcast data stream is loaded with an error.
  • the response event of the time; onStateChange is mainly to monitor the broadcast state of the broadcast, such as the broadcast is not started (-1), and the progress bar is initialized to move the slider to the end; when it is the playback state (1), the broadcast information is refreshed.
  • the playerReadyHandler event is: 3 ⁇ 4 into the set playback interface (videoLoader.content is the object we operate) and adds playback status monitoring to the playback interface.
  • the layerErrorHandler event handles the loading failure, mainly reloading and adding playback status monitoring (event monitoring).
  • the device for performing network broadcast based on the network television further includes:
  • the third sending module 27 is configured to send a play operation request including playing, pausing or stopping to the set top box by pressing the remote controller button, so that the set top box obtains the current key value, and performs a playing operation corresponding to the current key value.
  • buttons of the remote control mainly to add a listener and respond to the KeyboardEvent.KEY_DOWN event.
  • iHeartRadio captures the current key value, and determines which button trigger event is currently used to perform different processing according to the key value.
  • the device for implementing the network broadcast based on the network television in the embodiment further includes:
  • the broadcast channel search module 28 is configured to transmit search keyword information to the network broadcast server such that the network broadcast server returns broadcast channel information corresponding to the keyword.
  • the search of the broadcast channel may be in the broadcast program corresponding to the keyword in all the live broadcast channels and the on-demand broadcast channels in the broadcast program area where the set top box is located; in order to save the search time and reduce the number of search results, the definition may also be limited.
  • the broadcast channel search module 28 is further configured to send search keyword information and search type information to the network broadcast server, so that the network broadcast server returns broadcast channel information corresponding to the search type and the keyword.
  • the search is implemented as a REST interface and is identified by different parameters in the REST interface for different search types.
  • the input of the keyword can be operated by the control of the remote controller.
  • the live broadcast channel switching module 24, the on-demand broadcast channel processing module 25, the play status monitoring and processing module 26, the third sending module 27, and the broadcast channel search module 28 may also be CPU, DSP in a device for implementing network broadcast based on network television. Or FPGA implementation.
  • the present invention also provides a network television comprising the above-described apparatus for implementing network broadcasting based on a network television.
  • the device sends a play request message to the network broadcast server; and receives a request response message that is sent by the network broadcast server and carries a plurality of broadcast channel information, where the broadcast channel information includes a code stream address corresponding to the multiple broadcast channels; Sending, by the set top box, a network broadcast play command carrying the code stream address corresponding to the broadcast channel, so that the set top box interacts with the network broadcast server, and the network broadcast server acquires and plays the corresponding code stream address.
  • the first broadcast program thus, the realization of the network broadcast on the IPTV play, which not only facilitates the listening of the majority of network broadcast users, but also brings a new value-added service experience to the IPTV user.

Landscapes

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

Abstract

本发明公开了一种基于网络电视实现网络广播的方法、装置及网络电视,其中,基于网络电视实现网络广播的方法,包括以下步骤:向网络广播服务器发送播放请求消息;接收网络广播服务器返回的携带多个广播频道信息请求响应消息,所述广播频道信息包括所述多个广播频道对应的码流地址;向机顶盒发送携带一个所述广播频道所对应的所述码流地址的网络广播播放指令,使得机顶盒与所述网络广播服务器进行交互,通过所述网络广播服务器获取并播放所述码流地址对应的第一广播节目。采用本发明所述技术方案:实现了将网络广播在IPTV上播放,则既方便了广大网络广播用户的收听,又给IPTV用户带来了新的增值业务体验。

Description

一种基于网络电视实现网络广播的方法、 装置及网络电视 技术领域
本发明涉及网络电视技术和网络广播技术, 尤其涉及一种基于网络电 视实现网络广播的方法、 装置及网络电视。 背景技术
交互式网络电视( IPTV , Interactive Personality Television )技术, 又称 网络电视技术, 是一种集宽带有线电视网、 互联网、 多媒体、 通讯等多种 技术于一体, 向家庭用户提供包括数字电视在内的多种交互式服务的崭新 技术。 近几年, IPTV系统越来越普及, 用户群体不断壮大, 市场占有率也 在逐年提升, 基于 IPTV的增值业务也逐渐地丰富起来。
网络广播是网络传播多媒体形态的重要体现 , 也是广播电视媒体网上 发展的一种主要形式。 对传统网络广播而言, 用户一般只能通过访问其门 户网站或安装客户端才能收听, 所以对于广泛的用户群体而言, 传统网络 广播这种方式并不方便。 发明内容
有鉴于此, 本发明实施例的主要目的在于提供一种基于网络电视实现 网络广播的方法、 装置及网络电视, 既能方便广大网络广播用户的收听, 又能给 IPTV用户带来新的增值业务体验。
为了达到上述目的, 本发明实施例的技术方案是这样实现的: 本发明实施例提供了一种基于网络电视实现网络广播的方法, 该方法 包括以下步驟:
向网络广播服务器发送播放请求消息; 接收网络广播服务器返回的携带多个广播频道信息的请求响应消息, 所述广播频道信息包括所述多个广播频道对应的码流地址;
向机顶盒发送携带一个所述广播频道所对应的所述码流地址的网络广 播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络 广播服务器获取并播放所述码流地址对应的第一广播节目。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个直播广播频道的广播频道信息或多个点播广播 频道的广播频道信息。
优选地, 在所述广播频道信息为接收网络广播服务器发送的与机顶盒 所处广播节目区域对应的多个直播广播频道的广播频道信息时, 还包括以 下步驟:
在用户需要切换广播频道时, 向机顶盒发送携带所述多个直播广播频 道中的另一个所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广播服务器获 取并播放所述码流地址对应的第二广播节目。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个直播广播频道的广播频道信息时, 还包括以下 步驟:
在用户需要切换广播频道时, 将所述多个直播广播频道按照预设规则 排序, 按照所述排序向机顶盒发送携带所述多个直播广播频道中的下一个 所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与 所述网络广播服务器进行交互, 通过所述网络广播服务器获取并播放所述 码流地址对应的第二广播节目。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个点播广播频道的广播频道信息时, 还包括以下 步驟:
在用户收听点播广播频道时, 向网络广播服务器发送认证请求; 在接收网络广播服务器认证成功标识后, 向机顶盒发送携带用户从所 述多个点播广播频道中选择的一个广播频道所对应的码流地址的网络广播 播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广 播服务器获取并播放所述码流地址对应的第三广播节目。
优选地, 该方法还包括:
通过按下遥控器一按键向机顶盒发送包括播放、 暂停或停止的播放操 作请求, 使得机顶盒获得当前键值, 并执行与当前键值相对应的播放操作。
优选地, 该方法还包括:
向网络广播服务器发送搜索参数信息, 使得网络广播服务器返回与所 述参数相对应的广播频道信息, 所述参数包括搜索关键字信息和搜索类型 信息。
本发明实施例还提供一种基于网络电视实现网络广播的装置, 该装置 包括:
第一发送模块, 配置为向网络广播服务器发送播放请求消息; 第一接收模块, 配置为接收网络广播服务器返回的携带多个广播频道 信息请求响应消息, 所述广播频道信息包括所述多个广播频道对应的码流 地址;
第二发送模块, 配置为向机顶盒发送携带一个所述广播频道所对应的 所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进 行交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第一广 播节目。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个直播广播频道的广播频道信息或多个点播广播 频道的广播频道信息。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个直播广播频道的广播频道信息时还包括:
直播广播频道切换模块, 配置为在用户需要切换广播频道时, 向机顶 盒发送携带所述多个直播广播频道中的另一个所述广播频道所对应的所述 码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交 互, 通过所述网络广播服务器获取并播放所述码流地址对应的第二广播节 目。
优选地, 所述直播广播频道切换模块, 还配置为在用户需要切换广播 频道时, 将所述多个直播广播频道按照预设规则排序, 按照所述排序向机 顶盒发送携带所述多个直播广播频道中的下一个所述广播频道所对应的所 述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行 交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第二广播 节目。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个点播广播频道的广播频道信息时, 还包括点播 广播频道处理模块, 所述点播广播频道处理模块包括:
认证单元, 配置为在用户收听点播广播频道时, 向网络广播服务器发 送认证请求;
第一发送单元, 配置为在接收网络广播服务器认证成功标识后, 向机 顶盒发送携带用户从所述多个点播广播频道中选择的一个广播频道所对应 的码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行 交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第三广播 节目。
优选地, 该装置还包括: 第三发送模块, 配置为通过按下遥控器按键向机顶盒发送包括播放、 暂停或停止的播放操作请求, 使得机顶盒获得当前键值, 并执行与当前键 值相对应的播放操作。
优选地, 该装置还包括:
广播频道搜索模块, 配置为向网络广播服务器发送搜索参数信息, 使 得网络广播服务器返回与所述参数相对应的广播频道信息, 所述参数包括 搜索关键字信息和搜索类型信息。
本发明实施例还提供一种网络电视, 该网络电视包括上述的基于网络 电视实现网络广播的装置。
采用本发明实施例所述技术方案, 实现了将网络广播在 IPTV上播放, 则既方便了广大网络广播用户的收听,又给 IPTV用户带来了新的增值业务 体验。 附图说明
图 1 为本发明实施例基于网络电视实现网络广播的方法的实现流程示 意图;
图 2为本发明实施例中基于网络电视实现网络广播的装置、 网络广播 服务器、 机顶盒的结构框图;
图 3 为本发明实施例中基于网络电视实现网络广播的装置、 网络广播 服务器、 机顶盒的具体结构框图;
图 4为本发明基于 IPTV实现网络广播的方法通过浏览器方式启动的收 听网络广播 UI界面包括的部分参数设置的功能框架图。 具体实施方式
以下结合附图对本发明的结构和原理进行详细说明, 所举实施例仅用 于解释本发明, 并非以此限定本发明的保护范围。 如图 1 所示, 本实施例提供一种基于网络电视实现网络广播的方法, 用于网络电视, 所述方法包括以下步驟:
步驟 101: 向网络广播服务器发送播放请求消息;
步驟 102:接收网络广播服务器返回的携带多个广播频道信息的请求响 应消息, 所述广播频道信息包括所述多个广播频道对应的码流地址;
步驟 103:向机顶盒发送携带一个所述广播频道所对应的所述码流地址 的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过 所述网络广播服务器获取并播放所述码流地址对应的第一广播节目。
本实施例中, 通过向网络广播服务器发送播放请求消息, 在网络广播 服务器接受请求后, 将相应的广播频道的码流地址发送至机顶盒, 使得机 顶盒与网络广播服务器交互, 通过所述网络广播服务器获取并播放所述码 流地址对应的第一广播节目。基于 IPTV越来越壮大的用户群体, 将网络广 播以一种 IPTV增值业务的形式出现在用户面前,则既能方便广大网络广播 用户的收听, 又给 IPTV用户带来了新的增值业务体验。
IPTV上要实现网络广播播放功能, 首先需要找到一个能够提供广播数 据的源头。 iHeartRadio是北美地区比较大的在线广播网站, 它提供了广播 数据的开放应用程序编程( API, Application Programming Interface )接口, 这就为网络广播播控在 IPTV上的实现提供了可能。
本实施例中的网络广播服务器为 iHeartRadio服务器, 但并不限于此, 只要可以提供广播数据的开放 API接口的网络广播服务器都可以用于本发 明实施例。
本实施例中, 所述广播频道信息可以同时包括所有区域的、 多个直播 广播频道的广播频道信息和多个点播广播频道的广播频道信息或其他形式 的广播频道信息, 但为了节省网络资源, 以及方便用户的收听, 所述广播 频道信息包括与机顶盒所处广播节目区域对应的多个直播广播频道的广播 频道信息和多个点播广播频道的广播频道信息。
本实施例中, 为了进一步节省网络资源, 网络广播服务器返回的广播 频道信息包括直播广播频道信息或点播广播频道信息, 用户可以根据自己 的需要自行选择所要收听的广播类型, 以下分别介绍直播广播和点播广播 两种^:听形式。
所述广播频道信息为接收网络广播服务器发送的与机顶盒所处广播节 目区域对应的多个直播广播频道的广播频道信息。
在向网络广播服务器发送的播放请求消息中携带用户机顶盒 IP地址, 使得网络广播服务器根据用户机顶盒 IP地址的经纬度, 判断该用户所处的 广播节目区域, 为用户提供与该 IP地址所处的广播节目区域内的所有在线 收听的直播类型广播。
优选地, 基于 IPTV实现网络广播的方法还包括以下步驟:
在用户需要切换广播频道时, 向机顶盒发送携带所述多个直播广播频 道中的另一个所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广播服务器获 取并播放所述码流地址对应的第二广播节目。
优选地, 基于 IPTV实现网络广播的方法还包括以下步驟:
在用户需要切换广播频道时, 将所述多个直播广播频道按照预设规则 排序, 按照所述排序向机顶盒发送携带所述多个直播广播频道中的下一个 所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与 所述网络广播服务器进行交互, 通过所述网络广播服务器获取并播放所述 码流地址对应的第二广播节目。
当用户进行切换广播频道操作时, 将所述多个直播广播频道按照预设 规则排序, 也可以随机播放所述多个广播频道中非正在播放的广播频道中 的任一广播频道, 所述预设规则可以为所述多个直播广播频道的名称, 也 可以是所述多个直播广播频道的类型, 此处并不做限制。
本实施例中, 将所述多个直播广播频道进行名称排序的切换, 且循环 切换。 比如有 10个频道, 当前播放 5 , 则 scan (切换操作)一次后是 6, 再 scan—次是 7, 到达 10, 再 scan—次到达 1 , 如果 Scan操作出现异常则 停留在当前频道。
直播类型的在线广播播放业务逻辑: 每一个在线广播频道都有对应的 会话 Id ( sessionld ), 通过调用不同的 sessionld实现对不同广播的播放。 具 体的做法: 编写直播类型广播的播放(play ) 方法, 调用 iHeartRadio 系统 API接口, 并处理返回数据的解析。 以下是直播类型广播 play方法示例: @ Path(" station/live/play ")
©POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public JSONObject myLivePlayO {
Return myLiveAdd (request,source); 优选地, 基于 IPTV实现网络广播的方法还包括以下步驟:
所述广播频道信息为接收网络广播服务器发送的与机顶盒所处广播节 目区域对应的多个点播广播频道的广播频道信息。
对于点播类型的广播, 则需要用户登录(经过网络广播服务器认证) 后才可使用, 校验用户在网络广播服务器上的认证状态, 即网络广播服务 器返回用户是否登录成功的消息。 登录成功则网络广播服务器返回登录成 功的信息和 sessionld, 登录失败则返回错误信息, 提示用户错误原因。
优选地, 基于 IPTV实现网络广播的方法包括以下步驟:
在用户收听点播广播频道时, 向网络广播服务器发送认证请求; 在接收网络广播服务器认证成功标识后, 向机顶盒发送携带用户从所 述多个点播广播频道中选择的一个广播频道所对应的码流地址的网络广播 播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广 播服务器获取并播放所述码流地址对应的第三广播节目。
具体实现中, 是通过用户电子邮件 /密码凭据向 iHeartRadio服务器(网 络广播服务器)对外接口发送请( https://api2.iheart.com/api/vl/account/login) , 设计类名 com.zte.pcc.app.iheart.rest.QueryStationResource,方法 loginUser()。
以下是用户登陆方法示例:
public JSONObject loginUser() {
〃判断里面的 nickname和 assword是否为空
Return loginUserService(request); 用户登陆后, 可使用点播类在线广播功能。 每个用户登陆后都有与之 对应的唯一用户 sessionld, 用于用户对机顶盒底层播放器的播放控制, 用 户登出后, 则该 sessionld被注销, 相应的播放界面 ( UI界面)被关闭。
以下是用户退出登陆方法示例:
public JSONObject userLoginOut(@queryParam("profileId") String profileId,@queryParam("sessionId" String sessionld)) {
〃判断里面的 profileld和 sessionld是否为空
Return loginoutUserService(profileId,sessionId);
}
点播类型的在线广播是在用户登陆 (经过网络广播服务器的认证) 的 前提下才可使用, 此时该用户可通过 UI界面展示的推荐专辑直接进入到播 放页面。 点播类型的广播包括暂停、 播放以及下一曲等功能, 并且展示当 前播放曲目的进度信息。
优选地, 为了在用户收听点播类型的网络广播时, 对于播放状态出现 错误等现象作出及时处理, 以免影响用户的收听, 基于 IPTV实现网络广播 的方法还包括: 监测机顶盒播放网络广播的播放状态, 并根据所述播放状 态作出相应的处理。
主要的播放状态有 onReady、 onError, onStateChange等。 对于点播类 型广播,在初始化播放器时则添加这些状态监测, onReady状态响应为网络 广播服务器接受播放请求后播放用户指定索引的广播码流数据; onError状 态为当广播数据码流加载出现错误时的响应事件; onStateChange主要是监 听广播的播放状态, 如广播是未开始状态 (-1 ), 且进度条已初始化则将滑 块移动到最后; 当为播放状态(1 ), 则刷新广播信息并初始化播控条面板; 当播放状态为结束(0 ), 且广播为该组最后一个广播, 则将下一组数据的 码流地址发送至机顶盒, 使得机顶盒与网络广播服务器交互, 从当前播放 广播组的<11^ rel='next' href=" ... " 〉标签中获得下一组数据查询连接, 并 将返回新的一组数据加载在播放器中, 播放该新数组的第一个广播, 刷新 数据显示。
播放器加载代码示例:
var videoLoader: Loader = new Loader();
videoLoader.load(new URLRequest());
videoLoader.contentLoaderInfo.addEventListener(Event.INIT,
playerReadyHandler);
videoLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERRO R, layerErrorHandler);
playerReadyHandler事件来: ¾成设置播放界面 ( videoLoader.content才 是我们操作的对象)并为播放界面添加播放状态监测。 layerErrorHandler事 件来处理加载失败的情况, 主要是重新加载并添加播放状态监测 (事件监 听)。
优选地, 为了用户收听网络广播时进行播放操作更加方便, 本实施例 中, 还包括: 通过按下遥控器一按键向机顶盒发送包括播放、 暂停或停止的播放操 作请求, 使得机顶盒获得当前键值, 并执行与当前键值相对应的播放操作。
通过遥控器的不同按钮实现对广播的播放、 暂停、 停止操作, 主要是 对 KeyboardEvent.KEY_DOWN事件添加监听并响应。在按键按下事件响应 中, iHeartRadio捕获当前键值, 根据该键值判断当前是哪个按键触发事件 来做不同的处理。
优选地, 为了用户可以根据自己的喜好, 搜索所要收听的广播频道, 本实施例中还包括:
向网络广播服务器发送搜索关键字信息 , 使得网络广播服务器返回与 所述关键字相对应的广播频道信息。
广播频道的搜索可以在与机顶盒所处广播节目区域内所有的直播广播 频道、 点播广播频道中与所述关键字相对应的广播节目; 为了节省查找时 间, 减少搜索结果的数量, 也可以限定所述关键字所处的搜索类型。
优选地, 所述向网络广播服务器发送搜索关键字信息, 使得网络广播 服务器返回与所述关键字相对应的广播频道信息, 具体包括:
向网络广播服务器发送搜索关键字信息和搜索类型信息 , 使得网络广 播服务器返回与所述搜索类型、 所述关键字相对应的广播频道信息。
搜索以表述性状态转移 (REST, Representational State Transfer )接口 形式实现, 对于不同的搜索类型, 通过 REST接口中不同的参数识别。
以下是一个 REST搜索请求实例:
/rest/ app/iheart/ search/ searchall?key words=simon&
startlndex= 1 &maxRows=5 &queryArtist=true&queryStation=tme& query Track=true
设计类名: com.zte.pcc.app.iheart.rest.SearchResource, 通过方法定义: public JSONObject search All (
@QueryParam("key words ") String keywords, @ Query Param(" maxRows ") String maxRows, @ Query Param(" startlndex ") String startlndex, @ QueryParam("query Artist ") boolean query Artist,
@ QueryParam("queryStation ") boolean queryStation,
@ QueryParam(" query Track ") boolean queryTrack) {
searchStation (keywords , startIndex,maxRo ws , query Artist, queryStation, queryTrack);
所述关键字的输入可以通过遥控器的控制进行操作。
具体实现中, 在向网络广播服务器发送播放请求之前, 基于 IPTV实现 网络广播的方法还包括在 ιρτν上实现网络广播的功能的启动和关闭,打开 收听网络广播的用户界面(UI界面), 图 4表示的是本发明基于 IPTV实现 网络广播的方法通过浏览器方式启动收听网络广播 UI界面后, 用户可进行 设置的部分参数的功能框架图。 具体如下:
步驟 1 , 隐藏主窗口浏览器, 启动子窗口浏览器调用 iHeartRadioAPP, APP基于浏览器内核运行, 由机顶盒提供浏览器组件, IPTV SDK对组件通 信进一步封装,通过 SDK的 UDevice类把相关的 json命令发给浏览器进程。 浏览器窗口分主窗口和子窗口, 主窗口作为 IPTV主业务的承载页面, 不能 关闭, 子窗口可以, 两者都可以隐藏。 这里我们选用子窗口的方式打开浏 览器页面。
以下是涉及到浏览器相关的调用方法: ztebw_create { 'cmd': 'ztebw_create','x': %d, 'y': %d, 'width' 创建主窗口
:%d, 'height': %d}
zebra_create_win { 'cmd': 'zebra—create—window' , 'url' :'%s','i 创建子窗口 dow wSytle':%d,'x':%d,y:%d,'w':%d,'h':%d,'lp
WinParent':%d,'order':%d}
zebra—close—wind { 'cmd': 'zebra—close—window', 'handle': %d 关闭子窗口 ow }
ztebw_show { 'cmd' :'ztebw_show', 'handle' :%d} 显示窗口 ztebw hide {'cmd':'ztebw_hide', 'handle' :%d} 隐藏窗口 步驟 2, UI层首先提供基类 QZteGraphicsBaseUI, 包涵基本功能函数, 包括: 设置页面背景、 设置页面 logo、 设置页面名称、 设置字体(大小, 颜色等), 其中背景设置功能中, 给予默认值, 若调用模块无入参值, 则显 示默认背景。 需要指出的是, 上述功能函数可以采用任意顺序进行设置, 并不以图 4中的顺序为限。 如图 4所示, 图 4示出的顺序为:
步驟 401: 继承 QZteGraphicsBase;
步驟 402: 读取背景图片入参数 sessionld, 设置背景;
步驟 403: 读取 logo图片入参值 spLogo, 设置 logo;
步驟 404: 读取页面名称入参值 spPagename, 设置页面名称; 步驟 405: 设置字体大小函数, 如( 20px,24px,30px);
步驟 406: 设置粗体;
步驟 407: 设置颜色, 如(#acd751,#888888, #666666,#15a8f7 )。
如图 2和图 3所示, 本发明还提供一种基于网络电视实现网络广播的 装置, 包括:
第一发送模块 21 , 配置为向网络广播服务器发送播放请求消息; 第一接收模块 22, 配置为接收网络广播服务器返回的携带多个广播频 道信息请求响应消息, 所述广播频道信息包括所述多个广播频道对应的码 流地址;
第二发送模块 23 , 配置为向机顶盒发送携带一个所述广播频道所对应 的所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器 进行交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第一 广播节目。
这里, 所述第一发送模块 21、 第一接收模块 22、 第二发送模块 23可 由基于网络电视实现网络广播的装置中的中央处理器 (CPU , Central Processing Unit ), 数字信号处理器(DSP, Digital Signal Processor )或可编 程门阵列 (FPGA, Field Programmable Gate Array ) 实现。
本实施例中, 基于 IPTV越来越壮大的用户群体, 将网络广播以一种 IPTV增值业务的形式出现在用户面前, 则既能方便广大网络广播用户的收 听, 又给 IPTV用户带来了新的增值业务体验。
IPTV 上要实现网络广播播放功能, 首先需要广播数据的来源。 iHeartRadio是北美地区比较大的在线广播网站, 它提供了广播数据的开放 API接口, 这就为网络广播播控在 IPTV上的实现提供了可能。
本实施例中的网络广播服务器为 iHeartRadio服务器, 但并不限于此, 只要可以提供广播数据的开放 API接口的网络广播服务器即可。
本实施例中, 网络广播服务器返回的广播频道信息包括直播广播频道 信息和点播广播频道信息, 用户可以根据自己的需要自行选择所要收听的 广播类型, 以下分别介绍直播广播和点播广播两种收听形式。
优选地, 所述广播频道信息为接收网络广播服务器发送的与机顶盒所 处广播节目区域对应的多个直播广播频道的广播频道信息。
优选地, 所述基于网络电视实现网络广播的装置还包括:
直播广播频道切换模块 24, 配置为在用户需要切换广播频道时, 向机 顶盒发送携带所述多个直播广播频道中的另一个所述广播频道所对应的所 述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行 交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第二广播 节目。
具体地, 在向网络广播服务器发送的播放请求消息中携带用户机顶盒 IP地址, 使得网络广播服务器根据用户机顶盒 IP地址的经纬度, 判断该用 户所处的广播节目区域, 为用户提供与该 IP地址所处的广播节目区域内的 所有在线收听的直播类型广播。 优选地, 所述直播广播频道切换模块 24还配置为在用户需要切换广播 频道时, 将所述多个直播广播频道按照预设规则排序, 按照所述排序向机 顶盒发送携带所述多个直播广播频道中的下一个所述广播频道所对应的所 述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行 交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第二广播 节目。
当用户进行切换广播频道操作时, 将所述多个直播广播频道按照预设 规则排序, 所述预设规则可以为所述多个直播广播频道的名称, 也可以是 所述多个直播广播频道的类型, 此处并不做限制。
本实施例中, 将所述多个直播广播频道进行名称排序的切换, 且循环 切换。 比如有 10个频道, 当前播放 5 , 则 scan一次后是 6, 再 scan—次是 7, 到达 10, 再 scan—次到达 1 , 如果 Scan操作出现异常则停留在当前频 道。
直播类型的在线广播播放业务逻辑: 每一个在线广播频道都有对应的 sessionld, 通过调用不同的 sessionld实现对不同广播的播放。 具体的做法: 编写直播类型广播的 play方法, 调用 iHeartRadio系统 API接口, 并处理返 回数据的解析。 以下是直播类型广播 play方法示例:
@ Path(" station/live/play ")
©POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public JSONObject myLivePlayO {
Return my Live Add (request, source); 优选地, 所述基于网络电视实现网络广播的装置还包括:
所述广播频道信息为接收网络广播服务器发送的与机顶盒所处广播节 目区域对应的多个点播广播频道的广播频道信息。
对于点播类型的广播, 则需要用户登录后才可使用, 校验用户在网络 广播服务器上的认证状态, 即返回用户是否登录成功。 登录成功则网络广 播服务器返回个人信息和 sessionld, 登录失败则返回错误信息, 提示用户 错误原因。
优选地, 所述基于网络电视实现网络广播的装置还包括点播广播频道 处理模块 25 , 所述点播广播频道处理模块 25包括:
认证单元 251 , 配置为在用户收听点播广播频道时, 向网络广播服务器 发送认证请求;
第一发送单元 252, 配置为在接收网络广播服务器认证成功标识后, 向 机顶盒发送携带用户从所述多个点播广播频道中选择的一个广播频道所对 应的码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进 行交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第三广 播节目。
具体实现中, 是通过用户电子邮件 /密码凭据向 iHeartRadio服务器(网 络广布服务器)对外接口发送请 (https:〃 api2.iheart.com/api/vl/account/login) , 设计类名 com.zte.pcc.app.iheart.rest.QueryStationResource和方法 loginUser()。
以下是用户登陆方法示例:
public JSONObject loginUser() {
〃判断里面的 nickname和 assword是否为空
Return loginUserService(request); 用户登陆后, 可使用点播类在线广播功能。 每个用户登陆后都有与之 对应的唯一用户 sessionld, 配置为用户对机顶盒底层播放器的播放控制, 用户登出后, 则该 sessionld被注销, 相应的播放界面 ( UI界面 )被关闭。
以下是用户退出登陆方法示例: public JSONObject userLoginOut(@ query Param("profileId") String profileId,@queryParam("sessionId" String sessionld)) {
〃判断里面的 profileld和 sessionld是否为空
Return loginoutUserService(profileId,sessionId);
}
点播类型的在线广播是在用户登陆 (经过网络广播服务器的认证) 的 前提下才可使用, 此时该用户可通过 UI界面展示的推荐专辑直接进入到播 放页面。 点播类型的广播包括暂停、 播放以及下一曲等功能, 并且展示当 前播放曲目的进度信息。
优选地, 为了在用户收听点播类型的网络广播时, 对于播放状态出现 错误等现象作出及时处理, 以免影响用户的收听, 所述基于 IPTV实现网络 广播的装置还包括:
播放状态监测及处理模块 26, 配置为监测机顶盒播放网络广播的播放 状态, 并根据所述播放状态作出相应的处理。
主要的播放 ^夫态有 onReady, onError, onStateChange等。 ^"于点播类 型广播,在初始化播放器时则添加这些状态监测, onReady状态响应为网络 广播服务器接受播放请求后播放用户指定索引的广播码流数据; onError状 态为当广播数据码流加载出现错误时的响应事件; onStateChange主要是监 听广播的播放状态, 如广播是未开始状态 (-1 ), 且进度条已初始化则将滑 块移动到最后; 当为播放状态(1 ), 则刷新广播信息并初始化播控条面板; 当播放状态为结束(0 ), 且广播为该组最后一个广播, 则将下一组数据的 码流地址发送至机顶盒, 使得机顶盒与网络广播服务器交互, 从当前播放 广播组的<11^ rel='next' href=" ... " 〉标签中获得下一组数据查询连接, 并 将返回新的一组数据加载在播放器中, 播放该新数组的第一个广播, 刷新 数据显示。
播放器加载代码示例: var videoLoader: Loader = new Loader();
videoLoader.load(new URLRequest());
videoLoader.contentLoaderInfo.addEventListener(Event.INIT,
playerReadyHandler);
videoLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERRO R, layerErrorHandler);
playerReadyHandler事件来: ¾成设置播放界面 ( videoLoader.content才 是我们操作的对象)并为播放界面添加播放状态监测。 layerErrorHandler事 件来处理加载失败的情况, 主要是重新加载并添加播放状态监测 (事件监 听)。
优选地, 为了用户收听网络广播时进行播放操作更加方便, 本实施例 中, 所述基于网络电视实现网络广播的装置还包括:
第三发送模块 27,配置为通过按下遥控器按键向机顶盒发送包括播放、 暂停或停止的播放操作请求, 使得机顶盒获得当前键值, 并执行与当前键 值相对应的播放操作。
通过遥控器的不同按钮实现对广播的播放、 暂停、 停止操作, 主要是 对 KeyboardEvent.KEY_DOWN事件添加监听并响应。在按键按下事件响应 中, iHeartRadio捕获当前键值, 根据该键值判断当前是哪个按键触发事件 来做不同的处理。
优选地, 为了用户可以根据自己的喜好, 搜索所要收听的广播频道, 本实施例中所述基于网络电视实现网络广播的装置还包括:
广播频道搜索模块 28,配置为向网络广播服务器发送搜索关键字信息, 使得网络广播服务器返回与所述关键字相对应的广播频道信息。
广播频道的搜索可以在与机顶盒所处广播节目区域内所有的直播广播 频道、 点播广播频道中与所述关键字相对应的广播节目; 为了节省查找时 间, 减少搜索结果的数量, 也可以限定所述关键字所处的搜索类型。 优选地, 所述广播频道搜索模块 28还配置为向网络广播服务器发送搜 索关键字信息和搜索类型信息, 使得网络广播服务器返回与所述搜索类型、 所述关键字相对应的广播频道信息。
搜索以 REST接口形式实现,对于不同的搜索类型,通过 REST接口中 不同的参数识别。
以下是一个 REST搜索请求实例:
/rest/ app/iheart/ search/ searchall?key words=simon&
startlndex= 1 &maxRows=5 &queryArtist=true&queryStation=tme& query Track=true
设计类名: com.zte.pcc.app.iheart.rest.SearchResource, 通过方法定义: public JSONObject searchAll (
@ QueryParam("key words ") String keywords, @ QueryParam("maxRows ") String maxRows, @ QueryParam(" startlndex ") String startlndex, @ QueryParam("queryArtist")boolean query Artist, @ Query Param( ' ' query Station ") boolean queryStation, @QueryParam("query Track ") boolean query Track) { searchStation (keywords, startIndex,maxRows, query Artist, queryStation, queryTrack);
所述关键字的输入可以通过遥控器的控制进行操作。
上述直播广播频道切换模块 24、 点播广播频道处理模块 25、 播放状态 监测及处理模块 26、 第三发送模块 27、 以及广播频道搜索模块 28也可由 基于网络电视实现网络广播的装置中的 CPU、 DSP或 FPGA实现。
本发明还提供一种网络电视, 包括上述的基于网络电视实现网络广播 的装置。
以上所述为本发明较佳实施例, 并非用于限定本发明的保护范围。 应 当指出, 对于本领域技术人员来说, 在不脱离本发明所述原理的前提下, 所作的任何修改、 等同替换和改进等, 均包含在本发明的保护范围之内。 工业实用性
本发明实施例中, 向网络广播服务器发送播放请求消息; 接收网络广 播服务器返回的携带多个广播频道信息的请求响应消息, 所述广播频道信 息包括所述多个广播频道对应的码流地址; 向机顶盒发送携带一个所述广 播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与所述网 络广播服务器进行交互, 通过所述网络广播服务器获取并播放所述码流地 址对应的第一广播节目; 如此, 实现了将网络广播在 IPTV上播放, 则既方 便了广大网络广播用户的收听, 又给 IPTV用户带来了新的增值业务体验。

Claims

权利要求书
1、 一种基于网络电视实现网络广播的方法, 所述方法包括: 向网络广播服务器发送播放请求消息;
接收网络广播服务器返回的携带多个广播频道信息的请求响应消息, 所述广播频道信息包括所述多个广播频道对应的码流地址;
向机顶盒发送携带一个所述广播频道所对应的所述码流地址的网络广 播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络 广播服务器获取并播放所述码流地址对应的第一广播节目。
2、 根据权利要求 1所述的方法, 其中, 所述广播频道信息为接收网络 广播服务器发送的与机顶盒所处广播节目区域对应的多个直播广播频道的 广播频道信息或多个点播广播频道的广播频道信息。
3、 根据权利要求 2所述的方法, 其中, 在所述广播频道信息为接收网 络广播服务器发送的与机顶盒所处广播节目区域对应的多个直播广播频道 的广播频道信息时, 还包括:
在用户需要切换广播频道时, 向机顶盒发送携带所述多个直播广播频 道中的另一个所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广播服务器获 取并播放所述码流地址对应的第二广播节目。
4、 根据权利要求 3所述的方法, 其中, 所述广播频道信息为接收网络 广播服务器发送的与机顶盒所处广播节目区域对应的多个直播广播频道的 广播频道信息时, 还包括:
在用户需要切换广播频道时, 将所述多个直播广播频道按照预设规则 排序, 按照所述排序向机顶盒发送携带所述多个直播广播频道中的下一个 所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶盒与 所述网络广播服务器进行交互, 通过所述网络广播服务器获取并播放所述 码流地址对应的第二广播节目。
5、 根据权利要求 2所述的方法, 其中, 所述广播频道信息为接收网络 广播服务器发送的与机顶盒所处广播节目区域对应的多个点播广播频道的 广播频道信息时, 所述方法还包括:
在用户收听点播广播频道时, 向网络广播服务器发送认证请求; 在接收网络广播服务器认证成功标识后, 向机顶盒发送携带用户从所 述多个点播广播频道中选择的一个广播频道所对应的码流地址的网络广播 播放指令, 使得机顶盒与所述网络广播服务器进行交互, 通过所述网络广 播服务器获取并播放所述码流地址对应的第三广播节目。
6、 根据权利要求 1-5任一项所述的方法, 其中, 所述方法还包括: 通过按下遥控器一按键向机顶盒发送包括播放、 暂停或停止的播放操 作请求 , 使得机顶盒获得当前键值 , 并执行与当前键值相对应的播放操作。
7、 根据权利要求 1-5任一项所述的方法, 其中, 所述方法还包括: 向网络广播服务器发送搜索参数信息, 使得网络广播服务器返回与所 述参数相对应的广播频道信息, 所述参数包括搜索关键字信息和搜索类型 信息。
8、 一种基于网络电视实现网络广播的装置, 所述装置包括:
第一发送模块, 配置为向网络广播服务器发送播放请求消息; 第一接收模块, 配置为接收网络广播服务器返回的携带多个广播频道 信息请求响应消息, 所述广播频道信息包括所述多个广播频道对应的码流 地址;
第二发送模块, 配置为向机顶盒发送携带一个所述广播频道所对应的 所述码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进 行交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第一广 播节目。
9、 根据权利要求 8所述的装置, 其中, 所述广播频道信息为接收网络 广播服务器发送的与机顶盒所处广播节目区域对应的多个直播广播频道的 广播频道信息或多个点播广播频道的广播频道信息。
10、 根据权利要求 9所述的装置, 其中, 所述装置还包括:
直播广播频道切换模块, 配置为在用户需要切换广播频道时, 向机顶 盒发送携带所述多个直播广播频道中的另一个所述广播频道所对应的所述 码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行交 互, 通过所述网络广播服务器获取并播放所述码流地址对应的第二广播节 目。
11、根据权利要求 10所述的装置, 其中, 所述直播广播频道切换模块, 还配置为在用户需要切换广播频道时, 将所述多个直播广播频道按照预设 规则排序, 按照所述排序向机顶盒发送携带所述多个直播广播频道中的下 一个所述广播频道所对应的所述码流地址的网络广播播放指令, 使得机顶 盒与所述网络广播服务器进行交互, 通过所述网络广播服务器获取并播放 所述码流地址对应的第二广播节目。
12、 根据权利要求 9所述的装置, 其中, 所述装置还包括点播广播频 道处理模块, 其中, 所述点播广播频道处理模块包括:
认证单元, 配置为在用户收听点播广播频道时, 向网络广播服务器发 送认证请求;
第一发送单元, 配置为在接收网络广播服务器认证成功标识后, 向机 顶盒发送携带用户从所述多个点播广播频道中选择的一个广播频道所对应 的码流地址的网络广播播放指令, 使得机顶盒与所述网络广播服务器进行 交互, 通过所述网络广播服务器获取并播放所述码流地址对应的第三广播 节目。
13、 根据权利要求 8-12任一项所述的装置, 其中, 所述装置还包括: 第三发送模块, 配置为通过按下遥控器按键向机顶盒发送包括播放、 暂停或停止的播放操作请求, 使得机顶盒获得当前键值, 并执行与当前键 值相对应的播放操作。
14、 根据权利要求 8-12任一项所述的装置, 其中, 所述装置还包括: 广播频道搜索模块, 配置为向网络广播服务器发送搜索参数信息, 使 得网络广播服务器返回与所述参数相对应的广播频道信息, 所述参数包括 搜索关键字信息和搜索类型。
15、 一种网络电视, 所述网络电视包括权利要求 8至 14任一项所述的 基于网络电视实现网络广播的装置。
PCT/CN2013/082301 2013-01-31 2013-08-26 一种基于网络电视实现网络广播的方法、装置及网络电视 WO2013189436A2 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310038902.XA CN103974092B (zh) 2013-01-31 2013-01-31 一种基于网络电视实现网络广播的方法、装置及网络电视
CN201310038902.X 2013-01-31

Publications (2)

Publication Number Publication Date
WO2013189436A2 true WO2013189436A2 (zh) 2013-12-27
WO2013189436A3 WO2013189436A3 (zh) 2014-02-20

Family

ID=49769575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082301 WO2013189436A2 (zh) 2013-01-31 2013-08-26 一种基于网络电视实现网络广播的方法、装置及网络电视

Country Status (2)

Country Link
CN (1) CN103974092B (zh)
WO (1) WO2013189436A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445625A (zh) * 2018-05-02 2019-11-12 鸿合科技股份有限公司 一种大屏广播控制方法及系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822509B (zh) * 2021-01-29 2023-07-21 北京百度网讯科技有限公司 一种数据处理方法、装置、电子设备和介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404670A (zh) * 2000-07-24 2003-03-19 成津C&C株式会社 广播多频道网络电视的中继系统和组网方法
CN101213835A (zh) * 2005-09-16 2008-07-02 三星电子株式会社 向家用网络中的iptv提供关于数字广播节目的附加信息的方法和设备
CN101686381A (zh) * 2009-08-21 2010-03-31 四川虹微技术有限公司 基于数字电视的网络广播媒体信息播发方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141607A (zh) * 2006-09-08 2008-03-12 百视通网络电视技术发展有限责任公司 可用于iptv的互动关联方法及其实现系统
CN101155293B (zh) * 2006-09-25 2011-11-30 华为技术有限公司 一种进行网络直播电视业务频道授权的方法、系统及装置
CN101014083A (zh) * 2006-11-28 2007-08-08 俞鹏里 网络电视终端及其信息服务器系统
CN101039329B (zh) * 2006-12-28 2012-03-28 中兴通讯股份有限公司 基于媒体交付的网络电视系统的媒体交付系统
CN101132521A (zh) * 2007-09-25 2008-02-27 华为技术有限公司 一种实现iptv频道切换的方法和装置
MX2011003124A (es) * 2008-10-06 2011-04-21 Sharp Kk Dispositivo receptor de difusor digital y metodo de recepcion de difusion digital.
US8763048B2 (en) * 2008-10-07 2014-06-24 Sharp Kabushiki Kaisha Digital broadcast receiver and reception method
CN201294539Y (zh) * 2008-11-21 2009-08-19 邱晓健 一种数字网络广播系统
CN102547408B (zh) * 2012-01-17 2014-09-03 深圳市同洲电子股份有限公司 播放点播节目的方法、系统和会话管理器

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404670A (zh) * 2000-07-24 2003-03-19 成津C&C株式会社 广播多频道网络电视的中继系统和组网方法
CN101213835A (zh) * 2005-09-16 2008-07-02 三星电子株式会社 向家用网络中的iptv提供关于数字广播节目的附加信息的方法和设备
CN101686381A (zh) * 2009-08-21 2010-03-31 四川虹微技术有限公司 基于数字电视的网络广播媒体信息播发方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445625A (zh) * 2018-05-02 2019-11-12 鸿合科技股份有限公司 一种大屏广播控制方法及系统
CN110445625B (zh) * 2018-05-02 2022-07-01 鸿合科技股份有限公司 一种大屏广播控制方法及系统

Also Published As

Publication number Publication date
WO2013189436A3 (zh) 2014-02-20
CN103974092A (zh) 2014-08-06
CN103974092B (zh) 2018-05-15

Similar Documents

Publication Publication Date Title
US10142694B2 (en) Method and apparatus for sharing media content
US10367880B2 (en) Method and system for presenting media content
CN103067776B (zh) 节目推送方法、系统及智能显示设备、云端服务器
KR102201022B1 (ko) 스트리밍 디지털 콘텐츠의 재생을 관리하기 위한 시스템 및 방법
WO2013185685A1 (zh) 机顶盒开机广告播放的方法、系统及机顶盒
US9461957B2 (en) Method and apparatus for social network communication over a media network
US20120036549A1 (en) Method and apparatus for interacting with a set-top box based on sensor events from a user device
US11755303B2 (en) System and method for managing playback of streaming digital content
WO2011130973A1 (zh) 一种移动终端电视互动业务的实现方法和系统
WO2012065550A1 (zh) 多媒体终端和ip机顶盒之间的互动方法和系统
US9788073B2 (en) Method and apparatus for selection and presentation of media content
WO2015096687A1 (zh) 移动通信终端控制智能电视播放视频文件的方法及装置
WO2013139138A1 (zh) 一种互动消息展示方法、装置及系统
JP2015513844A (ja) セットトップボックスのインタラクション方法および関連するセットトップボックスとシステム
CA2981693C (en) Reception apparatus, transmission apparatus, and data processing method
WO2018000743A1 (zh) 一种用于跨设备群聊的方法及电子设备
WO2013189436A2 (zh) 一种基于网络电视实现网络广播的方法、装置及网络电视
WO2008141542A1 (fr) Procédé, dispositif vidéo et système pour l&#39;affichage d&#39;informations au moment d&#39;une commutation de canaux
CN113132194A (zh) 一种信息流转方法、装置、设备、服务器及存储介质
US8973082B2 (en) Interactive program system
WO2012146028A1 (zh) 基于iptv系统实现web频道的方法、装置及iptv系统
TWI551126B (zh) 聯網電視幼教監控系統及其監控方法
CN105635850A (zh) 一种ip终端从网关获取dvb标准数字电视点播资源的方法
CN112532719A (zh) 信息流的推送方法、装置、设备及计算机可读存储介质
CN112929328A (zh) 基于路由器一对多的屏幕共享实现方法及系统

Legal Events

Date Code Title Description
122 Ep: pct application non-entry in european phase

Ref document number: 13807794

Country of ref document: EP

Kind code of ref document: A2