WO2016107116A1 - Internet protocol television play control method, device and computer storage medium - Google Patents

Internet protocol television play control method, device and computer storage medium Download PDF

Info

Publication number
WO2016107116A1
WO2016107116A1 PCT/CN2015/082401 CN2015082401W WO2016107116A1 WO 2016107116 A1 WO2016107116 A1 WO 2016107116A1 CN 2015082401 W CN2015082401 W CN 2015082401W WO 2016107116 A1 WO2016107116 A1 WO 2016107116A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
play
control message
playback
control
Prior art date
Application number
PCT/CN2015/082401
Other languages
French (fr)
Chinese (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 WO2016107116A1 publication Critical patent/WO2016107116A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • the present invention relates to the field of Internet Protocol Television (IPTV), and in particular, to a IPTV playback control method and apparatus, and a computer storage medium.
  • IPTV Internet Protocol Television
  • IPTV IPTV
  • STB Network Set Top Box
  • the underlying core media processing component of IPTV media processing is a multimedia framework, and the main functions of the multimedia framework are composed of the following components:
  • Stream input module responsible for sending a local file stream or a network stream or a TV stream (TS, Transport Stream) into a loop buffer (Buffer).
  • Stream separation module responsible for separating the byte stream in the loop Buffer into audio and video data.
  • Decoding module responsible for decoding the separated audio and video data, that is, decoding the audio data into directly playable pulse code modulation (PCM) data, and decoding the video data into a liquid crystal display (LCD, Liquid) YUV data displayed in Crystal Display); where YUV is the type of real color space compiled, specifically, Y represents brightness, U represents chromaticity, V represents density; YUV format is divided into compact format and planar format.
  • PCM directly playable pulse code modulation
  • Synchronization processing module responsible for synchronizing the decoded audio and video data and time information.
  • Display module responsible for outputting synchronized audio and video data, such as audio through integrated circuit built-in audio bus (I2S, Inter-IC Sound), Sony Philips digital audio interface (SPDIF, Sony/Philips Digital Interface Format) output, the video is output through High Definition Multimedia Interface (HDMI), Composite Video Broadcasting and CVBS (Composite Video Broadcast Signal).
  • I2S integrated circuit built-in audio bus
  • SPDIF Sony Philips digital audio interface
  • HDMI High Definition Multimedia Interface
  • CVBS Composite Video Broadcast Signal
  • the IPTV service system has two types of data from the application layer: one is control messages, and the other is media stream data; how to ensure smooth playback of media stream data, and ensure that the IPTV system can respond and process control messages in time, becoming An issue that the IPTV system needs to solve.
  • the embodiment of the present invention is to provide a IPTV playback control method, apparatus, and computer storage medium, which can effectively ensure that the IPTV responds to the control message in time while implementing smooth playback of the media stream data.
  • An embodiment of the present invention provides a playback control method for an IPTV, where the method includes:
  • control message When the control message does not belong to the preset global message set, the control message is responded to when the control message has a corresponding relationship with the acquired current state of the IPTV according to the corresponding relationship between the preset control message and the IPTV state.
  • the method further includes:
  • control message does not belong to the preset global message set, and determines that the control message does not correspond to the acquired current state of the IPTV, the control message is ignored.
  • the correspondence between the preset control message and the IPTV status includes:
  • the control message corresponding to the idle state includes starting to play the message
  • the control message corresponding to the first frame state includes a first frame playing message and a stop playing message
  • the control message corresponding to the play status includes a pause play message, a stop play message, a resume play message, and an end play message;
  • the control message corresponding to the pause state includes stopping the play message, restoring the play message, and fast forwarding the message;
  • the control message corresponding to the fast forward state includes stopping the playing message, restoring the playing message, and fast forwarding the message;
  • the control message corresponding to the end state includes stopping the play message.
  • the method when the IPTV is in a playing state, the method further includes:
  • the current frame is abandoned to continue playing, and the playback cycle of the next frame is entered.
  • the embodiment of the present invention further provides a playback control device for an IPTV, where the device includes: a message receiving module, a global message response module, and a status message response module;
  • a message receiving module configured to receive a control message
  • a global message response module configured to respond to the control message when the control message belongs to a preset global message set
  • the status message response module is configured to: when the control message does not belong to the preset global message set, determine, according to the correspondence between the preset control message and the IPTV status, that the control message has a corresponding relationship with the acquired current state of the IPTV Responding to the control message.
  • the device further includes:
  • An idle state module configured to respond to a start play message corresponding to an idle state
  • the first frame status module is configured to play a message in response to the first frame corresponding to the first frame state, and stop playing the message;
  • a play status module configured to respond to a pause play message corresponding to a play status, Stop playing the message, resume playing the message, and end the playback message;
  • a pause state module configured to respond to a stop play message, a resume play message, and a fast forward play message corresponding to the pause state
  • the fast forward status module is configured to respond to the stop play message, the resume play message, and the fast forward play message corresponding to the fast forward state;
  • the end status module is configured to respond to the stop play message corresponding to the end status.
  • the play status module includes:
  • the actual time monitoring unit is configured to obtain the actual consumed time of the playing cycle of the current frame
  • the estimated time acquisition unit is configured to acquire the playback cycle of the current frame and is expected to consume time
  • the frame discarding unit is configured to, when the sum of the actual consumed time and the estimated required time is greater than a preset threshold, abandon the continuous playing of the current frame and enter a playing cycle of the next frame.
  • the estimated time obtaining unit includes:
  • the next time acquisition unit is configured to obtain the estimated time spent in the next step of the playback loop to be executed.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the IPTV playback control method described above.
  • the IPTV broadcast control method and apparatus and the computer storage medium provided by the embodiments of the present invention divide the IPTV into multiple states, and divide the control message into a state-independent global message and a status message responding in a specific state. Ensure that the global message is preferentially responded, and the status message is only responded to in the corresponding state; thus, the IPTV can respond to the control message in time, and the illegal control message can be prevented from affecting the normal playback of the media stream, so that the media stream The playback is smoother. Further, in the playing state, the sum of the actual consumed time of the current frame and the estimated time required to be consumed does not exceed the preset threshold, and the smooth playback of the media stream can be better ensured.
  • FIG. 1 is a schematic flowchart of an implementation process of a IPTV playback control method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of correspondence between a control message and an IPTV state in a frame IPTV playback control method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a structure of an IPTV playback control apparatus according to an embodiment of the present invention.
  • the IPTV is pre-defined according to the state attribute of the IPTV player into six states, namely, an idle (IDLE) state, a first frame (FIRSTFRM) state, a play (PLAY) state, and a pause ( PAUSE) state, fast forward (FAST) state, end (EOS) state; usually, the current state of the IPTV player can be obtained through the "get interface", that is, the current state of the IPTV is obtained.
  • FIRSTFRM first frame
  • PLAY play
  • PAUSE pause
  • FAST fast forward
  • EOS end
  • control message is divided into a state-independent global message and a status message that responds in a specific state; and a global message set, a control message, and an IPTV state are defined in advance; wherein, the global message set It consists of a state-independent control message; the correspondence between the control message and the IPTV state describes which control messages are responded in a particular state.
  • FIG. 1 is a schematic flowchart of an implementation process of a IPTV playback control method according to an embodiment of the present invention. As shown in FIG. 1 , the method mainly includes the following steps:
  • Step 101 Receive a control message.
  • the IPTV player can receive the control message sent by the IPTV upper layer service module.
  • the IPTV upper layer service module passes the hardware abstraction layer (HAL, Hardware). Abstraction Layer) sends a control message to the player.
  • HAL hardware abstraction layer
  • Abstraction Layer Some of these control messages belong to the global message set, such as: switching channel messages, standby messages, etc.; some are not part of the global message set, only executed in a specific state, for example: start playing (CMD_PLAYER_START) message, stop playing ( CMD_PLAYER_STOP) message, etc.
  • the control message belonging to the global message set needs to be preferentially responded.
  • Step 102 When the control message belongs to a preset global message set, respond to the control message;
  • the IPTV determines whether the currently received control message is one of the global message sets, and if so, the control message belongs to a preset global message set and responds to the control message.
  • Step 103 When the control message does not belong to the preset global message set, according to the correspondence between the preset control message and the IPTV state, when the control message is determined to have a corresponding relationship with the acquired current state of the IPTV, Control messages.
  • the current status of the IPTV is obtained, and according to the correspondence between the preset control message and the IPTV status, it is determined whether the control message has a current status of the IPTV. Corresponding relationship, when it is determined that the control message has a corresponding relationship with the current state of the IPTV, indicating that the control message should be responded to in the current state of the IPTV, responding to the control message.
  • the correspondence between the control message and the IPTV status is as shown in FIG. 2, and includes:
  • the control message corresponding to the IDLE state includes a start playing (CMD_PLAYER_START) message;
  • the control message corresponding to the FIRSTFRM state includes a first frame play (CMD_PLAYER_FSTFRM) message, a stop play (CMD_PLAYER_STOP) message;
  • the control message corresponding to the PLAY state includes: pause play (CMD_PLAYER_PAUSE) message, stop playing (CMD_PLAYER_STOP) message, resume playback (CMD_PLAYER_RESUME) message, end playback (CMD_PLAYER_EOS) message;
  • the control message corresponding to the PAUSE state includes a stop play (CMD_PLAYER_STOP) message, a resume play (CMD_PLAYER_RESUME) message, and a fast forward play (CMD_PLAYER_FAST) message;
  • the control message corresponding to the FAST state includes a stop play (CMD_PLAYER_STOP) message, a resume play (CMD_PLAYER_RESUME) message, and a fast forward play (CMD_PLAYER_FAST) message;
  • the control message corresponding to the EOS state includes a stop play (CMD_PLAYER_STOP) message.
  • IDLE is the initial state, and the IDLE state can be migrated to the FIRSTFRM state only after receiving the CMD_PLAYER_START message.
  • CMD_PLAYER_FSTFRM migrates to the PLAY state.
  • the PLAY state reaches the end of the file stream, it actively sends the CMD_PLAYER_EOS message to enter the EOS state.
  • the EOS state is determined, when the packet in the audio/video queue and the decoding waiting display queue is played, the initiative is initiated.
  • the CMD_PLAY_STOP message is sent internally to enter the IDLE state. This is a basic normal playback process. EOS and FIRSTFRM are unstable and will not stay too long.
  • PLAY, IDLE, PAUSE, and FAST are stable and can reside for a long time. In this state, the states are concatenated by messages.
  • control message when the control message does not belong to a preset global message set, and it is determined that the control message does not have a corresponding relationship with the acquired current state of the IPTV, the control message is ignored.
  • the current control message is a fast forward play message
  • the current status of the IPTV is an IDLE state
  • the control message does not belong to the preset global message set, and the step is determined in step 103.
  • the control message does not have a corresponding relationship with the IDLE state.
  • the fast forward play message may be considered as an illegal message and cannot be responded, and the fast forward play is ignored. Message.
  • the IPTV can quickly respond to the global message, and the illegal message can be ignored in time, so that the playback of the media stream is not affected by the illegal message.
  • demultiplexing, audio output, audio decoding, video output, and video decoding are playback cycles for one frame.
  • the first frame state since the first frame state is entered, the first frame state has been decoded.
  • the data of the first frame can be subjected to audio output, audio decoding, video output, video decoding of the first frame and then demultiplexed for the next frame when entering the playing state. Therefore, the playback cycle of each frame in the present invention refers to: audio output, audio decoding, video output, video decoding, and demultiplexing of the next frame data.
  • the time spent on the playback cycle for each frame should not exceed a reasonable threshold, typically 20 milliseconds (ms). Therefore, when the time consumed for the playback cycle of a certain frame exceeds the threshold, the frame should be discarded decisively to avoid affecting the playback of subsequent media streams.
  • a reasonable threshold typically 20 milliseconds (ms). Therefore, when the time consumed for the playback cycle of a certain frame exceeds the threshold, the frame should be discarded decisively to avoid affecting the playback of subsequent media streams.
  • the IPTV when the IPTV is in the playing state, the IPTV needs to perform the following steps:
  • Step A Obtain an actual consumed time of a play cycle of the current frame
  • step B it takes time to acquire the playback cycle of the current frame.
  • step C when the sum of the actual consumed time and the estimated required consumption time is greater than a preset threshold, the current frame is discarded and the playback cycle of the next frame is entered.
  • the playback time of the current frame may also be time consuming to be represented by the expected time of the next step in the playback loop to be executed, because if it is expected to execute the next step in the playback loop Exceeding the preset threshold (20ms) is enough to indicate that the current frame should be discarded and the playback loop of the next frame is entered.
  • the audio output, audio decoding, video output, video decoding, and demultiplexing are actually run in the playback cycle of the current frame as T1, T2, T3, T4, and T5, respectively.
  • the time required for audio output, audio decoding, video output, video decoding, and demultiplexing in any one frame playback cycle is t1, t2, t3, t4, t5; where t1, t2, t3, t4
  • the initial values of t5 and t5 are 1ms, 2ms, 1ms, 4ms, 1ms, and 12ms, respectively;
  • the playback control apparatus includes: a message receiving module 301, a global message response module 302, and a status message response module 303;
  • the message receiving module 301 is configured to receive a control message.
  • the global message response module 302 is configured to respond to the control message when the control message belongs to a preset global message set;
  • the status message response module 303 is configured to determine, according to the correspondence between the preset control message and the IPTV status, that the control message has a corresponding relationship with the current state of the acquired IPTV, when the control message does not belong to the preset global message set. Responding to the control message.
  • the above playback control apparatus further includes:
  • An idle state module configured to respond to a start play message corresponding to an idle state
  • a first frame status module configured to play in response to a first frame corresponding to a first frame state Message, stop playing the message
  • the play status module is configured to respond to the pause play message corresponding to the play status, stop playing the message, resume playing the message, and end the play message;
  • a pause state module configured to respond to a stop play message, a resume play message, and a fast forward play message corresponding to the pause state
  • the fast forward status module is configured to respond to the stop play message, the resume play message, and the fast forward play message corresponding to the fast forward state;
  • the end status module is configured to respond to the stop play message corresponding to the end status.
  • the play status module includes:
  • the actual time monitoring unit is configured to obtain the actual consumed time of the playing cycle of the current frame
  • the estimated time acquisition unit is configured to acquire the playback cycle of the current frame and is expected to consume time
  • the frame discarding unit is configured to, when the sum of the actual consumed time and the estimated required time is greater than a preset threshold, abandon the continuous playing of the current frame and enter a playing cycle of the next frame.
  • the estimated time acquisition unit includes:
  • the next time acquisition unit is configured to obtain the estimated time spent in the next step of the playback loop to be executed.
  • Each of the above modules and each unit may be implemented by a Central Processing Unit (CPU), a Micro Processor Unit (MPU), and a Digital Signal Processor (DSP) located in the IPTV. Or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the IPTV playback control method shown in FIG. 1 in the embodiment of the present invention.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ hardware embodiments, software embodiments, or junctions. In the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • control message when the control message belongs to a preset global message set, responding to the control message; when the control message does not belong to a preset global message set, according to the preset Corresponding relationship between the control message and the IPTV state, determining that the control message has a corresponding relationship with the acquired current state of the IPTV, responding to the control message; thus, ensuring that the IPTV can respond to the control message in time, and avoiding illegal control
  • the message affects the normal playback of the media stream, making the media stream play smoother.

Abstract

Disclosed is an internet protocol television (IPTV) play control method, comprising: receiving a control message; if the control message belongs to a preset global message set, then responding to the control message; if the control message does not belong to the preset global massage set, then responding to the control message if the control message is determined to correspond to an acquired IPTV current state according to correspondences between the preset control messages and IPTV states. Also disclosed are an IPTV play control device and computer storage medium.

Description

交互式网络电视的播放控制方法、装置及计算机存储介质Playback control method, device and computer storage medium for interactive network television 技术领域Technical field
本发明涉及交互式网络电视(IPTV,Internet Protocol Television)领域,尤其涉及一种IPTV的播放控制方法、装置及计算机存储介质。The present invention relates to the field of Internet Protocol Television (IPTV), and in particular, to a IPTV playback control method and apparatus, and a computer storage medium.
背景技术Background technique
IPTV业务是伴随着宽带互联网的飞速发展而兴起的一项新兴的互联网增值业务,能为用户提供电信级别的智能式服务和使用简便的电视式体验。IPTV利用宽带互联网的基础设施,利用家用电视机和电脑作为主要终端,利用网络机顶盒(STB,Set Top Box),通过互联网协议来传送电视信号,提供包括电视节目在内的多种数字媒体服务。The IPTV service is an emerging Internet value-added service that has emerged along with the rapid development of broadband Internet. It can provide users with telecom-level intelligent services and easy-to-use TV-style experiences. IPTV utilizes the infrastructure of broadband Internet, using home TV sets and computers as the main terminals, and uses the Network Set Top Box (STB, Set Top Box) to transmit TV signals through Internet Protocol, providing a variety of digital media services including TV programs.
IPTV媒体处理的底层核心媒体处理部件是多媒体框架,该多媒体框架负责的主要功能包括以下几个部分组成:The underlying core media processing component of IPTV media processing is a multimedia framework, and the main functions of the multimedia framework are composed of the following components:
1)流输入模块:负责将本地文件流或网络流或电视信号流(TS,Transport Stream)送入循环缓存(Buffer)。1) Stream input module: responsible for sending a local file stream or a network stream or a TV stream (TS, Transport Stream) into a loop buffer (Buffer).
2)流分离模块:负责循环Buffer中的字节流分离为音频和视频数据。2) Stream separation module: responsible for separating the byte stream in the loop Buffer into audio and video data.
3)解码模块:负责将分离出来的音视频数据进行解码,即将音频数据解码为可直接播放的脉冲编码调制(PCM,Pulse Code Modulation)数据,将视频数据解码为能在液晶显示器(LCD,Liquid Crystal Display)中显示的YUV数据;其中,YUV是编译真实颜色空间的种类,具体的,Y表示明亮度,U表示色度,V表示浓度;YUV的格式分为紧缩格式和平面格式。3) Decoding module: responsible for decoding the separated audio and video data, that is, decoding the audio data into directly playable pulse code modulation (PCM) data, and decoding the video data into a liquid crystal display (LCD, Liquid) YUV data displayed in Crystal Display); where YUV is the type of real color space compiled, specifically, Y represents brightness, U represents chromaticity, V represents density; YUV format is divided into compact format and planar format.
4)同步处理模块:负责解码后的音视频数据及时间信息等作同步处理。4) Synchronization processing module: responsible for synchronizing the decoded audio and video data and time information.
5)显示模块:负责输出经同步处理后的音视频数据,例如音频通过集成电路内置音频总线(I2S,Inter-IC Sound)、索尼飞利浦数字音频接口 (SPDIF,Sony/Philips Digital Interface Format)输出,视频通过高清晰度多媒体接口(HDMI,High Definition Multimedia Interface)、复合视频消隐和同步(CVBS,Composite Video Broadcast Signal)输出。5) Display module: responsible for outputting synchronized audio and video data, such as audio through integrated circuit built-in audio bus (I2S, Inter-IC Sound), Sony Philips digital audio interface (SPDIF, Sony/Philips Digital Interface Format) output, the video is output through High Definition Multimedia Interface (HDMI), Composite Video Broadcasting and CVBS (Composite Video Broadcast Signal).
一般,IPTV业务系统从应用层下来的有两类数据:一类是控制消息,一类是媒体流数据;如何既保证媒体流数据播放流畅,又保证IPTV系统能及时响应和处理控制消息,成为IPTV系统亟需解决的一个问题。Generally, the IPTV service system has two types of data from the application layer: one is control messages, and the other is media stream data; how to ensure smooth playback of media stream data, and ensure that the IPTV system can respond and process control messages in time, becoming An issue that the IPTV system needs to solve.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种IPTV的播放控制方法、装置及计算机存储介质,能在有效保证IPTV及时响应控制消息的同时实现媒体流数据的平滑播放。In view of this, the embodiment of the present invention is to provide a IPTV playback control method, apparatus, and computer storage medium, which can effectively ensure that the IPTV responds to the control message in time while implementing smooth playback of the media stream data.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种IPTV的播放控制方法,该方法包括:An embodiment of the present invention provides a playback control method for an IPTV, where the method includes:
接收控制消息;Receiving a control message;
当所述控制消息属于预设的全局消息集合时,响应所述控制消息;And responding to the control message when the control message belongs to a preset global message set;
当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。When the control message does not belong to the preset global message set, the control message is responded to when the control message has a corresponding relationship with the acquired current state of the IPTV according to the corresponding relationship between the preset control message and the IPTV state.
上述方案中,所述方法还包括:In the above solution, the method further includes:
当所述控制消息不属于预设的全局消息集合,并确定所述控制消息与获取的IPTV当前状态没有对应关系时,忽略所述控制消息。When the control message does not belong to the preset global message set, and determines that the control message does not correspond to the acquired current state of the IPTV, the control message is ignored.
上述方案中,所述预设的控制消息与IPTV状态的对应关系包括:In the above solution, the correspondence between the preset control message and the IPTV status includes:
空闲状态对应的控制消息包括开始播放消息;The control message corresponding to the idle state includes starting to play the message;
第一帧状态对应的控制消息包括第一帧播放消息、停止播放消息;The control message corresponding to the first frame state includes a first frame playing message and a stop playing message;
播放状态对应的控制消息包括暂停播放消息、停止播放消息、恢复播放消息、结束播放消息; The control message corresponding to the play status includes a pause play message, a stop play message, a resume play message, and an end play message;
暂停状态对应的控制消息包括停止播放消息、恢复播放消息、快进播放消息;The control message corresponding to the pause state includes stopping the play message, restoring the play message, and fast forwarding the message;
快进状态对应的控制消息包括停止播放消息、恢复播放消息、快进播放消息;The control message corresponding to the fast forward state includes stopping the playing message, restoring the playing message, and fast forwarding the message;
结束状态对应的控制消息包括停止播放消息。The control message corresponding to the end state includes stopping the play message.
上述方案中,当IPTV处于播放状态时,所述方法还包括:In the foregoing solution, when the IPTV is in a playing state, the method further includes:
获取当前帧的播放循环实际已消耗时间;Get the actual consumed time of the playback loop of the current frame;
获取当前帧的播放循环还需消耗时间;It takes time to acquire the playback loop of the current frame;
在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。When the sum of the actual consumed time and the estimated required consumption time is greater than a preset threshold, the current frame is abandoned to continue playing, and the playback cycle of the next frame is entered.
上述方案中,所述当前帧的播放循环还需消耗时间为:In the above solution, the playback cycle of the current frame needs to consume time:
播放循环中即将被执行的下一步所预计消耗的时间。The estimated time spent in the next step of the playback loop that will be executed.
本发明实施例还提供一种IPTV的播放控制装置,该装置包括:消息接收模块、全局消息响应模块以及状态消息响应模块;其中,The embodiment of the present invention further provides a playback control device for an IPTV, where the device includes: a message receiving module, a global message response module, and a status message response module;
消息接收模块,配置为接收控制消息;a message receiving module configured to receive a control message;
全局消息响应模块,配置为当所述控制消息属于预设的全局消息集合时,响应所述控制消息;a global message response module, configured to respond to the control message when the control message belongs to a preset global message set;
状态消息响应模块,配置为当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。The status message response module is configured to: when the control message does not belong to the preset global message set, determine, according to the correspondence between the preset control message and the IPTV status, that the control message has a corresponding relationship with the acquired current state of the IPTV Responding to the control message.
上述方案中,所述装置还包括:In the above solution, the device further includes:
空闲状态模块,配置为响应与空闲状态有对应关系的开始播放消息;An idle state module configured to respond to a start play message corresponding to an idle state;
第一帧状态模块,配置为响应与第一帧状态有对应关系的第一帧播放消息、停止播放消息;The first frame status module is configured to play a message in response to the first frame corresponding to the first frame state, and stop playing the message;
播放状态模块,配置为响应与播放状态有对应关系的暂停播放消息、 停止播放消息、恢复播放消息、结束播放消息;a play status module configured to respond to a pause play message corresponding to a play status, Stop playing the message, resume playing the message, and end the playback message;
暂停状态模块,配置为响应与暂停状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;a pause state module configured to respond to a stop play message, a resume play message, and a fast forward play message corresponding to the pause state;
快进状态模块,配置为响应与快进状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;The fast forward status module is configured to respond to the stop play message, the resume play message, and the fast forward play message corresponding to the fast forward state;
结束状态模块,配置为响应与结束状态有对应关系的停止播放消息。The end status module is configured to respond to the stop play message corresponding to the end status.
上述方案中,所述播放状态模块包括:In the above solution, the play status module includes:
实际时间监测单元,配置为获取当前帧的播放循环实际已消耗时间;The actual time monitoring unit is configured to obtain the actual consumed time of the playing cycle of the current frame;
预计时间获取单元,配置为获取当前帧的播放循环预计还需消耗时间;The estimated time acquisition unit is configured to acquire the playback cycle of the current frame and is expected to consume time;
帧丢弃单元,配置为在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。The frame discarding unit is configured to, when the sum of the actual consumed time and the estimated required time is greater than a preset threshold, abandon the continuous playing of the current frame and enter a playing cycle of the next frame.
上述方案中,所述预计时间获取单元包括:In the above solution, the estimated time obtaining unit includes:
下一步时间获取单元,配置为获取播放循环中即将被执行的下一步所预计消耗的时间。The next time acquisition unit is configured to obtain the estimated time spent in the next step of the playback loop to be executed.
本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的IPTV播放控制方法。An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the IPTV playback control method described above.
本发明实施例所提供的IPTV播放控制方法、装置及计算机存储介质,通过将IPTV划分为多种状态,并预先将控制消息划分为与状态无关的全局消息和在特定状态下响应的状态消息,保证全局消息优先被响应,而状态消息只在与其对应的状态下才被响应;如此,既可保证IPTV能及时响应控制消息,又可避免非法的控制消息影响媒体流的正常播放,使得媒体流播放更平滑;进一步的,在播放状态下,限制当前帧的播放循环实际已消耗时间与预计还需消耗时间之和不超过预设阈值,能更好的保证媒体流的平滑播放。 The IPTV broadcast control method and apparatus and the computer storage medium provided by the embodiments of the present invention divide the IPTV into multiple states, and divide the control message into a state-independent global message and a status message responding in a specific state. Ensure that the global message is preferentially responded, and the status message is only responded to in the corresponding state; thus, the IPTV can respond to the control message in time, and the illegal control message can be prevented from affecting the normal playback of the media stream, so that the media stream The playback is smoother. Further, in the playing state, the sum of the actual consumed time of the current frame and the estimated time required to be consumed does not exceed the preset threshold, and the smooth playback of the media stream can be better ensured.
附图说明DRAWINGS
图1为本发明实施例提供的IPTV的播放控制方法的实现流程示意图;1 is a schematic flowchart of an implementation process of a IPTV playback control method according to an embodiment of the present invention;
图2本发明实施例提供的一帧IPTV的播放控制方法中控制消息与IPTV状态的对应关系示意图;2 is a schematic diagram of correspondence between a control message and an IPTV state in a frame IPTV playback control method according to an embodiment of the present invention;
图3为本发明实施例提供的IPTV的播放控制装置的组成结构示意图。FIG. 3 is a schematic structural diagram of a structure of an IPTV playback control apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为了更清楚地说明本发明实施例和技术方案,下面将结合附图及实施例对本发明的技术方案进行更详细的说明,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明的实施例,本领域普通技术人员在不付出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to explain the embodiments and technical solutions of the present invention more clearly, the technical solutions of the present invention will be described in more detail below with reference to the accompanying drawings and embodiments. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all Example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
在本发明实施例中,根据IPTV播放器的状态(state)属性预先定义IPTV分为六种状态,即:空闲(IDLE)状态、第一帧(FIRSTFRM)状态、播放(PLAY)状态、暂停(PAUSE)状态、快进(FAST)状态、结束(EOS)状态;通常,可通过“get接口”获取当前IPTV播放器的状态(state)属性,即:获取IPTV的当前状态。此外,本发明实施例中预先将控制消息划分为与状态无关的全局消息和在特定状态下响应的状态消息;并预先定义全局消息集合、控制消息与IPTV状态的对应关系;其中,全局消息集合由与状态无关的控制消息组成;控制消息与IPTV状态的对应关系描述在特定状态下哪些控制消息被响应。In the embodiment of the present invention, the IPTV is pre-defined according to the state attribute of the IPTV player into six states, namely, an idle (IDLE) state, a first frame (FIRSTFRM) state, a play (PLAY) state, and a pause ( PAUSE) state, fast forward (FAST) state, end (EOS) state; usually, the current state of the IPTV player can be obtained through the "get interface", that is, the current state of the IPTV is obtained. In addition, in the embodiment of the present invention, the control message is divided into a state-independent global message and a status message that responds in a specific state; and a global message set, a control message, and an IPTV state are defined in advance; wherein, the global message set It consists of a state-independent control message; the correspondence between the control message and the IPTV state describes which control messages are responded in a particular state.
图1为本发明实施例提供的IPTV的播放控制方法的实现流程示意图,如图1所示,该方法主要包括以下步骤:FIG. 1 is a schematic flowchart of an implementation process of a IPTV playback control method according to an embodiment of the present invention. As shown in FIG. 1 , the method mainly includes the following steps:
步骤101,接收控制消息;Step 101: Receive a control message.
在播放线程启动后,IPTV播放器可接收来自IPTV上层业务模块下发的控制消息,一般,IPTV上层业务模块通过硬件抽象层(HAL,Hardware  Abstraction Layer)向播放器下发控制消息。这些控制消息,有些归属于全局消息集合,例如:切换频道消息、待机消息等;有些则不属于全局消息集合,只有在特定状态下才被执行,例如:开始播放(CMD_PLAYER_START)消息、停止播放(CMD_PLAYER_STOP)消息等。其中,属于全局消息集合的控制消息需要被优先响应。After the play thread is started, the IPTV player can receive the control message sent by the IPTV upper layer service module. Generally, the IPTV upper layer service module passes the hardware abstraction layer (HAL, Hardware). Abstraction Layer) sends a control message to the player. Some of these control messages belong to the global message set, such as: switching channel messages, standby messages, etc.; some are not part of the global message set, only executed in a specific state, for example: start playing (CMD_PLAYER_START) message, stop playing ( CMD_PLAYER_STOP) message, etc. Among them, the control message belonging to the global message set needs to be preferentially responded.
步骤102,当所述控制消息属于预设的全局消息集合时,响应所述控制消息;Step 102: When the control message belongs to a preset global message set, respond to the control message;
在一实施例中,IPTV判断当前接收的控制消息是否是全局消息集合中的一个,如果是,则该控制消息属于预设的全局消息集合,响应该控制消息。In an embodiment, the IPTV determines whether the currently received control message is one of the global message sets, and if so, the control message belongs to a preset global message set and responds to the control message.
步骤103,当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。Step 103: When the control message does not belong to the preset global message set, according to the correspondence between the preset control message and the IPTV state, when the control message is determined to have a corresponding relationship with the acquired current state of the IPTV, Control messages.
在一实施例中,当所述控制消息不属于预设的全局消息集合时,获取IPTV当前状态,并根据预设的控制消息与IPTV状态的对应关系,判断该控制消息是否与IPTV当前状态有对应关系,当确定该控制消息与IPTV当前状态有对应关系时,表明该控制消息在IPTV当前状态下应该被响应,则响应该控制消息。In an embodiment, when the control message does not belong to the preset global message set, the current status of the IPTV is obtained, and according to the correspondence between the preset control message and the IPTV status, it is determined whether the control message has a current status of the IPTV. Corresponding relationship, when it is determined that the control message has a corresponding relationship with the current state of the IPTV, indicating that the control message should be responded to in the current state of the IPTV, responding to the control message.
在一个实施例中,控制消息与IPTV状态的对应关系如图2所示,包括:In an embodiment, the correspondence between the control message and the IPTV status is as shown in FIG. 2, and includes:
IDLE状态对应的控制消息包括开始播放(CMD_PLAYER_START)消息;The control message corresponding to the IDLE state includes a start playing (CMD_PLAYER_START) message;
FIRSTFRM状态对应的控制消息包括第一帧播放(CMD_PLAYER_FSTFRM)消息、停止播放(CMD_PLAYER_STOP)消息;The control message corresponding to the FIRSTFRM state includes a first frame play (CMD_PLAYER_FSTFRM) message, a stop play (CMD_PLAYER_STOP) message;
PLAY状态对应的控制消息包括:暂停播放(CMD_PLAYER_PAUSE)消息、停止播放(CMD_PLAYER_STOP)消息、恢复播放 (CMD_PLAYER_RESUME)消息、结束播放(CMD_PLAYER_EOS)消息;The control message corresponding to the PLAY state includes: pause play (CMD_PLAYER_PAUSE) message, stop playing (CMD_PLAYER_STOP) message, resume playback (CMD_PLAYER_RESUME) message, end playback (CMD_PLAYER_EOS) message;
PAUSE状态对应的控制消息包括停止播放(CMD_PLAYER_STOP)消息、恢复播放(CMD_PLAYER_RESUME)消息、快进播放(CMD_PLAYER_FAST)消息;The control message corresponding to the PAUSE state includes a stop play (CMD_PLAYER_STOP) message, a resume play (CMD_PLAYER_RESUME) message, and a fast forward play (CMD_PLAYER_FAST) message;
FAST状态对应的控制消息包括停止播放(CMD_PLAYER_STOP)消息、恢复播放(CMD_PLAYER_RESUME)消息、快进播放(CMD_PLAYER_FAST)消息;The control message corresponding to the FAST state includes a stop play (CMD_PLAYER_STOP) message, a resume play (CMD_PLAYER_RESUME) message, and a fast forward play (CMD_PLAYER_FAST) message;
EOS状态对应的控制消息包括停止播放(CMD_PLAYER_STOP)消息。The control message corresponding to the EOS state includes a stop play (CMD_PLAYER_STOP) message.
其中,IDLE为初始状态,IDLE状态只有接受到CMD_PLAYER_START消息后,可以迁移到FIRSTFRM状态。FIRSTFRM状态响应CMD_PLAYER_FSTFRM后迁移到PLAY状态,PLAY状态到达文件流末尾时主动自己下发CMD_PLAYER_EOS消息,进入EOS状态,EOS状态时,当判断音视频队列与解码等待显示队列中的包播放完毕时,主动内部发送CMD_PLAY_STOP消息,进入IDLE状态,这个为一个基本的正常播放流程;其中EOS与FIRSTFRM为不稳定状态,不会停留太长时间;PLAY、IDLE、PAUSE、FAST为稳定状态,可以长期驻留在该状态,状态之间通过消息进行串联。Among them, IDLE is the initial state, and the IDLE state can be migrated to the FIRSTFRM state only after receiving the CMD_PLAYER_START message. After the FIRSTFRM state response CMD_PLAYER_FSTFRM, it migrates to the PLAY state. When the PLAY state reaches the end of the file stream, it actively sends the CMD_PLAYER_EOS message to enter the EOS state. When the EOS state is determined, when the packet in the audio/video queue and the decoding waiting display queue is played, the initiative is initiated. The CMD_PLAY_STOP message is sent internally to enter the IDLE state. This is a basic normal playback process. EOS and FIRSTFRM are unstable and will not stay too long. PLAY, IDLE, PAUSE, and FAST are stable and can reside for a long time. In this state, the states are concatenated by messages.
在一实施例中,上述方案中,当所述控制消息不属于预设的全局消息集合,并确定所述控制消息与获取的IPTV当前状态没有对应关系时,忽略所述控制消息。In an embodiment, in the foregoing solution, when the control message does not belong to a preset global message set, and it is determined that the control message does not have a corresponding relationship with the acquired current state of the IPTV, the control message is ignored.
在一个实施例中,例如当前控制消息为快进播放消息,而IPTV当前状态为IDLE状态;在上述步骤102中已确定该控制消息不属于预设的全局消息集合,并在步骤103中确定该控制消息与IDLE状态没有对应关系,此时,可认为该快进播放消息为非法消息,不能被响应,则忽略该快进播放 消息。In an embodiment, for example, the current control message is a fast forward play message, and the current status of the IPTV is an IDLE state; in the above step 102, it is determined that the control message does not belong to the preset global message set, and the step is determined in step 103. The control message does not have a corresponding relationship with the IDLE state. At this time, the fast forward play message may be considered as an illegal message and cannot be responded, and the fast forward play is ignored. Message.
如此,既能保证IPTV能快速的响应全局消息,又能及时忽略掉非法消息,从而媒体流的播放不受非法消息影响。In this way, the IPTV can quickly respond to the global message, and the illegal message can be ignored in time, so that the playback of the media stream is not affected by the illegal message.
通常情况下,解复用、音频输出、音频解码、视频输出、视频解码为针对一个帧的播放循环,但本发明实施例中,由于进入了第一帧状态,在第一帧状态已经解码出了第一帧的数据,在进入播放状态时,可先进行第一帧的音频输出、音频解码、视频输出、视频解码再进行针对下一帧的解复用。因此,本发明中的每一帧的播放循环指的是:音频输出、音频解码、视频输出、视频解码、解复用下一帧数据。In general, demultiplexing, audio output, audio decoding, video output, and video decoding are playback cycles for one frame. However, in the embodiment of the present invention, since the first frame state is entered, the first frame state has been decoded. The data of the first frame can be subjected to audio output, audio decoding, video output, video decoding of the first frame and then demultiplexed for the next frame when entering the playing state. Therefore, the playback cycle of each frame in the present invention refers to: audio output, audio decoding, video output, video decoding, and demultiplexing of the next frame data.
为保证媒体流的平滑播放,针对每一帧的播放循环所用的时间应该不超过合理的阈值,通常是20毫秒(ms)。因此,当针对某一帧的播放循环所消耗的时间超过阈值时,就应该将该帧果断丢弃,以避免影响后续媒体流的播放。To ensure smooth playback of the media stream, the time spent on the playback cycle for each frame should not exceed a reasonable threshold, typically 20 milliseconds (ms). Therefore, when the time consumed for the playback cycle of a certain frame exceeds the threshold, the frame should be discarded decisively to avoid affecting the playback of subsequent media streams.
因此,上述方案中,当IPTV处于播放状态时,IPTV需要执行以下步骤:Therefore, in the above solution, when the IPTV is in the playing state, the IPTV needs to perform the following steps:
步骤A,获取当前帧的播放循环实际已消耗时间;Step A: Obtain an actual consumed time of a play cycle of the current frame;
步骤B,获取当前帧的播放循环还需消耗时间;In step B, it takes time to acquire the playback cycle of the current frame.
步骤C,在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。In step C, when the sum of the actual consumed time and the estimated required consumption time is greater than a preset threshold, the current frame is discarded and the playback cycle of the next frame is entered.
在一个实施例中,所述当前帧的播放循环还需消耗时间可以用播放循环中即将被执行的下一步所预计消耗的时间来代表,因为,如果预计到执行完播放循环中下一步后已经超出预设的阈值(20ms),则足以说明应放弃当前帧,进入下一帧的播放循环。In one embodiment, the playback time of the current frame may also be time consuming to be represented by the expected time of the next step in the playback loop to be executed, because if it is expected to execute the next step in the playback loop Exceeding the preset threshold (20ms) is enough to indicate that the current frame should be discarded and the playback loop of the next frame is entered.
在一个实施例中,音频输出、音频解码、视频输出、视频解码、解复用在当前帧的播放循环中实际运行的时间分别以T1、T2、T3、T4、T5表 示;而任意一帧的播放循环中音频输出、音频解码、视频输出、视频解码、解复用预计所需要的时间为t1、t2、t3、t4、t5;其中,t1、t2、t3、t4、t5的初始值分别为1ms、2ms、1ms、4ms、1ms、12ms;则In one embodiment, the audio output, audio decoding, video output, video decoding, and demultiplexing are actually run in the playback cycle of the current frame as T1, T2, T3, T4, and T5, respectively. The time required for audio output, audio decoding, video output, video decoding, and demultiplexing in any one frame playback cycle is t1, t2, t3, t4, t5; where t1, t2, t3, t4 The initial values of t5 and t5 are 1ms, 2ms, 1ms, 4ms, 1ms, and 12ms, respectively;
音频输出执行完后,若T1+t2>20ms,则不进行下一步音频解码,直接退出;否则,进入下一步;After the audio output is executed, if T1+t2>20ms, the next audio decoding will not be performed and exit directly; otherwise, go to the next step;
音频解码执行完后,若T1+T2+t3>20ms,则不进行下一步视频输出,直接退出;否则,进入下一步;After the audio decoding is completed, if T1+T2+t3>20ms, the next video output will not be performed and exit directly; otherwise, go to the next step;
视频输出执行完后,若T1+T2+T3+t4>20ms,则不进行下一步视频解码,直接退出;否则,进入下一步;After the video output is executed, if T1+T2+T3+t4>20ms, the next step of video decoding will not be performed and exit directly; otherwise, go to the next step;
视频解码执行完后,若T1+T2+T3+T4+t5>20ms,则不进行下一步解复用,直接退出;否则,进入下一步;After the video decoding is completed, if T1+T2+T3+T4+t5>20ms, the next demultiplexing is not performed, and the direct exit; otherwise, the next step is entered;
解复用执行完后,若T1+T2+T3+T4+T5+t6>20ms,则不进行下一步音频输出,直接退出;否则,进入下一步。After the demultiplexing is performed, if T1+T2+T3+T4+T5+t6>20ms, the next audio output will not be performed and exit directly; otherwise, proceed to the next step.
图3是本发明实施例提供的IPTV的播放控制装置的组成结构示意图,如图3所示,该播放控制装置包括:消息接收模块301、全局消息响应模块302以及状态消息响应模块303;其中,3 is a schematic structural diagram of a IPTV playback control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the playback control apparatus includes: a message receiving module 301, a global message response module 302, and a status message response module 303;
消息接收模块301,配置为接收控制消息;The message receiving module 301 is configured to receive a control message.
全局消息响应模块302,配置为当所述控制消息属于预设的全局消息集合时,响应所述控制消息;The global message response module 302 is configured to respond to the control message when the control message belongs to a preset global message set;
状态消息响应模块303,配置为当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。The status message response module 303 is configured to determine, according to the correspondence between the preset control message and the IPTV status, that the control message has a corresponding relationship with the current state of the acquired IPTV, when the control message does not belong to the preset global message set. Responding to the control message.
在一实施例中,上述播放控制装置还包括:In an embodiment, the above playback control apparatus further includes:
空闲状态模块,配置为响应与空闲状态有对应关系的开始播放消息;An idle state module configured to respond to a start play message corresponding to an idle state;
第一帧状态模块,配置为响应与第一帧状态有对应关系的第一帧播放 消息、停止播放消息;a first frame status module configured to play in response to a first frame corresponding to a first frame state Message, stop playing the message;
播放状态模块,配置为响应与播放状态有对应关系的暂停播放消息、停止播放消息、恢复播放消息、结束播放消息;The play status module is configured to respond to the pause play message corresponding to the play status, stop playing the message, resume playing the message, and end the play message;
暂停状态模块,配置为响应与暂停状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;a pause state module configured to respond to a stop play message, a resume play message, and a fast forward play message corresponding to the pause state;
快进状态模块,配置为响应与快进状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;The fast forward status module is configured to respond to the stop play message, the resume play message, and the fast forward play message corresponding to the fast forward state;
结束状态模块,配置为响应与结束状态有对应关系的停止播放消息。The end status module is configured to respond to the stop play message corresponding to the end status.
在一实施例中,上术播放控制装置中,播放状态模块包括:In an embodiment, in the upper playback control device, the play status module includes:
实际时间监测单元,配置为获取当前帧的播放循环实际已消耗时间;The actual time monitoring unit is configured to obtain the actual consumed time of the playing cycle of the current frame;
预计时间获取单元,配置为获取当前帧的播放循环预计还需消耗时间;The estimated time acquisition unit is configured to acquire the playback cycle of the current frame and is expected to consume time;
帧丢弃单元,配置为在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。The frame discarding unit is configured to, when the sum of the actual consumed time and the estimated required time is greater than a preset threshold, abandon the continuous playing of the current frame and enter a playing cycle of the next frame.
在一实施例中,上述播放控制装置中,预计时间获取单元包括:In an embodiment, in the above playback control apparatus, the estimated time acquisition unit includes:
下一步时间获取单元,配置为获取播放循环中即将被执行的下一步所预计消耗的时间。The next time acquisition unit is configured to obtain the estimated time spent in the next step of the playback loop to be executed.
上述各个模块及各个单元在实际应用中,均可由位于IPTV中的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。Each of the above modules and each unit may be implemented by a Central Processing Unit (CPU), a Micro Processor Unit (MPU), and a Digital Signal Processor (DSP) located in the IPTV. Or Field Programmable Gate Array (FPGA) implementation.
本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图1所示的IPTV的播放控制方法。The embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the IPTV playback control method shown in FIG. 1 in the embodiment of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结 合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ hardware embodiments, software embodiments, or junctions. In the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例中,当所述控制消息属于预设的全局消息集合时,响应所述控制消息;当所述控制消息不属于预设的全局消息集合时,根据预设 的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息;如此,既可保证IPTV能及时响应控制消息,又可避免非法的控制消息影响媒体流的正常播放,使得媒体流播放更平滑。 In the embodiment of the present invention, when the control message belongs to a preset global message set, responding to the control message; when the control message does not belong to a preset global message set, according to the preset Corresponding relationship between the control message and the IPTV state, determining that the control message has a corresponding relationship with the acquired current state of the IPTV, responding to the control message; thus, ensuring that the IPTV can respond to the control message in time, and avoiding illegal control The message affects the normal playback of the media stream, making the media stream play smoother.

Claims (10)

  1. 一种交互式网络电视IPTV的播放控制方法,所述方法包括:A method for controlling playback of an interactive network television IPTV, the method comprising:
    接收控制消息;Receiving a control message;
    当所述控制消息属于预设的全局消息集合时,响应所述控制消息;And responding to the control message when the control message belongs to a preset global message set;
    当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。When the control message does not belong to the preset global message set, the control message is responded to when the control message has a corresponding relationship with the acquired current state of the IPTV according to the corresponding relationship between the preset control message and the IPTV state.
  2. 根据权利要求1所述的播放控制方法,其中,所述方法还包括:The playback control method according to claim 1, wherein the method further comprises:
    当所述控制消息不属于预设的全局消息集合,并确定所述控制消息与获取的IPTV当前状态没有对应关系时,忽略所述控制消息。When the control message does not belong to the preset global message set, and determines that the control message does not correspond to the acquired current state of the IPTV, the control message is ignored.
  3. 根据权利要求1所述的播放控制方法,其中,所述预设的控制消息与IPTV状态的对应关系包括:The playback control method according to claim 1, wherein the correspondence between the preset control message and the IPTV status comprises:
    空闲状态对应的控制消息包括开始播放消息;The control message corresponding to the idle state includes starting to play the message;
    第一帧状态对应的控制消息包括第一帧播放消息、停止播放消息;The control message corresponding to the first frame state includes a first frame playing message and a stop playing message;
    播放状态对应的控制消息包括暂停播放消息、停止播放消息、恢复播放消息、结束播放消息;The control message corresponding to the play status includes a pause play message, a stop play message, a resume play message, and an end play message;
    暂停状态对应的控制消息包括停止播放消息、恢复播放消息、快进播放消息;The control message corresponding to the pause state includes stopping the play message, restoring the play message, and fast forwarding the message;
    快进状态对应的控制消息包括停止播放消息、恢复播放消息、快进播放消息;The control message corresponding to the fast forward state includes stopping the playing message, restoring the playing message, and fast forwarding the message;
    结束状态对应的控制消息包括停止播放消息。The control message corresponding to the end state includes stopping the play message.
  4. 根据权利要求3所述的播放控制方法,其中,当IPTV处于播放状态时,所述方法还包括:The playback control method according to claim 3, wherein when the IPTV is in a playing state, the method further includes:
    获取当前帧的播放循环实际已消耗时间;Get the actual consumed time of the playback loop of the current frame;
    获取当前帧的播放循环还需消耗时间; It takes time to acquire the playback loop of the current frame;
    在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。When the sum of the actual consumed time and the estimated required consumption time is greater than a preset threshold, the current frame is abandoned to continue playing, and the playback cycle of the next frame is entered.
  5. 根据权利要求4所述的播放控制方法,其中,所述当前帧的播放循环还需消耗时间为:The playback control method according to claim 4, wherein the playback cycle of the current frame further consumes time:
    播放循环中即将被执行的下一步所预计消耗的时间。The estimated time spent in the next step of the playback loop that will be executed.
  6. 一种IPTV的播放控制装置,所述装置包括:消息接收模块、全局消息响应模块以及状态消息响应模块;其中,An apparatus for controlling playback of an IPTV, the apparatus comprising: a message receiving module, a global message response module, and a status message response module;
    消息接收模块,配置为接收控制消息;a message receiving module configured to receive a control message;
    全局消息响应模块,配置为当所述控制消息属于预设的全局消息集合时,响应所述控制消息;a global message response module, configured to respond to the control message when the control message belongs to a preset global message set;
    状态消息响应模块,配置为当所述控制消息不属于预设的全局消息集合时,根据预设的控制消息与IPTV状态的对应关系,确定所述控制消息与获取的IPTV当前状态有对应关系时,响应所述控制消息。The status message response module is configured to: when the control message does not belong to the preset global message set, determine, according to the correspondence between the preset control message and the IPTV status, that the control message has a corresponding relationship with the acquired current state of the IPTV Responding to the control message.
  7. 根据权利要求6所述的播放控制装置,其中,所述装置还包括:The playback control device according to claim 6, wherein the device further comprises:
    空闲状态模块,配置为响应与空闲状态有对应关系的开始播放消息;An idle state module configured to respond to a start play message corresponding to an idle state;
    第一帧状态模块,配置为响应与第一帧状态有对应关系的第一帧播放消息、停止播放消息;The first frame status module is configured to play a message in response to the first frame corresponding to the first frame state, and stop playing the message;
    播放状态模块,配置为响应与播放状态有对应关系的暂停播放消息、停止播放消息、恢复播放消息、结束播放消息;The play status module is configured to respond to the pause play message corresponding to the play status, stop playing the message, resume playing the message, and end the play message;
    暂停状态模块,配置为响应与暂停状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;a pause state module configured to respond to a stop play message, a resume play message, and a fast forward play message corresponding to the pause state;
    快进状态模块,配置为响应与快进状态有对应关系的停止播放消息、恢复播放消息、快进播放消息;The fast forward status module is configured to respond to the stop play message, the resume play message, and the fast forward play message corresponding to the fast forward state;
    结束状态模块,配置为响应与结束状态有对应关系的停止播放消息。The end status module is configured to respond to the stop play message corresponding to the end status.
  8. 根据权利要求7所述的播放控制装置,其中,所述播放状态模块包 括:The playback control device according to claim 7, wherein said playback status module package include:
    实际时间监测单元,配置为获取当前帧的播放循环实际已消耗时间;The actual time monitoring unit is configured to obtain the actual consumed time of the playing cycle of the current frame;
    预计时间获取单元,配置为获取当前帧的播放循环预计还需消耗时间;The estimated time acquisition unit is configured to acquire the playback cycle of the current frame and is expected to consume time;
    帧丢弃单元,配置为在所述实际已消耗时间与预计还需消耗时间之和大于预设阈值时,放弃继续播放当前帧,进入下一帧的播放循环。The frame discarding unit is configured to, when the sum of the actual consumed time and the estimated required time is greater than a preset threshold, abandon the continuous playing of the current frame and enter a playing cycle of the next frame.
  9. 根据权利要求8所述的播放控制装置,其中,所述预计时间获取单元包括:The playback control device according to claim 8, wherein the estimated time acquisition unit comprises:
    下一步时间获取单元,配置为获取播放循环中即将被执行的下一步所预计消耗的时间。The next time acquisition unit is configured to obtain the estimated time spent in the next step of the playback loop to be executed.
  10. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 5.
PCT/CN2015/082401 2014-12-30 2015-06-25 Internet protocol television play control method, device and computer storage medium WO2016107116A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410843286.X 2014-12-30
CN201410843286.XA CN105812938B (en) 2014-12-30 2014-12-30 Playing control method and device of interactive network television

Publications (1)

Publication Number Publication Date
WO2016107116A1 true WO2016107116A1 (en) 2016-07-07

Family

ID=56284087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082401 WO2016107116A1 (en) 2014-12-30 2015-06-25 Internet protocol television play control method, device and computer storage medium

Country Status (2)

Country Link
CN (1) CN105812938B (en)
WO (1) WO2016107116A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009825A (en) * 2006-01-27 2007-08-01 中国科学院声学研究所 The method for IPTV STB/unicast seamless switching based on RTP protocol
CN103139628A (en) * 2013-02-21 2013-06-05 深圳创维数字技术股份有限公司 Control method of television terminal and television terminal
CN103634682A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Global setting implementation method and device for intelligent televisions
CN103974105A (en) * 2013-01-25 2014-08-06 海尔集团公司 Television control method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100127162A (en) * 2009-05-25 2010-12-03 엘지전자 주식회사 Method and apparatus for searching and downloading related contents in broadcast service at terminal
CN102427564B (en) * 2011-11-18 2015-01-14 百视通网络电视技术发展有限责任公司 Realizing method and system of time stamp based on IPTV (Internet Protocol Television)
CN102572569B (en) * 2012-02-24 2015-05-06 北京原力创新科技有限公司 Set top box, internet television and method for processing intelligent control signals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009825A (en) * 2006-01-27 2007-08-01 中国科学院声学研究所 The method for IPTV STB/unicast seamless switching based on RTP protocol
CN103974105A (en) * 2013-01-25 2014-08-06 海尔集团公司 Television control method and system
CN103139628A (en) * 2013-02-21 2013-06-05 深圳创维数字技术股份有限公司 Control method of television terminal and television terminal
CN103634682A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Global setting implementation method and device for intelligent televisions

Also Published As

Publication number Publication date
CN105812938A (en) 2016-07-27
CN105812938B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN109168078B (en) Video definition switching method and device
US10712771B2 (en) System and method for synchronized playback of streaming digital content
TWI502977B (en) Audio/video playing device, audio/video processing device, systems, and method thereof
CN101742203B (en) Information processing apparatus and method
US9549027B2 (en) Network-synchronized media playback
CN105721921A (en) Self-adaptive selection method for multi-window video decoder
US10177958B2 (en) Method for synchronously taking audio and video in order to proceed one-to-multi multimedia stream
TWI735476B (en) Method for fast channel change and corresponding device
WO2013182011A1 (en) Method and system of playing real time online video at variable speed
CN101710997A (en) MPEG-2 (Moving Picture Experts Group-2) system based method and system for realizing video and audio synchronization
JP2009284282A (en) Content server, information processing apparatus, network device, content distribution method, information processing method, and content distribution system
CN111372138A (en) Live broadcast low-delay technical scheme of player end
CN103458271A (en) Audio-video file splicing method and audio-video file splicing device
WO2015173975A1 (en) Reception apparatus, transmission apparatus, and data processing method
WO2015196827A1 (en) Display device and sharing control method therefor
CN112367542A (en) Terminal playing system and method for mirror image screen projection
CN106331820A (en) Synchronous audio and video processing method and device
WO2015074380A1 (en) Video information processing method and device
WO2016086663A1 (en) Method and apparatus for switching applications, and intelligent set top box device
WO2017016266A1 (en) Method and device for implementing synchronous playing
WO2016107116A1 (en) Internet protocol television play control method, device and computer storage medium
CN108282720B (en) Audio data stream transmission method and device
CN106507194B (en) A kind of Android intelligent television scene management method
CN114554277B (en) Multimedia processing method, device, server and computer readable storage medium
CN112019858B (en) Video playing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15874806

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15874806

Country of ref document: EP

Kind code of ref document: A1