WO2017181506A1 - 显示终端信源切换方法及装置 - Google Patents

显示终端信源切换方法及装置 Download PDF

Info

Publication number
WO2017181506A1
WO2017181506A1 PCT/CN2016/084968 CN2016084968W WO2017181506A1 WO 2017181506 A1 WO2017181506 A1 WO 2017181506A1 CN 2016084968 W CN2016084968 W CN 2016084968W WO 2017181506 A1 WO2017181506 A1 WO 2017181506A1
Authority
WO
WIPO (PCT)
Prior art keywords
source
player
display terminal
preset
attribute value
Prior art date
Application number
PCT/CN2016/084968
Other languages
English (en)
French (fr)
Inventor
严力
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017181506A1 publication Critical patent/WO2017181506A1/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Definitions

  • the present invention relates to the field of display technologies, and in particular, to a method and an apparatus for switching a source of a display terminal.
  • more and more display terminals can simultaneously support multimedia source play mode and TV source-based TV source play mode, when the display terminal When in the multimedia source play mode, the display terminal plays the network online video, the user pushes the video, and stores the video locally; when the display terminal is in the television source play mode, the display terminal plays the television program according to the television source.
  • the display terminal directly switches from the multimedia source play mode to the television source play mode, or switches from the television source play mode to the multimedia source play mode, the display terminal often causes the display terminal to play under the cause of resource conflict.
  • the hardware resources such as audio and video decoding chips, video memory, etc. supporting multimedia playback or television program playback cannot be obtained in time, so that the display terminal is prone to the problem of black screen silence caused by no signal input.
  • the main object of the present invention is to provide an application list synchronization method and device, which aims to solve the technical problem that the display terminal switching source play mode is prone to black screen silence.
  • the present invention provides a method for switching a source of a display terminal, and the method for switching a source of the display terminal includes:
  • the source of the display terminal is switched to a target source corresponding to the source switching instruction.
  • the method further comprises:
  • the player property value is set to a preset running flag value
  • the player attribute value is set to a preset end flag value when the hardware resource occupied by the underlying player is released or the time for releasing the hardware resource exceeds the preset duration.
  • the method comprises:
  • the present invention also provides a method for switching a source of a display terminal, and the method for switching the source of the display terminal includes:
  • the source of the display terminal is switched to a target source corresponding to the source switching instruction.
  • the method further comprises:
  • the display terminal When the display terminal enters the Android system and the multimedia service process is started, it is monitored whether the display terminal receives the source switching instruction input by the user.
  • the method further comprises:
  • the method further comprises:
  • the player property value is set to a preset running flag value
  • the player attribute value is set to a preset end flag value when the hardware resource occupied by the underlying player is released or the time for releasing the hardware resource exceeds the preset duration.
  • the method comprises:
  • the present invention also provides a display terminal source switching device, the display terminal source switching device comprising:
  • An instruction monitoring module configured to monitor whether a source switching instruction input by a user is received
  • a resource release module configured to: when the source switching instruction is detected, forcibly stop the underlying player in the running state, and release the hardware resources occupied by the underlying player;
  • the source switching module is configured to switch the source of the display terminal to the target source corresponding to the source switching instruction when the time when the release of the hardware resource is completed or the time for releasing the hardware resource exceeds a preset duration.
  • the instruction monitoring module is further configured to:
  • the display terminal When the display terminal enters the Android system and the multimedia service process is started, it is monitored whether the display terminal receives the source switching instruction input by the user.
  • the display terminal source switching device further includes:
  • the attribute creation module is configured to separately create a player attribute value indicating that the source switching action starts and completes the source attribute value, indicating that the underlying player is running and stopped.
  • the display terminal source switching device further includes an attribute setting module, and the attribute setting module includes:
  • a first setting unit configured to set the source attribute value to a preset start flag value when the source switching instruction is detected
  • a second setting unit configured to set the source attribute value to a preset end flag value when the source switching is completed
  • a third setting unit configured to set the player attribute value to a preset running flag value when the bottom player starts running
  • a fourth setting unit configured to set the player attribute value to a preset end flag value when a time when the hardware resource occupied by the underlying player is released or the hardware resource is released exceeds a preset duration.
  • the resource release module includes:
  • a monitoring unit configured to monitor whether the source attribute value is set to a preset start flag value
  • a release unit configured to: when the source attribute value is set to a preset start flag value, forcibly stop a player whose player attribute value is set to a preset running flag value, and release the occupied by the bottom player Hardware resources;
  • the source switching module is configured to switch the source of the display terminal to a target source corresponding to the source switching instruction when the source attribute value is set to a preset end flag value.
  • the invention monitors whether the source switching instruction input by the user is received in real time, and when the source switching instruction is detected, forcibly stops the underlying player in the running state, releases the hardware resources occupied by the underlying player, and then closes the current source. And the display terminal source is switched to the target source corresponding to the source switching instruction, so that when the source switching instruction is detected, the underlying player currently in the running state is closed in time, and the hardware occupied by the underlying player is released in time. Resources, so that the terminal can smoothly apply for hardware resources after switching to the target source, and play the video and audio data provided by the target source in time to avoid the situation that the smart TV switching source does not apply for hardware resources, thereby solving the display terminal switching.
  • the source play mode is prone to black screen silent technical problems.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for switching a source of a display terminal according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for switching a source of a display terminal according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for switching a source of a display terminal according to the present invention.
  • FIG. 4 is a schematic diagram of a video played by an Android system in an embodiment of a display terminal according to the present invention
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a display terminal source switching device according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a third embodiment of a display terminal source switching device according to the present invention.
  • the present invention provides a method for switching the source of the display terminal.
  • the method for switching the source of the display terminal includes:
  • Step S10 monitoring whether a source switching instruction input by the user is received
  • the display terminal in the present application may be a smart TV, a tablet computer, a computer display, etc.
  • a smart TV generally includes a multimedia source play mode and a television source play mode.
  • the smart TV is in the multimedia source play mode.
  • the smart TV obtains the video to be played mainly through the network acquisition path and the local acquisition path.
  • the network acquisition methods are mainly as follows: 1) On the Launcher (desktop) interface or through a video application for on-demand network Video; 2) Users push online video to smart TV through communication software such as WeChat; 3) Push online video through multi-screen interaction; local access is: extract and store in external storage device (such as USB flash drive) or download through network Local (ie smart TV local) video files.
  • Smart TV is in the TV source play mode, and the smart TV obtains the video to be played mainly based on different audio and video transmission interface technologies (such as ATV (Analog) TV, analog signal input TV), DTV (Digital TV, digital signal input TV), HDMI (High Definition Multimedia Interface, high-definition multimedia interface), AV (Audio & Video, audio and video composite signal), VGA (Video Graphics Array, video graphics array, etc.) Obtained TV program signals.
  • ATV Analog
  • DTV Digital TV, digital signal input TV
  • HDMI High Definition Multimedia Interface, high-definition multimedia interface
  • AV Audio & Video
  • VGA Video Graphics Array, video graphics array, etc.
  • the user can operate the remote controller or the voice assistant to send a source switching instruction to the smart TV to switch the smart TV from the current source to the target source, or switch from the non-source state.
  • the source of smart TV mainly includes multimedia source and TV source. There are two main scenarios for source switching.
  • Scene 1 Switching from multimedia source to TV source, such as smart TV from using video application (such as iQiyi) Or Tencent Video) Play online video to switch to TV source, switch from online video played by WeChat or multi-screen interactive to DTV TV source, switch from video in U disk using media center application to HDMI TV source; scene Second, switch from the TV source to the multimedia source, for example, the smart TV is playing DTV, at this time the user uses WeChat to push the online video to the smart TV.
  • the user only needs to operate the control remote controller to send a source switching instruction to the smart TV to achieve the effect of source switching.
  • the user can operate the remote controller or the voice assistant to send a source switching instruction to the smart TV to switch the smart TV from the current source to the target source, or switch from the non-source state to Target source.
  • the source of smart TV mainly includes multimedia source and TV source. There are two main scenarios for source switching.
  • Scene 1 Switching from multimedia source to TV source, such as smart TV from using video application (such as iQiyi) Or Tencent Video) Play online video to switch to TV source, switch from online video played by WeChat or multi-screen interactive to DTV TV source, switch from video in U disk using media center application to HDMI TV source; scene Second, switch from the TV source to the multimedia source, for example, the smart TV is playing DTV, at this time the user uses WeChat to push the online video to the smart TV.
  • the user only needs to operate the control remote controller to send a source switching instruction to the smart TV to achieve the effect of source switching.
  • Step S20 when the source switching instruction is detected, forcibly stopping the underlying player in the running state, and releasing the hardware resources occupied by the underlying player;
  • the display terminal detects the source switching instruction sent by the user, detecting whether the bottom player of the display terminal is in a running state, when the bottom player is in a stopped state, indicating that the hardware resources supporting the playing video in the current display terminal are not occupied.
  • the display terminal can obtain the required hardware resources in time whether it is in the multimedia source or the television source, and there is no black screen silent phenomenon; when the underlying player is in the running state, it indicates that the hardware resources in the display terminal are occupied by the underlying player at this time. That is, the current display terminal has the source turned on.
  • the current source is switched to the target source based on the source switching instruction, the current source cannot release the hardware resource in time, and the target source cannot apply for the hardware resource, resulting in The display terminal cannot display an image and a black screen is silent. Therefore, when the source switching instruction is detected and the underlying player is detected to be in the running state, the underlying player in the running state is forcibly stopped, and the hardware resources occupied by the underlying player are released.
  • Step S30 When the time when the release of the hardware resource is completed or the hardware resource is released exceeds the preset duration, the source of the display terminal is switched to the target source corresponding to the source switching instruction.
  • the current source of the display terminal After releasing the hardware resources occupied by the underlying player or releasing the hardware resources for longer than the preset duration, the current source of the display terminal is turned off, and the display terminal source is switched to the target source corresponding to the source switching instruction.
  • the current source is a multimedia source
  • the target source is a television source.
  • the underlying player in the running state is forcibly stopped, and the hardware resources occupied by the underlying player are released, and then
  • the source of the display terminal is switched to the target source corresponding to the source switching instruction, so that when the source switching instruction is detected, the current running state is closed in time.
  • the underlying player releases the hardware resources occupied by the underlying player in time, so that the display terminal can smoothly apply for hardware resources after switching to the target source, and play the video and audio data provided by the target source in time to avoid the smart TV switching signal.
  • the problem that the source application does not have hardware resources is solved, thereby solving the technical problem that the display terminal switching source play mode is prone to black screen silence.
  • the invention is simple in implementation and high in versatility, and realizes that the user can freely push the online video while watching the smart TV, or switch to the TV and other scenes from the process of playing the video, thereby greatly improving the smart television ( That is, the user experience of the terminal is displayed.
  • the improvement of the present invention is to improve the framework layer of the display terminal system (for example, the multimedia service process), and ensure that multiple video applications in the display terminal are compatible with the solution of the present invention simultaneously without modifying the video application in the display terminal. Has a strong versatility.
  • step S10 includes:
  • step S11 when the display terminal enters the Android system and the multimedia service process is started, it is monitored whether the display terminal receives the source switching instruction input by the user.
  • the display terminal plays different source corresponding data (for example, different source or video APP), and different players are used, and the operation of switching the source is generally initiated by the user, so after the display terminal enters the Android system, If the display terminal starts the multimedia service process and starts playing multimedia data or TV programs, a thread is created at this time to monitor whether the display terminal receives the source switching instruction input by the user, thereby specifically opening the multimedia service on the display terminal. After the process, it is monitored in real time whether the source switching instruction input by the user is received, and the monitoring of the source switching instruction is also performed when the display terminal is in the non-multimedia service process such as the desktop interface, thereby improving the operating efficiency of the display terminal system.
  • the display terminal plays different source corresponding data (for example, different source or video APP), and different players are used, and the operation of switching the source is generally initiated by the user, so after the display terminal enters the Android system. If the display terminal starts the multimedia service process and starts playing multimedia data or TV programs, a thread is created at this time to monitor whether the display
  • the method further includes:
  • Step S40 respectively creating a source attribute value indicating the start and completion of the source switching action, indicating the player attribute value of the underlying player running and stopping;
  • the core design idea of the invention is through Android Property property to synchronize communication between the four processes, the four processes are: play video process, mediaserver underlying player service process, switch source middleware process, TV Apk process.
  • the source switching action is identified, and the underlying player operating state is identified based on the player attribute value.
  • step S40 may also be after step S10.
  • step S20 includes:
  • Step S21 when the source switching instruction is detected, setting the source attribute value to a preset start flag value
  • Step S22 when the source switching is completed, setting the source attribute value to a preset end flag value
  • Step S23 when the bottom player starts running, setting the player attribute value to the preset running flag value
  • Step S24 When the time when the hardware resource occupied by the underlying player is released or the hardware resource is released exceeds the preset duration, the player attribute value is set to the preset end flag value.
  • the underlying player When the display terminal is in normal operation, the underlying player sets the player attribute value of the underlying player to the preset running flag value when playing the multimedia file.
  • To preset the underlying player that runs the flag value, and release the hardware resources occupied by the underlying player, reset the player property value, that is, set the player property value to the preset end flag value (mediaplayer.used? 0), Indicates that the hardware resource release of the underlying player is complete.
  • a source attribute value indicating the start or completion of the source switching action is created, and a player attribute value indicating that the underlying player is running or stopped is set when the underlying player is created, and the player attribute value is to tell The usage of the underlying player of the terminal is displayed.
  • the source attribute value is used to tell the display terminal to prepare for source switching.
  • the two attribute values are used to synchronize the source switching and the hardware resource release, so that the display terminal detects the source attribute.
  • the value is the preset start flag value
  • the hardware resources corresponding to the underlying player are released as soon as possible, so that the display terminal can display the image and play the sound normally after switching the source, thereby further improving the synchronization efficiency of the source switching and the hardware resource release.
  • step S30 includes:
  • Step S31 monitoring whether the source attribute value is set to a preset start flag value
  • Step S32 when the source attribute value is set to the preset start flag value, forcibly stop the underlying player whose player attribute value is set to the preset running flag value, and release the hardware resources occupied by the underlying player;
  • Step S33 when the source attribute value is set to the preset end flag value, switching the source of the display terminal to the target source corresponding to the source switching instruction.
  • a preset duration for example, 10s, timeout(10s)
  • the source attribute value is set to the preset end flag value to close the current source, and the target source corresponding to the source switching instruction is turned on, providing a mechanism for avoiding the source resource switching without releasing the hardware resource.
  • a black screen is silent.
  • the current source is closed. Since the current source is closed until the target source is switched off, it takes a short time. After the current source is turned off, the display terminal has no signal input, and a relatively short black screen silent scene may occur, which will undoubtedly affect the user experience, such as the user. It may be mistaken that the display terminal is faulty. If the preset waiting screen is displayed, for example, the preset waiting screen prompts that the source switching is being performed, the user is prevented from unnecessary worry, or the preset waiting screen is a pre-stored promotion advertisement. The screen developed the advertising value of the display terminal. While displaying the preset waiting screen, the display terminal source is switched to the target source corresponding to the source switching instruction.
  • the main modification of the present invention relates to the NATIVE layer of the mediaplayer framework, libmediaplayerservice.so, Libstagefright.so, etc., here, the monitoring thread for monitoring the source switching instruction is preferably placed in the mediaserver process, mainly considering that many services of Android are one-to-many clients, so as to ensure the consistency of the state, if the customer is selected It is also possible to start the listening thread, but when the client of multiple video applications is started at the same time, the problem of inconsistent state will occur.
  • STEP 1 After the smart TV starts up and starts the Android system, the MediaServer process is started, and then a monitoring thread is added in the native medeiaplayerservice service;
  • STEP 3 In the process of displaying the video in the display terminal, the user uses the source button of the remote controller to output a source switching instruction to switch the source of the display terminal to the TV source;
  • STEP 7 When the current source is closed, it will open to the specified TV source.
  • the property synchronization between the three processes is especially important, mainly by setting two property properties to synchronize, and setting the first property (mediaplayer.used?) when playing the video is to tell the system that we are Use the player, and set the second property (mediaplayer.force.stop) when cutting the TV source to tell the system, we have to start cutting the source, so that the hardware occupied by the player can be released as soon as possible after listening. Resources, the released hardware resources are used by the TV source, so that the image and sound can be displayed normally.
  • Application scenario 2 The process of switching the TV source by the non-playing video interface, the specific steps are as follows:
  • STEP1 After the smart TV starts the Android system, the MediaServer process is started, and then a monitoring thread is added in the native medeiaplayerservice service;
  • STEP 2 The user switches the display terminal to other TV sources by using the source button of the remote controller under the TV source or in the interface of other non-video applications;
  • STEP 6 When the current source is closed, it will open to the specified TV source.
  • the scheme for displaying the terminal source switching method of the invention only has a monitoring thread and two property flag bits in the process of playing the video in general, and the process is the same as that of the general smart TV playing video, and the modification can be performed in the mediaplayer framework layer.
  • the problem that the display terminal switching source has a black screen and no sound can be solved without modifying the application, and the video application of the smart TV is also well compatible.
  • the present invention shows that the terminal source switching method also provides a concept that can be used not only in smart TVs, but also in other fields (such as smart phones).
  • the present invention further provides a display terminal source switching device, which can be disposed in a display terminal.
  • a display terminal source switching device which can be disposed in a display terminal.
  • the display terminal letter The source switching device includes:
  • the instruction monitoring module 10 is configured to monitor whether a source switching instruction input by the user is received
  • the resource release module 20 is configured to forcibly stop the underlying player in the running state when the source switching instruction is detected, and release the hardware resources occupied by the underlying player;
  • the source switching module 30 is configured to switch the source of the display terminal to the target source corresponding to the source switching instruction when the time for releasing the hardware resource or releasing the hardware resource exceeds a preset duration.
  • the instruction monitoring module 10 is further configured to: after the display terminal enters the Android system and start the multimedia service process, monitor whether the display terminal receives the source switching instruction input by the user.
  • the display terminal source switching further includes :
  • the attribute creation module 40 uses the source attribute values respectively indicating the start and completion of the source switching action to indicate the player attribute values of the underlying player running and stopping.
  • the display terminal source switching device further includes an attribute setting module 50, and the attribute setting module 50 includes:
  • the first setting unit 51 is configured to set the source attribute value to a preset start flag value when the source switching instruction is detected;
  • a second setting unit 52 configured to set the source attribute value to a preset end flag value when the source switching is completed
  • a third setting unit 53 is configured to set the player attribute value to a preset running flag value when the bottom player starts running;
  • the fourth setting unit 54 is configured to set the player attribute value to a preset end flag value when a time when the hardware resource occupied by the underlying player is released or the hardware resource is released exceeds a preset duration.
  • the resource release module 20 includes:
  • the monitoring unit 21 is configured to monitor whether the source attribute value is set to a preset start flag value
  • the releasing unit 22 is configured to forcibly stop the underlying player whose player attribute value is set to the preset running flag value when the source attribute value is set to the preset start flag value, and release the hardware resources occupied by the underlying player;
  • the source switching module 30 is configured to switch the source of the display terminal to the target source corresponding to the source switching instruction when the source attribute value is set to the preset end flag value.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods of various embodiments of the present invention.

Abstract

公开了一种显示终端信源切换方法,该方法包括:监测是否收到用户输入的信源切换指令;当监测到信源切换指令时,强制停止处于运行状态的底层播放器,并释放底层播放器占用的硬件资源;关闭当前信源,并将显示终端信源切换至信源切换指令对应的目标信源。还公开一种显示终端信源切换装置。在监测到信源切换指令时,及时关闭当前处于运行状态的底层播放器,及时释放该底层播放器所占用的硬件资源,从而显示终端切换至目标信源后能够顺利申请到硬件资源,及时播放出目标信源提供的影音数据,避免出现智能电视切换信源申请不到硬件资源的情形,进而解决了显示终端切换信源播放模式容易出现黑屏无声的技术问题。

Description

显示终端信源切换方法及装置
技术领域
本发明涉及显示器技术领域,尤其涉及一种显示终端信源切换方法及装置。
背景技术
随着显示技术的不断发展,越来越多的显示终端(例如智能电视、平板电脑、智能手机等)能够同时支持多媒体信源播放模式和基于电视信源的电视信源播放模式,当显示终端处于多媒体信源播放模式时,显示终端播放网络在线视频、用户推送视频、本地存储视频;当显示终端处于电视信源播放模式时,显示终端根据电视信源播放电视节目。但是,当显示终端从多媒体信源播放模式直接切换至电视信源播放模式,或者从电视信源播放模式切换至多媒体信源播放模式时,显示终端往往由于资源冲突的原因,导致显示终端底层播放器无法及时获取支持多媒体播放或电视节目播放的硬件资源(例如音视频解码芯片、显存等),从而显示终端容易容易出现因无信号输入而导致的黑屏无声的问题。
发明内容
本发明的主要目的在于提供一种应用列表同步方法及装置,旨在解决显示终端切换信源播放模式容易出现黑屏无声的技术问题。
为实现上述目的,本发明提供的一种显示终端信源切换方法,该显示终端信源切换方法包括:
分别创建表示信源切换动作开始和完成的信源属性值,表示底层播放器运行和停止的播放器属性值;
在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令;
当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;及
当所述硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
优选地,该方法还包括:
在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
在信源切换完成时,将所述信源属性值置为预设结束标志值;
在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
优选地,该方法包括:
监测所述信源属性值是否被置为预设开始标志值;
在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
本发明还提供一种显示终端信源切换方法,该显示终端信源切换方法包括:
监测是否收到用户输入的信源切换指令;
当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;及
当所述硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
优选地,该方法还包括:
在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
优选地,该方法还包括:
分别创建表示信源切换动作开始和完成信源属性值,表示底层播放器运行和停止的播放器属性值。
优选地,该方法还包括:
在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
在信源切换完成时,将所述信源属性值置为预设结束标志值;
在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
优选地,该方法包括:
监测所述信源属性值是否被置为预设开始标志值;
在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
本发明还提供一种显示终端信源切换装置,该显示终端信源切换装置包括:
指令监测模块,用于监测是否收到用户输入的信源切换指令;
资源释放模块,用于当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;
信源切换模块,用于当所述硬件资源释放完成或释放硬件资源的时间超过预设时长时,切换所述显示终端的信源至所述信源切换指令对应的目标信源。
优选地,所述指令监测模块还用于:
在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
优选地,所述显示终端信源切换装置还包括:
属性创建模块,用于分别创建表示信源切换动作开始和完成信源属性值,表示底层播放器运行和停止的播放器属性值。
优选地,所述显示终端信源切换装置还包括属性设置模块,所述属性设置模块包括:
第一设置单元,用于在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
第二设置单元,用于在信源切换完成时,将所述信源属性值置为预设结束标志值;
第三设置单元,用于在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
第四设置单元,用于在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
优选地,所述资源释放模块包括:
监测单元,用于监测所述信源属性值是否被置为预设开始标志值;
释放单元,用于在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;
所述信源切换模块,用于在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
本发明通过实时监测是否收到用户输入的信源切换指令,当监测到信源切换指令时,强制停止处于运行状态的底层播放器,并释放底层播放器占用的硬件资源,然后关闭当前信源,并将显示终端信源切换至信源切换指令对应的目标信源,从而在监测到信源切换指令时,及时关闭当前处于运行状态的底层播放器,及时释放该底层播放器所占用的硬件资源,从而显示终端切换至目标信源后能够顺利申请到硬件资源,及时播放出目标信源提供的影音数据,避免出现智能电视切换信源申请不到硬件资源的情形,进而解决了显示终端切换信源播放模式容易出现黑屏无声的技术问题。
附图说明
图1为本发明显示终端信源切换方法第一实施例的流程示意图;
图2为本发明显示终端信源切换方法第二实施例的流程示意图;
图3为本发明显示终端信源切换方法第三实施例的流程示意图;
图4为本发明显示终端一实施例中安卓系统播放视频的框架图;
图5为本发明显示终端信源切换装置第一实施例的功能模块示意图;
图6为本发明显示终端信源切换装置第三实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种显示终端信源切换方法,在本发明显示终端信源切换方法的第一实施例中,参照图1,该显示终端信源切换方法包括:
步骤S10,监测是否收到用户输入的信源切换指令;
本申请中的显示终端可以为智能电视、平板电脑、电脑显示器等,以下以智能电视为例,智能电视一般包括多媒体信源播放模式和电视信源播放模式。智能电视处于多媒体信源播放模式下,智能电视获取待播放视频主要有网络获取途径和本地获取途径,其中网络获取途径主要为:1)在Launcher(桌面)界面或者通过某个视频应用进行点播网络视频;2)用户通过微信等通信软件向智能电视推送在线视频;3)通过多屏互动来推送在线视频;本地获取途径为:提取存放在外接储存设备(例如U盘)中或通过网络下载到本地(即智能电视本端)的视频文件。
智能电视处于电视信源播放模式下,智能电视获取待播放视频主要是基于不同的音像传输接口技术(例如ATV(Analog TV,模拟信号输入电视)、DTV(Digital TV ,数字信号输入电视)、HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)、AV(Audio&Video,音频视频复合信号)、VGA(Video Graphics Array,视频图形阵列)等)所获取的电视节目信号。
当用户需要切换智能电视的信源时,用户可以操作遥控器或语音小助手向智能电视发送信源切换指令,以将智能电视从当前信源切换至目标信源,或者从无信源状态切换至目标信源。智能电视的信源主要包括多媒体信源和电视信源,信源切换场景主要有两种场景,场景一:从多媒体信源切换至电视信源,例如智能电视从使用视频应用(例如爱奇艺或腾讯视频)播放在线视频切换至电视信源、从播放微信或多屏互动推送的在线视频切换至DTV电视信源、从使用媒体中心应用播放U盘中的视频切换至HDMI电视信源;场景二,从电视信源切换至多媒体信源,例如智能电视在播放DTV,此时用户使用微信向智能电视推送在线视频。用户在以上两种场景下,只需操作控制遥控器向智能电视发送信源切换指令以达到信源切换的效果。
用户需要切换智能电视的信源时,用户可以操作遥控器或语音小助手向智能电视发送信源切换指令,以将智能电视从当前信源切换至目标信源,或者从无信源状态切换至目标信源。智能电视的信源主要包括多媒体信源和电视信源,信源切换场景主要有两种场景,场景一:从多媒体信源切换至电视信源,例如智能电视从使用视频应用(例如爱奇艺或腾讯视频)播放在线视频切换至电视信源、从播放微信或多屏互动推送的在线视频切换至DTV电视信源、从使用媒体中心应用播放U盘中的视频切换至HDMI电视信源;场景二,从电视信源切换至多媒体信源,例如智能电视在播放DTV,此时用户使用微信向智能电视推送在线视频。用户在以上两种场景下,只需操作控制遥控器向智能电视发送信源切换指令以达到信源切换的效果。
步骤S20,当监测到信源切换指令时,强制停止处于运行状态的底层播放器,并释放底层播放器占用的硬件资源;
当显示终端监测到用户发送的信源切换指令时,检测显示终端的底层播放器是否处于运行状态,当底层播放器处于停止状态时,表明当前显示终端中支撑播放视频的硬件资源没有被占用,显示终端无论处于多媒体信源还是电视信源都能及时获取到所需硬件资源,不会出现黑屏无声现象;当底层播放器处于运行状态,表明此时显示终端中的硬件资源被底层播放器占用,即当前显示终端开启了信源,若此时基于信源切换指令将当前信源切换至目标信源,则当前信源无法及时释放硬件资源,而目标信源又无法申请到硬件资源,导致显示终端无法显示图像而出现黑屏无声问题。所以,在监测到信源切换指令且同时检测到底层播放器处于运行状态时,强制停止该处于运行状态的底层播放器,并将该底层播放器所占用的硬件资源释放出来。
步骤S30,当硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换显示终端的信源至与信源切换指令对应的目标信源。
在释放底层播放器占用的硬件资源之后或释放硬件资源的时长超出预设时长时,关闭显示终端的当前信源,并将显示终端信源切换至信源切换指令对应的目标信源。例如,当前信源为多媒体信源,目标信源为电视信源,显示终端在接收到信源切换指令时,关闭多媒体信源对应底层播放器,并释放该对应底层播放器所占用的硬件资源,然后关闭多媒体信源,打开电视信源,电视信源申请并获得硬件资源以在对应底层播放器上播放电视信源对应的视频节目。
在本实施例中,通过监测是否收到用户输入的信源切换指令,当监测到信源切换指令时,强制停止处于运行状态的底层播放器,并释放底层播放器占用的硬件资源,然后在硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换显示终端的信源至与信源切换指令对应的目标信源,从而在监测到信源切换指令时,及时关闭当前处于运行状态的底层播放器,及时释放该底层播放器所占用的硬件资源,从而显示终端切换至目标信源后能够顺利申请到硬件资源,及时播放出目标信源提供的影音数据,避免出现智能电视切换信源申请不到硬件资源的情形,进而解决了显示终端切换信源播放模式容易出现黑屏无声的技术问题。
此外,本发明实现简单、通用性高,实现了用户在看智能电视的同时随意推送在线视频,或从播放视频的过程中随意切换到TV等多种场景,从而极大的提升了智能电视(即显示终端)的用户体验。同时,本发明的改进是对显示终端系统框架层(例如多媒体服务进程)进行改进,在不需要修改显示终端内视频应用的前提下,保证显示终端中多个视频应用同时兼容本发明的方案,具有较强的通用性。
进一步地,在本发明显示终端信源切换方法第一实施例的基础上,提出显示终端信源切换方法第二实施例,参照图2,在第二实施例中,步骤S10包括:
步骤S11,在显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
一般而言,显示终端播放不同信源对应数据(例如不同的片源或视频APP)会使用不同的播放器,而切换信源这个操作一般是用户主动发起的,所以在显示终端进入安卓系统后,若显示终端开启多媒体服务进程,开始播放多媒体数据或电视节目时,此时创建一个线程来实时监测显示终端是否收到用户输入的信源切换指令,从而有针对性地在显示终端开启多媒体服务进程后,才实时监测是否收到用户输入的信源切换指令,避免在显示终端处于桌面界面等非多媒体服务进程中时,也进行信源切换指令的监测,提高了显示终端系统运行效率。
进一步地,在本发明显示终端信源切换方法第一实施例的基础上,提出显示终端信源切换方法第三实施例,参照图3,在第三实施例中,步骤S10之前还包括:
步骤S40,分别创建表示信源切换动作开始和完成的信源属性值,表示底层播放器运行和停止的播放器属性值;
本发明的核心设计思想就是通过Android Property属性来同步四个进程间的通讯,四个进程分别是:播放视频进程,mediaserver底层播放器服务进程,切换信源的中间件进程,TV apk进程。
首先,在MediaPlayerService里面创建一个线程来监听是否有切换信源的动作(即信源切换属性的标志位),并且在各个类型的底层播放器创建时会置一个标示是否正在使用的播放器属性值,其中,播放器属性值设为mediaplayer.used?,当底层播放器为运行时,mediaplayer.used?=1,当底层播放器为停止时,mediaplayer.used?=0;将信源属性值设为mediaplayer.force.stop,当信源切换动作为开始时,mediaplayer.force.stop=1,当信源切换动作为完成时,mediaplayer.force.stop=0,便于显示终端系统基于信源属性值识别信源切换动作,基于播放器属性值识别底层播放器运行状态。
此外,步骤S40也可以在步骤S10之后。
优选地,步骤S20包括:
步骤S21,在监测到信源切换指令时,将信源属性值置为预设开始标志值;
步骤S22,在信源切换完成时,将信源属性值置为预设结束标志值;
在用户选择信源菜单开始切信源的时候,即监测到信源切换指令时,中间件进程会设置切换信源的标志位,即将信源切换属性置为预设开始标志值(mediaplayer.force.stop=1)。在显示终端的信源切换完成时,将信源属性值置为预设结束标志值(mediaplayer.force.stop=0)。
步骤S23,在底层播放器开始运行时,将播放器属性值置为预设运行标志值;
步骤S24,在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将播放器属性值置为预设结束标志值。
在显示终端正常运行时,底层播放器在播放多媒体文件时,将该底层播放器的播放器属性值置为预设运行标志值。显示终端的MediaPlayerService底层播放器服务进程在收到切换信源的标志(mediaplayer.force.stop=1)以后,即在检测到信源属性置为预设开始标志值时,强制停止播放器属性值为预设运行标志值的底层播放器,并释放底层播放器所占用的硬件资源,重置播放器属性值,即将播放器属性值置为预设结束标志值(mediaplayer.used?=0),表示底层播放器的硬件资源释放完成。
在本实施例中,创建标示信源切换动作开始或完成的信源属性值,并在底层播放器创建时设置一个标示底层播放器运行或停止的播放器属性值,播放器属性值是为了告诉显示终端底层播放器的使用情况,信源属性值是为了告诉显示终端准备进行信源切换了,利用这两个属性值实现信源切换和硬件资源释放的同步,使显示终端检测到信源属性值为预设开始标志值时,尽快释放对应底层播放器的硬件资源,以使显示终端切换信源后能够正常显示图像和播放声音,进一步提高了信源切换和硬件资源释放的同步效率。
进一步地,在本发明显示终端信源切换方法第三实施例的基础上,提出显示终端信源切换方法第四实施例,在第四实施例中,步骤S30包括:
步骤S31,监测信源属性值是否被置为预设开始标志值;
步骤S32,在信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放底层播放器占用的硬件资源;及
步骤S33,在信源属性值被置为预设结束标志值时,切换显示终端的信源至与所述信源切换指令对应的目标信源。
显示终端在接收到信源切换指令后,将信源属性值置为预设开始标值,当检测到当前信源对应底层播放器的播放器属性为停止结束标志值(mediaplayer.used?=0)时,表明此时底层播放器已经释放了所占用的硬件资源,可以进行后续的信源切换;或者当自监测到信源切换指令累计达预设时长(例如10s,timeout(10s))时,表明此时推定底层播放器已经释放了所占用的硬件资源,将信源属性值置为预设结束标志值 (mediaplayer.force.stop=0),表示切换信源的动作完成,然后关闭当前信源,打开信源切换指令对应的目标信源。这样,通过对当前信源对应底层播放器的播放器属性变化的检测或者对监测到信源切换指令的累计时长进行统计,在确保当前信源对应底层播放器已经释放了其所占用的硬件资源之后,才将信源属性值置为预设结束标志值,以关闭当前信源,打开信源切换指令对应的目标信源,提供了一种避免出现硬件资源未释放而进行信源切换的机制,杜绝显示终端进行信源切换而出现黑屏无声现象。
在显示终端检测到硬件资源释放完毕时,关闭当前信源。由于当前信源的关闭到目标信源切换完毕需要短暂时间,在当前信源关闭之后,显示终端没有信号输入,可能会出现较为短暂的黑屏无声情景,这无疑会影响到用户的体验,例如用户可能会误以为显示终端出故障了,此时若显示预设等待画面,例如预设等待画面上提示正在进行信源切换,避免用户进行不必要的担忧,或者预设等待画面为预存的推广广告画面,开发了显示终端的广告价值。在显示预设等待画面的同时,将显示终端信源切换至信源切换指令对应的目标信源。
为了辅助理解本发明显示终端信源切换方法,参照图4,在此引用显示终端android(安卓)系统的关于mediaplayer 播放流程的一个框架图,本发明主要的修改就是涉及到mediaplayer框架的NATIVE层,libmediaplayerservice.so, libstagefright.so等,这里对于监测信源切换指令的监听线程优选放在mediaserver进程里面,主要是考虑Android的很多服务都是一对多个客户端,这样能够保证状态的一致性,如果选择在客户端来启动监听线程也可以,但是当同时启动多个视频应用的客户端的时候,就会导致状态不一致的问题发生。
以下以两种智能电视应用场景为例,辅助解释本发明显示终端信源切换方法,具体内容如下:
应用场景一,播放视频界面切换TV信源,具体的步骤如下:
STEP 1:智能电视开机启动Android系统后,启动MediaServer进程,然后会在原生的medeiaplayerservice服务里面添加一个监听线程;
STEP 2:用户选择视频应用,显示终端开始播放视频,显示终端调用相应的底层播放器开始播放视频,并创建一个property属性 (mediaplayer.used=1,即播放器属性值为预设运行标志值);
STEP 3:在显示终端播放视频的过程中,用户使用遥控器的信源按键输出信源切换指令,以将显示终端的信源切换到TV信源;
STEP4:在切换过程中,中间件进程会创建另一个property属性(mediaplayer.force.stop=1,即信源属性值为预设开始标志值);
STEP5:MediaPlayerService监听mediaplayer.force.stop的属性,在收到切换信源的标志(即若mediaplayer.force.stop=1)时,强制停止播放视频的对应底层播放器,并开始释放相应底层播放器硬件资源,并在硬件资源释放完成之后重置标志(mediaplayer.used?=0,即播放器属性值为预设结束标志值),表示底层播放器的硬件资源释放完成;
STEP 6:中间件进程在关闭当前信源时,会查询mediaplayer.used是否为0,如果为0,那说明播放器资源已经释放结束,接着就会置mediaplayer.force.stop=0,即信源属性值为预设结束标志值,表示切换信源的动作完成;
此处,也可以统计属性mediaplayer.force.stop=1所持续的时长,若该持续的时长大于预设时长时,说明推定播放器资源已经释放结束,置mediaplayer.force.stop=0,表示切换信源的动作完成。
STEP 7:当关闭当前信源后,就会打开到指定的TV信源。
上述的过程中三个进程间的property同步尤为重要,主要是通过设定两个property属性来进行同步,在播放视频的时候设定第一个property(mediaplayer.used?)是为了告诉系统我们正在使用播放器,而在切TV信源时设定第二个property(mediaplayer.force.stop)是为了告诉系统,我们要开始切信源,这样监听到后可以尽快的释放播放器所占用的硬件资源,将释放后的硬件资源给TV信源使用,这样就可以正常显示图像和声音了。
应用场景二,非播放视频界面切换TV信源的流程,具体的步骤如下:
STEP1:智能电视开机启动Android系统后,启动MediaServer进程,然后会在原生的medeiaplayerservice服务里面添加一个监听线程;
STEP 2:用户在TV信源下或是在其他非视频类应用的界面,使用遥控器的信源按键切换显示终端到其他的TV信源;
STEP3:在显示终端信源切换过程中,中间件进程会设置property的标志(mediaplayer.force.stop=1);
STEP 4:mediaservice进程判断mediaplayer.force.stop是否为1,如果为1,那就强制停止当前所有的底层播放器,并释放底层播放器相关的硬件资源,但是这种情况下,是没有任何的播放器在播放的,所以就没有释放资源的动作,而且由于没有创建播放器,所以这个时候mediaplayer.used=0;
STEP 5:中间件进程在关闭当前信源时,这时会查询到mediaplayer.used为0,说明底层播放器的硬件资源已经释放结束,接着就会置property属性mediaplayer.force.stop=0,
STEP 6:当关闭当前信源后,就会打开到指定的TV信源。
本发明显示终端信源切换方法的方案只是在通用的播放视频的流程多了一个监听线程和两个property标志位,流程上和一般的智能电视播放视频一样,通过在mediaplayer框架层的修改,可以在不需要修改应用的情况下就可以解决显示终端切换信源出现黑屏无声的问题,同时也很好兼容智能电视的视频应用。此外,本发明显示终端信源切换方法也是提供了一种概念,不仅在智能电视可以使用,其他领域(例如智能手机)相类似设备的也可以使用到这种方法来做相关的扩展。
本发明还提供一种显示终端信源切换装置,该显示终端信源切换装置可以设置在显示终端中,参照图5,在本发明显示终端信源切换装置第一实施例中,该显示终端信源切换装置包括:
指令监测模块10,用于监测是否收到用户输入的信源切换指令;
资源释放模块20,用于当监测到信源切换指令时,强制停止处于运行状态的底层播放器,并释放底层播放器占用的硬件资源;
信源切换模块30,用于当硬件资源释放完成或释放硬件资源的时间超过预设时长时,切换显示终端的信源至信源切换指令对应的目标信源。
本实施例的解释说明请参照说明书显示终端信源切换方法第一实施例部分。
进一步地,在本发明显示终端信源切换装置第一实施例的基础上,提出显示终端信源切换装置第二实施例,在第二实施例中,
指令监测模块10还用于:在显示终端进入安卓系统后,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
本实施例的解释说明请参照说明书显示终端信源切换方法第二实施例部分。
进一步地,在本发明显示终端信源切换装置第一实施例的基础上,提出显示终端信源切换装置第三实施例,参照图6,在第三实施例中,显示终端信源切换还包括:
属性创建模块40,用分别创建表示信源切换动作开始和完成的信源属性值,表示底层播放器运行和停止的播放器属性值。
本实施例的解释说明请参照说明书显示终端信源切换方法第三实施例部分。
优选地,显示终端信源切换装置还包括属性设置模块50,属性设置模块50包括:
第一设置单元51,用于在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
第二设置单元52,用于在信源切换完成时,将所述信源属性值置为预设结束标志值;
第三设置单元53,用于在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
第四设置单元54,用于在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
本实施例的解释说明请参照说明书显示终端信源切换方法第三实施例优选方案部分。
进一步地,在本发明显示终端信源切换装置第三实施例的基础上,提出显示终端信源切换装置第四实施例,在第四实施例中,资源释放模块20包括:
监测单元21,用于监测信源属性值是否被置为预设开始标志值;
释放单元22,用于在信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放底层播放器占用的硬件资源;
信源切换模块30,用于在信源属性值被置为预设结束标志值时,切换显示终端的信源至与信源切换指令对应的目标信源。
本实施例的解释说明请参照说明书显示终端信源切换方法第四实施例部分。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (16)

  1. 一种显示终端信源切换方法,其特征在于,该显示终端信源切换方法包括:
    分别创建表示信源切换动作开始和完成的信源属性值,表示底层播放器运行和停止的播放器属性值;
    在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令;
    当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;及
    当所述硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  2. 如权利要求1所述的显示终端信源切换方法,其特征在于,该方法还包括:
    在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
    在信源切换完成时,将所述信源属性值置为预设结束标志值;
    在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
    在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
  3. 如权利要求2所述的显示终端信源切换方法,其特征在于,该方法包括:
    监测所述信源属性值是否被置为预设开始标志值;
    在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
    在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  4. 如权利要求1所述的显示终端信源切换方法,其特征在于,该方法包括:
    监测所述信源属性值是否被置为预设开始标志值;
    在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
    在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  5. 一种显示终端信源切换方法,其特征在于,该显示终端信源切换方法包括:
    监测是否收到用户输入的信源切换指令;
    当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;及
    当所述硬件资源释放完成或释放硬件资源的时间超出预设时长时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  6. 如权利要求5所述的显示终端信源切换方法,其特征在于,该方法还包括:
    在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
  7. 如权利要求5所述的显示终端信源切换方法,其特征在于,该方法还包括:
    分别创建表示信源切换动作开始和完成的信源属性值,表示底层播放器运行和停止的播放器属性值。
  8. 如权利要求7所述的显示终端信源切换方法,其特征在于,该方法还包括:
    在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
    在信源切换完成时,将所述信源属性值置为预设结束标志值;
    在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
    在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
  9. 如权利要求8所述的显示终端信源切换方法,其特征在于,该方法包括:
    监测所述信源属性值是否被置为预设开始标志值;
    在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
    在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  10. 如权利要求7所述的显示终端信源切换方法,其特征在于,该方法包括:
    监测所述信源属性值是否被置为预设开始标志值;
    在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;及
    在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  11. 一种显示终端信源切换装置,其特征在于,该显示终端信源切换装置包括:
    指令监测模块,用于监测是否收到用户输入的信源切换指令;
    资源释放模块,用于当监测到所述信源切换指令时,强制停止处于运行状态的底层播放器,并释放所述底层播放器占用的硬件资源;
    信源切换模块,用于当所述硬件资源释放完成或释放硬件资源的时间超过预设时长时,切换所述显示终端的信源至所述信源切换指令对应的目标信源。
  12. 如权利要求11所述的显示终端信源切换装置,其特征在于,所述指令监测模块还用于:
    在所述显示终端进入安卓系统,且开启多媒体服务进程时,监测该显示终端是否收到用户输入的信源切换指令。
  13. 如权利要求11所述的显示终端信源切换装置,其特征在于,所述显示终端信源切换装置还包括:
    属性创建模块,用于分别创建表示信源切换动作开始和完成信源属性值,表示底层播放器运行和停止的播放器属性值。
  14. 如权利要求13所述的显示终端信源切换装置,其特征在于,所述显示终端信源切换装置还包括属性设置模块,所述属性设置模块包括:
    第一设置单元,用于在监测到所述信源切换指令时,将所述信源属性值置为预设开始标志值;
    第二设置单元,用于在信源切换完成时,将所述信源属性值置为预设结束标志值;
    第三设置单元,用于在底层播放器开始运行时,将所述播放器属性值置为预设运行标志值;
    第四设置单元,用于在底层播放器占用的硬件资源释放完成或释放硬件资源的时间超出预设时长时,将所述播放器属性值置为预设结束标志值。
  15. 如权利要求14所述的显示终端信源切换装置,其特征在于,
    所述资源释放模块包括:
    监测单元,用于监测所述信源属性值是否被置为预设开始标志值;
    释放单元,用于在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;
    所述信源切换模块,用于在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
  16. 如权利要求13所述的显示终端信源切换装置,其特征在于,
    所述资源释放模块包括:
    监测单元,用于监测所述信源属性值是否被置为预设开始标志值;
    释放单元,用于在所述信源属性值被置为预设开始标志值时,强制停止播放器属性值被置为预设运行标志值的底层播放器,并释放所述底层播放器占用的硬件资源;
    所述信源切换模块,用于在所述信源属性值被置为预设结束标志值时,切换所述显示终端的信源至与所述信源切换指令对应的目标信源。
PCT/CN2016/084968 2016-04-20 2016-06-06 显示终端信源切换方法及装置 WO2017181506A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610248579.2A CN105872768A (zh) 2016-04-20 2016-04-20 显示终端信源切换方法及装置
CN201610248579.2 2016-04-20

Publications (1)

Publication Number Publication Date
WO2017181506A1 true WO2017181506A1 (zh) 2017-10-26

Family

ID=56633488

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084968 WO2017181506A1 (zh) 2016-04-20 2016-06-06 显示终端信源切换方法及装置

Country Status (2)

Country Link
CN (1) CN105872768A (zh)
WO (1) WO2017181506A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672916A (zh) * 2018-12-29 2019-04-23 深圳Tcl新技术有限公司 信源的切换方法、电视机及存储介质
CN111212331A (zh) * 2020-01-13 2020-05-29 烽火通信科技股份有限公司 一种iptv播放器的调度方法及系统
CN112328145A (zh) * 2020-10-09 2021-02-05 深圳Tcl新技术有限公司 图像显示方法、装置、设备及计算机可读存储介质
CN113110881A (zh) * 2020-01-13 2021-07-13 合肥杰发科技有限公司 显示终端及其显示方法、具有存储功能的装置
CN113973233A (zh) * 2021-10-22 2022-01-25 深圳小湃科技有限公司 多平台影片切换播放的优化方法、装置、设备及存储介质
CN113992990A (zh) * 2021-10-26 2022-01-28 北京达佳互联信息技术有限公司 资源播放时长的确定方法、装置、电子设备及存储介质
CN113110881B (zh) * 2020-01-13 2024-04-19 合肥杰发科技有限公司 显示终端及其显示方法、具有存储功能的装置

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959872A (zh) * 2016-10-18 2018-04-24 杭州海康威视系统技术有限公司 一种视频切换方法、装置及视频巡逻系统
CN106454520B (zh) * 2016-10-26 2019-11-19 深圳Tcl数字技术有限公司 信源切换控制方法及装置
CN106658068B (zh) * 2017-01-03 2019-09-17 北京奇虎科技有限公司 一种进程间传递流数据的方法和装置
CN107835442B (zh) * 2017-10-26 2020-12-04 广州朗国电子科技有限公司 广告显示终端上远程控制信号源切换的方法及装置
CN110121084B (zh) * 2018-02-07 2021-10-08 腾讯科技(深圳)有限公司 切换端口的方法、装置和系统
CN108491272B (zh) * 2018-03-29 2022-08-19 青岛海信传媒网络技术有限公司 资源控制方法、装置及终端设备
CN108600838B (zh) * 2018-04-26 2021-08-03 深圳Tcl新技术有限公司 Android电视的信源切换方法、装置、Android电视及可读存储介质
CN108833960A (zh) * 2018-06-14 2018-11-16 青岛海信传媒网络技术有限公司 一种音视频应用切换的方法及装置
CN109451342A (zh) * 2018-11-09 2019-03-08 青岛海信电器股份有限公司 一种开机方法及智能电视
CN109815017A (zh) * 2019-01-18 2019-05-28 北京城市网邻信息技术有限公司 释放图形处理器资源的方法、系统、终端和存储介质
CN110611847B (zh) * 2019-10-16 2022-07-12 北京字节跳动网络技术有限公司 视频预览的方法、装置、存储介质及电子设备
CN112188279A (zh) * 2020-09-30 2021-01-05 青岛海信传媒网络技术有限公司 一种频道切换方法和显示设备
CN114071212A (zh) * 2021-11-15 2022-02-18 北京字节跳动网络技术有限公司 一种信息显示处理方法、装置及电子设备
CN117354470A (zh) * 2023-12-05 2024-01-05 深圳感臻智能股份有限公司 一种多类型监控视频的调度播放方法、系统及应用

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600011A (zh) * 2008-06-03 2009-12-09 中兴通讯股份有限公司 移动终端多媒体的并发播放方法和装置
CN104123181A (zh) * 2014-07-10 2014-10-29 深圳市云宙多媒体技术有限公司 一种界面切换到后台运行自动刷新数据的方法和系统
US20150271417A1 (en) * 2014-03-18 2015-09-24 Jbinvestissements Tv system with improved video switching capabilities, and associated tv environment, server and terminal
CN104994432A (zh) * 2015-06-25 2015-10-21 海信集团有限公司 一种切换音视频应用的方法及电视机
CN105100915A (zh) * 2015-06-25 2015-11-25 海信集团有限公司 一种切换音视频应用的方法及电视机
CN105307026A (zh) * 2014-07-17 2016-02-03 深圳Tcl新技术有限公司 信息插播方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327267B (zh) * 2013-06-26 2017-12-15 Tcl集团股份有限公司 一种视频播放方法、装置及电视机
CN103686369B (zh) * 2013-12-26 2017-08-08 Tcl集团股份有限公司 一种基于Android平台的电视信源切换方法和装置
CN103888832B (zh) * 2014-03-07 2017-06-16 青岛海信宽带多媒体技术有限公司 一种播放终端接入数据源切换的处理方法和装置
CN103945232A (zh) * 2014-03-17 2014-07-23 深圳创维-Rgb电子有限公司 一种电视的资源调度方法和装置
CN105025366B (zh) * 2014-04-29 2018-06-19 Tcl集团股份有限公司 一种智能电视的信源管理方法及系统
CN105282604B (zh) * 2014-07-16 2018-09-18 Tcl集团股份有限公司 一种电视机及其信源智能选择方法
CN105263039A (zh) * 2015-10-26 2016-01-20 普联技术有限公司 视频播放器的切换方法、装置及红外遥控设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600011A (zh) * 2008-06-03 2009-12-09 中兴通讯股份有限公司 移动终端多媒体的并发播放方法和装置
US20150271417A1 (en) * 2014-03-18 2015-09-24 Jbinvestissements Tv system with improved video switching capabilities, and associated tv environment, server and terminal
CN104123181A (zh) * 2014-07-10 2014-10-29 深圳市云宙多媒体技术有限公司 一种界面切换到后台运行自动刷新数据的方法和系统
CN105307026A (zh) * 2014-07-17 2016-02-03 深圳Tcl新技术有限公司 信息插播方法及装置
CN104994432A (zh) * 2015-06-25 2015-10-21 海信集团有限公司 一种切换音视频应用的方法及电视机
CN105100915A (zh) * 2015-06-25 2015-11-25 海信集团有限公司 一种切换音视频应用的方法及电视机

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672916A (zh) * 2018-12-29 2019-04-23 深圳Tcl新技术有限公司 信源的切换方法、电视机及存储介质
CN111212331A (zh) * 2020-01-13 2020-05-29 烽火通信科技股份有限公司 一种iptv播放器的调度方法及系统
CN113110881A (zh) * 2020-01-13 2021-07-13 合肥杰发科技有限公司 显示终端及其显示方法、具有存储功能的装置
CN111212331B (zh) * 2020-01-13 2021-10-15 烽火通信科技股份有限公司 一种iptv播放器的调度方法及系统
CN113110881B (zh) * 2020-01-13 2024-04-19 合肥杰发科技有限公司 显示终端及其显示方法、具有存储功能的装置
CN112328145A (zh) * 2020-10-09 2021-02-05 深圳Tcl新技术有限公司 图像显示方法、装置、设备及计算机可读存储介质
CN113973233A (zh) * 2021-10-22 2022-01-25 深圳小湃科技有限公司 多平台影片切换播放的优化方法、装置、设备及存储介质
CN113992990A (zh) * 2021-10-26 2022-01-28 北京达佳互联信息技术有限公司 资源播放时长的确定方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105872768A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017181506A1 (zh) 显示终端信源切换方法及装置
WO2010035929A1 (en) Image display apparatus and channel information display method thereof
WO2011132984A2 (ko) 서로 다른 소스에 의해 제공되는 컨텐츠의 이전 시청 리스트 제공 방법 및 상기 방법을 수행하는 디스플레이 장치
WO2013055164A1 (ko) 콘텐츠 디스플레이 방법, 콘텐츠 동기화 방법, 방송 콘텐츠 디스플레이 방법 및 디스플레이 장치
WO2016114607A1 (en) User terminal apparatus, system, and control method thereof
WO2019045337A1 (en) IMAGE DISPLAY APPARATUS AND METHOD FOR OPERATING SAME
WO2018028124A1 (zh) 电视机及其信号源的切换方法
WO2017063368A1 (zh) 视频广告的插播方法及装置
WO2017036209A1 (zh) 基于智能电视的音频数据播放方法、智能电视及系统
WO2020145631A1 (en) Content reproducing apparatus and content reproducing method
WO2017018732A1 (en) Electronic device and method for providing content
WO2015186951A1 (en) Broadcast receiving apparatus and audio output method thereof
WO2017063366A1 (zh) 应用启动方法和系统
WO2016061887A1 (zh) 一种视频转换方法、装置、播放系统及终端
WO2016206223A1 (zh) 截图的方法及系统
WO2023027487A1 (ko) 디스플레이 장치 및 디스플레이 장치의 제어 방법
WO2018094813A1 (zh) 媒体扫描与播放的控制方法、装置及智能设备
WO2016058471A1 (zh) 显示设备及对mhl信源实现来电通功能的方法
WO2016036227A1 (ko) 셋탑 박스, 그를 이용한 IoT 기기 제어 방법 및 컴퓨터 프로그램
WO2019031718A1 (en) ELECTRONIC APPARATUS AND CONTROL METHOD THEREOF
US8135075B2 (en) Method and devices for processing and reestablishing multimedia streams
WO2020071816A1 (ko) 디스플레이 장치 및 상기 디스플레이 장치와 통신하는 서버
WO2023090863A1 (ko) 전자 장치 및 그 동작 방법
WO2022080866A1 (ko) 전자 장치 및 그 동작 방법
WO2019128177A1 (zh) 熄屏状态下的音乐播放控制方法、装置和计算机存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16899093

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.03.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16899093

Country of ref document: EP

Kind code of ref document: A1