CN115022693A - Video screen projection method, device, equipment and storage medium - Google Patents

Video screen projection method, device, equipment and storage medium Download PDF

Info

Publication number
CN115022693A
CN115022693A CN202210600829.XA CN202210600829A CN115022693A CN 115022693 A CN115022693 A CN 115022693A CN 202210600829 A CN202210600829 A CN 202210600829A CN 115022693 A CN115022693 A CN 115022693A
Authority
CN
China
Prior art keywords
video
screen projection
playing
dlna
receiving end
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
CN202210600829.XA
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202210600829.XA priority Critical patent/CN115022693A/en
Publication of CN115022693A publication Critical patent/CN115022693A/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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43076Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Abstract

The embodiment of the disclosure provides a video screen projection method, a video screen projection device, video screen projection equipment and a storage medium. The method is applied to a DLNA screen projection source terminal of a digital living network alliance and comprises the following steps: responding to a screen projection request of a target video, and determining a DLNA screen projection receiving end; acquiring a video playing format list of the DLNA screen projection receiving end; and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection. By adopting the technical scheme, the playing format of the video to be screen-projected is unified with the receiving end at the source end, and the receiving end can be ensured to successfully play the video to be screen-projected.

Description

Video screen projection method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of video processing, in particular to a video screen projection method, a video screen projection device, video screen projection equipment and a storage medium.
Background
The digital living network alliance (DIGITAL LIVING network alliance, DLNA) is a common screen projection scheme, which can interconnect and intercommunicate wireless networks and wired networks including personal PCs, consumer appliances and mobile devices, thereby fully realizing the digital life of consumers.
Most of existing video applications support a screen projection function, but when a video is projected from a source end to a receiving end through a DLNA, the receiving end is not uniform, for example, the receiving end may be a television or a third-party application, and different receiving ends cause poor player compatibility, which results in a low playing success rate of the receiving end on a playing address pushed by the DLNA.
Disclosure of Invention
The present disclosure provides a video screen projection method, device, equipment and storage medium, so as to implement unification of a playing format of a video to be screen projected and a receiving end at a source end, and ensure that the receiving end can successfully play the video to be screen projected.
In a first aspect, an embodiment of the present disclosure provides a video screen projection method, applied to a DLNA screen projection source, including:
responding to a screen projection request of a target video, and determining a DLNA screen projection receiving end;
acquiring a video playing format list of the DLNA screen projection receiving end;
and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
In a second aspect, an embodiment of the present disclosure further provides a video screen projection device, which is applied to a DLNA screen projection source, and includes:
the determining module is used for executing a screen projection request responding to the target video and determining a DLNA screen projection receiving end;
the acquisition module is used for executing the acquisition of a video playing format list of the DLNA screen projection receiving end;
and the screen projection module is used for determining the play address of the target video according to the video play format list and pushing the play address to the DLNA screen projection receiving end to perform target video screen projection.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a video projection method as described in embodiments of the disclosure.
In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a video screen projection method according to the disclosed embodiments.
In the embodiment of the disclosure, a DLNA screen projection source end determines a DLNA screen projection receiving end by responding to a screen projection request of a target video; acquiring a video playing format list of the DLNA screen projection receiving end; and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen-casting receiving terminal to perform target video screen casting, so that the problem of low address playing success rate of the receiving terminal on DLNA is solved, the playing format of the video to be screen-cast is unified with the receiving terminal at the source terminal, and the effect that the receiving terminal can successfully play the video to be screen-cast is ensured.
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. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a video screen projection method provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a DLNA video projection screen provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a video screen projection device provided in an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of a video screen projection method provided by an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a situation where a video to be projected is delivered from a source end to a receiving end for playing through DLNA, and the method may be executed by a video screen projection apparatus, where the apparatus may be implemented in a form of software and/or hardware, and optionally, implemented by an electronic device, where the electronic device may be a mobile terminal, a PC end, a server, or the like. As shown in fig. 1, the method is applied to a DLNA screen projection source, and includes:
s110, responding to a screen projection request of the target video, and determining a DLNA screen projection receiving end.
The DLNA screen projection source end may be a video client end of the mobile terminal, and is used for acquiring, recording and storing videos. The DLNA screen projection receiving end can comprise: the digital television, the intelligent set top box and the computer realize a video player of a DLNA protocol and the like, and are used for playing videos transmitted by the screen projection source end. The video transmitted by the DLNA screen projection source may be in various playing formats, and the DLNA screen projection receiving end must support these playing formats to successfully play the video.
Optionally, the determining a DLNA screen projection receiving end in response to the screen projection request of the target video includes: responding to a screen projection request of a target video, and sending a broadcast message carrying a local area network identifier; receiving a broadcast response message, and analyzing the broadcast response message to generate a candidate receiving end list; responding to screen projection clicking operation on a target receiving terminal in the candidate receiving terminal list, and taking the target receiving terminal as a DLNA screen projection receiving terminal.
In this embodiment, the target video may be a certain video selected by a user in a video client of the DLNA screen projection source, or a video currently being played by the video client. When a user clicks a screen projection button of a target video, a screen projection request for the target video is responded, and a DLNA screen projection source end needs to discover screen projection equipment in the unified local area network through a DLNA protocol. The message carrying the local area network identifier can be generated and broadcasted, and at this time, the devices in the same local area network receive the broadcast message and carry the own basic device information in the broadcast response message to return. And the screen projection source terminal analyzes the broadcast response message returned by each device, acquires the basic information of each device, generates a candidate receiving terminal list and displays the candidate receiving terminal list to the user. For example, the candidate recipient list includes: a television in the bedroom 1, a television in the bedroom 2, and a computer in the living room. When the user clicks a certain screen-throwable device in the candidate receiving end list, for example, clicks the television of the bedroom 2, the television of the bedroom 2 is used as a DLNA screen-throwing receiving end.
And S120, acquiring a video playing format list of the DLNA screen projection receiving end.
In this embodiment, a video playing format supported by the DLNA screen projection receiving terminal may be different from a video playing format of the target video sent by the DLNA screen projection source terminal, but only when the DLNA screen projection receiving terminal supports the video playing format of the target video, the screen projection receiving terminal can successfully play the target video, so as to implement screen projection of the target video. Therefore, as shown in fig. 2, before sending a Uniform Resource Locator (URL) of a target video to a screen-casting receiving end, a screen-casting source end may first obtain a video playing format list supported by the screen-casting receiving end to determine whether a currently selected target video can be successfully cast on the screen-casting receiving end.
Optionally, the obtaining of the video playing format list of the DLNA screen projection receiving end includes: sending an information acquisition instruction to the DLNA screen projection receiving end; if a response message returned by the DLNA screen projection receiving end is received, analyzing a video playing format list from the response message; and if the response message returned by the DLNA screen projection receiving terminal is not received, requesting a video playing format list of the DLNA screen projection receiving terminal from a cloud server.
In this embodiment, the device address of the screen projection receiving end may be obtained from the device basic information returned by the DLNA screen projection receiving end through the broadcast response message. And sending an information acquisition instruction to the equipment address of the DLNA screen projection receiving end, namely sending a get instruction to obtain detailed equipment information of the screen projection receiving end. As shown in fig. 2, if a response message fed back by the screen projection receiving end is received, a service list provided by the screen projection receiving end is obtained from the response message, and a video playing format supported by the screen projection receiving end is further determined. And if the response message of the screen projection receiving end is not received, acquiring a video playing format list supported by the screen projection receiving end from the cloud server according to the equipment identification of the screen projection receiving end.
S130, determining a playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
In this embodiment, according to a video playing format list supported by the screen projection receiving terminal, in combination with a video transcoding service, the screen projection source terminal can acquire the video playing format to obtain a target video supported by the screen projection receiving terminal, and push a playing address of the target video to the screen projection receiving terminal.
Optionally, the determining, according to the video playing format list, a playing address of the target video, and pushing the playing address to the DLNA screen projection receiving end for performing screen projection of the target video includes: acquiring an original playing format of the target video, and matching the original playing format with the video playing format list; if the original playing format hits the video playing format list, the original playing address of the target video is pushed to the DLNA screen projection receiving end to carry out target video screen projection; and if the original playing format does not hit the video playing format list, converting the playing format of the target video into one of the video playing format lists, generating a new playing address and pushing the new playing address to the DLNA screen projection receiving end to carry out target video screen projection.
In this embodiment, in order to improve the play success rate of the video play address pushed by the DLNA, when the DLNA screen projection source end performs screen projection of a target video, the DLNA screen projection source end does not directly push out the original URL of the selected target video, but detects the video play format support condition of the DLNA screen projection receiving end through the DLNA protocol, and the screen projection source end determines whether the original video play format of the target video matches the video play format list supported by the screen projection receiving end according to the information. If the video playing format list comprises the original playing format of the target video, the matching is considered to be successful, and the screen projection receiving end can play the target video in the original playing format, so that the original playing address of the target video can be pushed to the DLNA screen projection receiving end. If the video playing format list does not include the original playing format of the target video, the matching is considered to be failed, and the screen projection receiving end cannot successfully play the target video in the original playing format. At this time, as shown in fig. 2, the video transcoding service may be started, the video playing format of the target video is converted into a video playing format supported by the screen-casting receiving terminal, and a playing address compatible with the screen-casting receiving terminal is generated again and pushed to the DLNA screen-casting receiving terminal to perform the screen casting of the target video.
Optionally, the converting the playing format of the target video into one of the video playing format lists includes: and converting the playing format of the target video into the target video playing format in the video playing format list through a locally deployed transcoding server.
The video transcoding means that a video code stream which is compressed and encoded is converted into another video code stream so as to adapt to different network bandwidths, different terminal processing capacities and different user requirements. Transcoding is essentially a decoding followed by encoding process.
In this embodiment, in order to integrally solve the problem of DLNA play compatibility, a transcoding server is locally deployed and optimized to balance video play, image capture, system operation, and the like. By combining the locally privately-deployed transcoding server with the DLNA, when the video playing format conversion of the target video is required, the locally-deployed transcoding server is started, and the playing format of the target video is converted into the target video playing format in the video playing format list. The target video playing format can be selected according to the encoding capacity of the equipment at the far end of the screen, or according to the size of the target video, or the first video playing format in the video playing format list is directly selected as the target video playing format.
Optionally, after the obtaining the original playing format of the target video and matching the original playing format with the video playing format list, the method may further include: if the original playing format does not hit the video playing format list, locally screening an alternative video set which is the same as the target video content; if the original playing format in the alternative video set hits the target alternative video in the video playing format list, pushing the original playing address of the target alternative video to the DLNA screen projection receiving end; and if the target alternative videos with the original playing formats hitting the video playing format list do not exist in the alternative video set, starting a local transcoding server.
In this embodiment, since the DLNA screen projection source can support multiple playing formats, multiple videos with the same content and different playing formats are stored, for example, the screen projection source includes movie a in the format of movie A, MOV in the format of movie A, AVI in the format of MP 4. Assuming that the target video in the original playing format is movie a in MP4 format, and the video playing format list at the screen projection receiving end includes AVI, RMVB, and MKV, the original playing format does not hit the video playing format list. At this time, the video identical to the target video content, that is, movie a in the AVI format of movie A, MOV, may be screened locally as the alternative video. Since movie-a in AVI format hits the video play format list, the original play address of the video can be pushed to the DLNA screen projection receiving end without starting the local transcoding server to convert the play format of movie-a in MP4 format. And when the candidate videos stored locally do not have videos capable of hitting the video playing format list, starting the local transcoding server to convert the playing format of the target video, and generating a new playing address. At this time, the video with the converted format and the new playing address can be stored, so that video transcoding can be reduced when the video with the same content is subsequently projected.
According to the technical scheme of the embodiment of the disclosure, a DLNA screen projection source end determines a DLNA screen projection receiving end by responding to a screen projection request of a target video; acquiring a video playing format list of the DLNA screen projection receiving end; and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen-casting receiving terminal to perform target video screen casting, so that the problem of low address playing success rate of the receiving terminal on DLNA is solved, the playing format of the video to be screen-cast is unified with the receiving terminal at the source terminal, and the effect that the receiving terminal can successfully play the video to be screen-cast is ensured.
Fig. 3 is a schematic structural diagram of a video screen projection device according to an embodiment of the present disclosure, and as shown in fig. 3, the device is applied to a DLNA screen projection source, and includes: a determination module 310, an acquisition module 320, and a screen projection module 330.
The determining module 310 is configured to execute a screen-casting request responding to a target video, and determine a DLNA screen-casting receiving end;
an obtaining module 320, configured to perform obtaining a video playing format list of the DLNA screen projection receiving end;
and the screen projection module 330 is configured to determine a play address of the target video according to the video play format list, and push the play address to the DLNA screen projection receiving end to perform screen projection of the target video.
According to the technical scheme provided by the embodiment of the disclosure, a DLNA screen projection source end determines a DLNA screen projection receiving end by responding to a screen projection request of a target video; acquiring a video playing format list of the DLNA screen projection receiving end; and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen-casting receiving terminal to perform target video screen casting, so that the problem of low address playing success rate of the receiving terminal on DLNA is solved, the playing format of the video to be screen-cast is unified with the receiving terminal at the source terminal, and the effect that the receiving terminal can successfully play the video to be screen-cast is ensured.
In the above solution, the screen projection module 330 includes:
the format matching unit is used for acquiring the original playing format of the target video and matching the original playing format with the video playing format list;
the first screen projection unit is used for pushing an original playing address of the target video to the DLNA screen projection receiving end to perform target video screen projection if the original playing format hits the video playing format list;
and the second screen projection unit is used for converting the playing format of the target video into one of the video playing format lists and generating a new playing address to be pushed to the DLNA screen projection receiving end to carry out target video screen projection if the original playing format does not hit the video playing format list.
In the above scheme, the second screen projecting unit is configured to perform:
and converting the playing format of the target video into the target video playing format in the video playing format list through a locally deployed transcoding server.
In the above scheme, the screen projecting module 330 further includes: a local matching unit, configured to perform local screening on an alternative video set that has the same content as the target video if the original playing format does not hit the video playing format list after acquiring the original playing format of the target video and matching the original playing format with the video playing format list;
if the original playing format in the alternative video set hits the target alternative video in the video playing format list, pushing the original playing address of the target alternative video to the DLNA screen projection receiving end;
and if the target alternative videos with the original playing formats hitting the video playing format list do not exist in the alternative video set, starting a local transcoding server.
In the foregoing solution, the obtaining module 320 is configured to perform:
sending an information acquisition instruction to the DLNA screen projection receiving end;
if a response message returned by the DLNA screen projection receiving end is received, analyzing a video playing format list from the response message;
and if the response message returned by the DLNA screen projection receiving terminal is not received, requesting a video playing format list of the DLNA screen projection receiving terminal from a cloud server.
In the foregoing solution, the determining module 310 is configured to perform:
responding to a screen-casting request of a target video, and sending a broadcast message carrying a local area network identifier;
receiving a broadcast response message, and analyzing the broadcast response message to generate a candidate receiving end list;
responding to screen projection clicking operation on a target receiving terminal in the candidate receiving terminal list, and taking the target receiving terminal as a DLNA screen projection receiving terminal.
The video screen projection device provided by the embodiment of the disclosure can execute the video screen projection method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring now to fig. 4, a schematic diagram of an electronic device (e.g., the terminal device or the server in fig. 4) 500 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An editing/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the video projection method of the embodiment of the present disclosure when executed by the processing device 501.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The electronic device provided by the embodiment of the present disclosure and the video screen projection method provided by the above embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment and the above embodiment have the same beneficial effects.
The disclosed embodiments provide a computer storage medium having a computer program stored thereon, which when executed by a processor implements the video screen projection method provided by the above embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a screen projection request of a target video, and determining a DLNA screen projection receiving end; acquiring a video playing format list of the DLNA screen projection receiving end; and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-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 machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-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 machine-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.
In accordance with one or more embodiments of the present disclosure, example 1 provides a video screen projection method applied to a DLNA screen projection source, including:
responding to a screen projection request of a target video, and determining a DLNA screen projection receiving end;
acquiring a video playing format list of the DLNA screen projection receiving end;
and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
According to one or more embodiments of the present disclosure, example 2 is the method of example 1, where determining the play address of the target video according to the video play format list and pushing the play address to the DLNA screen projection receiving end for performing target video screen projection includes:
acquiring an original playing format of the target video, and matching the original playing format with the video playing format list;
if the original playing format hits the video playing format list, the original playing address of the target video is pushed to the DLNA screen projection receiving end to carry out target video screen projection;
and if the original playing format does not hit the video playing format list, converting the playing format of the target video into one of the video playing format lists, generating a new playing address and pushing the new playing address to the DLNA screen projection receiving end to carry out target video screen projection.
Example 3 the method of example 2, the converting the playback format of the target video to one of the video playback format lists, comprising:
and converting the playing format of the target video into the target video playing format in the video playing format list through a locally deployed transcoding server.
Example 4 the method of example 2, after obtaining an original playback format of the target video and matching the original playback format with the video playback format list, further comprising:
if the original playing format does not hit the video playing format list, locally screening an alternative video set which is the same as the target video content;
if the original playing format in the alternative video set hits the target alternative video in the video playing format list, pushing the original playing address of the target alternative video to the DLNA screen projection receiving end;
and if the target alternative videos with the original playing formats hitting the video playing format list do not exist in the alternative video set, starting a local transcoding server.
Example 5 the method of example 1, according to one or more embodiments of the present disclosure, the obtaining a video play format list of the DLNA screen projection receiving end includes:
sending an information acquisition instruction to the DLNA screen projection receiving end;
if a response message returned by the DLNA screen projection receiving end is received, analyzing a video playing format list from the response message;
and if the response message returned by the DLNA screen projection receiving end is not received, requesting a video playing format list of the DLNA screen projection receiving end from a cloud server.
Example 6 the method of example 1, wherein determining a DLNA screen projection recipient in response to a screen projection request for a target video, comprises:
responding to a screen projection request of a target video, and sending a broadcast message carrying a local area network identifier;
receiving a broadcast response message, and analyzing the broadcast response message to generate a candidate receiving end list;
responding to screen projection clicking operation on a target receiving terminal in the candidate receiving terminal list, and taking the target receiving terminal as a DLNA screen projection receiving terminal.
Example 7 provides a video projection device, applied to a DLNA projection source, according to one or more embodiments of the present disclosure, including:
the determining module is used for executing a screen projection request responding to the target video and determining a DLNA screen projection receiving end;
the acquisition module is used for executing the acquisition of a video playing format list of the DLNA screen projection receiving end;
and the screen projection module is used for determining the playing address of the target video according to the video playing format list and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
Example 8 the apparatus of example 7, the screen projection module, according to one or more embodiments of the present disclosure, comprising:
the format matching unit is used for acquiring the original playing format of the target video and matching the original playing format with the video playing format list;
the first screen projection unit is used for pushing an original playing address of the target video to the DLNA screen projection receiving end to perform target video screen projection if the original playing format hits the video playing format list;
and the second screen projection unit is used for converting the playing format of the target video into one of the video playing format lists and generating a new playing address to be pushed to the DLNA screen projection receiving end to carry out target video screen projection if the original playing format does not hit the video playing format list.
Example 9 provides, in accordance with one or more embodiments of the present disclosure, an electronic device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video projection method of any of examples 1-6.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, a storage medium containing computer-executable instructions that, when executed by a computer processor, are for performing the video screen projection method of any of examples 1-6.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A video screen projection method is applied to a digital living network alliance DLNA screen projection source end and comprises the following steps:
responding to a screen projection request of a target video, and determining a DLNA screen projection receiving end;
acquiring a video playing format list of the DLNA screen projection receiving end;
and determining the playing address of the target video according to the video playing format list, and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
2. The method of claim 1, wherein the determining a play address of the target video according to the video play format list and pushing the play address to the DLNA screen projection receiving end for performing target video screen projection comprises:
acquiring an original playing format of the target video, and matching the original playing format with the video playing format list;
if the original playing format hits the video playing format list, the original playing address of the target video is pushed to the DLNA screen projection receiving end to carry out target video screen projection;
and if the original playing format does not hit the video playing format list, converting the playing format of the target video into one of the video playing format lists, generating a new playing address and pushing the new playing address to the DLNA screen projection receiving end to carry out target video screen projection.
3. The method of claim 2, wherein converting the playing format of the target video into one of the video playing format lists comprises:
and converting the playing format of the target video into the target video playing format in the video playing format list through a locally deployed transcoding server.
4. The method according to claim 2, wherein after the obtaining an original playing format of the target video and matching the original playing format with the video playing format list, further comprising:
if the original playing format does not hit the video playing format list, locally screening an alternative video set with the same content as the target video;
if the original playing format in the alternative video set hits the target alternative video in the video playing format list, pushing the original playing address of the target alternative video to the DLNA screen projection receiving end;
and if the target alternative videos with the original playing formats hitting the video playing format list do not exist in the alternative video set, starting a local transcoding server.
5. The method of claim 1, wherein the obtaining the video play format list of the DLNA screen projection receiving end comprises:
sending an information acquisition instruction to the DLNA screen projection receiving end;
if a response message returned by the DLNA screen projection receiving end is received, analyzing a video playing format list from the response message;
and if the response message returned by the DLNA screen projection receiving terminal is not received, requesting a video playing format list of the DLNA screen projection receiving terminal from a cloud server.
6. The method of claim 1, wherein the determining a DLNA screen projection receiving end in response to a screen projection request of a target video comprises:
responding to a screen projection request of a target video, and sending a broadcast message carrying a local area network identifier;
receiving a broadcast response message, and analyzing the broadcast response message to generate a candidate receiving end list;
responding to screen projection clicking operation on a target receiving terminal in the candidate receiving terminal list, and taking the target receiving terminal as a DLNA screen projection receiving terminal.
7. The utility model provides a video throws screen device which characterized in that is applied to DLNA and throws the screen source end, includes:
the determining module is used for executing a screen projection request responding to the target video and determining a DLNA screen projection receiving end;
the acquisition module is used for executing the acquisition of a video playing format list of the DLNA screen projection receiving end;
and the screen projection module is used for determining the playing address of the target video according to the video playing format list and pushing the playing address to the DLNA screen projection receiving end to perform target video screen projection.
8. The apparatus of claim 7, wherein the screen projection module comprises:
the format matching unit is used for acquiring the original playing format of the target video and matching the original playing format with the video playing format list;
the first screen projection unit is used for pushing an original playing address of the target video to the DLNA screen projection receiving end to perform target video screen projection if the original playing format hits the video playing format list;
and the second screen projection unit is used for converting the playing format of the target video into one of the video playing format lists and generating a new playing address to be pushed to the DLNA screen projection receiving end to carry out target video screen projection if the original playing format does not hit the video playing format list.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video projection method of any of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the video screen projection method of any one of claims 1-6 when executed by a computer processor.
CN202210600829.XA 2022-05-30 2022-05-30 Video screen projection method, device, equipment and storage medium Pending CN115022693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210600829.XA CN115022693A (en) 2022-05-30 2022-05-30 Video screen projection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210600829.XA CN115022693A (en) 2022-05-30 2022-05-30 Video screen projection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115022693A true CN115022693A (en) 2022-09-06

Family

ID=83070210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210600829.XA Pending CN115022693A (en) 2022-05-30 2022-05-30 Video screen projection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115022693A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740363A (en) * 2019-10-25 2020-01-31 华为终端有限公司 Screen projection method and system and electronic equipment
CN110944220A (en) * 2019-12-10 2020-03-31 北京爱奇艺科技有限公司 Video screen projection playing method, device, equipment and system
CN112672212A (en) * 2020-12-16 2021-04-16 深圳乐播科技有限公司 Video transcoding screen projection method, device and system
CN112839238A (en) * 2019-11-22 2021-05-25 腾讯科技(深圳)有限公司 Screen projection playing method and device and storage medium
CN113438527A (en) * 2021-06-25 2021-09-24 北京奇艺世纪科技有限公司 Video screen projection method, device, equipment and storage medium
CN114205664A (en) * 2021-12-06 2022-03-18 北京字节跳动网络技术有限公司 Screen projection method, screen projection device, screen projection display device, screen projection system, and medium
CN114422845A (en) * 2021-12-20 2022-04-29 瑞芯微电子股份有限公司 Method for transceiving audio and video data and transfer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740363A (en) * 2019-10-25 2020-01-31 华为终端有限公司 Screen projection method and system and electronic equipment
CN112839238A (en) * 2019-11-22 2021-05-25 腾讯科技(深圳)有限公司 Screen projection playing method and device and storage medium
CN110944220A (en) * 2019-12-10 2020-03-31 北京爱奇艺科技有限公司 Video screen projection playing method, device, equipment and system
CN112672212A (en) * 2020-12-16 2021-04-16 深圳乐播科技有限公司 Video transcoding screen projection method, device and system
CN113438527A (en) * 2021-06-25 2021-09-24 北京奇艺世纪科技有限公司 Video screen projection method, device, equipment and storage medium
CN114205664A (en) * 2021-12-06 2022-03-18 北京字节跳动网络技术有限公司 Screen projection method, screen projection device, screen projection display device, screen projection system, and medium
CN114422845A (en) * 2021-12-20 2022-04-29 瑞芯微电子股份有限公司 Method for transceiving audio and video data and transfer equipment

Similar Documents

Publication Publication Date Title
WO2020233142A1 (en) Multimedia file playback method and apparatus, electronic device, and storage medium
WO2020151599A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
WO2022127523A1 (en) Video playback method and apparatus, device, and medium
CN112272226B (en) Picture loading method and device and readable storage medium
CN110809189A (en) Video playing method and device, electronic equipment and computer readable medium
CN112312222A (en) Video sending method and device and electronic equipment
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
WO2023103861A1 (en) Screen projection method, screen projection device, screen projection display device, screen projection system and medium
CN110806846A (en) Screen sharing method, screen sharing device, mobile terminal and storage medium
CN112770159A (en) Multi-screen interaction system, method, device, equipment and storage medium
CN108337556B (en) Method and device for playing audio-video file
CN113596530A (en) Method and device for transferring data
CN113542856A (en) Reverse playing method, device, equipment and computer readable medium for online video
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN112612919A (en) Video resource association method, device, equipment and medium
WO2019140963A1 (en) Data transmission
CN115022693A (en) Video screen projection method, device, equipment and storage medium
CN112203103B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN111367592B (en) Information processing method and device
CN111212296B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN112040328A (en) Data interaction method and device and electronic equipment
CN111291254A (en) Information processing method and device
CN113364672B (en) Method, device, equipment and computer readable medium for determining media gateway 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