CN111787342A - Streaming media live broadcast viewing method, system, medium and device - Google Patents

Streaming media live broadcast viewing method, system, medium and device Download PDF

Info

Publication number
CN111787342A
CN111787342A CN202010573819.2A CN202010573819A CN111787342A CN 111787342 A CN111787342 A CN 111787342A CN 202010573819 A CN202010573819 A CN 202010573819A CN 111787342 A CN111787342 A CN 111787342A
Authority
CN
China
Prior art keywords
task
trial
viewing
playlist
time
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.)
Granted
Application number
CN202010573819.2A
Other languages
Chinese (zh)
Other versions
CN111787342B (en
Inventor
刘洋
张晓卫
张超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Otvcloud Internet Technology Shanghai Co ltd
Original Assignee
Otvcloud Internet Technology Shanghai 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 Otvcloud Internet Technology Shanghai Co ltd filed Critical Otvcloud Internet Technology Shanghai Co ltd
Priority to CN202010573819.2A priority Critical patent/CN111787342B/en
Publication of CN111787342A publication Critical patent/CN111787342A/en
Application granted granted Critical
Publication of CN111787342B publication Critical patent/CN111787342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/643Communication protocols
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method, a system, a medium and a device for viewing live streaming, which are used for acquiring a viewing request sent by a client, judging whether the viewing request accords with a first viewing request rule or not, and sending the viewing request to a multitask processing module when the viewing request accords with the first viewing request rule; judging whether the trial viewing request is a first trial viewing request, establishing a task and a corresponding ID for the trial viewing request when the trial viewing request is the first trial viewing request, storing the task to a task list, judging whether the trial viewing ending time of the task is reached when the task exists, recovering the ID of the task when the trial viewing ending time is reached and sending an endlist generating instruction to a playlist returning module, and sending the task to the playlist returning module when the trial viewing ending time is not reached; and generating a video file based on the video file generation rule through a playlist return module, and writing the video file information into the playlist to return the playlist to the client. The method and the device are used for preventing the live broadcast source from being circularly stolen due to the fact that the playing interface is cracked when a user tries to watch the live broadcast source.

Description

Streaming media live broadcast viewing method, system, medium and device
Technical Field
The invention relates to the technical field of live broadcast, in particular to a live broadcast viewing method, a live broadcast viewing system, a live broadcast viewing medium and a live broadcast viewing device for streaming media.
Background
Live television is taken as a traditional audio and video service in the market, and is gradually transferred to the internet from a traditional cable television channel in recent years, and a powerful streaming media system is required to be used as a service support when the live television is played on the internet, and the trial watching system related to the invention is a part of the streaming media system. For some premium channels of live television, service providers often adopt paid services, and these paid channels are often expected to enable users to experience premium content for free and then make subsequent paid purchases.
At present, live broadcast watching trial service of the internet television skips to a live broadcast address mainly through an APP upper-layer interface, and then duration of the watching trial behavior is controlled by limiting play time at an APP end. In order to attract the end user to the greatest extent, the user is not required to provide authentication, such as a telephone number or a WeChat, at the time of the trial. But this gives the hotlink the opportunity to sniff the application layer interface by way of network packet-grabbing, emulating an end-user trying to see the request. And because there is no user authentication process, the application layer interface can not distinguish real users from simulated users, the hotlink thief can directly access the live broadcast address with the hotlink, although a CDN (content delivery network) manufacturer provides hotlink service, because the expiration time of the traditional hotlink is often more than 8 hours, the hotlink thief can complete the circulating hotlink process by acquiring the playlist again before the link is invalid, and then steal the corresponding live broadcast resources almost without cost. As is well known, the largest cost of video service on the internet is CDN cost, if a live broadcast source is circularly stolen because a play interface is cracked when a user tries to watch the live broadcast, a huge loss is undoubtedly caused to a streaming media service provider, and a playlist in which the above anti-theft chain scenes are docked is a live broadcast address, the expiration time of the address highly depends on the configuration of the CDN, when a chain stealing situation occurs, if the CDN decreases the expiration time in batches, the live broadcast experience of the user is affected, but if the expiration time is separately configured for a channel trying to watch the live broadcast, when multiple channels try to watch the CDN, the live broadcast experience is abnormally complicated and inflexible, and the cost is correspondingly increased.
Therefore, it is desirable to solve the problem of how to prevent the live broadcast source from being stolen due to the hacking of the playing interface when the user tries to watch the live broadcast source.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a live streaming preview method, a live streaming preview system, a live streaming preview media medium, and a live streaming preview device, so as to solve the problem in the prior art that a live streaming source is circularly stolen due to a cracked play interface when a user previews.
In order to achieve the above and other related objects, the present invention provides a live viewing method for streaming media, which includes the following steps: acquiring a trial viewing request sent by a client through a time processing module, wherein the trial viewing request comprises a start time and a trial viewing duration, judging whether the time difference between the start time and the current time is less than or equal to a first preset time, sending access prohibition information to the client when the time difference is greater than the first preset time, judging whether the trial viewing duration is within a first preset duration range when the time difference is less than or equal to the first preset time, resetting the trial viewing duration when the time difference is not within the first preset duration range, and sending the trial viewing request to a multitask processing module when the time difference is within the first preset duration range; judging whether the trial viewing request is a first trial viewing request or not through the task processing module, establishing a task and a corresponding ID for the trial viewing request when the trial viewing request is the first trial viewing request, storing the task to a task list, inquiring whether the task exists in the task list when the trial viewing request is not the first trial viewing request, sending access prohibition information to the client when the task does not exist, judging whether the trial viewing ending time of the task is reached or not when the task exists, recovering the ID of the task and sending an endlist generation instruction to the playlist returning module when the trial viewing ending time is reached, and sending the task to the playlist returning module when the trial viewing ending time is not reached; and generating a video file based on a video file generation rule through the playlist returning module, writing the video file information of the video file conforming to the trial viewing rule into a playlist, and returning the playlist to the client.
In an embodiment of the present invention, the generating, by the playlist return module, a video file based on a video file generation rule, writing video file information of the video file conforming to a viewing rule into a playlist, and returning the playlist to the client includes: inquiring a video file at the current time of the task from a source station live slice list through the play list returning module, when the video file at the current time is not inquired, acquiring a video file closest to the current time and writing the video file into a play list, when the video file at the current time is inquired, writing the video file at the current time into the play list, judging whether the task is finished or not according to the starting time and the trial viewing duration, returning the play list to the client when the task is not finished, adding an endlist instruction after the play list when the task is finished, and returning the play list and the successful returning information to the client.
In an embodiment of the invention, the first predetermined time is 30 seconds.
In an embodiment of the invention, the first predetermined time period ranges from 1 minute to 10 minutes.
In an embodiment of the invention, the playlist is M3U 8.
In order to achieve the above object, the present invention further provides a live streaming viewing system, including: the system comprises a time processing module, a task processing module and a play list returning module; the time processing module acquires a trial viewing request sent by a client, wherein the trial viewing request comprises a start time and a trial viewing duration, judges whether the time difference between the start time and the current time is less than or equal to a first preset time, sends access prohibition information to the client when the time difference is greater than the first preset time, judges whether the trial viewing duration is within a first preset duration range when the time difference is less than or equal to the first preset time, resets the trial viewing duration when the time difference is not within the first preset duration range, and sends the trial viewing request to the multitask processing module when the time difference is within the first preset duration range; the task processing module is used for judging whether the trial viewing request is a first trial viewing request, establishing a task and a corresponding ID for the trial viewing request when the trial viewing request is the first trial viewing request, storing the task to a task list, inquiring whether the task exists in the task list when the trial viewing request is not the first trial viewing request, sending access prohibition information to the client when the task does not exist, judging whether the trial viewing ending time of the task is reached when the task exists, recovering the ID of the task and sending an endlist generation instruction to the playlist returning module when the trial viewing ending time is reached, and sending the task to the playlist returning module when the trial viewing ending time is not reached; the playlist returning module is used for generating a video file based on the video file generating rule, writing the video file information of the video file meeting the trial viewing rule into a playlist, and returning the playlist to the client.
In an embodiment of the present invention, the playlist returning module is further configured to query a video file at the current time of the task from a source station live slice list, obtain a video file closest to the current time and write the video file into a playlist when the video file at the current time is not queried, write the video file at the current time into the playlist when the video file at the current time is queried, determine whether the task is ended according to the start time and the trial viewing duration, return the playlist to the client when the task is not ended, add an endlist instruction after the playlist when the task is ended, and return the playlist and successfully return information to the client.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the above live streaming viewing methods.
In order to achieve the above object, the present invention further provides a live streaming viewing apparatus, including: a processor and a memory; the memory is used for storing a computer program; the processor is connected with the memory and is used for executing the computer program stored in the memory so as to enable the streaming media live broadcast viewing device to execute any streaming media live broadcast viewing method.
Finally, the invention also provides a live streaming media viewing system, which comprises: the device comprises the streaming media live broadcast viewing device and a client; the client is used for sending a viewing trial request to the streaming media live viewing device, and the client is used for receiving a playlist.
As described above, the method, system, medium and apparatus for viewing live streaming media of the present invention have the following advantages: the method is used for preventing the live broadcast source from being circularly stolen because the playing interface is cracked when a user tries to watch the live broadcast source.
Drawings
FIG. 1a is a flowchart illustrating a live viewing method of streaming media according to an embodiment of the present invention;
FIG. 1b is a flow chart of a live streaming preview method according to another embodiment of the present invention;
FIG. 1c is a flowchart illustrating a live streaming preview method according to another embodiment of the present invention;
FIG. 1d is a flowchart illustrating a live streaming preview method according to another embodiment of the present invention;
fig. 2 is a schematic structural diagram of a live streaming viewing system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a live streaming viewing apparatus according to an embodiment of the present invention;
FIG. 4a is a schematic structural diagram of a live streaming preview system according to another embodiment of the present invention;
fig. 4b is a schematic structural diagram of a live streaming preview system according to another embodiment of the present invention.
Description of the element reference numerals
21 time processing module
22 task processing module
23 playlist return module
31 processor
32 memory
41 live broadcast viewing device of streaming media
42 client
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, so that the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, the type, quantity and proportion of the components in actual implementation can be changed freely, and the layout of the components can be more complicated.
The live broadcast trial viewing method, the live broadcast trial viewing system, the live broadcast trial viewing medium and the live broadcast trial viewing device are used for preventing a live broadcast source from being circularly stolen due to the fact that a playing interface is cracked when a user tries to view the live broadcast source.
As shown in fig. 1a, in an embodiment, the live viewing method of streaming media of the present invention includes the following steps:
step S11, a trial viewing request sent by the client is obtained through the time processing module, the trial viewing request comprises a start time and a trial viewing duration, whether the time difference between the start time and the current time is smaller than or equal to a first preset time or not is judged, when the time difference is larger than the first preset time, access prohibition information is sent to the client, when the time difference is smaller than or equal to the first preset time, whether the trial viewing duration is within a first preset duration range or not is judged, when the time difference is not within the first preset duration range, the trial viewing duration is reset, and when the time difference is within the first preset duration range, the trial viewing request is sent to the multitask processing module.
Step S12, the task processing module determines whether the trial viewing request is a first trial viewing request, establishes a task and a corresponding ID for the trial viewing request when the first trial viewing request is made, stores the task in a task list, queries whether a task exists in the task list when the first trial viewing request is not made, sends information for prohibiting access to the client when no task exists, determines whether a trial viewing end time of the task is reached when a task exists, recovers the ID of the task when the trial viewing end time is reached, sends an endlist generation instruction to the playlist return module, and sends the task to the playlist return module when the trial viewing end time is not reached.
And step S13, generating a video file based on the video file generation rule through the playlist return module, writing the video file information of the video file conforming to the trial viewing rule into a playlist, and returning the playlist to the client.
As shown in fig. 1b, in an embodiment, the live viewing method of streaming media of the present invention includes the following steps:
the method comprises the steps of obtaining a trial viewing request sent by a client through a time processing module, wherein the trial viewing request comprises start time and trial viewing duration. The start time refers to a timestamp of the current time of the client, namely the current time of the client, and the viewing duration refers to the viewing time length of the live broadcast viewing request viewed by the user.
And judging whether the time difference between the starting time and the current time is less than or equal to a first preset time. Specifically, the first preset time is 30 seconds. The current time refers to the time of the live broadcast test system of the streaming media where the time processing module is located. Namely, whether the absolute value of the time difference between the start time and the current live streaming media viewing trial system time is less than or equal to 30 seconds is judged. The validity of the request for test viewing can only be ensured within a certain time difference. Because internet video playback devices are various and have OTT boxes or smart televisions and the like, the timestamps of the clients are not completely consistent with the timestamp of the streaming media live broadcast viewing system, and therefore redundant time processing is added to the streaming media live broadcast viewing system to ensure the effectiveness of viewing. If the absolute value of the difference between the timestamp transmitted by the client and the timestamp of the streaming media live broadcast viewing system is less than or equal to 30s, the range is considered to be a reasonable range, and viewing services are provided for the client. Therefore, a certain error time is allowed to exist, and the validity of the trial-view request is ensured.
And when the time is longer than the first preset time, sending access prohibition information to the client. The prohibited access information includes, but is not limited to, being sent to the client in 403.
And when the trial viewing time length is less than or equal to a first preset time, judging whether the trial viewing time length is in a first preset time length range, and resetting the trial viewing time length when the trial viewing time length is not in the first preset time length range. For example, the first preset time is 1 to 10 minutes, and if the trial-and-look time period is not within the first preset time period range, the trial-and-look time period is reset to the preset trial-and-look time period, for example, 8 minutes. In order to ensure the trial viewing effect and prevent continuous steal, secondary limitation is made on the live streaming media trial viewing system, the trial viewing duration is only provided for 1-10 minutes, and the trial viewing duration can be reset to the range even if the client requests to exceed the range.
The trial view request occurs to the multitask processing module when within a first preset time range. And when the time difference between the start time and the current time is less than or equal to a first preset time and the trial viewing time is within a first preset time range, sending the trial viewing request to the multitask processing module.
As shown in fig. 1c, in an embodiment, the live viewing method of streaming media of the present invention includes the following steps:
and judging whether the trial viewing request is a first trial viewing request or not through the task processing module. After the streaming media live-broadcast viewing system is deployed in a large scale, the request amount of viewing requests is large, so that multitask processing is needed. And judging whether the trial viewing request is the first trial viewing request or not means whether the trial viewing request is the same request or not, because the client continuously sends the trial viewing request to the streaming media live viewing system every 6 seconds within the trial viewing duration of the same request, and the streaming media live viewing system feeds back trial viewing content.
And establishing a task and a corresponding ID for the test-view request when the test-view request is the first test-view request. I.e. one is that the request for a look-through corresponds to one task and ID.
And storing the task to a task list. The task list includes, but is not limited to, a red-black tree data structure.
And inquiring whether a task exists in the task list when the first trial viewing request is not, and sending access prohibition information to the client when the task does not exist. In the subsequent trial viewing process, the corresponding task is inquired according to the ID, the content of the trial viewing request is continuously updated, when the task does not exist and is not the first trial viewing request, an error is indicated, the corresponding trial viewing task does not exist, and therefore the access prohibition information (403) is returned to the client.
And judging whether the trial viewing end time of the task is reached or not when the task exists, recovering the ID of the task and sending a generated endlist instruction to a playlist returning module when the trial viewing end time is reached, and sending the task to the playlist returning module when the trial viewing end time is not reached. If the trial viewing request is expired, the streaming media of the task recovering the ID is broadcasted to the trial viewing system resource, and the task of accessing the ID again is returned 403 to the client. And when the trial viewing ending time is just reached, recovering the ID of the task and sending a generated endlist instruction to the playlist returning module, namely informing the playlist returning module that the trial viewing task has reached the trial viewing ending time, needing to end trial viewing and informing the client. The endlist instruction is an instruction for informing the client of finishing the trial viewing. The M3U8 generation module shown in fig. 1c is a playlist return module.
Specifically, the streaming media live viewing system example accessed by the client is as follows.
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=1300000,RESOLUTION=1024x576
1300.m3u8?session=0
As shown in fig. 1d, in an embodiment, the live viewing method of streaming media of the present invention includes the following steps:
and generating a video file based on a video file generation rule through the playlist returning module, writing the video file information of the video file conforming to the trial viewing rule into a playlist, and returning the playlist to the client. Ts is a format suffix of a video, similar to MP4, etc. And the video file is a video slice.
Specifically, the examination rule is that: the method comprises the steps that a trial viewing request corresponding to a video file accords with trial viewing rules, the trial viewing request comprises start time and trial viewing duration, the start time meets the condition that the time difference between the start time and the current time is less than or equal to first preset time, and the trial viewing duration meets the condition that the trial viewing duration is within a first preset duration range.
Specifically, a video file at the current time of the task is inquired from a source station live broadcast slice list through the playlist returning module, when the video file at the current time is not inquired, a video file closest to the current time is obtained and written into a playlist (M3U8 is the playlist), when the video file at the current time is inquired, the video file at the current time is written into the playlist, whether the task is ended or not is judged through the starting time and the trial viewing time length, when the task is not ended, the playlist is returned to the client, when the task is ended, an endlist instruction is added behind the playlist, and when the task is ended, the playlist, the endlist instruction and the successful return information (200) are returned to the client. The invention provides a new trial viewing interface at the streaming media layer of the source station, because the trial viewing length is controllable and configurable at the height of the streaming media live broadcast trial viewing system, even if the upper layer interface is cracked, the streaming media live broadcast trial viewing system can automatically stop playing according to the built-in expiration time within the expiration time of the anti-theft chain, because of the characteristics of the HLS streaming media protocol, once the playing is exited after expiration, the M3U8 for trial viewing is requested again, because of the time difference of slicing, the fluency of live broadcast video can be greatly reduced, and the anti-theft chain is meaningless, so that the possibility of stolen chain can be effectively reduced, and the loss of a television live broadcast service provider can be reduced.
Specifically, the example of M3U8 at the end of the trial is as follows:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:6,
1300/20200609/20200609T182520.ts
#EXT-X-ENDLIST
as shown in fig. 2, in an embodiment, the live streaming viewing system of the present invention includes a time processing module 21, a task processing module 22, and a playlist returning module 23.
The time processing module 21 obtains a trial viewing request sent by a client, where the trial viewing request includes a start time and a trial viewing time length, determines whether a time difference between the start time and a current time is less than or equal to a first preset time, sends the access prohibition information to the client when the time difference is greater than the first preset time, determines whether the trial viewing time length is within a first preset time length range when the time difference is less than or equal to the first preset time length, resets the trial viewing time length when the time difference is not within the first preset time length range, and sends the trial viewing request to the multitask processing module 22 when the time difference is within the first preset time length range.
The task processing module 22 is configured to determine whether the trial viewing request is a first trial viewing request, establish a task and a corresponding ID for the trial viewing request when the first trial viewing request is made, store the task to a task list, query whether a task exists in the task list when the first trial viewing request is not made, send access prohibition information to the client when the task does not exist, determine whether a trial viewing end time of the task is reached when the task exists, recover the ID of the task and send an endlist generation instruction to the playlist returning module when the trial viewing end time is reached, and send the task to the playlist returning module 23 when the trial viewing end time is not reached.
The playlist returning module 23 is configured to generate a video file based on a video file generation rule, write video file information of the video file that meets the viewing rule into a playlist, and return the playlist to the client.
The playlist returning module 23 is further configured to query a video file at the current time of the task from a source station live slice list, obtain a video file closest to the current time and write the video file into a playlist when the video file at the current time is not queried, write the video file at the current time into the playlist when the video file at the current time is queried, determine whether the task is finished according to the start time and the trial viewing duration, return the playlist to the client when the task is not finished, add an endlist instruction after the playlist when the task is finished, and return the playlist and successful return information to the client.
Specifically, the first preset time is 30 seconds.
Specifically, the first preset time period ranges from 1 to 10 minutes.
It should be noted that the structures and principles of the time processing module 21, the task processing module 22, and the playlist returning module 23 correspond to the steps in the streaming media live broadcast viewing method one to one, and therefore are not described herein again.
It should be noted that the division of the modules of the above system is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the x module may be called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Specific Integrated circuits (ASICs), or one or more Microprocessors (MPUs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In an embodiment of the present invention, the present invention further includes a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any of the above live viewing methods for streaming media.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
As shown in fig. 3, in an embodiment, the live streaming viewing apparatus of the present invention includes: a processor 31 and a memory 32; the memory 32 is for storing a computer program; the processor 31 is connected to the memory 32, and is configured to execute a computer program stored in the memory 32, so that the streaming media live viewing apparatus executes any one of the streaming media live viewing methods.
Specifically, the memory 32 includes: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
Preferably, the Processor 31 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
As shown in fig. 4a, in an embodiment of the present invention, the streaming media live viewing system includes the streaming media live viewing apparatus 41 and the client 42;
the client 42 is configured to send a viewing request to the live streaming viewing device 41, and the client 41 is configured to receive a playlist.
As shown in fig. 4b, in an embodiment of the present invention, the streaming media live viewing system includes a time processing module, a task processing module, and a playlist returning module (a viewing M3U8 returning module). The client sends a trial viewing request (user request) to the streaming media live trial viewing system, wherein the trial viewing request comprises a start time and a trial viewing duration. And the streaming media live broadcast viewing system sends a play list or an error code to the client.
In summary, the streaming media live broadcast trial viewing method, system, medium and apparatus of the present invention are used to prevent the live broadcast source from being circularly stolen due to the broadcast interface being cracked when the user tries to view. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A live broadcast viewing method for streaming media is characterized by comprising the following steps:
acquiring a trial viewing request sent by a client through a time processing module, wherein the trial viewing request comprises a start time and a trial viewing duration, judging whether the time difference between the start time and the current time is less than or equal to a first preset time, sending access prohibition information to the client when the time difference is greater than the first preset time, judging whether the trial viewing duration is within a first preset duration range when the time difference is less than or equal to the first preset time, resetting the trial viewing duration when the time difference is not within the first preset duration range, and sending the trial viewing request to a multitask processing module when the time difference is within the first preset duration range;
judging whether the trial viewing request is a first trial viewing request or not through the task processing module, establishing a task and a corresponding ID for the trial viewing request when the trial viewing request is the first trial viewing request, storing the task to a task list, inquiring whether the task exists in the task list when the trial viewing request is not the first trial viewing request, sending access prohibition information to the client when the task does not exist, judging whether the trial viewing ending time of the task is reached or not when the task exists, recovering the ID of the task and sending an endlist generation instruction to the playlist returning module when the trial viewing ending time is reached, and sending the task to the playlist returning module when the trial viewing ending time is not reached;
and generating a video file based on a video file generation rule through the playlist returning module, writing the video file information of the video file conforming to the trial viewing rule into a playlist, and returning the playlist to the client.
2. The live streaming media viewing trial method according to claim 1, wherein the generating of the video file by the playlist return module based on the video file generation rule, writing the video file information of the video file meeting the viewing rule into the playlist, and returning the playlist to the client includes:
inquiring a video file at the current time of the task from a source station live slice list through the play list returning module, when the video file at the current time is not inquired, acquiring a video file closest to the current time and writing the video file into a play list, when the video file at the current time is inquired, writing the video file at the current time into the play list, judging whether the task is finished or not according to the starting time and the trial viewing duration, returning the play list to the client when the task is not finished, adding an endlist instruction after the play list when the task is finished, and returning the play list and the successful returning information to the client.
3. A live streaming viewing trial method according to claim 1, wherein the first preset time is 30 seconds.
4. A live streaming viewing trial method according to claim 1, wherein the first preset duration is in a range of 1 to 10 minutes.
5. The live streaming viewing trial method of claim 1, wherein the playlist is M3U 8.
6. A live streaming preview system, comprising: the system comprises a time processing module, a task processing module and a play list returning module;
the time processing module acquires a trial viewing request sent by a client, wherein the trial viewing request comprises a start time and a trial viewing duration, judges whether the time difference between the start time and the current time is less than or equal to a first preset time, sends access prohibition information to the client when the time difference is greater than the first preset time, judges whether the trial viewing duration is within a first preset duration range when the time difference is less than or equal to the first preset time, resets the trial viewing duration when the time difference is not within the first preset duration range, and sends the trial viewing request to the multitask processing module when the time difference is within the first preset duration range;
the task processing module is used for judging whether the trial viewing request is a first trial viewing request, establishing a task and a corresponding ID for the trial viewing request when the trial viewing request is the first trial viewing request, storing the task to a task list, inquiring whether the task exists in the task list when the trial viewing request is not the first trial viewing request, sending access prohibition information to the client when the task does not exist, judging whether the trial viewing ending time of the task is reached when the task exists, recovering the ID of the task and sending an endlist generation instruction to the playlist returning module when the trial viewing ending time is reached, and sending the task to the playlist returning module when the trial viewing ending time is not reached;
the playlist returning module is used for generating a video file based on the video file generating rule, writing the video file information of the video file meeting the trial viewing rule into a playlist, and returning the playlist to the client.
7. The system of claim 5, wherein the playlist return module is further configured to query a video file at a current time of the task from a source station live slice list, obtain a video file closest to the current time and write the video file into a playlist when the video file at the current time is not queried, write the video file at the current time into the playlist when the video file at the current time is queried, determine whether the task is ended according to a start time and a trial viewing duration, return the playlist to the client when the task is not ended, add an endlist instruction after the playlist when the task is ended, and return the playlist and successful return information to the client.
8. A computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the live viewing method for streaming media of any one of claims 1 to 5.
9. A live streaming preview device, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is connected with the memory and is used for executing the computer program stored in the memory so as to enable the streaming media live-broadcast viewing device to execute the streaming media live-broadcast viewing method of any one of claims 1 to 5.
10. A live streaming preview system, comprising the live streaming preview apparatus of claim 9 and a client;
the client is used for sending a viewing trial request to the streaming media live viewing device, and the client is used for receiving a playlist.
CN202010573819.2A 2020-06-22 2020-06-22 Streaming media live broadcast viewing test method, system, medium and device Active CN111787342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010573819.2A CN111787342B (en) 2020-06-22 2020-06-22 Streaming media live broadcast viewing test method, system, medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010573819.2A CN111787342B (en) 2020-06-22 2020-06-22 Streaming media live broadcast viewing test method, system, medium and device

Publications (2)

Publication Number Publication Date
CN111787342A true CN111787342A (en) 2020-10-16
CN111787342B CN111787342B (en) 2022-05-20

Family

ID=72756087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010573819.2A Active CN111787342B (en) 2020-06-22 2020-06-22 Streaming media live broadcast viewing test method, system, medium and device

Country Status (1)

Country Link
CN (1) CN111787342B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174970A (en) * 2022-07-08 2022-10-11 湖南快乐阳光互动娱乐传媒有限公司 Method and device for sustainable trial viewing

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090120118A (en) * 2008-05-19 2009-11-24 주식회사 다음커뮤니케이션 Vod service system and method thereof
CN102025749A (en) * 2011-01-18 2011-04-20 中国联合网络通信集团有限公司 Anti-theft method of mobile streaming media service
CN103986974A (en) * 2014-06-05 2014-08-13 安一恒通(北京)科技有限公司 Video loading determining method and device
EP2879390A1 (en) * 2013-11-28 2015-06-03 Krea Icerik Hizmetleri Ve Produksiyon Anonim Sirketi Method and system of transmitting conditional access authorizations between DVB-S and OTT broadcast transmission media
CN104883618A (en) * 2015-05-11 2015-09-02 腾讯科技(北京)有限公司 Method, device, and system for tentatively watching living programs
CN105847867A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Multimedia live content piloting method and device
CN106254906A (en) * 2016-08-09 2016-12-21 亦非云互联网技术(上海)有限公司 A kind of net cast HLS anti-stealing link method and system
US20170094349A1 (en) * 2015-09-28 2017-03-30 Rovi Guides, Inc. Systems and methods for identifying a source of media content based on a log of content identifiers
CN106941624A (en) * 2017-04-28 2017-07-11 北京小米移动软件有限公司 The treating method and apparatus that Internet video is tried
CN108574856A (en) * 2017-06-30 2018-09-25 北京金山云网络技术有限公司 Determine that video file tries the method, apparatus, equipment and medium of cut off
CN109874039A (en) * 2019-03-13 2019-06-11 深圳市天威视讯股份有限公司 TV control method, condition receiving system and set-top box
CN110381334A (en) * 2019-09-02 2019-10-25 湖南快乐阳光互动娱乐传媒有限公司 Anti-stealing link method, apparatus and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090120118A (en) * 2008-05-19 2009-11-24 주식회사 다음커뮤니케이션 Vod service system and method thereof
CN102025749A (en) * 2011-01-18 2011-04-20 中国联合网络通信集团有限公司 Anti-theft method of mobile streaming media service
EP2879390A1 (en) * 2013-11-28 2015-06-03 Krea Icerik Hizmetleri Ve Produksiyon Anonim Sirketi Method and system of transmitting conditional access authorizations between DVB-S and OTT broadcast transmission media
CN103986974A (en) * 2014-06-05 2014-08-13 安一恒通(北京)科技有限公司 Video loading determining method and device
CN104883618A (en) * 2015-05-11 2015-09-02 腾讯科技(北京)有限公司 Method, device, and system for tentatively watching living programs
US20170094349A1 (en) * 2015-09-28 2017-03-30 Rovi Guides, Inc. Systems and methods for identifying a source of media content based on a log of content identifiers
CN105847867A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Multimedia live content piloting method and device
CN106254906A (en) * 2016-08-09 2016-12-21 亦非云互联网技术(上海)有限公司 A kind of net cast HLS anti-stealing link method and system
CN106941624A (en) * 2017-04-28 2017-07-11 北京小米移动软件有限公司 The treating method and apparatus that Internet video is tried
CN108574856A (en) * 2017-06-30 2018-09-25 北京金山云网络技术有限公司 Determine that video file tries the method, apparatus, equipment and medium of cut off
CN109874039A (en) * 2019-03-13 2019-06-11 深圳市天威视讯股份有限公司 TV control method, condition receiving system and set-top box
CN110381334A (en) * 2019-09-02 2019-10-25 湖南快乐阳光互动娱乐传媒有限公司 Anti-stealing link method, apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174970A (en) * 2022-07-08 2022-10-11 湖南快乐阳光互动娱乐传媒有限公司 Method and device for sustainable trial viewing
CN115174970B (en) * 2022-07-08 2024-05-31 湖南快乐阳光互动娱乐传媒有限公司 Sustainable pilot-looking method and device

Also Published As

Publication number Publication date
CN111787342B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN110072122B (en) Video playing method and related equipment
JP6856747B2 (en) Request-based encoding for streaming content parts
JP5974392B2 (en) System and method for secure asynchronous event notification for adaptive streaming based on ISO base media file format
CN106797563B (en) Certification and authorization message for adaptive stream media based on token signaling and interact
US8510317B2 (en) Providing search results based on keyword detection in media content
US9749136B2 (en) Method for watermarking content
US9633029B2 (en) Method, server, and user terminal for providing and acquiring media content
US8898303B2 (en) Enterprise grade rights management
JP5678367B2 (en) System and method for authorizing access to network services by using information obtained from subscriber equipment
CN110324680B (en) Video pushing method and device, server, client and storage medium
CN111355971B (en) Live streaming transmission method and device, CDN server and computer readable medium
CN107077543B (en) Ownership identification, signaling and processing of content components in streaming media
US9264774B2 (en) Seamless multi-channel TV everywhere sign-in
CN108810600B (en) Video scene switching method, client and server
EP2835947A1 (en) Method, terminal, and server for generating media information and ahs system thereof
CN111787342B (en) Streaming media live broadcast viewing test method, system, medium and device
US20120079010A1 (en) Integrated Multimedia Portal System
CN112584200A (en) Screen projection method and system, electronic equipment and storage medium
CN102209116A (en) Method and device for acquiring Internet protocol television program information, and television
CN112243136B (en) Content playing method, video storage method and device
US20090106796A1 (en) Method and system for providng subscription data
CN105847867A (en) Multimedia live content piloting method and device
FR3068852A1 (en) METHOD FOR MANAGING THE RIGHT OF ACCESS TO DIGITAL CONTENT
CN112543353A (en) Video playing request processing method and related device
CN101795265A (en) Method for downloading digital media information

Legal Events

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