CN113873318A - Video playing method, device, equipment and storage medium - Google Patents

Video playing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113873318A
CN113873318A CN202111128455.8A CN202111128455A CN113873318A CN 113873318 A CN113873318 A CN 113873318A CN 202111128455 A CN202111128455 A CN 202111128455A CN 113873318 A CN113873318 A CN 113873318A
Authority
CN
China
Prior art keywords
file
playlist file
storage address
advertisement
video
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.)
Pending
Application number
CN202111128455.8A
Other languages
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN202111128455.8A priority Critical patent/CN113873318A/en
Publication of CN113873318A publication Critical patent/CN113873318A/en
Pending 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • 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/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the disclosure provides a video playing method, a video playing device, video playing equipment and a storage medium. The method is applied to the user terminal and comprises the following steps: acquiring a feature film play list file of a feature film video and an advertisement play list file of an advertisement video, wherein the feature film play list file comprises a slice storage address of the feature film video, and the advertisement play list file comprises a slice storage address of the advertisement video; splicing the positive play list file and the advertisement play list file to obtain a target play list file; and playing the video based on the local file storage address of the target playlist file. In this way, the feature film playlist file and the advertisement playlist file can be spliced to generate a new target playlist file, video playing is performed based on the local file storage address of the target playlist file, the file storage address, namely the playing address, does not need to be changed when the feature film video and the advertisement video are switched, and the watching experience of a user is improved.

Description

Video playing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the multimedia field, and in particular, to a video playing method, apparatus, device, and storage medium.
Background
At present, in order to realize advertisement push, partial advertisements are inserted before and during feature film playing, and the playing addresses of the inserted advertisements and the feature films are usually different. When the feature video and the advertisement video are switched, a short-time screen blacking situation occurs due to the fact that different playing addresses need to be requested.
Disclosure of Invention
The present disclosure provides a video playing method, device, equipment and storage medium, which can perform video playing based on a local file storage address of a target playlist file, and do not need to change the file storage address, i.e., the playing address, when a feature video and an advertisement video are switched, thereby improving the viewing experience of a user.
In a first aspect, an embodiment of the present disclosure provides a video playing method, where the method is applied to a user terminal, and includes:
acquiring a feature film play list file of a feature film video and an advertisement play list file of an advertisement video, wherein the feature film play list file comprises a slice storage address of the feature film video, and the advertisement play list file comprises a slice storage address of the advertisement video;
splicing the positive play list file and the advertisement play list file to obtain a target play list file;
and playing the video based on the local file storage address of the target playlist file.
In some implementations of the first aspect, the performing playlist file stitching on the positive playlist file and the advertisement playlist file to obtain the target playlist includes:
if the slice storage address in the feature film playlist file is a relative storage address, converting the slice storage address in the feature film playlist file into an absolute storage address, and if the slice storage address in the advertisement playlist file is a relative storage address, converting the slice storage address in the advertisement playlist file into an absolute storage address;
and splicing the converted feature play list file and the converted advertisement play list file to obtain a target play list file.
In some implementations of the first aspect, the method further comprises:
acquiring a terminal type of a user terminal;
the method for splicing the positive play list file and the advertisement play list file to obtain a target play list file comprises the following steps:
determining whether the user terminal supports playlist file splicing or not according to the terminal type;
and if the fact that the user terminal supports the splicing of the playlist files is determined, splicing the positive playlist files and the advertisement playlist files to obtain target playlist files.
In some implementations of the first aspect, the method further comprises:
establishing a local video playing service;
the video playing is carried out based on the local file storage address of the target play list file, and the method comprises the following steps:
initiating a video playing service request locally based on the file storage address;
responding to a video playing service request, and playing a slice corresponding to a slice storage address in a target playlist file;
wherein the feature playlist file, the advertisement playlist file, and the target playlist file are M3U8 files.
In some implementations of the first aspect, playing a slice corresponding to a slice storage address in the target playlist file includes:
and sequentially playing the slices corresponding to the slice storage addresses in the target playlist file according to the arrangement sequence of the slice storage addresses in the target playlist file.
In some implementations of the first aspect, the performing playlist file stitching on the positive playlist file and the advertisement playlist file to obtain the target playlist includes:
placing the slice storage address in the advertisement playlist file in front of the slice storage address in the feature playlist file to obtain a target playlist file; or,
and placing the slice storage address in the advertisement playlist file into the slice storage address in the feature playlist file to obtain the target playlist file.
In some implementations of the first aspect, the method further comprises:
acquiring a playlist file of a video to be spliced in real time;
and placing the slice storage address in the real-time acquired playlist file behind the slice storage address in the target playlist file to update the target playlist file.
In a second aspect, an embodiment of the present disclosure provides a video playing apparatus, where the apparatus is applied to a user terminal, and the apparatus includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a feature film play list file of a feature film video and an advertisement play list file of an advertisement video, the feature film play list file comprises a slice storage address of the feature film video, and the advertisement play list file comprises a slice storage address of the advertisement video;
the splicing module is used for splicing the feature film playlist file and the advertisement playlist file to obtain a target playlist file;
and the playing module is used for playing the video based on the local file storage address of the target playlist file.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
In a fourth aspect, the disclosed embodiments provide a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described above.
In a fifth aspect, the disclosed embodiments provide a computer program product comprising a computer program that, when executed by a processor, implements a method as described above.
According to the method and the device, the feature film play list file and the advertisement play list file can be spliced to generate a new target play list file, video playing can be performed based on the local file storage address of the target play list file, the file storage address, namely the play address, does not need to be changed when the feature film video and the advertisement video are switched, and the watching experience of a user is improved.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. The accompanying drawings are included to provide a further understanding of the present disclosure, and are not intended to limit the disclosure thereto, and the same or similar reference numerals will be used to indicate the same or similar elements, where:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 2 shows a flowchart of a video playing method provided by an embodiment of the present disclosure;
fig. 3 shows a block diagram of a video playing apparatus provided in an embodiment of the present disclosure;
FIG. 4 sets forth a block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In view of the problems occurring in the background art, embodiments of the present disclosure provide a video playing method, apparatus, device and storage medium. Specifically, the feature film playlist file and the advertisement playlist file can be spliced to generate a new target playlist file, and then video playing can be performed based on a local file storage address of the target playlist file, so that the file storage address, namely the playing address, does not need to be changed when the feature film video and the advertisement video are switched, and the watching experience of a user is improved.
The following describes in detail a video playing method, an apparatus, a device, and a storage medium provided by the embodiments of the present disclosure with specific embodiments in conjunction with the accompanying drawings.
Fig. 1 shows a schematic diagram of an exemplary operating environment 100 in which embodiments of the present disclosure can be implemented, and as shown in fig. 1, the operating environment 100 may include a user terminal 110, a video server 120.
The user terminal 110 may be a mobile electronic device or a non-mobile electronic device. For example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palmtop Computer, an Ultra-Mobile Personal Computer (UMPC), or the like, and the non-Mobile electronic device may be a Personal Computer (PC), a Television (TV), a car host, or the like.
The video server 120 may be a single server, a cluster of servers, or a cloud server, etc., on which a playlist file of various videos is stored. As shown in fig. 1, the user terminal 110 may be communicatively connected to the video server 120 through a wired network or a wireless network.
As an example, the user terminal 110 may obtain a feature playlist file of a feature video and an advertisement playlist file of an advertisement video from the video server 120, where the feature playlist file may include a slice storage address of the feature video, and the advertisement playlist file may include a slice storage address of the advertisement video, and then perform playlist file stitching on the feature playlist file and the advertisement playlist file to obtain a target playlist file, that is, merge the feature playlist file and the advertisement playlist file into a new playlist file, generate a local file storage address of the new playlist file, and then perform video playing based on the local file storage address of the target playlist file.
In this way, video playing can be performed based on the local file storage address of the target playlist file, the file storage address, namely the playing address, is constant, the file storage address does not need to be changed when the feature videos and the advertisement videos are switched, and the watching experience of a user is improved.
The following describes in detail a video playing method provided by an embodiment of the present disclosure, wherein an execution subject of the video playing method may be the user terminal 110 shown in fig. 1.
Fig. 2 shows a flowchart of a video playing method 200 provided by an embodiment of the present disclosure, and as shown in fig. 2, the video playing method 200 may include the following steps:
s210, acquiring a feature film play list file of the feature film video and an advertisement play list file of the advertisement video.
Illustratively, the feature play list file and the advertisement play list file may be acquired from the video server according to a file storage address of the feature play list file and a file storage address of the advertisement play list file. Wherein the feature playlist file may include a slice storage address of the feature video, and the advertisement playlist file may include a slice storage address of the advertisement video. Illustratively, the playlist file referred to in this disclosure may be an M3U8 file, which is not limited herein.
S220, splicing the positive play list file and the advertisement play list file to obtain a target play list file.
Alternatively, if the slice storage address in the feature playlist file is a relative storage address, the slice storage address in the feature playlist file may be converted into an absolute storage address, and if the slice storage address in the advertisement playlist file is a relative storage address, the slice storage address in the advertisement playlist file may be converted into an absolute storage address. The relative storage address is an address relative to a file storage address of the playlist file, the absolute storage address is a complete address, and the accuracy is high.
Taking the playlist file as an M3U8 file as an example, the path of the M3U8 file is: https://127.0.0.1/hls/M3U8, assuming the relative storage address of slice 1 in the M3U8 file is: ts, where the relative memory address of slice 1 needs to be converted to an absolute memory address, i.e., the absolute memory address of slice 1 can be https://127.0.0.1/hls/1. ts.
And then splicing the converted feature play list file and the converted advertisement play list file to obtain a target play list file, namely splicing and merging the converted feature play list file and the converted advertisement play list file according to a preset splicing rule to obtain a new play list file. Therefore, the accuracy of the slice storage address in the target playlist file can be improved through address conversion.
In addition, the terminal type of the user terminal can be obtained, and whether the user terminal supports playlist file splicing or not is determined according to the terminal type. For example, the terminal type may be sent to a video server, the video server performs table lookup according to the terminal type, if the terminal type is found, it is determined that the user terminal supports playlist file splicing, if the terminal type is not found, it is determined that the user terminal does not support playlist file splicing, and then the determination result is fed back to the user terminal. If it is determined that the user terminal supports playlist file splicing, the user terminal may perform playlist file splicing on the positive playlist file and the advertisement playlist file to obtain a target playlist file. Therefore, whether the user terminal supports the splicing of the playlist files can be accurately determined according to the terminal type of the user terminal, and the splicing of the playlist files can be quickly carried out under the condition that the user terminal supports the splicing of the playlist files.
As a specific example, the slice storage address in the advertisement playlist file may be placed before the slice storage address in the feature playlist file to obtain a target playlist file; or, the slice storage address in the advertisement playlist file is placed in the slice storage address in the feature film playlist file to obtain a target playlist file, so that the advertisement is played before the feature film or in the feature film, and the advertisement exposure rate is improved.
For example, the feature playlist file includes a slice address 1, a slice address 2, and a slice address 3, the advertisement playlist file includes a slice address a, a slice address B, and a slice address C, a target playlist file in which the slice address a, the slice address B, the slice address C, the slice address 1, the slice address 2, and the slice address 3 are combined may be obtained by placing the slice storage address in the advertisement playlist file before the slice storage address in the feature playlist file, and a target playlist file in which the slice address 1, the slice address 2, the slice address a, the slice address B, the slice address C, and the slice address 3 are combined may be obtained by placing the slice storage address in the advertisement playlist file in the slice storage address in the feature playlist file.
And S230, playing the video based on the local file storage address of the target playlist file.
Specifically, the local file storage address, i.e., the playing address, of the target playlist file is generated while the target playlist file is locally stored, so that video playing can be performed based on the file storage address.
In some embodiments, a local video playing service may be established, that is, a local video server is established on a user terminal, and then a video playing service request is initiated locally based on a file storage address, and in response to the video playing service request, a target playlist file is acquired, and a slice corresponding to a slice storage address in the target playlist file is played. Therefore, the video playing service can be built locally at the user terminal, the load pressure born by the original video server is dispersed to the user terminal, and the load balance of the video server is facilitated.
As an example, the slices corresponding to the slice storage addresses in the target playlist file may be sequentially played according to the arrangement order of the slice storage addresses in the target playlist file, so as to bring a continuous viewing experience to the user.
According to the embodiment of the disclosure, video playing can be performed based on the local file storage address of the target playlist file, the file storage address is also constant, the file storage address does not need to be changed when the feature videos and the advertisement videos are switched, meanwhile, the advertisement videos and the feature videos can be randomly arranged and combined to realize dynamic recombination, and the user watching experience is improved.
In some embodiments, the video playing method 300 may further include: and acquiring a playlist file of the video to be spliced in real time, and placing the slice storage address in the playlist file acquired in real time behind the slice storage address in the target playlist file to update the target playlist file. That is to say, as long as the playlist file of the new video is obtained, the playlist file can be updated to the target playlist file, and then the slice corresponding to the target playlist file can be played all the time, so that the video is headless and tailless.
The following describes the video playing method 300 provided by the present disclosure in detail by taking the playlist file as an M3U8 file as an example, specifically as follows:
the user terminal downloads and saves the M3U8 files of the feature videos and the advertisement videos from the video server to the corresponding paths of the user terminal.
And converting relative playing addresses in the M3U8 files of the feature videos and the advertisement videos into absolute playing addresses, and splicing and storing the converted M3U8 files of the feature videos and the advertisement videos into a new M3U8 file according to a corresponding rule, namely a format.
Establishing local video playing service, outputting a file storage address, namely a playing address, of the new M3U8 file, further initiating a video playing service request locally based on the file storage address, and responding to the video playing service request to play a slice corresponding to a slice storage address in the new M3U8 file.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 3 shows a block diagram of a video playback device 300 according to an embodiment of the present disclosure, and as shown in fig. 3, the video playback device 300 may include:
an obtaining module 310, configured to obtain a feature playlist file of a feature video and an advertisement playlist file of an advertisement video, where the feature playlist file includes a slice storage address of the feature video, and the advertisement playlist file includes a slice storage address of the advertisement video;
a splicing module 320, configured to splice the feature playlist file and the advertisement playlist file to obtain a target playlist file;
the playing module 330 is configured to play a video based on the local file storage address of the target playlist file.
In some embodiments, the splicing module 320 is specifically configured to:
if the slice storage address in the feature film playlist file is a relative storage address, converting the slice storage address in the feature film playlist file into an absolute storage address, and if the slice storage address in the advertisement playlist file is a relative storage address, converting the slice storage address in the advertisement playlist file into an absolute storage address;
and splicing the converted feature play list file and the converted advertisement play list file to obtain a target play list file.
In some embodiments, the obtaining module 310 is further configured to obtain a terminal type of the user terminal;
the splicing module 320 is specifically configured to:
determining whether the user terminal supports playlist file splicing or not according to the terminal type;
and if the fact that the user terminal supports the splicing of the playlist files is determined, splicing the positive playlist files and the advertisement playlist files to obtain target playlist files.
In some embodiments, the video playback device 300 further comprises:
the establishing module is used for establishing local video playing service;
the playing module 330 is specifically configured to:
initiating a video playing service request locally based on the file storage address;
responding to a video playing service request, and playing a slice corresponding to a slice storage address in a target playlist file;
wherein the feature playlist file, the advertisement playlist file, and the target playlist file are M3U8 files.
In some embodiments, the playing module 330 is specifically configured to:
and sequentially playing the slices corresponding to the slice storage addresses in the target playlist file according to the arrangement sequence of the slice storage addresses in the target playlist file.
In some embodiments, the splicing module 320 is specifically configured to:
placing the slice storage address in the advertisement playlist file in front of the slice storage address in the feature playlist file to obtain a target playlist file; or,
and placing the slice storage address in the advertisement playlist file into the slice storage address in the feature playlist file to obtain the target playlist file.
In some embodiments, the obtaining module 310 is further configured to obtain a playlist file of the video to be spliced in real time;
the video playback device 300 further includes:
and the updating module is used for placing the slice storage address in the real-time acquired playlist file behind the slice storage address in the target playlist file so as to update the target playlist file.
It can be understood that each module/unit in the video playing apparatus 300 shown in fig. 3 has a function of implementing each step in the video playing method 200 provided in the embodiment of the present disclosure, and can achieve the corresponding technical effect, and for brevity, no further description is provided herein.
FIG. 4 illustrates a block diagram of an electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic device 400 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device 400 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 may include a computing unit 401 that may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, ROM402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 401 performs the various methods and processes described above, such as the method 200. For example, in some embodiments, the method 200 may be implemented as a computer program product, including a computer program, tangibly embodied in a computer-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM402 and/or the communication unit 409. When the computer program is loaded into RAM403 and executed by computing unit 401, one or more steps of method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method 200 by any other suitable means (e.g., by means of firmware).
The various embodiments described herein above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a computer-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the present disclosure also provides a non-transitory computer readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method 200 and achieve the corresponding technical effects achieved by the method according to the embodiments of the present disclosure, and for brevity, the detailed description is omitted here.
Additionally, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the method 200.
To provide for interaction with a user, the above-described embodiments may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The embodiments described above may be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user may interact with an implementation of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (10)

1. A video playing method is applied to a user terminal and comprises the following steps:
acquiring a feature film play list file of a feature film video and an advertisement play list file of an advertisement video, wherein the feature film play list file comprises a slice storage address of the feature film video, and the advertisement play list file comprises a slice storage address of the advertisement video;
splicing the feature film playlist file and the advertisement playlist file to obtain a target playlist file;
and playing the video based on the local file storage address of the target play list file.
2. The method of claim 1, wherein said splicing the feature playlist file with the advertisement playlist file to obtain a target playlist comprises:
if the slice storage address in the feature play list file is a relative storage address, converting the slice storage address in the feature play list file into an absolute storage address, and if the slice storage address in the advertisement play list file is a relative storage address, converting the slice storage address in the advertisement play list file into an absolute storage address;
and splicing the converted feature play list file and the converted advertisement play list file to obtain the target play list file.
3. The method of claim 1, further comprising:
acquiring the terminal type of the user terminal;
the splicing of the feature playlist file and the advertisement playlist file to obtain a target playlist file includes:
determining whether the user terminal supports playlist file splicing or not according to the terminal type;
and if the fact that the user terminal supports playlist file splicing is determined, performing playlist file splicing on the feature playlist file and the advertisement playlist file to obtain the target playlist file.
4. The method of claim 1, further comprising:
establishing a local video playing service;
the video playing based on the local file storage address of the target playlist file includes:
initiating a video playing service request locally based on the file storage address;
responding to the video playing service request, and playing a slice corresponding to a slice storage address in the target playlist file;
wherein the feature playlist file, the advertisement playlist file, and the target playlist file are M3U8 files.
5. The method of claim 4, wherein the playing the slice corresponding to the slice storage address in the target playlist file comprises:
and sequentially playing the slices corresponding to the slice storage addresses in the target playlist file according to the arrangement sequence of the slice storage addresses in the target playlist file.
6. The method of claim 5, wherein said splicing the feature playlist file with the advertisement playlist file to obtain a target playlist comprises:
placing the slice storage address in the advertisement playlist file in front of the slice storage address in the feature playlist file to obtain the target playlist file; or,
and placing the slice storage address in the advertisement playlist file into the slice storage address in the feature playlist file to obtain the target playlist file.
7. The method of claim 5, further comprising:
acquiring a playlist file of a video to be spliced in real time;
and placing the slice storage address in the real-time acquired playlist file behind the slice storage address in the target playlist file to update the target playlist file.
8. A video playing device is applied to a user terminal and comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a feature film play list file of a feature film video and an advertisement play list file of an advertisement video, the feature film play list file comprises a slice storage address of the feature film video, and the advertisement play list file comprises a slice storage address of the advertisement video;
the splicing module is used for splicing the feature play list file and the advertisement play list file to obtain a target play list file;
and the playing module is used for playing the video based on the local file storage address of the target playlist file.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202111128455.8A 2021-09-26 2021-09-26 Video playing method, device, equipment and storage medium Pending CN113873318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111128455.8A CN113873318A (en) 2021-09-26 2021-09-26 Video playing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111128455.8A CN113873318A (en) 2021-09-26 2021-09-26 Video playing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113873318A true CN113873318A (en) 2021-12-31

Family

ID=78994481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111128455.8A Pending CN113873318A (en) 2021-09-26 2021-09-26 Video playing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113873318A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500505A (en) * 2022-01-19 2022-05-13 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN115914692A (en) * 2022-10-21 2023-04-04 北京奇艺世纪科技有限公司 Video playing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012023777A2 (en) * 2010-08-16 2012-02-23 엘지전자 주식회사 Method for providing and reproducing contents, and contents providing device and receiving device using same
CN103686255A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 Video advertisement putting method and device based on HLS protocol
CN103716656A (en) * 2013-12-11 2014-04-09 乐视网信息技术(北京)股份有限公司 Video loading method and electronic device
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN105898527A (en) * 2015-11-18 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertisement video splicing method and video server
CN107295376A (en) * 2016-04-05 2017-10-24 北京优朋普乐科技有限公司 Merging method, device and the jettison system of advertisement of advertisement and positive

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012023777A2 (en) * 2010-08-16 2012-02-23 엘지전자 주식회사 Method for providing and reproducing contents, and contents providing device and receiving device using same
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN103686255A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 Video advertisement putting method and device based on HLS protocol
CN103716656A (en) * 2013-12-11 2014-04-09 乐视网信息技术(北京)股份有限公司 Video loading method and electronic device
CN105898527A (en) * 2015-11-18 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertisement video splicing method and video server
CN107295376A (en) * 2016-04-05 2017-10-24 北京优朋普乐科技有限公司 Merging method, device and the jettison system of advertisement of advertisement and positive

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500505A (en) * 2022-01-19 2022-05-13 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN114500505B (en) * 2022-01-19 2024-05-28 北京百度网讯科技有限公司 Text processing method and device and electronic equipment
CN115914692A (en) * 2022-10-21 2023-04-04 北京奇艺世纪科技有限公司 Video playing method, device and system

Similar Documents

Publication Publication Date Title
WO2020151599A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN113808231B (en) Information processing method and device, image rendering method and device, and electronic device
CN108965098B (en) Message pushing method, device, medium and electronic equipment based on online live broadcast
US10860280B2 (en) Display method and device
CN113873318A (en) Video playing method, device, equipment and storage medium
CN113138827B (en) Method, device, electronic equipment and medium for displaying data
CN110290398B (en) Video issuing method and device, storage medium and electronic equipment
CN108600780B (en) Method for pushing information, electronic device and computer readable medium
CN109168012B (en) Information processing method and device for terminal equipment
US20220076476A1 (en) Method for generating user avatar, related apparatus and computer program product
CN113660504A (en) Message display method and device, electronic equipment and storage medium
CN112929728A (en) Video rendering method, device and system, electronic equipment and storage medium
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN109962972B (en) Offline packet reassembly method and system
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN114168793A (en) Anchor display method, device, equipment and storage medium
US11750876B2 (en) Method and apparatus for determining object adding mode, electronic device and medium
WO2017020778A1 (en) Method and device for displaying app on app wall
CN112181329A (en) Data display method and device
CN113905040B (en) File transmission method, device, system, equipment and storage medium
CN113365140B (en) MP4 online playing method, device, equipment, storage medium and program product
CN113766255B (en) Video stream merging method, device, electronic equipment and computer medium
CN113784217A (en) Video playing method, device, equipment and storage medium
CN107666497B (en) Data access method and device
CN113556621B (en) Method, server, client, device and storage medium for switching code streams

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