CN114501110B - Solution for playing ghost when HOME key exits in IPTV - Google Patents

Solution for playing ghost when HOME key exits in IPTV Download PDF

Info

Publication number
CN114501110B
CN114501110B CN202210381575.7A CN202210381575A CN114501110B CN 114501110 B CN114501110 B CN 114501110B CN 202210381575 A CN202210381575 A CN 202210381575A CN 114501110 B CN114501110 B CN 114501110B
Authority
CN
China
Prior art keywords
playing window
state
playing
canvas
home key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210381575.7A
Other languages
Chinese (zh)
Other versions
CN114501110A (en
Inventor
王�琦
蔡青
董莹
***
许强
隆龙
王光永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haikan Network Technology Shandong Co ltd
Original Assignee
Haikan Network Technology Shandong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haikan Network Technology Shandong Co ltd filed Critical Haikan Network Technology Shandong Co ltd
Priority to CN202210381575.7A priority Critical patent/CN114501110B/en
Publication of CN114501110A publication Critical patent/CN114501110A/en
Application granted granted Critical
Publication of CN114501110B publication Critical patent/CN114501110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

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

Abstract

The invention belongs to the technical field of network television image communication, and particularly relates to a method for solving the problem of playing ghost when an HOME key is withdrawn in an IPTV. The method is suitable for different set top box ROM systems, the watching effect of a user is effectively improved, and the product experience is improved.

Description

Solution for playing ghost when HOME key exits in IPTV
Technical Field
The invention relates to the technical field of network television image communication, in particular to a method for solving the problem of playing ghost when an HOME key in an IPTV exits.
Background
An IPTV (internet protocol television) is a new technology for providing a plurality of interactive services including digital televisions to home users by using a broadband cable television network and integrating a plurality of technologies such as internet, multimedia, and communication, and the IPTV service itself includes a computer, a television, a mobile phone, and a portable terminal, integrates broadcasting and communication technologies, collects multimedia integrated services of a cable and a wireless IP network, is an important representative of new media, and provides video and audio services on all IP networks, such as video podcasting, video sharing, video searching, P2P Streaming, a broadband portal, a network television station, TPS, mobile video, and a mobile television, which belong to the IPTV service category.
At present, the domestic IPTV service is mainly provided to users by wide operators (including mobile, telecom and Unicom) in the form of value-added services, the operators install network set-top boxes with IPTV applications for users who purchase the value-added services, and provide fixed accounts for the set-top boxes, and the users obtain the IPTV services by using the set-top boxes.
The set-top box is customized for operators by each large set-top box manufacturer, and because the application equipment, platform version and system function adopted by each set-top box manufacturer are greatly different, each set-top box has partial function and performance difference, and partial system players provided by the set-top box have the problem of playing image residual when responding to the exit of a HOME key of a remote controller.
Disclosure of Invention
The invention aims to provide a method for solving the problem of playing image retention when a HOME key exits in an IPTV, which solves the problem that a system player provided by an IPTV set-top box has playing image retention when the HOME key exits.
The technical scheme adopted by the invention for solving the technical problems is as follows: a solution for playing ghost when HOME key exits in IPTV comprises:
s1, the registration system broadcasts and monitors HOME keys;
s2, after monitoring the HOME key event, thoroughly releasing the player resource and resetting the state of the playing window;
s3, redrawing the canvas of the player after the playing window is reset, and setting the background of the playing window;
s4, changing the display state of the playing window to make the display state of the playing window view hidden before being displayed.
The invention has the following beneficial effects: the method is suitable for different set top box ROM systems, the watching effect of a user is effectively improved, and the product experience is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a flowchart of the registration system broadcasting and monitoring HOME keys according to the present invention.
FIG. 3 is a flow chart of releasing a player when a HOME key event is monitored according to the present invention.
FIG. 4 is a flow diagram of resetting a canvas when a HOME key event is monitored according to the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings.
According to the solution shown in fig. 1 to fig. 4, a method for solving a ghost when a HOME key in an IPTV exits includes:
s1, the registration system broadcasts and monitors HOME keys;
s2, after monitoring the HOME key event, thoroughly releasing the player resource and resetting the state of the playing window;
s3, redrawing the canvas of the player after the playing window is reset, and setting the background of the playing window;
s4, changing the display state of the playing window to hide the display state of the playing window view and then display the hidden display state, so that the popup window is not displayed after the application exits, and the application can be played normally when the application enters again.
Specifically, the method for registering the system broadcast monitoring HOME key in step S1 is as follows:
s101, dynamically registering HOME key broadcast receivers, and responding to intention ACTION _ CLOSE _ SYSTEM _ DIALOGS of the android SYSTEM;
s102, judging the additional information of the intention in the HOME key broadcast receiver, confirming that the HOME key broadcast is based on the action name of the intention and the additional information, and filtering the event containing the homekey.
Specifically, the method for completely releasing the player resources in step S2 includes:
s201, the playing window executes a stopPlayBack () method to stop playing and release resources;
s202, starting a 200-millisecond delay task through an android handler;
s203, in the delay task, acquiring the current state of the playing window through reflection, and if the current state is not an idle state, executing a step S204;
s204, acquiring a MediaPlayer object of the playing window through reflection, and calling a release method of the MediaPlayer object;
s205, the MediaPlayer reference of the playing window is set to null by reflection.
Specifically, the method for redrawing the player canvas in step S3 includes:
s301, setting a canvas cleaning state for the playing window;
s302, rewriting a drawing method of the playing window, and drawing the canvas to be transparent when the cleaning state of the canvas is that the canvas needs to be cleaned;
s303, when the HOME key event is detected, setting the canvas cleaning state as the cleaning requirement, and triggering the drawing method of the rewritten playing window in the S302;
s304, monitoring a drawing method end event of the rewritten playing window, and if the canvas cleaning state is that cleaning is needed, binding Callback for the SurfaceHolder of the playing window again;
s305, setting the canvas cleaning state as not-required cleaning.
Specifically, the method for changing the display state of the play window in step S4 is as follows:
s401, calling a view display method of an android, and setting a play window to be in a display state;
s402, calling an android view hiding method, and setting the playing window to be in a hidden state.
The present invention is not limited to the above embodiments, and any structural changes made under the teaching of the present invention shall fall within the protection scope of the present invention, which is similar or similar to the technical solutions of the present invention.
The techniques, shapes, and configurations not described in detail in the present invention are all known techniques.

Claims (1)

1. A solution for playing ghost when HOME key exits in IPTV is characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
s1, dynamically registering HOME key broadcast receivers, responding to the intention of the android system, judging the additional information of the intention in the HOME key broadcast receivers, confirming that the HOME key broadcast is carried out according to the action name and the additional information of the intention, and filtering the event containing the homekey;
s2, after monitoring HOME key event, thoroughly releasing player resources and resetting the state of the playing window, wherein the steps of thoroughly releasing player resources and resetting the state of the playing window include:
s201, the playing window executes a stopPlayBack () method to stop playing and release resources;
s202, starting a 200-millisecond delay task through an android handler;
s203, in the delay task, acquiring the current state of the playing window through reflection, and if the current state is not an idle state, executing a step S204;
s204, acquiring a MediaPlayer object of the playing window through reflection, and calling a release method of the MediaPlayer object;
s205, the MediaPlayer reference of the playing window is nulled through reflection;
s3, redrawing the canvas of the player after the playing window is reset, and setting the background of the playing window, wherein the redrawing of the canvas of the player comprises the following steps:
s301, setting a canvas cleaning state for the playing window;
s302, rewriting a drawing method of the playing window, and drawing the canvas to be transparent when the cleaning state of the canvas is that the canvas needs to be cleaned;
s303, when the HOME key event is detected, setting the canvas cleaning state as the cleaning requirement, and triggering the drawing method of the rewritten playing window in the S302;
s304, monitoring a drawing method end event of the rewritten playing window, and if the canvas cleaning state is that cleaning is needed, binding Callback for the SurfaceHolder of the playing window again;
s305, setting the canvas cleaning state as a state which does not need cleaning;
s4, changing the display state of the playing window, wherein the steps adopted for changing the display state of the playing window are as follows:
s401, calling a view display method of an android, and setting a play window to be in a display state;
s402, calling an android view hiding method, and setting the playing window to be in a hidden state.
CN202210381575.7A 2022-04-13 2022-04-13 Solution for playing ghost when HOME key exits in IPTV Active CN114501110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210381575.7A CN114501110B (en) 2022-04-13 2022-04-13 Solution for playing ghost when HOME key exits in IPTV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210381575.7A CN114501110B (en) 2022-04-13 2022-04-13 Solution for playing ghost when HOME key exits in IPTV

Publications (2)

Publication Number Publication Date
CN114501110A CN114501110A (en) 2022-05-13
CN114501110B true CN114501110B (en) 2022-09-16

Family

ID=81487638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210381575.7A Active CN114501110B (en) 2022-04-13 2022-04-13 Solution for playing ghost when HOME key exits in IPTV

Country Status (1)

Country Link
CN (1) CN114501110B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461555A (en) * 2014-12-22 2015-03-25 浪潮软件集团有限公司 Method for directly controlling each playing application in Home application
CN112711367A (en) * 2020-12-14 2021-04-27 海看网络科技(山东)股份有限公司 Method for preventing loaded player from collapsing for web page in IPTV
CN113110901A (en) * 2020-01-13 2021-07-13 奇安信科技集团股份有限公司 Desktop locking control method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005033880A2 (en) * 2003-09-28 2005-04-14 Nbor Corporation Method and apparatus for performing multimedia operations
JP2007048348A (en) * 2005-08-08 2007-02-22 Toshiba Corp Information storage medium, information reproducing apparatus, information reproducing method, and information reproducing program
US20090228897A1 (en) * 2008-03-04 2009-09-10 Murray Frank H Bidirectional Control of Media Players
CN105100859A (en) * 2014-05-21 2015-11-25 中兴通讯股份有限公司 Multi-mode set-top box and mode management method thereof
CN105721919A (en) * 2014-12-02 2016-06-29 中兴通讯股份有限公司 Application switching processing method, application switching processing device and smart set-top box equipment
CN107801085A (en) * 2017-09-30 2018-03-13 口碑(上海)信息技术有限公司 A kind of video playing control method and device
CN109068177B (en) * 2018-07-23 2021-02-12 海信视像科技股份有限公司 Audio and video player resource management method and device, smart television and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461555A (en) * 2014-12-22 2015-03-25 浪潮软件集团有限公司 Method for directly controlling each playing application in Home application
CN113110901A (en) * 2020-01-13 2021-07-13 奇安信科技集团股份有限公司 Desktop locking control method and device
CN112711367A (en) * 2020-12-14 2021-04-27 海看网络科技(山东)股份有限公司 Method for preventing loaded player from collapsing for web page in IPTV

Also Published As

Publication number Publication date
CN114501110A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US8875168B2 (en) Audio/Video monitoring service using set-top boxes and application servers
EP2024861A2 (en) Transmission of sd/hd pip video signals
WO2013042844A1 (en) Smart set-top box and operating method for providing smart service and digital television service using default media player included in single operating system
US20100153995A1 (en) Resuming a selected viewing channel
CN101465977B (en) Method, network and equipment for playing television signal
JP2015513844A (en) Set-top box interaction methods and related set-top boxes and systems
CN106416279A (en) Companion device
CN101835030A (en) System and method for watching television programs by mobile terminal
CN101577650A (en) Household palmtop mobile television system
CN114501110B (en) Solution for playing ghost when HOME key exits in IPTV
CN103167347A (en) Mobile terminal television program audio and video rematching method and mobile terminal television program audio and video rematching system
JP5869132B2 (en) How to provide interactive services
CN101242484A (en) Processing method, system, server, and STB for electronic program guide information
CN105721898A (en) television terminal, cloud server group, television playing system and method
CN101990130A (en) Method for receiving advertisement by cable digital television set-top box
EP2271048B1 (en) Method for provisioning a multimedia service
CN102946558A (en) Method and device for receiving broadcasting digital television by intelligent mobile phone
KR100725919B1 (en) Apparatus and Method for Control of Household Electric Appliances using Broadcasting Middleware in Homenetwork Environment
CN102316300A (en) Video call screen swinging method, system and device
CN202143178U (en) Interactive intelligent web TV
CN106412714A (en) Method and system for realizing videophone
JP2022507914A (en) Equipment and methods for Advanced Television Systems Commission (ATSC) 3.0 applications running on non-ATSC 3.0 services.
CN113395526A (en) Set-top box-based private local area network television interaction method and system
CN103297822A (en) Set-top box and digital signal processing method thereof for television programs
KR101279107B1 (en) Mehtod of providing broadcasting service and system for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant