Method and apparatus for playing television program
AssigneeHuawei Technologies Co., Ltd.
InventorsChang Liu, Tao Liu, Jiang Rui
Life of this patent
Estimating the term…
Abstract
A terminal device includes an application layer, an operating system layer, a hardware driver layer, and a hardware layer. The operating system layer includes a hardware abstraction layer, and the hardware layer includes a master chip and a television receiver chip. The hardware abstraction layer is disposed between the hardware driver layer and the player application at the application layer, so that the hardware abstraction layer shields the player application from an interface difference of television receiver chips, and provides a unified interface protocol between the player application and the television receiver chip, to be compatible with and support television receiver chips with different interfaces.
Claims17
A method, applied to a terminal device, the terminal device comprising hardware and being configured to implement an application layer, an operating system layer, and a hardware driver layer, the operating system layer comprising a hardware abstraction layer, the hardware comprising a master chip and a television receiver chip, and the method comprising:
- sending, by a player application at the application layer, a cyclic channel search command to the hardware abstraction layer through a first interface;
- sending, by the player application, a first key operation command to the hardware abstraction layer through the first interface;
- sending, by the hardware abstraction layer, a cyclic channel search instruction to a first driver at the hardware driver layer through a second interface, wherein the first driver is a driver of the television receiver chip;
- executing, by the first driver, the cyclic channel search instruction, causing the television receiver chip to search for television signals of television channels, and to output a television program list based on found television signals;
- returning, by the first driver, the television program list to the hardware abstraction layer through the second interface;
- parsing, by the hardware abstraction layer, an entitlement management message (EMM) and a first entitlement control message (ECM) of a target television program based on the first key operation command, and storing the EMM;
- calculating, by the hardware abstraction layer, a first temporary descrambling key of the target television program based on the EMM and the first ECM;
- storing, by the hardware abstraction layer, the first temporary descrambling key of the target television program;
- returning, by the hardware abstraction layer, the television program list to the player application through the first interface;
- receiving, by the hardware abstraction layer through the first interface, a bitstream obtaining command sent by the player application, wherein the bitstream obtaining command requests to obtain a bitstream of the target television program, and wherein the target television program is selected by a user;
- sending, by the hardware abstraction layer, a bitstream obtaining instruction to the first driver through the second interface;
- executing, by the first driver, the bitstream obtaining instruction, causing the television receiver chip to receive the bitstream of the target television program;
- obtaining, by the hardware abstraction layer, the bitstream of the target television program from the first driver through the second interface;
- sending, by the hardware abstraction layer, the bitstream of the target television program to the player application through the first interface;
- decoding, by the player application, the bitstream of the target television program;
- and
- playing, by the player application, decoded audio and video data.
A terminal device, comprising:
- a master chip;
- and
- a television receiver chip;
- wherein the terminal device is configured to implement an application layer, an operating system layer, a hardware driver layer, and a hardware layer, and the operating system layer comprises a hardware abstraction layer;
- wherein the hardware abstraction layer is configured to:
- receive, through a first interface, a bitstream obtaining command sent by a player application at the application layer, wherein the bitstream obtaining command requests to obtain a bitstream of a target television program selected by a user;
- and
- send a bitstream obtaining instruction to a first driver at the hardware driver layer through a second interface, wherein the first driver is a driver of the television receiver chip;
- wherein the first driver is configured to execute the bitstream obtaining instruction, to cause the television receiver chip to receive the bitstream of the target television program;
- wherein the hardware abstraction layer is further configured to:
- obtain the bitstream of the target television program from the first driver through the second interface;
- and
- send the bitstream of the target television program to the player application through the first interface;
- wherein the player application is configured to:
- decode the bitstream of the target television program, and play decoded audio and video data;
- and
- send a disabling command to the hardware abstraction layer through the first interface based on an instruction entered by the user to exit the player application;
- wherein the hardware abstraction layer is further configured to send a disabling instruction to the first driver through the second interface;
- and
- wherein the first driver is further configured to execute the disabling instruction, to perform a disabling operation on the television receiver chip.
Dependencies are inferred from the claim text.