CN115103221A - Screen projection method and device, electronic equipment and readable storage medium - Google Patents

Screen projection method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115103221A
CN115103221A CN202210747622.5A CN202210747622A CN115103221A CN 115103221 A CN115103221 A CN 115103221A CN 202210747622 A CN202210747622 A CN 202210747622A CN 115103221 A CN115103221 A CN 115103221A
Authority
CN
China
Prior art keywords
video
playlist
screen
url
url address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210747622.5A
Other languages
Chinese (zh)
Other versions
CN115103221B (en
Inventor
陈国庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210747622.5A priority Critical patent/CN115103221B/en
Publication of CN115103221A publication Critical patent/CN115103221A/en
Application granted granted Critical
Publication of CN115103221B publication Critical patent/CN115103221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

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

Abstract

The embodiment of the invention provides a screen projection method, a screen projection device, electronic equipment and a readable storage medium, wherein the method comprises the steps of acquiring N pieces of play information under the condition of receiving a screen projection starting instruction, wherein each piece of play information comprises a video identifier corresponding to a video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1; creating a playlist based on the N pieces of play information; and sending the playlist to the screen-projected end so that the screen-projected end performs screen-projected playing of the video according to the playlist. The screen projection method provided by the embodiment of the invention improves the play speed of the screen projection.

Description

Screen projection method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a screen projection method and apparatus, an electronic device, and a readable storage medium.
Background
The screen projection refers to projecting files, videos or audios and the like on one device to another device for display. For example, a video on a mobile phone is projected onto a television for display. And each time the user initiates a screen projection operation, one video is projected. At present, after a user initiates a screen-casting operation each time, a Uniform Resource Locator (URL) address corresponding to a video needs to be obtained from a background, and then the video is cast according to the URL address, which reduces the play-on speed of the screen casting.
Disclosure of Invention
The embodiment of the invention aims to provide a screen projection method, a screen projection device, electronic equipment and a readable storage medium, so as to improve the playing speed of a screen projection. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a screen projection method, including:
under the condition of receiving a screen-casting starting instruction, acquiring N pieces of play information, wherein each piece of play information comprises a video identifier corresponding to a video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
creating a playlist based on the N pieces of play information;
and sending the playlist to a screen projected end so that the screen projected end performs screen projection playing of the video according to the playlist.
In a second aspect of the present invention, there is also provided a screen projection apparatus, including:
the acquisition module is used for acquiring N pieces of play information under the condition of receiving a screen projection starting instruction, wherein each piece of play information comprises a video identifier corresponding to one video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
a first determining module, configured to create a playlist based on the N pieces of playing information;
and the sending module is used for sending the playlist to a screen-projected end so that the screen-projected end performs screen-projected playing of the video according to the playlist.
In another aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for executing any one of the screen projection methods when the program stored in the memory is executed.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any of the above-mentioned screen projection methods.
According to the screen projection method provided by the embodiment of the application, N pieces of play information are obtained under the condition that a screen projection starting instruction is received, each piece of play information comprises a Uniform Resource Locator (URL) address, a play list is created based on the N pieces of play information, and then the play list is sent to a screen projected end, so that the screen projected end carries out screen projection playing on videos according to the play list. When a user initiates screen projection operation (namely, each screen projection is performed with one video), the video is directly projected according to the URL address in the playlist, the video identification is not required to be obtained from the Feed background first, and then the URL address is obtained from the VRS background according to the video identification, so that the time consumption in the screen projection process is reduced, and the screen projection speed is increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart of a screen projection method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a playlist provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a screen projection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to better understand the solution provided by the present invention, a brief introduction will be made below to the background knowledge related to the present invention.
The screen projection refers to projecting files, videos or audios and the like on one device to another device for display. With the popularization of intelligent mobile terminals and the rapid development of internet video services, there are more and more demands for playing videos on intelligent terminal devices such as mobile phones and tablets and projecting the videos to large-screen devices such as televisions and set-top boxes for watching when needed. A screen projection technology based on a Digital Living Network Alliance (DLNA) protocol is used as a typical Uniform Resource Locator (URL) screen projection technology to meet the requirement. In DLNA screen projection, a source device (SourcePlayer) transmits a URL address of a video to a destination device (DestPlayer), and the DestPlayer requests a server to acquire play data corresponding to the URL address and plays the data.
At present, after a screen-casting starting instruction is received, a user needs to acquire a URL address corresponding to a video from a background every time the user initiates a screen-casting operation (namely, every time the user casts a video), and then casts the video according to the URL address, which reduces the play speed of screen casting.
In order to improve the playing speed of the screen projection, the invention provides a screen projection method, and the screen projection method can be applied to any scene that one electronic device projects a screen to another electronic device, such as but not limited to the screen projection from a mobile phone to a television or a projector, the screen projection from a computer to a television or a projector, and the like. Electronic devices include, but are not limited to, cell phones, Tablet Personal computers (tablets), Laptop computers (Laptop computers), televisions, projectors, and the like. In a scene that the mobile phone projects a screen to a television or a projector, the source end equipment is the mobile phone, and the destination end equipment is the television or the projector; in a scene that a computer projects a screen to a television or a projector, the source device is the computer, and the destination device is the television or the projector.
In addition, with the rise of short video application, the content of the short video screen is richer and the resolution of the short video is higher and higher. However, the short video is usually played through a mobile phone, which is limited by the size of the mobile phone screen, and cannot bring a better viewing experience to the user. To solve this problem, screen projection also starts to enter the short video field due to the natural property of turning small screen to large screen. Short video users often switch video quickly by sliding up and down, and the demand on the speed of playing is also higher. Therefore, the method provided by the invention can be particularly used for a scene that the short video of the mobile phone is projected to a television or a projector, so as to solve the problems of quick screen projection and broadcasting of the short video.
The following describes a technical scheme in an embodiment of the present invention, taking a scene in which a short video of a mobile phone is projected onto a television or a projector as an example, with reference to the drawings in the embodiment of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a screen projection method provided by an embodiment of the present invention, which can be applied to a source device (i.e., a screen projection end), and includes the following steps:
step 101, acquiring N pieces of play information under the condition of receiving a screen projection starting instruction, wherein each piece of play information comprises a video identifier corresponding to a video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
in specific implementation, when a source device receives a screen projection start instruction, video identifiers and URL addresses corresponding to a plurality of videos can be acquired from a storage medium in which video identifiers (tvids) and URL addresses corresponding to the videos are stored. Or acquiring a plurality of video identifications from a background of an information stream (Feed), and then acquiring URL addresses corresponding to the plurality of video identifications from a VRS background according to the video identifications.
102, creating a play list based on the N pieces of play information;
in a specific implementation, the arrangement order of the playing information in the playlist may be determined according to the arrangement order of the acquired URL addresses, for example, the arrangement order of the acquired URL addresses may be consistent with the arrangement order of the playing information in the playlist. Referring to fig. 2, fig. 2 is a schematic diagram of a playlist according to an embodiment of the present invention. The sub-items (items) in FIG. 2 represent videos, and each sub-item may include a URL address corresponding to a video.
The created playlist may be stored in the source device, such as a mobile phone, or in the destination device, such as a television or a projector.
And 103, sending the playlist to a screen projected end so that the screen projected end performs screen projection playing of the video according to the playlist.
In specific implementation, if the created playlist is stored in the source device, the destination device (i.e., the screen-projected device) may obtain the playlist from the source device when receiving a video switching instruction, and perform screen-projected playing of the video according to the arrangement order of the URL addresses in the playlist and the video switching instruction.
If the created playlist is stored in the destination device, that is, after the source device completes creating the playlist, the playlist is sent to the destination device, and the destination device stores the playlist in the storage space of the destination device. And under the condition of receiving a video switching instruction, the destination equipment directly reads the stored playlist and carries out video screen-casting playing according to the arrangement sequence of the URL addresses in the playlist and the video switching instruction. Therefore, the created playlist is stored in the destination device and is directly read when needed, the playlist does not need to be acquired from the source device, time consumption in the screen projection process can be further reduced, and the screen projection speed is further improved.
The instruction for switching the video includes, but is not limited to, an operation instruction for a user to slide up or down by a gesture operation, an operation instruction for pressing the screen for a long time, an operation instruction for double-clicking the screen, and the like.
Illustratively, as shown in fig. 2, the screen-shot window is a window currently being screen-shot and playing, and the sub-item 7 represents a video being played. Under the condition of receiving a video switching instruction, if an up-sliding operation instruction is received, the source device can acquire a URL address corresponding to a required sub-item 6 from the playlist according to the arrangement sequence of the URL addresses in the playlist and a preset switching rule, and send the URL address to the destination device, so as to switch a video being played (a video corresponding to a sub-item 7) to a video corresponding to the sub-item 6; if an operation instruction of sliding upwards is received, a URL address corresponding to a required sub-item 8 is obtained from the play list, and the URL address is sent to the destination terminal equipment, so that a video (a video corresponding to a sub-item 7) which is playing is switched to a video corresponding to the sub-item 8.
It should be noted that the screen projection method provided by the present invention can be implemented based on the DLNA protocol, so as to ensure that the screen projection method provided by the present invention can be used by most electronic devices.
Further, in order to reduce the learning cost of the user, the short video screen projection in the method provided by the invention can adopt a vertical full screen mode.
According to the screen projection method provided by the embodiment of the application, N pieces of play information are obtained under the condition that a screen projection starting instruction is received, each piece of play information comprises a Uniform Resource Locator (URL) address, a play list is created based on the N pieces of play information, and then the play list is sent to a screen projected end, so that the screen projected end carries out screen projection playing on videos according to the play list. When a user initiates screen projection operation (namely, each screen projection is performed with one video), the video is directly projected according to the URL address in the playlist, the video identification is not required to be obtained from the Feed background first, and then the URL address is obtained from the VRS background according to the video identification, so that the time consumption in the screen projection process is reduced, and the screen projection speed is increased.
Further, referring to fig. 2, fig. 2 is a schematic diagram of a playlist provided by an embodiment of the present invention. Each sub item (item) in fig. 2 represents each video, and each sub item may further include at least one of a title of the video corresponding to the video, authentication information, an acquisition time of a URL address corresponding to the video, an effective time of a preset URL address, and a position number of the video in the playlist.
It should be noted that the video identifier and the title of the video may be obtained from a Feed background. The title of the video may be used to be displayed on the screen when the video is projected for play to inform the user of the title of the video being played. The URL address and the authentication information corresponding to the video are acquired by independently requesting a VRS background.
In order to protect the benefit of the video provider in consideration of the playing right of the user, optionally, the obtaining N pieces of playing information includes:
acquiring N video identifications corresponding to N videos from an information flow background;
aiming at each video identification, acquiring authentication information corresponding to the video from an authentication background according to the video identification;
and acquiring the URL address corresponding to the video according to the authentication information.
In a specific implementation, the authentication background may be a VRS background. The authentication information may include a mapping relationship table of the user identifier, the video identifier and the authority, and the mapping relationship table records whether the user has the authority to play a certain video. If the user corresponding to the user identifier is acquired from the mapping relation table according to the user identifier and the video identifier and has the permission to watch the video corresponding to the video identifier, the source end device can acquire the URL address corresponding to the video identifier according to the URL address information stored in the authentication background, so that the destination end device can play the video based on the URL address for the user to watch. In order to meet the viewing requirements of different users, more than one URL address corresponding to the video identifier may be provided, for example, a certain video identifier may correspond to a plurality of URL addresses matching different code streams (definitions).
Optionally, the obtaining, according to the authentication information, a URL address corresponding to the video includes:
and under the condition that the authentication information comprises first indicating information, acquiring a first URL (uniform resource locator) address corresponding to a first video, wherein the first indicating information indicates that the first video has screen projection permission, the first video is one of N videos corresponding to the N pieces of playing information, and the first URL address is one URL address in the playlist.
In specific implementation, the authentication information may include a plurality of indication information for indicating whether the video has the screen projection authority, the screen projection authority of the video corresponding to the video identifier may be obtained according to a preset mapping relation table of the user identifier, the video identifier and the screen projection authority, and if the video has the screen projection authority, the URL address corresponding to the video is sent to the source end device. If the video does not have the screen projection authority, the source device cannot acquire the URL address corresponding to the video.
Further, the first URL address may include a first sub-URL address and a second sub-URL address, where the first sub-URL address corresponds to the first code stream and the second sub-URL address corresponds to the second code stream.
In order to prevent the video from being stolen by other electronic equipment and improve the safety of the invention, the invention can adopt an anti-theft chain mechanism to preset the effective time length of the URL address corresponding to each video. If the URL address is still unused after the effective time of the URL address is exceeded from the moment of acquiring the video URL address, the URL address is invalid, and a new URL address corresponding to the video needs to be acquired from the VRS background again. Since the URL address has a possibility of invalidation due to the anti-hotlinking mechanism, in order to keep the URL address in the playlist valid, optionally, the method further includes:
determining acquisition time of a URL (uniform resource locator) address corresponding to a target video, wherein the URL address corresponding to the target video is any URL address in the playlist;
and determining whether to update the URL address corresponding to the target video according to the acquisition time and the preset effective duration.
In specific implementation, the source device may periodically check whether the obtained URL address in the playlist is valid, and specifically, may determine the validity of the URL address according to the obtaining time of the URL address and the preset validation time. If the URL address is invalid, the source device needs to acquire a new URL address corresponding to the video from the VRS background, so that the URL address in the playlist can be guaranteed to be valid, and the situation that the playing speed of the screen is reduced due to the fact that the address in the playlist is invalid is avoided.
Illustratively, the determining whether to update the URL address corresponding to the target video according to the acquisition time and a preset effective duration includes:
under the condition that the time difference value between the acquisition time and the current time is greater than the effective time length, acquiring the current URL address of the target video;
replacing the URL address of the target video in the playlist with the current URL address.
The source device periodically checks whether the obtained URL address in the playlist is valid, and may check the URL address in the playlist one by one in sequence, or may check the URL addresses in the playlist multiple in parallel at the same time. When the URL addresses in the playlist are sequentially checked individually, a checking precedence principle may be set, where the precedence principle may be that the URL address corresponding to the position number that is closer to the position number of the currently played video in the playlist is checked first.
In the actual screen projection process, each video has a certain playing time, and a user cannot switch infinite videos in a short time, so that in order to reduce the workload of source-end equipment, the validity of part of URL addresses in a playlist can be checked within a certain time, and the validity of all URL addresses in the playlist does not need to be checked. Optionally, after creating the playlist based on the N pieces of play information, the method further includes:
determining the position number of the currently played video in the playlist;
determining M target URL addresses based on the location number, the M target URL addresses including at least one of: the first M1 URL addresses before the location number and the last M2 URL addresses after the location number, M, M1 and M2 are positive integers;
the target video is a video corresponding to any URL address in M target URL addresses.
In the specific implementation, the M target URL addresses are URL addresses whose validity needs to be checked, and at this time, the validity of URL addresses other than the target URL addresses does not need to be checked. For example, referring to fig. 2, the position number of the currently played video is 7, and 2 URL addresses located before the sub item 7 and the last 3 URL addresses located after the sub item 7 may be checked.
The values of M1 and M2 may be determined according to actual situations to better maintain the validity of the URL address, so as to avoid the URL address failure and reduce the broadcasting speed of the screen, and as an example, the manner of determining the values of M1 and M2 may be: acquiring target information, wherein the target information comprises at least one of operation information of historical switching videos of users and playing duration information of the videos, and determining values of the M1 and the M2 according to the target information.
In specific implementation, the values of M1 and M2 can be dynamically adjusted according to the sliding cutting set speed of the user. The method can acquire the historical sliding cut set speed of the user, predefine the sliding cut set speed of the three-gear user to be low gear, medium gear and high gear respectively, and set three groups of values of M1 and M2 according to the three-gear speed.
As an example, the operation information of the user switching video may include an average speed of the user switching video, and if the average speed of the user switching video is 0-45px/s (px represents a pixel), M1 may be set to 2, and M2 may be set to 3; if the average speed of the user switching video is 45-200px/s, then M1 may be set to 2 and M2 may be set to 7; if the average speed of the user switching video is more than 200px/s, the user is only the switching action at this time, the validity of the URL address does not need to be checked temporarily, the values of M1 and M2 can be temporarily not set, and when the user decelerates to below 200, the checking of the validity of the URL address is started again.
It should be understood that the source device may not obtain all the play information for creating the playlist when creating the playlist, and the number of URL addresses in the playlist is limited. If the number of videos watched by the user exceeds the number of the playing information of the videos stored in the playlist, the videos exceeding the number need to acquire the video identification from the Feed background again, and then the URL address is acquired according to the video identification, so that the starting time of screen projection is reduced. Therefore, to avoid such a situation, optionally, after determining the position number of the currently played video in the playlist, the method further includes:
if the difference between the position number of the currently played video and the position number of the last URL address in the playlist is smaller than a preset value, acquiring a new video identifier;
acquiring a new URL address corresponding to the new video according to the identification of the new video;
adding the new URL address to the playlist.
In a specific implementation, the preset value may be determined according to a reasonable empirical value after analyzing the historical data, for example, the preset value may be 3 or 5.
If the preset value is 6, referring to fig. 2, the position number of the currently played video is 7, the last URL address in the playlist is 12, and the difference between the two positions is 5, then the source device needs to obtain a new video identifier from the Feed background, obtain a new URL address according to the new video identifier, and add the new URL address to the playlist, so that the user can directly perform screen projection playing on the video according to the newly added URL address in the playlist, thereby increasing the speed of playing the screen.
Since the player is reset and the cache is cleared by the television end each time the user initiates a screen-casting operation (i.e., each screen casting a video), which also results in a slow playback speed of the screen casting, in order to increase the playback speed, optionally, after acquiring N pieces of playback information, the method further includes:
and sending the playlist to a screen cast end, so that the screen cast end caches the play data corresponding to the playlist based on the playlist.
The screen-thrown end (destination end device) can cache the playlist after receiving the playlist, and cache the playing data corresponding to the URL address in the playlist based on the URL address in the playlist.
By sending the playlist to the screen-casting end, the original buffering mechanism of DLNA can be utilized to buffer the playing data of the next video based on the URL address in the playlist before the user initiates the screen-casting operation, so that the time for obtaining the playing data based on the URL address after the screen-casting segment obtains the URL address can be saved, seamless simulcast is realized, and the screen-casting speed is further improved.
During specific implementation, the push piece can be ensured to call the same player object by setting a playlist + next set command, and the next set data is cached during playing, so that seamless simulcast is realized.
When the video is pushed for the first time, the URL address corresponding to the currently played video is pushed to the television end by using a push instruction SetVTransportURI, and the URL address of the next set is set to the play list of the television end by using a set next set command SetNextAVTranportURI. The pushers list is defined as pushItems, local cache.
As described above, to improve the security of the present invention, if the URL address has an effective duration, there may be a case where the URL address in the playlist of the source device is updated, but the playlist of the destination device is the original URL address and is not updated. Therefore, when the user slides to cut off a set next time, whether the URL address corresponding to the next set of video in the source device is the same as the URL address corresponding to the next set of video in the destination device is compared, and if the URL addresses are the same, which indicates that the URL address in the destination device (television) does not exceed the validity duration, the playing data corresponding to the URL address cached at the television is still valid. The next set is switched using the PlayNext command. If the URL addresses in the destination terminal equipment (television terminal) are different, the URL addresses in the destination terminal equipment (television terminal) exceed the effective time, and the playing data cached by the television terminal is invalid. Call setnextavttranporturi (next set command) to reset the player, cache the play data of the video to set the next set, and then switch to the next set using the PlayNext play next level command.
Referring to fig. 3, fig. 3 is a screen projection apparatus 200 according to an embodiment of the present invention, including:
the acquisition module 201 is configured to acquire N pieces of play information under the condition that a screen-casting start instruction is received, where each piece of play information includes a video identifier corresponding to one video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
a first determining module 202, configured to create a playlist based on the N pieces of play information;
a sending module 203, configured to send the playlist to a screen-projected end, so that the screen-projected end performs screen-projected playing of a video according to the playlist.
Optionally, the obtaining module 201 includes:
the first acquisition unit is used for acquiring N video identifications corresponding to N videos from an information flow background;
the second acquisition unit is used for acquiring authentication information corresponding to the video from an authentication background according to the video identifier for each video identifier;
and the third acquisition unit is used for acquiring the URL address corresponding to the video according to the authentication information.
Optionally, the third obtaining unit includes:
and under the condition that the authentication information comprises first indication information, acquiring a first URL address corresponding to a first video, wherein the first indication information indicates that the first video has a screen projection permission, the first video is one of N videos corresponding to the N pieces of playing information, and the first URL address is one URL address in the playlist.
Optionally, the apparatus 200 further comprises:
the second determining module is used for determining the acquisition time of the URL address corresponding to the target video, wherein the URL address corresponding to the target video is any URL address in the playlist;
and the third determining module is used for determining whether to update the URL address corresponding to the target video according to the acquisition time and the preset effective duration.
Optionally, the third determining module includes:
under the condition that the time difference value between the acquisition time and the current time is greater than the effective time length, acquiring the current URL address of the target video;
replacing the URL address of the target video in the playlist with the current URL address.
Optionally, after the first determining module 202, the apparatus 200 further includes:
determining the position number of the currently played video in the playlist;
determining M target URL addresses based on the location number, the M target URL addresses including at least one of: the first M1 URL addresses before the location number and the last M2 URL addresses after the location number, M, M1 and M2 are positive integers;
the target video is a video corresponding to any one of M target URL addresses.
Optionally, the apparatus 200 further comprises:
acquiring target information, wherein the target information comprises at least one of operation information of historical switching videos of users and playing duration information of the videos;
and determining the values of the M1 and the M2 according to the target information.
Optionally, after determining the position number of the currently played video in the playlist, the apparatus 200 further includes:
if the difference between the position number of the currently played video and the position number of the last URL address in the playlist is smaller than a preset value, acquiring a new video identifier;
acquiring a new URL address corresponding to the new video according to the identification of the new video;
adding the new URL address to the playlist.
Optionally, after the obtaining module 201, the apparatus 200 further includes:
and sending the playlist to the screen-projected end, so that the screen-projected end caches the play data corresponding to the playlist based on the playlist.
The screen projection device 200 provided in the embodiment of the present application can implement each process that can be implemented in the embodiment of the screen projection method of the present application, and achieve the same beneficial effects, and for avoiding repetition, the details are not repeated here.
The embodiment of the present invention further provides an electronic device, as shown in fig. 4, which includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301, when executing the program stored in the memory 303, implements the following steps:
under the condition of receiving a screen-casting starting instruction, acquiring N pieces of play information, wherein each piece of play information comprises a video identifier corresponding to a video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
creating a playlist based on the N pieces of play information;
and sending the playlist to a screen projected end so that the screen projected end performs screen projection playing of the video according to the playlist.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the screen projection method in any one of the above embodiments.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the screen projection method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A screen projection method, comprising:
under the condition of receiving a screen-casting starting instruction, acquiring N pieces of play information, wherein each piece of play information comprises a video identifier corresponding to a video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
creating a playlist based on the N pieces of play information;
and sending the playlist to a screen projected end so that the screen projected end performs screen projection playing of the video according to the playlist.
2. The screen projection method of claim 1, wherein the obtaining N pieces of play information comprises:
acquiring N video identifications corresponding to N videos from an information flow background;
aiming at each video identification, acquiring authentication information corresponding to the video from an authentication background according to the video identification;
and acquiring the URL address corresponding to the video according to the authentication information.
3. The screen projection method of claim 2, wherein the obtaining of the URL address corresponding to the video according to the authentication information comprises:
and under the condition that the authentication information comprises first indicating information, acquiring a first URL (uniform resource locator) address corresponding to a first video, wherein the first indicating information indicates that the first video has screen projection permission, the first video is one of N videos corresponding to the N pieces of playing information, and the first URL address is one URL address in the playlist.
4. The screen projection method of claim 1, further comprising:
determining acquisition time of a URL (uniform resource locator) address corresponding to a target video, wherein the URL address corresponding to the target video is any URL address in the playlist;
and determining whether to update the corresponding URL address of the target video according to the acquisition time and the preset effective duration.
5. The screen projection method of claim 4, wherein the determining whether to update the corresponding URL address of the target video according to the acquisition time and a preset effective time duration comprises:
under the condition that the time difference value between the acquisition time and the current time is greater than the effective time length, acquiring the current URL address of the target video;
replacing the URL address of the target video in the playlist with the current URL address.
6. The screen-projection method of claim 4, wherein after creating a playlist based on the N play information, the method further comprises:
determining the position number of the currently played video in the playlist;
determining M target URL addresses based on the location number, the M target URL addresses including at least one of: the first M1 URL addresses before the location number and the last M2 URL addresses after the location number, M, M1 and M2 are both positive integers;
the target video is a video corresponding to any URL address in M target URL addresses.
7. The screen projection method of claim 6, further comprising:
acquiring target information, wherein the target information comprises at least one of operation information of historical switching videos of users and playing duration information of the videos;
and determining the values of the M1 and the M2 according to the target information.
8. The screen-casting method of claim 6, wherein after determining the position number of the currently playing video in the playlist, the method further comprises:
if the difference between the position number of the currently played video and the position number of the last URL address in the playlist is smaller than a preset value, acquiring a new video identifier;
acquiring a new URL address corresponding to the new video according to the identification of the new video;
adding the new URL address to the playlist.
9. The screen projection method of claim 1, wherein after obtaining the N pieces of play information, the method further comprises:
and sending the playlist to the screen-projected end, so that the screen-projected end caches the play data corresponding to the playlist based on the playlist.
10. A screen projection apparatus, comprising:
the acquisition module is used for acquiring N pieces of play information under the condition of receiving a screen projection starting instruction, wherein each piece of play information comprises a video identifier corresponding to one video and a Uniform Resource Locator (URL) address, and N is a positive integer greater than 1;
a first determining module, configured to create a playlist based on the N pieces of play information;
and the sending module is used for sending the playlist to a screen-projected end so that the screen-projected end performs screen-projected playing of the video according to the playlist.
11. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 9 when executing a program stored in the memory.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202210747622.5A 2022-06-28 2022-06-28 Screen projection method and device, electronic equipment and readable storage medium Active CN115103221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210747622.5A CN115103221B (en) 2022-06-28 2022-06-28 Screen projection method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210747622.5A CN115103221B (en) 2022-06-28 2022-06-28 Screen projection method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115103221A true CN115103221A (en) 2022-09-23
CN115103221B CN115103221B (en) 2023-09-22

Family

ID=83295714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210747622.5A Active CN115103221B (en) 2022-06-28 2022-06-28 Screen projection method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115103221B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130182183A1 (en) * 2012-01-15 2013-07-18 Panopto, Inc. Hardware-Based, Client-Side, Video Compositing System
US20130246905A1 (en) * 2012-03-19 2013-09-19 Kabushiki Kaisha Toshiba Information generator, information output device, and recording medium
CA2872555A1 (en) * 2012-05-09 2013-11-14 Icon Ip Technologies Pty Ltd A method of displaying a customised address bar or search results in a browser
US20130318037A1 (en) * 2012-05-28 2013-11-28 Huawei Device Co., Ltd. Method, apparatus, and system for processng media resource playlist in local area network
WO2017197820A1 (en) * 2016-05-16 2017-11-23 乐视控股(北京)有限公司 On-line video playing method and apparatus
CN109348284A (en) * 2018-11-28 2019-02-15 深圳市创维软件有限公司 A kind of channel playback method, device, equipment and medium
CN110647303A (en) * 2019-08-30 2020-01-03 北京文渊佳科技有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN112702620A (en) * 2020-12-29 2021-04-23 四川长虹电器股份有限公司 Method for realizing multi-screen synchronous playing of player based on gstreamer
CN113207035A (en) * 2021-04-16 2021-08-03 乐视致新信息技术(武汉)有限公司 Video screen projection method, device, equipment and computer readable storage medium
CN113395606A (en) * 2020-03-13 2021-09-14 华为技术有限公司 URL screen projection method and device
CN113490039A (en) * 2021-07-20 2021-10-08 北京奇艺世纪科技有限公司 Screen-casting simulcasting method, device, system, electronic equipment and storage medium
CN113542857A (en) * 2020-04-13 2021-10-22 中兴通讯股份有限公司 Screen projection method and device, projection equipment, screen projection playing equipment and storage medium
CN113608710A (en) * 2021-07-19 2021-11-05 深圳市炬力北方微电子有限公司 Screen projection method and related equipment
CN113727178A (en) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 Screen projection resource control method and device, equipment and medium thereof
CN113938704A (en) * 2021-10-15 2022-01-14 北京小度互娱科技有限公司 Screen projection method, screen projection end and cloud server
US20220021922A1 (en) * 2019-05-20 2022-01-20 Beijing Bytedance Network Technology Co., Ltd. Playlist switching method, apparatus and system, terminal and storage medium
CN114125149A (en) * 2021-11-17 2022-03-01 维沃移动通信有限公司 Video playing method, device, system, electronic equipment and storage medium
CN114679610A (en) * 2020-12-24 2022-06-28 花瓣云科技有限公司 Screen projection method, device and system for continuously playing video

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130182183A1 (en) * 2012-01-15 2013-07-18 Panopto, Inc. Hardware-Based, Client-Side, Video Compositing System
US20130246905A1 (en) * 2012-03-19 2013-09-19 Kabushiki Kaisha Toshiba Information generator, information output device, and recording medium
CA2872555A1 (en) * 2012-05-09 2013-11-14 Icon Ip Technologies Pty Ltd A method of displaying a customised address bar or search results in a browser
US20130318037A1 (en) * 2012-05-28 2013-11-28 Huawei Device Co., Ltd. Method, apparatus, and system for processng media resource playlist in local area network
WO2017197820A1 (en) * 2016-05-16 2017-11-23 乐视控股(北京)有限公司 On-line video playing method and apparatus
CN109348284A (en) * 2018-11-28 2019-02-15 深圳市创维软件有限公司 A kind of channel playback method, device, equipment and medium
US20220021922A1 (en) * 2019-05-20 2022-01-20 Beijing Bytedance Network Technology Co., Ltd. Playlist switching method, apparatus and system, terminal and storage medium
CN110647303A (en) * 2019-08-30 2020-01-03 北京文渊佳科技有限公司 Multimedia playing method, device, storage medium and electronic equipment
WO2021179931A1 (en) * 2020-03-13 2021-09-16 华为技术有限公司 Url screen projection method and apparatus
CN113395606A (en) * 2020-03-13 2021-09-14 华为技术有限公司 URL screen projection method and device
CN113542857A (en) * 2020-04-13 2021-10-22 中兴通讯股份有限公司 Screen projection method and device, projection equipment, screen projection playing equipment and storage medium
CN114679610A (en) * 2020-12-24 2022-06-28 花瓣云科技有限公司 Screen projection method, device and system for continuously playing video
CN112702620A (en) * 2020-12-29 2021-04-23 四川长虹电器股份有限公司 Method for realizing multi-screen synchronous playing of player based on gstreamer
CN113207035A (en) * 2021-04-16 2021-08-03 乐视致新信息技术(武汉)有限公司 Video screen projection method, device, equipment and computer readable storage medium
CN113608710A (en) * 2021-07-19 2021-11-05 深圳市炬力北方微电子有限公司 Screen projection method and related equipment
CN113490039A (en) * 2021-07-20 2021-10-08 北京奇艺世纪科技有限公司 Screen-casting simulcasting method, device, system, electronic equipment and storage medium
CN113727178A (en) * 2021-08-31 2021-11-30 广州方硅信息技术有限公司 Screen projection resource control method and device, equipment and medium thereof
CN113938704A (en) * 2021-10-15 2022-01-14 北京小度互娱科技有限公司 Screen projection method, screen projection end and cloud server
CN114125149A (en) * 2021-11-17 2022-03-01 维沃移动通信有限公司 Video playing method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115103221B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN111901674B (en) Video playing control method and device
CN108933948B (en) Video playing progress synchronization method and device
US9344517B2 (en) Downloading and adaptive streaming of multimedia content to a device with cache assist
CN108495185B (en) Video title generation method and device
US20090164602A1 (en) Apparatus and methods for retrieving/ downloading content on a communication device
CN104539977A (en) Live broadcast previewing method and device
CN107315825B (en) Index updating system, method and device
CN104837035A (en) Video playing method and terminal
CN108933764B (en) Method and device for realizing quick broadcast starting
CN110677727A (en) Audio and video playing method and device, electronic equipment and storage medium
CN110582012B (en) Video switching method, video processing device and storage medium
RU2673560C1 (en) Method and system for displaying multimedia information, standardized server and direct broadcast terminal
CN110944220B (en) Video screen projection playing method, device, equipment and system
US20160294903A1 (en) Method and device for pushing resources to mobile communication terminal by smart television
CN112584200B (en) Screen projection method, system, electronic equipment and storage medium
US20220295138A1 (en) Video Update Push Method and Terminal
CN112243158B (en) Media file processing method and device, computer readable medium and electronic equipment
CN111436009B (en) Real-time video stream transmission and display method and transmission and play system
US10674188B2 (en) Playback apparatus, method of controlling playback apparatus, playback method and server apparatus
US20150156393A1 (en) Video Monitoring System and Method for Reducing Pan-Tilt Control Delay
US20240031615A1 (en) Media file play method and apparatus, electronic device, server, and medium
CN113259757A (en) Method for video screen projection by being convenient and fast to be compatible with multiple applications
CN115103221A (en) Screen projection method and device, electronic equipment and readable storage medium
CN108965939B (en) Media data processing method, device and system and readable storage medium
CN113438313B (en) Video continuous playing processing method, related device and readable storage medium

Legal Events

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