[go: up one dir, main page]

WO2020048491A1 - Method and terminal for playing streaming media - Google Patents

Method and terminal for playing streaming media Download PDF

Info

Publication number
WO2020048491A1
WO2020048491A1 PCT/CN2019/104422 CN2019104422W WO2020048491A1 WO 2020048491 A1 WO2020048491 A1 WO 2020048491A1 CN 2019104422 W CN2019104422 W CN 2019104422W WO 2020048491 A1 WO2020048491 A1 WO 2020048491A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
descriptor
playback
broadcast
pmt
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.)
Ceased
Application number
PCT/CN2019/104422
Other languages
French (fr)
Chinese (zh)
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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Publication of WO2020048491A1 publication Critical patent/WO2020048491A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/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/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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
    • H04N21/47217End-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 for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Definitions

  • the present application relates to the field of wireless communication technologies, and in particular, to a method and a terminal for playing streaming media.
  • the smart TV manufacturer When inserting streaming media content in broadcast television, the smart TV manufacturer usually plays the streaming media content to the user during the system startup process, and the streaming media content can be updated through a network.
  • the inventors realized that because the streaming media content was played for the user when the TV was turned on, the number of times of playback was less; and because the streaming media content was set by the TV manufacturer, the streaming media content was single.
  • the present application provides a method and a terminal for playing streaming media, which can be used to solve the problems of small number of playbacks and single streaming media content when playing streaming media on broadcast television.
  • a method for playing a streaming media includes:
  • the streaming media descriptor After monitoring that the PMT corresponding to the broadcast television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;
  • streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.
  • the playing the streaming media corresponding to the streaming media descriptor when the playback time arrives includes:
  • Method one is to play streaming media based on the playback address in the streaming media descriptor.
  • Method two is to download and stream the media descriptor based on the playback address in the streaming media descriptor before playback. Play the corresponding streaming media.
  • playing the streaming media corresponding to the streaming media descriptor when the playback time arrives further includes:
  • a timer set according to the playback duration in the streaming media descriptor is displayed and started.
  • the method further includes:
  • the streaming media corresponding to the streaming media descriptor When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.
  • the method after playing the streaming media corresponding to the streaming media descriptor, the method further includes:
  • the above method provides a method for switching from streaming media to broadcast television after streaming media playback ends.
  • the PMT corresponding to the broadcast television channel being changed changes, and there is no streaming media descriptor in the changed PMT.
  • the broadcast television is played, thereby completing the process of switching from playing streaming media to playing broadcast television.
  • a terminal for streaming media playback includes: at least one processing unit and at least one storage unit, where the storage unit stores program code, and when the program code is When executed by the processing unit, the processing unit is caused to perform the following processes:
  • the streaming media descriptor After monitoring that the PMT corresponding to the broadcasting television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;
  • streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.
  • the processing unit is specifically configured to:
  • the processing unit is further configured to:
  • a timer set according to the playback duration in the streaming media descriptor is displayed and started.
  • the processing unit is further configured to:
  • the streaming media corresponding to the streaming media descriptor When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.
  • the processing unit is further configured to:
  • a terminal for streaming media playback provided by an embodiment of the present application includes:
  • Judgment module It is used to determine whether there is a streaming media descriptor in the PMT after monitoring that the PMT corresponding to the broadcast television channel is changing, and the streaming media descriptor includes the playback time and playback duration of the corresponding streaming media. And playback address;
  • a playback module for playing the streaming media descriptor when the broadcast media channel does not change before the playback time in the streaming media descriptor is reached, and Streaming media corresponding to the media descriptor.
  • an embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect are implemented.
  • FIG. 1 is a schematic flowchart of a method for playing streaming media according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a complete method for streaming media playback according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a first terminal for performing streaming media playback according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a second terminal for streaming media playback according to an embodiment of the present application.
  • a digital TV broadcasts a TV program, it first locks the frequency point where the program is located, and then obtains the PMT (Program Map Table) corresponding to the frequency point, and then obtains the audio PID (Packet and Identifier, packet identification) from the PMT. Code), video PID, filtering and decoding the data corresponding to the audio PID and video PID, and finally playing the program according to the filtered and decoded audio PID and video PID.
  • PMT Program Map Table
  • audio PID Packet and Identifier, packet identification
  • streaming media descriptor in the PMT, and then based on the playback time in the streaming media descriptor, Playing time and playing address play streaming media.
  • the radio and television programs must continue to be played. For example, a 10-second streaming advertisement is inserted during the broadcast of the TV series of the radio and television. After the 10-second streaming advertisement is over, the broadcast of the TV series of the radio and television is continued.
  • the execution subject in the embodiment of the present application may be a smart TV.
  • a method for playing a streaming media includes the following steps:
  • the streaming media descriptor includes the playback time, playback duration, and playback of the corresponding streaming media Address, if the streaming media descriptor exists, and the broadcast television channel does not change before the playback time in the streaming media descriptor arrives, the streaming media corresponding to the streaming media descriptor is played when the playback time arrives.
  • a streaming media descriptor exists in the PMT corresponding to the broadcast television channel, and the streaming media corresponding to the streaming media descriptor is played according to the playback time in the streaming media descriptor, where the streaming media existing in the PMT corresponding to the broadcast television channel
  • PMT is a program mapping table. Through this table, information contained in a program can be obtained, such as which streams are composed of the program, the types of these streams (video, audio, data), and the PIDs corresponding to each stream in the program are specified. And the PID corresponding to the program's PCR (Program Clock Reference).
  • the PMT contains data such as PIDs of all video data in the current channel, PIDs of all audio data in the current channel, and PIDs of other data associated with the current channel.
  • Table 1 it is the data structure table of the PMT, and also the meaning of the fields in the PMT.
  • the first column in Table 1 is the syntax, the second column is the number of bits, and the third column is the mnemonic.
  • table_id represents the ID of the PMT, and the number of bits of the PMT ID is 8 bits; the section_syntax_indicator represents the PMT syntax flag, and the number of bits is 1 bit.
  • program_info_length represents the program information length, and this field represents the total length of the PMT descriptor.
  • each program description corresponds to at least one descriptor tag value.
  • the actual code stream determines which program descriptions exist in a PMT. As shown in Table 2, it is the program description included in the PMT and the descriptor tag value corresponding to each program description. As can be seen from the last row "User Private" in Table 2, the descriptor tag values of 64 to 235 are not occupied, so in a specific implementation, the streaming media descriptor may be the descriptor tag values of 64 to 235. Any one of them.
  • X X video_stream_descriptor 3 X X audio_stream_descriptor 4
  • X X hierarchy_descriptor 5 X X registration_descriptor 6
  • X data_stream_alignment_descriptor 7 X
  • X Zh Maximum_bitrate_descriptor 15 X X Private_data_indicator_descriptor 16
  • the PMT mainly provides the mapping relationship between the program number and the program description, and the program description contains information such as audio, video, subtitles, and whether it is encrypted.
  • the terminal will periodically Monitor PMT, such as once every 100ms.
  • the stream media descriptor includes the playback time of the corresponding stream media, Playing time and playing address.
  • the PMT will change when the broadcast and television program is switched to the playback of streaming media, and there will be a stream descriptor in the changed PMT.
  • the PMT containing the streaming media descriptor is previously configured in advance.
  • the configured PMT containing the streaming media descriptor is pushed to the terminal at a preset time, such as in Push the PMT containing the streaming media descriptor to the terminal 2 seconds before playing the streaming media.
  • the descriptor tag value of the streaming media descriptor may be set to 64.
  • Table 3 shows a data structure table of a streaming media descriptor according to an embodiment of the present application.
  • the descriptor tag value corresponding to the streaming media descriptor is 64, the number of bits occupied by the descriptor tag value is 8; the number of bits occupied by the descriptor length is 8; the number of bits occupied by the playback time of the streaming media Is 40; the number of bits occupied by the streaming duration is 16 and the number of bits occupied by the streaming address length is 8.
  • the streaming media descriptor contains the playback time, playback duration, and playback address.
  • the playback time is the time to start playing the streaming media. Since the playback of streaming media is played during the broadcast of the radio and television programs, the streaming media descriptor includes the time to start playing the streaming media, such as starting playback at 7:10. stream media.
  • Streaming media playback time can be encoded using the standard UTC (Universal Time Coordinated), also known as Greenwich Mean Time, and MJD (Modified Julian Data, date code) encoding methods. The number of digits is converted to a specific time, such as X year X month X day X hour X minute X second.
  • UTC Universal Time Coordinated
  • MJD Modified Julian Data, date code
  • the playing time that is, the playing time of the streaming media. Since the broadcasting and TV programs will continue to be played after the streaming media ends, the streaming media descriptor includes the playing time of the streaming media, for example, the playing time is 10 seconds.
  • the playing time of the streaming media is a decimal number, and the unit is second, which can be obtained by converting the occupied digits in Table 3, that is, converting binary to decimal.
  • Play address that is, the address for playing streaming media online, or the address for downloading streaming media before playing the streaming media. Because streaming media is a media format that is played on the Internet (network) by streaming, the streaming media descriptor It contains the address for playing streaming media. When the playback time arrives, the streaming media is played according to the playback address.
  • the playback address of the streaming media is a specific character string, and the specific character string can be determined according to the playback address data.
  • Radio and television channels have different PMTs. If the radio and television channels change, the terminal will play according to the PMT corresponding to the changed radio and television channels. When the broadcast time does not change, the broadcast and television channels will not change. Play streaming media when the play time arrives.
  • PMT1 For example, after the PMT corresponding to the broadcast TV channel 1 is changed, it is PMT1. There is a streaming media descriptor in PMT1. The playback time in this streaming media descriptor is 7:10, and before 7:10, the broadcast TV The channel was switched to broadcast TV channel 2, but at 7:10, the broadcast TV channel was switched back to broadcast TV channel 1. At this time, the streaming media corresponding to the streaming media descriptor in PMT1 can be played.
  • Method 1 When the playback time arrives, the streaming media corresponding to the streaming media descriptor is played according to the playback address in the streaming media descriptor.
  • the method for playing streaming media is online playing.
  • the way to play streaming media is to download and play the streaming media in advance, that is, to download the streaming media according to the playing address before the streaming media playing time arrives. Because the streaming media is downloaded to the terminal in advance, the streaming media is played. In the media process, there will be no stalling because of the bad network.
  • the downloaded streaming media may be deleted immediately, or it may not be deleted temporarily.
  • the terminal periodically deletes the streaming media stored in the terminal, such as once every 24 hours.
  • a timer that is often set according to the playback time in the streaming media descriptor may be displayed and started on the terminal when the playback time arrives.
  • the timer is used to display the duration of streaming media playback, which can be either a countdown or a timing.
  • the duration of streaming media playback can be either a countdown or a timing.
  • the terminal can display from 10 to 0 and end. It can be displayed from 0 to 10.
  • the started timer when the started timer counts down, you can use this timer to notify the user how long the streaming media can be played, such as 10 seconds. At this time, the user can switch channels arbitrarily. After 10 seconds, the user can switch again. Go to this channel to watch radio and television programs.
  • the timer set according to the playing time in the streaming media descriptor is displayed and started. In addition to displaying and starting when the playing time reaches, it can also display and start the first timer before the playing time reaches. A second timer is displayed and started upon arrival. At this time, the first timer is set according to a preset duration before the playback time in the streaming media descriptor reaches, and the second timer is set according to the playback duration in the streaming media descriptor.
  • a first timer is displayed and started 5 seconds before the streaming playback time reaches, and the first timer is set according to a preset duration of 5 seconds, and a second timer is displayed and started when the streaming playback time reaches. Set it according to the playback duration of 10 seconds in the stream descriptor.
  • the streaming time is 7 o'clock
  • the first timer starts at 6:55 seconds and counts down.
  • the second timer is displayed and started at 7 o'clock in the streaming time. The countdown counts down to 10 The end of the second and the streaming playback ends.
  • the first timer here can accurately know the time of streaming media when a user watches a broadcast television program.
  • the terminal When playing streaming media, there is also a possibility that the user switches the broadcast TV channel while watching the streaming media playback. If the user switches the broadcast TV channel, the terminal will play the broadcast TV program or the PMT corresponding to the changed broadcast TV channel. stream media.
  • streaming media descriptors in the PMT may be streaming media descriptors in the PMT corresponding to the changed radio and television channels, and there may also be audio descriptors and / or video descriptors for broadcasting television programs, so the changed radio and television channels may play streaming media. Radio and TV programs may also be played.
  • the broadcast TV channel that plays streaming media is broadcast TV channel 1.
  • the terminal obtains the PMT information in PMT2 corresponding to the broadcast TV channel 2 and resolves that it is useful in PMT2 Audio descriptors and video descriptors for broadcast TV programs, if there is no stream descriptor, the terminal will play broadcast TV according to PMT2;
  • the terminal obtains the PMT information in PMT3 corresponding to radio and television channel 3, and analyzes that there is a stream descriptor in PMT3, and there is no audio descriptor and / Or video descriptor, the terminal plays the streaming media according to the PMT3;
  • the terminal obtains the PMT information in the PMT4 corresponding to the radio and television channel 4, and resolves to the existence of both a stream descriptor and an audio descriptor for broadcasting of the television program And / or video descriptor, the terminal performs streaming media playback or broadcast TV program playback according to PMT4. For example, if the time for switching to broadcast TV channel 4 is streaming media playback time, then streaming media playback is performed; switching to broadcast TV channel 4 If the time is not the playback time of the streaming media, the broadcast TV program is played.
  • the terminal monitors that the PMT corresponding to the broadcasting TV channel being changed changes, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors used for broadcasting TV programs. After the media playback ends, broadcast television is played according to the audio descriptors and / or video descriptors present in the changed PMT.
  • FIG. 2 it is a schematic flowchart of a complete method for playing streaming media according to an embodiment of the present application.
  • Step 200 Lock the broadcast television channel
  • Step 201 Play a radio and television program.
  • Step 202 Periodically monitor the PMT.
  • Step 203 Determine whether the PMT has changed. If yes, go to step 204; otherwise, go to step 202;
  • Step 204 Parse the changed PMT
  • Step 205 Determine whether there is a streaming media descriptor in the PMT, and if yes, go to step 206; otherwise, go to step 210;
  • Step 206 Obtain the playback time, playback duration, and playback address in the streaming media descriptor.
  • Step 207 Download the streaming media according to the playback address.
  • Step 208 When the playback time arrives, play the downloaded streaming media, and display and start the timer;
  • Step 209 The timer time is up, that is, the streaming media is over, and step 203 is performed.
  • Step 210 It is determined whether there are audio descriptors and video descriptors for broadcasting a television program in the PMT, and if yes, step 211 is performed; otherwise, the playback is ended;
  • Step 211 Acquire an audio descriptor and a video descriptor for broadcasting a television program in the PMT;
  • Step 211 Play a broadcast television program.
  • Streaming media advertisements are inserted during the broadcast of radio and television programs on ordinary smart televisions.
  • the advertisement content is stored on the streaming media server, and the information such as the play address, play time, and play time corresponding to the advertisement content is encoded into the PMT.
  • Step 1 encode the advertisement content and store it on the streaming server
  • Step 2 Use existing mature streaming media protocols (HLS / MSS / DASH, etc.) to distribute advertisements and obtain corresponding playback addresses (this embodiment does not depend on a specific streaming media protocol);
  • Step 3 According to the needs of the radio and television signals, obtain the playing time and playing time of each advertising segment;
  • Step 4 Generate the PMT1 according to the definition of the PMT extended description of the advertisement's play address, play time, and play time;
  • Step 5 Start inserting PMT1 repeatedly at 100 millisecond intervals 2 seconds before the advertisement playback time;
  • Step 6 When the play time arrives, play the advertisement according to the play address
  • Step 7. 2 seconds before the end of the advertisement playback, stop inserting PMT1, and start inserting PMT2 for broadcasting TV programs;
  • Step 8 When the playing duration ends, stop playing the advertisement and start playing the TV broadcast program.
  • Streaming advertisements are inserted during the broadcast of TV programs on a smart TV with a CAM card inserted.
  • the flow of the broadcast TV signal is: the signal cable carrying the TV signal ⁇ the cable TV interface ⁇ the TV ’s Tuner / Demod (demodulation) Device) ⁇ CAM card ⁇ TV's Demux (demultiplexer) ⁇ TV's Decoder (decoder) ⁇ display.
  • the application inside the CAM card can modify the PMT and TV signals flowing through the CAM card, so as to achieve the effect of playing streaming media under the broadcast television channel.
  • Step 1 Play a broadcast TV program on the smart TV with the CAM card inserted;
  • Step 2 The application in the CAM generates a streaming media advertisement to be played after learning that the smart TV is playing a broadcast television program;
  • Step 3 The application in the CAM generates a new PMT according to the PMT extension definition of the streaming media playback address, playback time, and playback duration, etc .;
  • Step 4 The application in the CAM removes the PMT of the TS stream flowing through the CAM card, and replaces all the PMT with the new PMT obtained in step 3.
  • Step 5 When the playback time arrives, play a streaming media advertisement corresponding to the playback address.
  • an embodiment of the present application further provides a terminal for playing streaming media.
  • the method corresponding to the terminal is a method for playing streaming media in the embodiment of the present application.
  • the method is similar, so the implementation of the terminal may refer to the method implementation, and the duplicated details are not described again.
  • a terminal for performing streaming media playback includes: at least one processing unit 300 and at least one storage unit 301, where the storage unit 301 stores program code, and When the program code is executed by the processing unit 300, the processing unit 300 is caused to perform the following processes:
  • the streaming media descriptor After monitoring that the PMT corresponding to the broadcasting television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;
  • streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.
  • processing unit 300 is specifically configured to:
  • processing unit 300 is further configured to:
  • a timer set according to the playback duration in the streaming media descriptor is displayed and started.
  • processing unit 300 is further configured to:
  • the streaming media corresponding to the streaming media descriptor When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.
  • processing unit 300 is further configured to:
  • a terminal for streaming media playback is provided in the embodiment of the present application, because the method corresponding to the terminal is a method for streaming media playback in the embodiment of the present application, and the principle of the terminal for solving the problem Similar to this method, the implementation of this terminal can refer to the implementation of the method, and the duplicated details will not be repeated here.
  • an embodiment of the present application provides a terminal for streaming media playback, including a determination module 400 and a playback module 401:
  • Judging module 400 It is used to determine whether there is a streaming media descriptor in the PMT after monitoring that the PMT corresponding to the broadcasting television channel being played changes, and the streaming media descriptor includes the playback time and playback time of the corresponding streaming media. Duration and playback address;
  • a playback module 401 configured to play the same content as the broadcast TV channel if the broadcast media descriptor does not change before the playback time in the streaming media descriptor arrives; The streaming media corresponding to the streaming media descriptor.
  • the playback module 401 is specifically configured to:
  • the playback module 401 is further configured to:
  • a timer set according to the playback duration in the streaming media descriptor is displayed and started.
  • the playback module 401 is further configured to:
  • the streaming media corresponding to the streaming media descriptor When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.
  • the playback module 401 is further configured to:
  • An embodiment of the present application further provides a readable storage medium for streaming media playback, including program code.
  • program code runs on a computing device
  • the program code is used to cause the computing device to perform streaming media playback.
  • the application can also be implemented in hardware and / or software (including firmware, resident software, microcode, etc.). Still further, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code implemented in the medium for use by an instruction execution system or Used in conjunction with the instruction execution system.
  • a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, transmit, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device, Device or equipment.

Landscapes

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

Abstract

The present application discloses a method and a terminal for playing streaming media. The method and terminal are used to solve the existing issue of the prior art in which there is a small play count and lack of diverse streaming media content when streaming media is played on a broadcast television. According to an embodiment of the present application, upon monitoring that there has been a change in a PMT corresponding to a broadcast television channel currently being played, a determination is made about whether a streaming media descriptor exists in the PMT, the streaming media descriptor comprising a playing time point, a playing duration, and a playing address of corresponding streaming media. If the streaming media descriptor exists and the broadcast television channel has not changed prior to reaching the playing time point, then the streaming media corresponding to the streaming media descriptor is played when the playing time point is reached. There can be multiple streaming media descriptors in a PMT corresponding to a broadcast television channel, that is, there can be multiple playing time points, and different streaming media descriptors can correspond to different streaming media content, such that streaming media can be played multiple times on the broadcast television channel, and content of streaming media can be diverse.

Description

一种进行流媒体播放的方法和终端Method and terminal for playing streaming media

相关申请的交叉引用Cross-reference to related applications

本申请要求在2018年09月05日提交中国专利局、申请号为201811031356.6、申请名称为“一种进行流媒体播放的方法和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 5, 2018, with an application number of 201811031356.6, and the application name is "A Method and Terminal for Streaming Media Playback", the entire contents of which are incorporated herein by reference. In this application.

技术领域Technical field

本申请涉及无线通信技术领域,特别涉及一种进行流媒体播放的方法和终端。The present application relates to the field of wireless communication technologies, and in particular, to a method and a terminal for playing streaming media.

背景技术Background technique

随着网络技术和流媒体技术的发展,越来越多的流媒体内容通过网络的方式进行分发传播,为用户提供灵活的观看需求。With the development of network technology and streaming media technology, more and more streaming media content is distributed and distributed through the network to provide users with flexible viewing requirements.

近年来,越来越多的广播电视用户从传统的广播电视转移至了网络电视,但广播电视特有的广覆盖、低延时、低成本的技术特点,使其在分发电视节目领域拥有不可替代的价值。In recent years, more and more radio and television users have migrated from traditional radio and television to network television, but the unique wide-ranging, low-latency, and low-cost technical characteristics of radio and television make them irreplaceable in the field of distributing television programs. the value of.

相关技术在广播电视中插入流媒体内容时,通常由智能电视制造商在系统启动的过程中向用户播放流媒体内容,并且可以通过网络方式更新流媒体内容。然而通过该种方式,发明人意识到,由于是在电视开机时为用户播放流媒体内容导致播放的次数较少;且由于流媒体内容是电视制造商设置的,所以流媒体内容单一。Related technology When inserting streaming media content in broadcast television, the smart TV manufacturer usually plays the streaming media content to the user during the system startup process, and the streaming media content can be updated through a network. However, in this way, the inventors realized that because the streaming media content was played for the user when the TV was turned on, the number of times of playback was less; and because the streaming media content was set by the TV manufacturer, the streaming media content was single.

发明内容Summary of the Invention

本申请提供一种进行流媒体播放的方法和终端,可以用于解决在广播电视中播放流媒体时,播放次数少,且流媒体内容单一的问题。The present application provides a method and a terminal for playing streaming media, which can be used to solve the problems of small number of playbacks and single streaming media content when playing streaming media on broadcast television.

第一方面,本申请实施例提供的一种进行流媒体播放的方法,包括:In a first aspect, a method for playing a streaming media provided by an embodiment of the present application includes:

在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述 PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;After monitoring that the PMT corresponding to the broadcast television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;

若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.

在一些实施方式中,所述在所述播放时间到达时播放与所述流媒体描述符对应的流媒体,包括:In some embodiments, the playing the streaming media corresponding to the streaming media descriptor when the playback time arrives includes:

在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or

在所述播放时间到达之前根据所述播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Download the streaming media corresponding to the streaming media descriptor according to the playback address before the playback time arrives, and play when the playback time arrives.

上述方法,给出了两种播放流媒体的方式,方式一,根据流媒体描述符中的播放地址播放流媒体;方式二,播放之前根据流媒体描述符中的播放地址下载与流媒体描述符对应的流媒体后再进行播放。The above method provides two ways to play streaming media. Method one is to play streaming media based on the playback address in the streaming media descriptor. Method two is to download and stream the media descriptor based on the playback address in the streaming media descriptor before playback. Play the corresponding streaming media.

在一些实施方式中,在所述播放时间到达时播放与所述流媒体描述符对应的流媒体,还包括:In some embodiments, playing the streaming media corresponding to the streaming media descriptor when the playback time arrives further includes:

在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started.

上述方法,在流媒体描述符中的播放时间到达时,显示并启动根据流媒体描述符中的播放市场设置的定时器,从而能够直观的在终端上展现该流媒体的播放时长,以及该流媒体还有多久能够播放完。In the above method, when the playback time in the streaming media descriptor arrives, a timer set according to the playback market in the streaming media descriptor is displayed and started, so that the playback duration of the streaming media and the streaming can be displayed on the terminal intuitively. How long can the media finish playing.

在一些实施方式中,所述方法还包括:In some embodiments, the method further includes:

在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.

上述方法,如果在流媒体播放过程中,广播电视频道发生了变化,则需要切换到变化后的广播电视频道,并根据变化后的广播电视频道对应的PMT播放广播电视或流媒体,从而完成流媒体到广播电视的切换,或流媒体到流 媒体的切换。In the above method, if the broadcast and television channel changes during the streaming media playing process, it is necessary to switch to the changed broadcast and television channel and play the broadcast television or streaming media according to the PMT corresponding to the changed broadcast and television channel to complete the streaming. Switch from media to broadcast television, or switch from streaming media to streaming media.

在一些实施方式中,所述播放与所述流媒体描述符对应的流媒体之后,还包括:In some embodiments, after playing the streaming media corresponding to the streaming media descriptor, the method further includes:

若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT.

上述方法,给出了流媒体播放结束后,由流媒体切换到广播电视的方式,根据正在播放的广播电视频道对应的PMT发生变化,并且变化后的PMT中不存在流媒体描述符,存在用于广播电视播放的音频描述符和/或视频描述符,则在流媒体播放结束后,播放广播电视,从而完成由播放流媒体切换到播放广播电视的过程。The above method provides a method for switching from streaming media to broadcast television after streaming media playback ends. The PMT corresponding to the broadcast television channel being changed changes, and there is no streaming media descriptor in the changed PMT. For audio descriptors and / or video descriptors broadcast on broadcast television, after the streaming media playback ends, the broadcast television is played, thereby completing the process of switching from playing streaming media to playing broadcast television.

第二方面,本申请实施例提供的一种进行流媒体播放的终端,该终端包括:至少一个处理单元、以及至少一个存储单元,其中,所述存储单元存储有程序代码,当所述程序代码被所述处理单元执行时,使得所述处理单元执行下列过程:In a second aspect, a terminal for streaming media playback provided by an embodiment of the present application includes: at least one processing unit and at least one storage unit, where the storage unit stores program code, and when the program code is When executed by the processing unit, the processing unit is caused to perform the following processes:

在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;After monitoring that the PMT corresponding to the broadcasting television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;

若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.

在一些实施方式中,所述处理单元具体用于:In some implementations, the processing unit is specifically configured to:

在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or

在所述播放时间到达之前根据所述播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Download the streaming media corresponding to the streaming media descriptor according to the playback address before the playback time arrives, and play when the playback time arrives.

在一些实施方式中,所述处理单元还用于:In some implementations, the processing unit is further configured to:

在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started.

在一些实施方式中,所述处理单元还用于:In some implementations, the processing unit is further configured to:

在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.

在一些实施方式中,所述处理单元还用于:In some implementations, the processing unit is further configured to:

若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT.

第三方面,本申请实施例提供的一种进行流媒体播放的终端,该终端包括:In a third aspect, a terminal for streaming media playback provided by an embodiment of the present application includes:

判断模块:用于在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;Judgment module: It is used to determine whether there is a streaming media descriptor in the PMT after monitoring that the PMT corresponding to the broadcast television channel is changing, and the streaming media descriptor includes the playback time and playback duration of the corresponding streaming media. And playback address;

播放模块:用于若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。A playback module: for playing the streaming media descriptor when the broadcast media channel does not change before the playback time in the streaming media descriptor is reached, and Streaming media corresponding to the media descriptor.

第四方面,本申请实施例还提供一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面所述方法的步骤。In a fourth aspect, an embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect are implemented.

另外,第二方面至第四方面中任一实现方式所带来的技术效果可参见第一方面中不同实现方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by any of the implementation manners in the second to fourth aspects, refer to the technical effects brought by the different implementation manners in the first aspect, and details are not described herein again.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申 请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can obtain other drawings according to these drawings without paying creative labor.

图1为本申请实施例提供的一种进行流媒体播放的方法流程示意图;FIG. 1 is a schematic flowchart of a method for playing streaming media according to an embodiment of the present application;

图2为本申请实施例提供的一种进行流媒体播放的完整方法的流程示意图;FIG. 2 is a schematic flowchart of a complete method for streaming media playback according to an embodiment of the present application; FIG.

图3为本申请实施例提供的第一种进行流媒体播放的终端的结构示意图;3 is a schematic structural diagram of a first terminal for performing streaming media playback according to an embodiment of the present application;

图4为本申请实施例提供的第二种进行流媒体播放的终端的结构示意图。FIG. 4 is a schematic structural diagram of a second terminal for streaming media playback according to an embodiment of the present application.

具体实施方式detailed description

为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

目前,数字电视在播放电视节目时,首先锁定节目所在的频点,然后获取该频点对应的PMT(Program Map Table,节目映射表),再从该PMT中获取音频PID(Packet Identifier,包识别码)、视频PID,过滤并解码该音频PID和视频PID对应的数据,最后根据过滤并解码后的音频PID和视频PID进行节目的播放。At present, when a digital TV broadcasts a TV program, it first locks the frequency point where the program is located, and then obtains the PMT (Program Map Table) corresponding to the frequency point, and then obtains the audio PID (Packet and Identifier, packet identification) from the PMT. Code), video PID, filtering and decoding the data corresponding to the audio PID and video PID, and finally playing the program according to the filtered and decoded audio PID and video PID.

如果想在播放广播电视节目时插入流媒体,比如在广播电视节目播放过程中,插入10秒的广告,则可以在PMT中插入流媒体描述符,然后根据该流媒体描述符中的播放时间、播放时长和播放地址播放流媒体。If you want to insert streaming media when broadcasting a TV program, such as inserting a 10-second advertisement during the broadcast of a TV program, you can insert a streaming media descriptor in the PMT, and then based on the playback time in the streaming media descriptor, Playing time and playing address play streaming media.

当流媒体播放结束后,还要继续播放广播电视节目,比如在广播电视的电视剧播放过程中插入10秒流媒体广告,10秒流媒体广告结束后,再继续播放广播电视的电视剧。After the streaming media playback is over, the radio and television programs must continue to be played. For example, a 10-second streaming advertisement is inserted during the broadcast of the TV series of the radio and television. After the 10-second streaming advertisement is over, the broadcast of the TV series of the radio and television is continued.

本申请实施例中的执行主体可以是智能电视。The execution subject in the embodiment of the present application may be a smart TV.

本申请实施例描述的应用场景是为了更加清楚的说明本申请实施例的技 术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those of ordinary skill in the art may know that with the new application scenarios, It appears that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

针对上述应用场景,下面结合说明书附图对本申请实施例做进一步详细描述。In view of the above application scenarios, the embodiments of the present application are described in further detail below with reference to the accompanying drawings.

本申请实施例提供的一种进行流媒体播放的方法,如图1所示,包括以下步骤:As shown in FIG. 1, a method for playing a streaming media provided by an embodiment of the present application includes the following steps:

S100、在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;S100. After monitoring that the PMT corresponding to the broadcast television channel being changed changes, determine whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes a playback time, a playback duration, and a playback address of the corresponding streaming media. ;

S101、若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。S101. If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor reaches, playing the streaming media descriptor with the streaming media descriptor when the playback time arrives. Corresponding streaming media.

本申请实施例在监听到正在播放的广播电视频道对应的PMT发生变化后,判断发生该PMT中是否存在流媒体描述符,该流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址,如果存在该流媒体描述符,并且在该流媒体描述符中的播放时间到达前该广播电视频道未发生变化,则在该播放时间到达时播放与该流媒体描述符对应的流媒体。由于在广播电视频道对应的PMT中存在流媒体描述符,并且根据该流媒体描述符中的播放时间播放与该流媒体描述符对应的流媒体,其中广播电视频道对应的PMT中存在的流媒体描述符可以有多个,即播放时间可以有多个,且不同的流媒体描述符可以对应不同的流媒体内容,从而在播放广播电视的过程中可以多次播放流媒体,且流媒体内容可以丰富多样。In the embodiment of the present application, after a change in the PMT corresponding to the broadcast television channel being monitored is detected, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback of the corresponding streaming media Address, if the streaming media descriptor exists, and the broadcast television channel does not change before the playback time in the streaming media descriptor arrives, the streaming media corresponding to the streaming media descriptor is played when the playback time arrives. Because a streaming media descriptor exists in the PMT corresponding to the broadcast television channel, and the streaming media corresponding to the streaming media descriptor is played according to the playback time in the streaming media descriptor, where the streaming media existing in the PMT corresponding to the broadcast television channel There can be multiple descriptors, that is, there can be multiple playback times, and different streaming media descriptors can correspond to different streaming media content, so that during the broadcast TV broadcast process, the streaming media can be played multiple times, and the streaming media content can be Rich and varied.

其中,PMT为节目映射表,通过该表可以得到一路节目中包含的信息,例如该路节目由哪些流构成,这些流的类型(视频、音频、数据),指定节目中各流对应的PID,以及该节目的PCR(Program Clock Reference,节目始终参考)对应的PID。Among them, PMT is a program mapping table. Through this table, information contained in a program can be obtained, such as which streams are composed of the program, the types of these streams (video, audio, data), and the PIDs corresponding to each stream in the program are specified. And the PID corresponding to the program's PCR (Program Clock Reference).

PMT中包含当前频道中所有视频数据的PID、当前频道中所有音频数据的PID、和当前频道关联在一起的其他数据的PID等数据。The PMT contains data such as PIDs of all video data in the current channel, PIDs of all audio data in the current channel, and PIDs of other data associated with the current channel.

如表1所示,为PMT的数据结构表,也是PMT中各字段的含义,表1中的第一列为句法,第二列为比特数,第三列为助记符。比如,table_id代表PMT的ID,PMT的ID的比特数为8bits(位);section_syntax_indicator代表PMT语法标志位,比特数为1bit。As shown in Table 1, it is the data structure table of the PMT, and also the meaning of the fields in the PMT. The first column in Table 1 is the syntax, the second column is the number of bits, and the third column is the mnemonic. For example, table_id represents the ID of the PMT, and the number of bits of the PMT ID is 8 bits; the section_syntax_indicator represents the PMT syntax flag, and the number of bits is 1 bit.

表1Table 1

Figure PCTCN2019104422-appb-000001
Figure PCTCN2019104422-appb-000001

在表1中,program_info_length代表节目信息长度,该字段代表PMT的描述符总的长度。In Table 1, program_info_length represents the program information length, and this field represents the total length of the PMT descriptor.

对于PMT中的描述符,在PMT中会有多种节目描述,每种节目描述对应至少一个描述符标签值,实际的码流决定了在一个PMT中存在哪些节目描述。如表2所示,为PMT中包含的节目描述以及各节目描述对应的描述符标签值。从表2中的最后一行“User Private(用户私自定义)”可以看出,描述符标签值64~235没有被占用,所以在具体实施中,流媒体描述符可以为描述符标签值64~235中的任意一个。For the descriptors in the PMT, there will be multiple program descriptions in the PMT. Each program description corresponds to at least one descriptor tag value. The actual code stream determines which program descriptions exist in a PMT. As shown in Table 2, it is the program description included in the PMT and the descriptor tag value corresponding to each program description. As can be seen from the last row "User Private" in Table 2, the descriptor tag values of 64 to 235 are not occupied, so in a specific implementation, the streaming media descriptor may be the descriptor tag values of 64 to 235. Any one of them.

表2Table 2

descriptor_tagdescriptor_tag TSTS PSPS IdentificationIdentification 00 n/an / a n/an / a ReservedReserved 11 n/an / a n/an / a ReservedReserved 22 XX XX video_stream_descriptorvideo_stream_descriptor 33 XX XX audio_stream_descriptoraudio_stream_descriptor 44 XX XX hierarchy_descriptorhierarchy_descriptor 55 XX XX registration_descriptorregistration_descriptor 66 XX XX data_stream_alignment_descriptordata_stream_alignment_descriptor 77 XX XX target_background_grid_descriptortarget_background_grid_descriptor 88 XX XX Video_window_descriptorVideo_window_descriptor 99 XX XX CA_descriptorCA_descriptor 1010 XX XX ISO_639_language_descriptorISO_639_language_descriptor 1111 XX XX System_clock_descriptorSystem_clock_descriptor 1212 XX XX Multiplex_buffer_utilization_descriptorMultiplex_buffer_utilization_descriptor 1313 XX XX Copyright_descriptorCopyright_descriptor 1414 XX  Zh Maximum_bitrate_descriptorMaximum_bitrate_descriptor 1515 XX XX Private_data_indicator_descriptorPrivate_data_indicator_descriptor 1616 XX XX Smoothing_buffer_descriptorSmoothing_buffer_descriptor 1717 XX  Zh STD_descriptorSTD_descriptor 1818 XX XX IBP_descriptorIBP_descriptor 19-2619-26 XX  Zh Defined in ISO/IEC 13818-6Defined ISO / IEC13818-6 2727 XX XX MPEG-4_video_descriptorMPEG-4_video_descriptor 2828 XX XX MPEG-4_audio_descriptorMPEG-4_audio_descriptor 2929 XX XX IOD_descriptorIOD_descriptor 3030 XX  Zh SL_descriptorSL_descriptor 3131 XX XX FMC_descriptorFMC_descriptor 3232 XX XX External_ES_ID_descriptorExternal_ES_ID_descriptor 3333 XX XX MuxCode_descriptorMuxCode_descriptor 3434 XX XX FmxBufferSize_descriptorFmxBufferSize_descriptor 3535 XX  Zh MultiplexBuffer_descriptorMultiplexBuffer_descriptor 36-6336-63 n/an / a n/an / a ITU-T Rec.H.222.0|ISO/IEC 13818-1 ReservedITU-T Rec.H.222.0 | ISO / IEC13818-1Reserved 64-25564-255 n/an / a n/an / a User PrivateUserPrivate

需要说明的是,PMT主要提供了节目号与节目描述的映射关系,而节目描述包含了音频、视频、字幕以及是否加密等信息。It should be noted that the PMT mainly provides the mapping relationship between the program number and the program description, and the program description contains information such as audio, video, subtitles, and whether it is encrypted.

由于广播电视频道对应的PMT有可能会发生变化,比如由加密流变成非加密流,由非加密流变成加密流,广播电视节目由一路声音变为两路声音等,所以终端会周期性的监听PMT,比如100ms监听一次。Because the PMT corresponding to the broadcast TV channel may change, such as from encrypted stream to non-encrypted stream, from non-encrypted stream to encrypted stream, radio and television programs from one sound to two sounds, etc., the terminal will periodically Monitor PMT, such as once every 100ms.

本申请实施例中,在监听到正在播放的广播电视频道对应的PMT发生变化后,判断该变化后的PMT中是否存在流媒体描述符,该流媒体描述符中包 括对应流媒体的播放时间、播放时长和播放地址。In the embodiment of the present application, after a change in the PMT corresponding to the broadcast television channel being monitored is monitored, it is determined whether a stream media descriptor exists in the changed PMT, and the stream media descriptor includes the playback time of the corresponding stream media, Playing time and playing address.

由于正常情况下广播电视频道播放的是广播电视节目,所以从广播电视节目的播放切换到流媒体的播放时,PMT会发生变化,且在变化后的PMT中会存在流媒体描述符。Because the radio and television channels normally broadcast radio and television programs, the PMT will change when the broadcast and television program is switched to the playback of streaming media, and there will be a stream descriptor in the changed PMT.

需要说明的是,包含流媒体描述符的PMT是之前预先配置好的,当终端播放广播电视节目时,会在预设的时间将配置好的包含流媒体描述符的PMT推送给终端,比如在播放流媒体前2秒向终端推送包含流媒体描述符的PMT。It should be noted that the PMT containing the streaming media descriptor is previously configured in advance. When the terminal plays a broadcast TV program, the configured PMT containing the streaming media descriptor is pushed to the terminal at a preset time, such as in Push the PMT containing the streaming media descriptor to the terminal 2 seconds before playing the streaming media.

在实施中,根据表2的描述符与描述符标签值的对应关系,为了不与表2中的其他描述符冲突,可以将流媒体描述符的描述符标签值设置为64。In implementation, according to the correspondence between the descriptors and descriptor tag values in Table 2, in order not to conflict with other descriptors in Table 2, the descriptor tag value of the streaming media descriptor may be set to 64.

如表3所示为本申请实施例流媒体描述符的数据结构表。表3中,与流媒体描述符对应的描述符标签值为64,描述符标签值所占的位数为8;描述符长度所占的位数为8;流媒体播放时间所占的位数为40;流媒体播放时长所占的位数为16,流媒体播放地址长度所占的位数为8。Table 3 shows a data structure table of a streaming media descriptor according to an embodiment of the present application. In Table 3, the descriptor tag value corresponding to the streaming media descriptor is 64, the number of bits occupied by the descriptor tag value is 8; the number of bits occupied by the descriptor length is 8; the number of bits occupied by the playback time of the streaming media Is 40; the number of bits occupied by the streaming duration is 16 and the number of bits occupied by the streaming address length is 8.

表3table 3

Figure PCTCN2019104422-appb-000002
Figure PCTCN2019104422-appb-000002

从表3中可以看出,流媒体描述符中包含播放时间、播放时长和播放地址。As can be seen from Table 3, the streaming media descriptor contains the playback time, playback duration, and playback address.

其中播放时间,即开始播放流媒体的时间,由于播放流媒体是在播放广播电视节目的过程中播放的,所以在流媒体描述符中包含开始播放流媒体的时间,比如7点10分开始播放流媒体。The playback time is the time to start playing the streaming media. Since the playback of streaming media is played during the broadcast of the radio and television programs, the streaming media descriptor includes the time to start playing the streaming media, such as starting playback at 7:10. stream media.

流媒体播放时间可以采用标准的UTC(Universal Time Coordinated,世界协调时),也称格林威志时间,以及MJD(Modified Julian Data,日期码)的编码方式编码,将表3中的播放时间对应的所占的位数转换为具体的时间,比如X年X月X日X时X分X秒。Streaming media playback time can be encoded using the standard UTC (Universal Time Coordinated), also known as Greenwich Mean Time, and MJD (Modified Julian Data, date code) encoding methods. The number of digits is converted to a specific time, such as X year X month X day X hour X minute X second.

播放时长,即播放流媒体的时长,由于流媒体播放结束后,还会继续播放广播电视节目,所以在流媒体描述符中包含播放流媒体的时长,比如播放时长为10秒。The playing time, that is, the playing time of the streaming media. Since the broadcasting and TV programs will continue to be played after the streaming media ends, the streaming media descriptor includes the playing time of the streaming media, for example, the playing time is 10 seconds.

流媒体的播放时长为十进制的数,单位为秒,具体可以通过表3中的所占的位数进行转换得到,也就是将二进制转换为十进制。The playing time of the streaming media is a decimal number, and the unit is second, which can be obtained by converting the occupied digits in Table 3, that is, converting binary to decimal.

播放地址,即在线播放流媒体的地址,或在播放流媒体之前下载流媒体的地址,由于流媒体是采用流式传输的方式在Internet(网络)上播放的媒体格式,所以在流媒体描述符中包含播放流媒体的地址,在播放时间到达时,根据播放地址进行流媒体的播放。Play address, that is, the address for playing streaming media online, or the address for downloading streaming media before playing the streaming media. Because streaming media is a media format that is played on the Internet (network) by streaming, the streaming media descriptor It contains the address for playing streaming media. When the playback time arrives, the streaming media is played according to the playback address.

流媒体的播放地址为具体的字符串,可以根据播放地址数据确定具体的字符串。The playback address of the streaming media is a specific character string, and the specific character string can be determined according to the playback address data.

确定了变化后的PMT中存在流媒体描述符,并且在该流媒体描述符中的播放时间到达前该广播电视频道未发生变化,则在该流媒体描述符中的播放时间到达时播放与该流媒体描述符对应的流媒体。It is determined that there is a streaming media descriptor in the changed PMT, and the broadcast and television channel does not change before the playback time in the streaming media descriptor reaches, then when the playback time in the streaming media descriptor reaches, The streaming media corresponding to the streaming media descriptor.

广播电视频道不同,对应的PMT也不同,如果广播电视频道发生变化,则终端会根据变化后的广播电视频道对应的PMT进行播放,当流媒体播放时间到达前广播电视频道不发生变化,则会在播放时间到达时播放流媒体。Different radio and television channels have different PMTs. If the radio and television channels change, the terminal will play according to the PMT corresponding to the changed radio and television channels. When the broadcast time does not change, the broadcast and television channels will not change. Play streaming media when the play time arrives.

如果在流媒体播放时间到达前广播电视频道发生了变化,但是在流媒体 播放时间到达时,又回到变化前的广播电视频道,则也可以进行流媒体的播放。If the broadcast and television channels change before the streaming time arrives, but when the streaming time arrives, and then return to the radio and television channels before the change, you can also play the streaming media.

比如,正在播放的广播电视频道1对应的PMT发生变化后为PMT1,PMT1中存在流媒体描述符,该流媒体描述符中的播放时间为7点10分,在7点10分之前,广播电视频道切换到了广播电视频道2,但是在7点10分时广播电视频道又切换回广播电视频道1,此时可以播放PMT1中的与流媒体描述符对应的流媒体。For example, after the PMT corresponding to the broadcast TV channel 1 is changed, it is PMT1. There is a streaming media descriptor in PMT1. The playback time in this streaming media descriptor is 7:10, and before 7:10, the broadcast TV The channel was switched to broadcast TV channel 2, but at 7:10, the broadcast TV channel was switched back to broadcast TV channel 1. At this time, the streaming media corresponding to the streaming media descriptor in PMT1 can be played.

在流媒体描述符中的播放时间到达时播放与该流媒体描述符对应的流媒体有以下两种方式:When the playback time in the streaming media descriptor arrives, there are two ways to play the streaming media corresponding to the streaming media descriptor:

方式一、在播放时间到达时根据流媒体描述符中的播放地址播放与该流媒体描述符对应的流媒体。Method 1: When the playback time arrives, the streaming media corresponding to the streaming media descriptor is played according to the playback address in the streaming media descriptor.

需要说明的是,该播放流媒体的方式为在线播放,在线播放流媒体时无需在播放时间到达之前提前下载需要播放的流媒体,从而可以不占用终端的内存。It should be noted that the method for playing streaming media is online playing. When playing streaming media online, it is not necessary to download the streaming media to be played in advance before the playback time arrives, so as not to occupy the terminal's memory.

方式二、在播放时间到达之前根据该流媒体描述符中的播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Manner 2: Before the playback time arrives, download the streaming media corresponding to the streaming media descriptor according to the playback address in the streaming media descriptor, and play it when the playback time arrives.

需要说明的是,该播放流媒体的方式为将流媒体提前下载后再播放,也就是在流媒体播放时间到达之前根据播放地址下载流媒体,由于提前将流媒体下载到终端,所以在播放流媒体过程中不会因为网络不好出现卡顿的现象。It should be noted that the way to play streaming media is to download and play the streaming media in advance, that is, to download the streaming media according to the playing address before the streaming media playing time arrives. Because the streaming media is downloaded to the terminal in advance, the streaming media is played. In the media process, there will be no stalling because of the bad network.

通过方式二进行流媒体播放时,流媒体播放结束后,可以马上删除下载完的流媒体,也可以暂时不删除,终端会定时删除终端中存储的流媒体,比如24小时删除一次。When the streaming media is played through the second method, after the streaming media playback ends, the downloaded streaming media may be deleted immediately, or it may not be deleted temporarily. The terminal periodically deletes the streaming media stored in the terminal, such as once every 24 hours.

在播放时间到达时播放与流媒体描述符对应的流媒体时,可以在播放时间到达时,在终端上显示并启动根据流媒体描述符中的播放时常设置的定时器。When the streaming media corresponding to the streaming media descriptor is played when the playback time arrives, a timer that is often set according to the playback time in the streaming media descriptor may be displayed and started on the terminal when the playback time arrives.

其中,定时器用来显示流媒体播放的时长,可以是倒计时,也可以是计时,比如流媒体播放时长为10秒,则在播放时间到达时,终端上可以从10 开始显示,到0结束,也可以从0开始显示,到10结束。Among them, the timer is used to display the duration of streaming media playback, which can be either a countdown or a timing. For example, when the streaming media playback duration is 10 seconds, when the playback time reaches, the terminal can display from 10 to 0 and end. It can be displayed from 0 to 10.

在实施中,启动的定时器为倒计时时,则可以通过该定时器通知用户流媒体多长时间能够播放完,比如10秒,此时用户可以任意切换频道,当10秒后,用户可以再切换到该频道进行广播电视节目的观看。In implementation, when the started timer counts down, you can use this timer to notify the user how long the streaming media can be played, such as 10 seconds. At this time, the user can switch channels arbitrarily. After 10 seconds, the user can switch again. Go to this channel to watch radio and television programs.

需要说明的是,显示并启动根据流媒体描述符中的播放时长设置的定时器,除了在播放时间到达时显示并启动,也可以在播放时间到达前显示并启动第一定时器,在播放时间到达时显示并启动第二定时器,此时第一定时器根据流媒体描述符中的播放时间到达前的预设时长设置,第二定时器根据流媒体描述符中的播放时长设置。It should be noted that the timer set according to the playing time in the streaming media descriptor is displayed and started. In addition to displaying and starting when the playing time reaches, it can also display and start the first timer before the playing time reaches. A second timer is displayed and started upon arrival. At this time, the first timer is set according to a preset duration before the playback time in the streaming media descriptor reaches, and the second timer is set according to the playback duration in the streaming media descriptor.

比如,在流媒体播放时间到达前5秒显示并启动第一定时器,第一定时器根据预设时长5秒设置,在流媒体播放时间到达时显示并启动第二定时器,第二定时器根据流媒体描述符中的播放时长10秒进行设置。流媒体播放时间为7点,则在6点55秒启动第一定时器,进行倒计时,5秒倒计时结束后,在流媒体播放时间7点,显示并启动第二定时器,进行倒计时,倒计时10秒结束,流媒体播放结束。For example, a first timer is displayed and started 5 seconds before the streaming playback time reaches, and the first timer is set according to a preset duration of 5 seconds, and a second timer is displayed and started when the streaming playback time reaches. Set it according to the playback duration of 10 seconds in the stream descriptor. When the streaming time is 7 o'clock, the first timer starts at 6:55 seconds and counts down. After the 5 second countdown ends, the second timer is displayed and started at 7 o'clock in the streaming time. The countdown counts down to 10 The end of the second and the streaming playback ends.

这里的第一定时器,在用户观看广播电视节目时,可以准确的得知流媒体播放的时间。The first timer here can accurately know the time of streaming media when a user watches a broadcast television program.

在播放流媒体时,还有一种可能是用户在观看流媒体播放时切换广播电视的频道,如果用户切换了广播电视频道,则终端会根据变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When playing streaming media, there is also a possibility that the user switches the broadcast TV channel while watching the streaming media playback. If the user switches the broadcast TV channel, the terminal will play the broadcast TV program or the PMT corresponding to the changed broadcast TV channel. stream media.

变化后的广播电视频道对应的PMT中可能存在流媒体描述符,也可能存在用于广播电视节目播放的音频描述符和/或视频描述符,所以变化后的广播电视频道可能会播放流媒体,也可能会播放广播电视节目。There may be streaming media descriptors in the PMT corresponding to the changed radio and television channels, and there may also be audio descriptors and / or video descriptors for broadcasting television programs, so the changed radio and television channels may play streaming media. Radio and TV programs may also be played.

比如,此时播放流媒体的广播电视频道为广播电视频道1,如果用户将广播电视频道切换到广播电视频道2,终端获取广播电视频道2对应的PMT2中的PMT信息,解析到PMT2中存在用于广播电视节目播放的音频描述符和视频描述符,不存在流媒体描述符,则终端根据PMT2进行广播电视的播放;For example, at this time, the broadcast TV channel that plays streaming media is broadcast TV channel 1. If the user switches the broadcast TV channel to broadcast TV channel 2, the terminal obtains the PMT information in PMT2 corresponding to the broadcast TV channel 2 and resolves that it is useful in PMT2 Audio descriptors and video descriptors for broadcast TV programs, if there is no stream descriptor, the terminal will play broadcast TV according to PMT2;

如果用户将广播电视频道切换到广播电视频道3,终端获取广播电视频道3对应的PMT3中的PMT信息,解析到PMT3中存在流媒体描述符,不存在用于广播电视节目播放的音频描述符和/或视频描述符,则终端根据PMT3进行流媒体的播放;If the user switches the radio and television channel to radio and television channel 3, the terminal obtains the PMT information in PMT3 corresponding to radio and television channel 3, and analyzes that there is a stream descriptor in PMT3, and there is no audio descriptor and / Or video descriptor, the terminal plays the streaming media according to the PMT3;

如果用户将广播电视频道切换到广播电视频道4,终端获取广播电视频道4对应的PMT4中的PMT信息,解析到PMT4中既存在流媒体描述符,又存在用于广播电视节目播放的音频描述符和/或视频描述符,则终端根据PMT4进行流媒体的播放或广播电视节目的播放,比如切换到广播电视频道4的时间为流媒体播放时间,则进行流媒体播放;切换到广播电视频道4的时间不为流媒体播放时间,则进行广播电视节目的播放。If the user switches the radio and television channel to the radio and television channel 4, the terminal obtains the PMT information in the PMT4 corresponding to the radio and television channel 4, and resolves to the existence of both a stream descriptor and an audio descriptor for broadcasting of the television program And / or video descriptor, the terminal performs streaming media playback or broadcast TV program playback according to PMT4. For example, if the time for switching to broadcast TV channel 4 is streaming media playback time, then streaming media playback is performed; switching to broadcast TV channel 4 If the time is not the playback time of the streaming media, the broadcast TV program is played.

如果流媒体播放结束,可以切换到广播电视节目的播放。当由流媒体播放切换到广播电视节目的播放时,在播放的广播电视频道对应的PMT会发生变化,并且变化后的PMT会替换变化前的PMT。If the playback of the streaming media ends, you can switch to the broadcast TV broadcast. When switching from streaming media playback to broadcast TV broadcast, the PMT corresponding to the broadcast TV channel being broadcast will change, and the changed PMT will replace the PMT before the change.

终端监听到正在播放的广播电视频道对应的PMT发生变化,并且变化后的PMT中不存在流媒体描述符,并且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据变化后的PMT中存在的音频描述符和/或视频描述符播放广播电视。The terminal monitors that the PMT corresponding to the broadcasting TV channel being changed changes, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors used for broadcasting TV programs. After the media playback ends, broadcast television is played according to the audio descriptors and / or video descriptors present in the changed PMT.

如图2所示,为本申请实施例一种进行流媒体播放的完整方法的流程示意图。As shown in FIG. 2, it is a schematic flowchart of a complete method for playing streaming media according to an embodiment of the present application.

步骤200、锁定广播电视频道;Step 200: Lock the broadcast television channel;

步骤201、播放广播电视节目;Step 201: Play a radio and television program.

步骤202、周期性监听PMT;Step 202: Periodically monitor the PMT.

步骤203、判断PMT是否发生变化,如果是,则执行步骤204,否则执行步骤202;Step 203: Determine whether the PMT has changed. If yes, go to step 204; otherwise, go to step 202;

步骤204、解析变化后的PMT;Step 204: Parse the changed PMT;

步骤205、判断PMT中是否有流媒体描述符,如果是,则执行步骤206,否则执行步骤210;Step 205: Determine whether there is a streaming media descriptor in the PMT, and if yes, go to step 206; otherwise, go to step 210;

步骤206、获取流媒体描述符中的播放时间、播放时长和播放地址;Step 206: Obtain the playback time, playback duration, and playback address in the streaming media descriptor.

步骤207、根据播放地址,下载流媒体;Step 207: Download the streaming media according to the playback address.

步骤208、在播放时间到达时,播放下载后的流媒体,并显示和启动定时器;Step 208: When the playback time arrives, play the downloaded streaming media, and display and start the timer;

步骤209、定时器时间到达,即流媒体播放结束,执行步骤203;Step 209: The timer time is up, that is, the streaming media is over, and step 203 is performed.

步骤210、判断PMT中是否存在用于广播电视节目播放的音频描述符和视频描述符,如果是,则执行步骤211,否则,结束播放;Step 210: It is determined whether there are audio descriptors and video descriptors for broadcasting a television program in the PMT, and if yes, step 211 is performed; otherwise, the playback is ended;

步骤211、获取PMT中的用于广播电视节目播放的音频描述符和视频描述符;Step 211: Acquire an audio descriptor and a video descriptor for broadcasting a television program in the PMT;

步骤211、进行广播电视节目的播放。Step 211: Play a broadcast television program.

下面再以具体实施例进行说明。The specific embodiments will be described below.

实施例1Example 1

在普通智能电视上播放广播电视节目过程中插入流媒体广告的播放。Streaming media advertisements are inserted during the broadcast of radio and television programs on ordinary smart televisions.

在广播电视前端,将广告内容存放在流媒体服务器上,并将该广告内容对应的播放地址、播放时间和播放时长等信息编码进PMT。At the front end of the broadcast television, the advertisement content is stored on the streaming media server, and the information such as the play address, play time, and play time corresponding to the advertisement content is encoded into the PMT.

操作流程:Operating procedures:

步骤1、将广告内容进行编码并存放在流媒体服务器上;Step 1: encode the advertisement content and store it on the streaming server;

步骤2、采用现有的成熟的流媒体协议(HLS/MSS/DASH等)分发广告,并得到对应的播放地址,(本实施例不依赖于特定的流媒体协议);Step 2: Use existing mature streaming media protocols (HLS / MSS / DASH, etc.) to distribute advertisements and obtain corresponding playback addresses (this embodiment does not depend on a specific streaming media protocol);

步骤3、根据广播电视信号的需要,得到每个广告片段播放的时间和播放的时长;Step 3: According to the needs of the radio and television signals, obtain the playing time and playing time of each advertising segment;

步骤4、将广告的播放地址、播放时间以及播放时长按照PMT扩展描述的定义,生成PMT1;Step 4. Generate the PMT1 according to the definition of the PMT extended description of the advertisement's play address, play time, and play time;

步骤5、在广告播放时间前2秒,开始以100毫秒为间隔重复插入PMT1;Step 5. Start inserting PMT1 repeatedly at 100 millisecond intervals 2 seconds before the advertisement playback time;

步骤6、在播放时间到达时,根据播放地址播放广告;Step 6. When the play time arrives, play the advertisement according to the play address;

步骤7、在广告播放结束前2秒,停止插入PMT1,并开始插入用于广播电视节目播放的PMT2;Step 7. 2 seconds before the end of the advertisement playback, stop inserting PMT1, and start inserting PMT2 for broadcasting TV programs;

步骤8、播放时长结束,停止播放广告,开始播放电视广播节目。Step 8. When the playing duration ends, stop playing the advertisement and start playing the TV broadcast program.

实施例2Example 2

在插有CAM卡的智能电视机上播放广播电视节目过程中插入流媒体广告的播放。Streaming advertisements are inserted during the broadcast of TV programs on a smart TV with a CAM card inserted.

在插有CAM(Conditional Access Module,视密卡)的智能电视上,广播电视信号的流向为:载有电视信号的信号线→有线电视接口→电视机的Tuner(调谐器)/Demod(解调器)→CAM卡→电视机的Demux(解复用器)→电视机的Decoder(译码器)→显示。On a smart TV with a CAM (Conditional Access Module), the flow of the broadcast TV signal is: the signal cable carrying the TV signal → the cable TV interface → the TV ’s Tuner / Demod (demodulation) Device) → CAM card → TV's Demux (demultiplexer) → TV's Decoder (decoder) → display.

在CAM卡内部的应用可以修改流经CAM卡的PMT及电视信号,从而实现在广播电视频道下播放流媒体的效果。The application inside the CAM card can modify the PMT and TV signals flowing through the CAM card, so as to achieve the effect of playing streaming media under the broadcast television channel.

操作流程:Operating procedures:

步骤1、在插有CAM卡的智能电视上播放广播电视节目;Step 1. Play a broadcast TV program on the smart TV with the CAM card inserted;

步骤2、CAM内的应用程序在得知智能电视正在播放广播电视节目后,生成准备播放的流媒体广告;Step 2. The application in the CAM generates a streaming media advertisement to be played after learning that the smart TV is playing a broadcast television program;

步骤3、CAM内的应用程序将准备播放的流媒体播放地址、播放时间以及播放时长等内容按照PMT扩展定义,生成新的PMT;Step 3. The application in the CAM generates a new PMT according to the PMT extension definition of the streaming media playback address, playback time, and playback duration, etc .;

步骤4、CAM内的应用程序,将流经CAM卡的TS流的PMT移除,并全部替换为步骤3得到的新的PMT;Step 4. The application in the CAM removes the PMT of the TS stream flowing through the CAM card, and replaces all the PMT with the new PMT obtained in step 3.

步骤5、在播放时间到达时,播放与播放地址对应的流媒体广告。Step 5. When the playback time arrives, play a streaming media advertisement corresponding to the playback address.

基于同一发明构思,本申请实施例中还提供了一种进行流媒体播放的终端,由于该终端对应的方法是本申请实施例一种进行流媒体播放的方法,并且该终端解决问题的原理与该方法相似,因此该终端的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a terminal for playing streaming media. The method corresponding to the terminal is a method for playing streaming media in the embodiment of the present application. The method is similar, so the implementation of the terminal may refer to the method implementation, and the duplicated details are not described again.

如图3所示,本申请实施例提供的一种进行流媒体播放的终端,包括:至少一个处理单元300、以及至少一个存储单元301,其中,所述存储单元301存储有程序代码,当所述程序代码被所述处理单元300执行时,使得所述处理单元300执行下列过程:As shown in FIG. 3, a terminal for performing streaming media playback provided in an embodiment of the present application includes: at least one processing unit 300 and at least one storage unit 301, where the storage unit 301 stores program code, and When the program code is executed by the processing unit 300, the processing unit 300 is caused to perform the following processes:

在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;After monitoring that the PMT corresponding to the broadcasting television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media;

若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media.

可选的,所述处理单元300具体用于:Optionally, the processing unit 300 is specifically configured to:

在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or

在所述播放时间到达之前根据所述播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Download the streaming media corresponding to the streaming media descriptor according to the playback address before the playback time arrives, and play when the playback time arrives.

可选的,所述处理单元300还用于:Optionally, the processing unit 300 is further configured to:

在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started.

可选的,所述处理单元300还用于:Optionally, the processing unit 300 is further configured to:

在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.

可选的,所述处理单元300还用于:Optionally, the processing unit 300 is further configured to:

若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT.

基于同一发明构思,本申请实施例中还提供了另一种进行流媒体播放的终端,由于该终端对应的方法是本申请实施例一种进行流媒体播放的方法,并且该终端解决问题的原理与该方法相似,因此该终端的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, another embodiment of a terminal for streaming media playback is provided in the embodiment of the present application, because the method corresponding to the terminal is a method for streaming media playback in the embodiment of the present application, and the principle of the terminal for solving the problem Similar to this method, the implementation of this terminal can refer to the implementation of the method, and the duplicated details will not be repeated here.

如图4所示,本申请实施例提供一种进行流媒体播放的终端,包括判断 模块400和播放模块401:As shown in FIG. 4, an embodiment of the present application provides a terminal for streaming media playback, including a determination module 400 and a playback module 401:

判断模块400:用于在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;Judging module 400: It is used to determine whether there is a streaming media descriptor in the PMT after monitoring that the PMT corresponding to the broadcasting television channel being played changes, and the streaming media descriptor includes the playback time and playback time of the corresponding streaming media. Duration and playback address;

播放模块401:用于若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。A playback module 401: configured to play the same content as the broadcast TV channel if the broadcast media descriptor does not change before the playback time in the streaming media descriptor arrives; The streaming media corresponding to the streaming media descriptor.

可选的,所述播放模块401具体用于:Optionally, the playback module 401 is specifically configured to:

在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or

在所述播放时间到达之前根据所述流媒体描述符中的播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Downloading the streaming media corresponding to the streaming media descriptor according to the playback address in the streaming media descriptor before the playback time arrives, and playing when the playback time arrives.

可选的,所述播放模块401还用于:Optionally, the playback module 401 is further configured to:

在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started.

可选的,所述播放模块401还用于:Optionally, the playback module 401 is further configured to:

在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel.

可选的,所述播放模块401还用于:Optionally, the playback module 401 is further configured to:

若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT.

本申请实施例还提供一种进行流媒体播放的可读存储介质,包括程序代码,当所述程序代码在计算设备上运行时,所述程序代码用于使所述计算设备执行流媒体播放的方法的步骤。An embodiment of the present application further provides a readable storage medium for streaming media playback, including program code. When the program code runs on a computing device, the program code is used to cause the computing device to perform streaming media playback. Method steps.

以上参照示出根据本申请实施例的方法、装置(系统)和/或计算机程序 产品的框图和/或流程图描述本申请。应理解,可以通过计算机程序指令来实现框图和/或流程图示图的一个块以及框图和/或流程图示图的块的组合。可以将这些计算机程序指令提供给通用计算机、专用计算机的处理器和/或其它可编程数据处理装置,以产生机器,使得经由计算机处理器和/或其它可编程数据处理装置执行的指令创建用于实现框图和/或流程图块中所指定的功能/动作的方法。The above describes the present application with reference to block diagrams and / or flowcharts showing methods, devices (systems) and / or computer program products according to embodiments of the present application. It should be understood that one block of the block diagrams and / or flowchart illustrations, and a combination of blocks of the block diagrams and / or flowchart illustrations can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, a processor of a special purpose computer, and / or other programmable data processing device to produce a machine such that the instructions executed via the computer processor and / or other programmable data processing device create A method for implementing the functions / actions specified in the block diagrams and / or flowchart blocks.

相应地,还可以用硬件和/或软件(包括固件、驻留软件、微码等)来实施本申请。更进一步地,本申请可以采取计算机可使用或计算机可读存储介质上的计算机程序产品的形式,其具有在介质中实现的计算机可使用或计算机可读程序代码,以由指令执行系统来使用或结合指令执行系统而使用。在本申请上下文中,计算机可使用或计算机可读介质可以是任意介质,其可以包含、存储、通信、传输、或传送程序,以由指令执行系统、装置或设备使用,或结合指令执行系统、装置或设备使用。Accordingly, the application can also be implemented in hardware and / or software (including firmware, resident software, microcode, etc.). Still further, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code implemented in the medium for use by an instruction execution system or Used in conjunction with the instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, transmit, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device, Device or equipment.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and variations.

Claims (11)

一种进行流媒体播放的方法,该方法包括:A method for playing streaming media, the method includes: 在监听到正在播放的广播电视频道对应的节目映射表PMT发生变化后,确定所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间;After monitoring that the program mapping table PMT corresponding to the broadcast television channel being broadcast changes, determining whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time of the corresponding streaming media; 若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media. 如权利要求1所述的方法,所述流媒体描述符中还包括播放地址,所述在所述播放时间到达时播放与所述流媒体描述符对应的流媒体,包括:The method according to claim 1, wherein the streaming media descriptor further comprises a playback address, and playing the streaming media corresponding to the streaming media descriptor when the playback time arrives includes: 在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or 在所述播放时间到达之前根据所述播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Download the streaming media corresponding to the streaming media descriptor according to the playback address before the playback time arrives, and play when the playback time arrives. 如权利要求1所述的方法,所述流媒体描述符中还包括播放时长,在所述播放时间到达时播放与所述流媒体描述符对应的流媒体,还包括:The method according to claim 1, wherein the streaming media descriptor further comprises a playback duration, and playing the streaming media corresponding to the streaming media descriptor when the playback time reaches, further comprising: 在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started. 如权利要求1-3任一所述的方法,所述方法还包括:The method according to any one of claims 1-3, further comprising: 在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel. 如权利要求1-3任一所述的方法,所述播放与所述流媒体描述符对应的流媒体之后,还包括:The method according to any one of claims 1-3, after playing the streaming media corresponding to the streaming media descriptor, further comprising: 若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所 述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT. 一种进行流媒体播放的终端,该终端包括:处理器、以及存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述终端执行下列过程:A terminal for playing streaming media includes a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, causes the terminal to perform the following processes: 在监听到正在播放的广播电视频道对应的PMT发生变化后,判断所述PMT中是否存在流媒体描述符,所述流媒体描述符中包括对应流媒体的播放时间、播放时长和播放地址;After monitoring that the PMT corresponding to the broadcasting television channel being changed changes, it is determined whether a streaming media descriptor exists in the PMT, and the streaming media descriptor includes the playback time, playback duration, and playback address of the corresponding streaming media; 若存在所述流媒体描述符,且在所述流媒体描述符中的播放时间到达前所述广播电视频道未发生变化,则在所述播放时间到达时播放与所述流媒体描述符对应的流媒体。If the streaming media descriptor exists, and the broadcast and television channel does not change before the playback time in the streaming media descriptor arrives, when the playback time reaches the playback time corresponding to the streaming media descriptor, stream media. 如权利要求6所述的终端,所述处理器具体用于:The terminal according to claim 6, wherein the processor is specifically configured to: 在所述播放时间到达时根据所述播放地址播放与所述流媒体描述符对应的流媒体;或Playing the streaming media corresponding to the streaming media descriptor according to the playback address when the playback time arrives; or 在所述播放时间到达之前根据所述播放地址下载与所述流媒体描述符对应的流媒体,并在所述播放时间到达时进行播放。Download the streaming media corresponding to the streaming media descriptor according to the playback address before the playback time arrives, and play when the playback time arrives. 如权利要求6所述的终端,所述处理器还用于:The terminal according to claim 6, the processor is further configured to: 在所述播放时间到达时,显示并启动根据所述流媒体描述符中的播放时长设置的定时器。When the playback time arrives, a timer set according to the playback duration in the streaming media descriptor is displayed and started. 如权利要求6-8任一所述的终端,所述处理器还用于:The terminal according to any one of claims 6 to 8, the processor is further configured to: 在播放与所述流媒体描述符对应的流媒体时,若广播电视频道发生变化,则根据发生变化后的广播电视频道对应的PMT播放广播电视节目或流媒体。When the streaming media corresponding to the streaming media descriptor is played, if the broadcast television channel changes, the broadcast television program or streaming media is played according to the PMT corresponding to the changed broadcast television channel. 如权利要求6-8任一所述的终端,所述处理器还用于:The terminal according to any one of claims 6 to 8, the processor is further configured to: 若监听到正在播放的广播电视频道对应的PMT发生变化,且变化后的PMT中不存在流媒体描述符,且存在用于广播电视节目播放的音频描述符和/或视频描述符,则在流媒体播放结束后,根据所述变化后的PMT中存在的所述音频描述符和/或所述视频描述符播放广播电视节目。If a change is detected in the PMT corresponding to the broadcast TV channel being broadcast, and there is no streaming media descriptor in the changed PMT, and there are audio descriptors and / or video descriptors for broadcast TV program playback, After the media playback ends, a broadcast television program is played according to the audio descriptor and / or the video descriptor existing in the changed PMT. 一种计算机可读的非易失性存储介质,其上存储有计算机程序,该 程序被处理器执行时实现如权利要求1-5任一所述方法。A computer-readable non-volatile storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of claims 1-5.
PCT/CN2019/104422 2018-09-05 2019-09-04 Method and terminal for playing streaming media Ceased WO2020048491A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811031356.6 2018-09-05
CN201811031356.6A CN109218828B (en) 2018-09-05 2018-09-05 Method, terminal and storage medium for playing streaming media

Publications (1)

Publication Number Publication Date
WO2020048491A1 true WO2020048491A1 (en) 2020-03-12

Family

ID=64986342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/104422 Ceased WO2020048491A1 (en) 2018-09-05 2019-09-04 Method and terminal for playing streaming media

Country Status (2)

Country Link
CN (1) CN109218828B (en)
WO (1) WO2020048491A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218828B (en) * 2018-09-05 2021-04-13 青岛海信传媒网络技术有限公司 Method, terminal and storage medium for playing streaming media

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651821A (en) * 2009-07-31 2010-02-17 中国科学技术大学 System and method for realizing interactive television advertisement
CN101668195A (en) * 2008-09-03 2010-03-10 深圳创维数字技术股份有限公司 Method, system and terminal of digital television receiving terminal for displaying advertising message
CN101990130A (en) * 2010-11-12 2011-03-23 福建新大陆通信科技股份有限公司 Method for receiving advertisement by cable digital television set-top box
US20120272263A1 (en) * 2011-04-20 2012-10-25 Verizon Patent And Licensing Inc. Method and apparatus for providing an interactive application within a media stream
CN103686336A (en) * 2013-12-19 2014-03-26 深圳市九洲电器有限公司 Video playing control method and device
CN103945266A (en) * 2014-04-17 2014-07-23 深圳创维数字技术股份有限公司 A method, device and system for processing advertisements
CN109218828A (en) * 2018-09-05 2019-01-15 青岛海信传媒网络技术有限公司 A kind of method and terminal carrying out streaming media playing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668195A (en) * 2008-09-03 2010-03-10 深圳创维数字技术股份有限公司 Method, system and terminal of digital television receiving terminal for displaying advertising message
CN101651821A (en) * 2009-07-31 2010-02-17 中国科学技术大学 System and method for realizing interactive television advertisement
CN101990130A (en) * 2010-11-12 2011-03-23 福建新大陆通信科技股份有限公司 Method for receiving advertisement by cable digital television set-top box
US20120272263A1 (en) * 2011-04-20 2012-10-25 Verizon Patent And Licensing Inc. Method and apparatus for providing an interactive application within a media stream
CN103686336A (en) * 2013-12-19 2014-03-26 深圳市九洲电器有限公司 Video playing control method and device
CN103945266A (en) * 2014-04-17 2014-07-23 深圳创维数字技术股份有限公司 A method, device and system for processing advertisements
CN109218828A (en) * 2018-09-05 2019-01-15 青岛海信传媒网络技术有限公司 A kind of method and terminal carrying out streaming media playing

Also Published As

Publication number Publication date
CN109218828B (en) 2021-04-13
CN109218828A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
KR101828639B1 (en) Method for synchronizing multimedia flows and corresponding device
EP2693748A1 (en) Transmission device, transmission method, receiving device, receiving method, program, and broadcasting system
EP2736252B1 (en) Content regeneration device, content regeneration method, content regeneration program and content providing program
US20160066065A1 (en) Method for transmitting a broadcast service, and method and apparatus for receiving same
CN106464961B (en) Receiving device, sending device and data processing method
US9788034B1 (en) Systems and methods for processing a traffic log having an optional-promotion log entry
KR20110020791A (en) Broadcast signal receiving method and broadcast signal receiving device
EP3270601A1 (en) Self-adaptive streaming medium processing method and apparatus
KR20130016219A (en) Non-real-time broadcast service processing system and processing method thereof
CN102625142B (en) The methods, devices and systems that direct broadcast band time delay is play
KR20180083132A (en) Electronic apparatus, and operating method for the same
KR20220165693A (en) Method and apparatus for digital broadcast services
CN102292988B (en) Method for synchronization of interactive contextual content with broadcasting audio and/or video
KR102697094B1 (en) Use watermarking to control abandonment of dynamic content modifications
JP2002051325A (en) Digital broadcast video receiving apparatus and digital broadcast video receiving method
TW201611590A (en) Method and apparatus for transmission and reception of media data
WO2020048491A1 (en) Method and terminal for playing streaming media
CN104284239A (en) Video playing method and device, video playing client side and multimedia server
EP2837153A1 (en) An improved method and apparatus for providing extended tv data
CN106254931A (en) Program commercial dissemination method based on IPTV and device
US9219933B1 (en) Systems and methods for enabling functionality of a trigger mechanism based on log entries in a traffic log
CN109168077A (en) A kind of playback method and device of personalized advertisement
CN111586471A (en) Advertisement playing control method and device
CN107615767A (en) Sending device, sending method, media processing device, media processing method, and receiving device
WO2016167234A1 (en) Broadcast receiving device, video output method, and data output method

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: 19857902

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 14/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19857902

Country of ref document: EP

Kind code of ref document: A1