CN111031359A - Video playing method and device, electronic equipment and computer readable storage medium - Google Patents

Video playing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111031359A
CN111031359A CN201911349162.5A CN201911349162A CN111031359A CN 111031359 A CN111031359 A CN 111031359A CN 201911349162 A CN201911349162 A CN 201911349162A CN 111031359 A CN111031359 A CN 111031359A
Authority
CN
China
Prior art keywords
information
video
screen
playing
video source
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
CN201911349162.5A
Other languages
Chinese (zh)
Other versions
CN111031359B (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 CN201911349162.5A priority Critical patent/CN111031359B/en
Publication of CN111031359A publication Critical patent/CN111031359A/en
Application granted granted Critical
Publication of CN111031359B publication Critical patent/CN111031359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Abstract

The embodiment of the invention provides a video playing method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: after detecting that the video information is selected, determining screen proportion information of the playing equipment; sending a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment; receiving video source information corresponding to the video information returned by the server; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information; and controlling the playing equipment to play the video according to the video source information. The method and the device send the selected video information and the determined screen proportion information to the server together, so that the server can pay attention to whether the image proportion information and the screen proportion information of the video are matched when the server acquires the video source information, and the problem that the image proportion information and the screen proportion information are not matched is avoided.

Description

Video playing method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a video playing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
In the existing video playing scene, the video playing mode is mostly that information of a video to be played, such as a video name or a video image, is selected at a client, a video resource corresponding to the video information is requested from a server, and the server acquires the video resource corresponding to the video information and returns the video resource to the client for video playing. However, at present, the server does not pay attention to the problem of image size when acquiring video resources, and is easy to play video, because the image size of a video source is not matched with the display size of a playing device, so that the video image only occupies a part of the area of a screen, and the other part of the screen is filled with black edges.
Taking a screen projection playing scene as an example, a specific screen projection process includes: the method comprises the steps of selecting video information at a client side, finding and selecting screen projection equipment, requesting a server to obtain a video source address of the video information, pushing the video source address returned by the server to the screen projection equipment, and playing videos by the screen projection equipment according to the video source address. Fig. 1 is a schematic diagram of the effect of playing video by projecting a screen, because a video source is a vertical screen picture (length is smaller than width), and a screen projecting device displays a horizontal screen (length is larger than width), the video image only occupies a part of the screen in the process of playing video by the screen projecting device, so that a large area of black edges appears in the screen, the screen utilization rate is low, and the user experience effect is influenced.
Disclosure of Invention
Embodiments of the present invention provide a video playing method, an apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problem of low screen utilization of a playing device due to mismatch between an image size of a video source and a display size of the playing device. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a video playing method, executed on a client side, including: after detecting that the video information is selected, determining screen proportion information of the playing equipment; sending a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment; receiving video source information corresponding to the video information returned by the server; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information; and controlling the playing equipment to play the video according to the video source information.
Wherein, the determining the screen proportion information of the playing device comprises: acquiring equipment information of the playing equipment; inquiring screen proportion information of the playing equipment according to the equipment information of the playing equipment; or, collecting a screen image of the playing device; and determining the screen proportion information of the playing equipment according to the screen image of the playing equipment.
Wherein, the playback device includes: and the screen projection equipment and/or the equipment where the client is located.
In a second aspect of the present invention, there is also provided a video playing method, which includes the steps executed on a server side: receiving a video playing request sent by a client; the video playing request comprises: the selected video information and the screen proportion information of the playing device; determining a video source of which the image proportion information is matched with the screen proportion information of the playing equipment in the video sources corresponding to the video information; and sending the video source information corresponding to the video source to the client so that the client can control the playing equipment to play the video according to the video source information.
Wherein, in the video source corresponding to the video information, determining the video source of which the image proportion information is matched with the screen proportion information of the playing device includes: taking a video source with image proportion information identical to the screen proportion information of the playing equipment as a target video source in the video sources corresponding to the video information; if the video source with the image proportion information same as the screen proportion information of the playing equipment does not exist, designating the video source with the image proportion information and the screen proportion information of the playing equipment with the minimum difference value as a target video source; and taking the target video source as a video source of which the image proportion information is matched with the screen proportion information of the playing equipment.
When or after the video source information corresponding to the video source is sent to the client, the method further comprises the following steps: and if the video source with the smallest difference between the image proportion information and the screen proportion information of the playing equipment is designated as a target video source, performing image processing on the target video source according to the screen proportion information of the playing equipment, and processing the image display size of the target video source to be the same as the screen proportion information.
In a third aspect of the embodiments of the present invention, there is provided a video playing apparatus, disposed on a client side, including: the first determining module is used for determining the screen proportion information of the playing equipment after the selected video information is determined; the first sending module is used for sending a video playing request to the server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment; the first receiving module is used for receiving the video source information which is returned by the server and corresponds to the video information; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information; and the control module is used for controlling the playing equipment to play the video according to the video source information.
In a fourth aspect of the embodiments of the present invention, there is provided a video playing apparatus, disposed on a server side, including: the second receiving module is used for receiving a video playing request sent by the client; the video playing request comprises: the selected video information and the screen proportion information of the playing device; the second determining module is used for determining a video source of which the image proportion information is matched with the screen proportion information of the playing equipment in the video source corresponding to the video information; and the second sending module is used for sending the video source information corresponding to the video source to the client so that the client can control the playing equipment to play the video according to the video source information.
In a fifth aspect implemented by 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 one of the above-described video playing methods executed on a client, or execute any one of the above-described video playing methods executed on a server.
In a sixth aspect of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above-mentioned video playing methods executed on a client, or any of the above-mentioned video playing methods executed on a server.
According to the video playing method and device, the electronic device and the computer readable storage medium, the client determines the screen proportion information of the playing device before requesting the video source information, and sends the selected video information and the determined screen proportion information to the server together, so that the server can pay attention to whether the image proportion information and the screen proportion information of the video are matched when acquiring the video source information, and then returns the video source information with the image proportion information matched with the screen proportion information to the client, thereby avoiding the problem of large-area black edges of the screen caused by mismatching of the image proportion information and the screen proportion information, improving the screen occupancy rate and improving the user experience effect.
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 diagram illustrating the effect of playing video by projecting a screen in the prior art;
fig. 2 is a flowchart of a video playing method performed at a client according to an embodiment of the present invention;
FIG. 3 is a flowchart of the steps for determining screen ratio information according to one embodiment of the present invention;
fig. 4 is a flowchart of a video playing method performed at a server according to an embodiment of the present invention;
fig. 5 is a block diagram of a video playback apparatus provided at a client according to an embodiment of the present invention;
fig. 6 is a block diagram of a video playback apparatus provided at a server according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The embodiment of the invention provides a video playing method executed at a client. Fig. 2 is a flowchart of a video playing method executed at a client according to an embodiment of the present invention.
Step S210, after detecting that the video information is selected, determining screen ratio information of the playing device.
Video information, including but not limited to: video name and/or video coding.
Playback devices, including but not limited to: the screen projection equipment and/or the equipment where the client is located. Further, the playing device is a device that can be networked.
The screen ratio information refers to an aspect ratio (or called aspect ratio) of a screen display area of the playback device.
Determining screen proportion information of a playing device, comprising: acquiring equipment information of the playing equipment; inquiring screen proportion information of the playing equipment according to the equipment information of the playing equipment; or, collecting a screen image of the playing device; and determining the screen proportion information of the playing equipment according to the screen image of the playing equipment.
Device information including at least one of: the name, model, and unique code of the playback device.
Inquiring the screen proportion information of the playing device according to the device information of the playing device, wherein the inquiring comprises the following steps: inquiring screen proportion information corresponding to the equipment information in locally stored historical binding information of equipment where the client is located; or, in the internet, screen ratio information corresponding to the device information is inquired. Historical binding information, including: device information and screen scale information. Of course, in the historical binding information, the following may be included: and logging in the user information of the client. The corresponding screen ratio information can be queried according to the user information and the device information.
Acquiring a screen image of the playing device, including: if the equipment where the client is located and the playing equipment are different equipment, if the playing equipment is screen projection equipment, calling a camera of the equipment where the client is located, and shooting a screen of the playing equipment to obtain a screen image; and if the equipment where the client is located and the playing equipment are the same equipment, performing screen capture operation on the screen of the playing equipment, and taking the screen capture image as a screen image. Further, when the screen proportion information is not inquired, a user prompt can pop up to request to acquire the screen image.
If the screen image is an image obtained by shooting the screen of the playing device, extracting the screen size of the playing device from the screen image of the playing device through an image processing technology, and determining the length-width ratio of the screen size as screen proportion information. And if the screen image is the screenshot image, determining the size of the screenshot image, determining the length-width ratio of the screenshot image according to the size of the screenshot image, and taking the length-width ratio of the screenshot image as the screen proportion information of the playing device.
Step S220, sending a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing device.
In this embodiment, the video playing request may further include: the clarity of the request. The categories of sharpness include: blue light, ultra-clear, high-definition and smooth.
Step S230, receiving video source information corresponding to the video information returned by the server; and matching the image proportion information of the video source corresponding to the video source information with the screen proportion information.
Video source information including, but not limited to: a video source address. The video source address may be a URL (uniform resource locator) of the video source.
The image proportion information is matched with the screen proportion information, and means that: the image scale information is the same as the screen scale information, or the image scale information is closest to the screen scale information (the difference is smallest).
And step S240, controlling the playing device to play video according to the video source information.
And if the playing equipment is the equipment where the client is located, acquiring video resources from the video source address and calling a display of the playing equipment to play the video.
And if the playing equipment is screen projection equipment, pushing a video source address to the screen projection equipment, so that the screen projection equipment plays the video according to the video source address.
Because the image proportion information of the video source is the same as the screen proportion information of the playing device, the images of the video source can be fully paved on the screen of the playing device, and the condition of black edges does not exist.
In the embodiment of the invention, the client determines the screen proportion information of the playing device before requesting the video source information, and sends the selected video information and the determined screen proportion information to the server together, so that the server can pay attention to whether the image proportion information and the screen proportion information of the video are matched when acquiring the video source information, and then returns the video source information of which the image proportion information and the screen proportion information are matched to the client, thereby avoiding the problem of large-area black edges of a screen caused by mismatching of the image proportion information and the screen proportion information, improving the screen occupancy rate and improving the user experience effect.
A more specific way of determining the screen ratio information of the playback device is provided below. In this embodiment, taking a screen image as an image obtained by shooting a screen of a playback device as an example, since a part of a body of the playback device or a background of the playback device is shot when the image is shot, in this embodiment, a border of the screen is determined in the screen image by using openrecv (Open Source computer vision Library), and screen proportion information is determined according to the border of the screen.
FIG. 3 is a flowchart illustrating steps for determining screen ratio information according to an embodiment of the present invention.
In step S310, noise reduction processing is performed on the grayscale image of the screen image.
And if the screen image is a color image, preprocessing the screen image and converting the color screen image into a gray image.
And (3) carrying out noise reduction processing on the gray level image by using a mean shift algorithm (MeanShift) or a Gaussian filter algorithm (Gaussian), filtering out noise in the gray level image, and smoothing the gray level image so as to reduce the influence of the noise on an edge detection result.
Step S320, performing edge detection on the grayscale image after the noise reduction processing.
And performing edge detection on the gray-scale picture after the noise reduction processing by using a Canny algorithm.
In this embodiment, a dilation process may be performed on the detected edge to ensure that the edge in the grayscale image is closed as much as possible.
And step S330, carrying out contour extraction on the edge detection result to obtain an image contour.
If the edge detection result is subjected to outline extraction using findContours function, the parameter can be configured as CV _ RETR _ EXTERNAL, i.e. only the outline is detected.
And step S340, fitting convex quadrangles in the image contour, and determining the convex quadrangles of which the four corners are close to right angles and the circumscribed rectangle is the largest in the fitted convex quadrangles.
The four corners are close to the right angle, which means that the angles of the four corners are all larger than a preset angle threshold. The angle threshold is for example 75 degrees.
In this embodiment, a convex hull is detected in the image contour, and polygon fitting is performed based on the detected convex hull, and a convex quadrangle is determined in the convex hull polygon.
The convex quadrangle fitting for the first time is low in precision, so that the fitting precision can be improved by fitting the fitted convex quadrangle for the second time, and the convex quadrangle with the four corners close to right angles and the maximum external rectangle is determined in the convex quadrangle obtained in the fitting for the second time.
In step S350, Perspective transformation (Perspective transformation) is performed on the convex quadrangle to obtain a rectangular frame, and the aspect ratio of the rectangular frame is used as screen scale information.
Due to the problem of the shooting angle, the outline of the screen of the playing device is not a rectangular frame, so that the quadrangle obtained by correcting the convex quadrangle can be obtained by performing perspective transformation on the convex quadrangle.
After the screen ratio information of the playing device is obtained, the user information, the device information of the playing device, and the screen ratio information may be stored correspondingly. For example: and storing the historical binding information into the local device of the client. The storage format is, for example: { userid: uid; deviceid is did; rate is rateA }. The userid is user information, the deviceid is equipment information, and the rate is screen ratio information of the playing equipment.
In the embodiment of the invention, the opencv is used for analyzing the screen proportion information, so that the method is convenient and easy to use, has high accuracy, and can fill the technical blank that the screen projection equipment cannot obtain the screen proportion information.
According to the video playing method executed at the client, the embodiment of the invention also provides a video playing method executed at the server. The server side of the embodiment of the invention can store a plurality of video sources corresponding to the same video information, and the image proportions of the video sources are different, so as to meet the requirements of the playing equipment with different screen proportions.
Fig. 4 is a flowchart of a video playing method executed at a server according to an embodiment of the present invention.
Step S410, receiving a video playing request sent by a client; the video playing request comprises: selected video information and screen scale information of the playback device.
Step S420, determining a video source whose image ratio information matches the screen ratio information of the playing device, from among the video sources corresponding to the video information.
Taking a video source with image proportion information identical to the screen proportion information of the playing equipment as a target video source in the video sources corresponding to the video information; if the video source with the image proportion information same as the screen proportion information of the playing equipment does not exist, designating the video source with the image proportion information and the screen proportion information of the playing equipment with the minimum difference value as a target video source; and taking the target video source as a video source of which the image proportion information is matched with the screen proportion information of the playing equipment.
Step S430, sending video source information corresponding to the video source to the client, so that the client controls the playing device to play the video according to the video source information.
In this embodiment, when or after sending the video source information corresponding to the video source to the client, the method further includes: if the video source with the smallest difference between the image proportion information and the screen proportion information of the playing equipment is designated as a target video source, image processing is carried out on the target video source according to the screen proportion information of the playing equipment, and the image proportion information of the target video source is processed to be the same as the screen proportion information.
Further, the image scale information of the target video source may be processed to be the same as the screen scale information by means of stretching, compressing, or clipping.
In the embodiment of the invention, after receiving the video information and the screen proportion information, the server pays attention to whether the image proportion information and the screen proportion information of the video source are matched when acquiring the video source information, and then returns the video source information of which the image proportion information is matched with the screen proportion information to the client, so that the problem of large-area black edges of a screen caused by mismatching of the image proportion information and the screen proportion information is avoided, the screen occupancy rate is improved, and the user experience effect is improved.
For example: before a video is projected to a screen projection device, screen proportion information of the screen projection device is determined, the screen proportion information and video information selected by a user are sent to a server together, the server obtains a Uniform Resource Locator (URL) of a video source matched with the screen proportion information from the video sources with various image proportions, the URL is returned to a client, the client pushes the URL to the screen projection device, the screen projection device starts video playing according to the URL, and in the video playing process, video images can be fully paved on the whole screen of the screen projection device.
The embodiment of the invention also provides a video playing device arranged at the client. Fig. 5 is a block diagram of a video playback device installed at a client according to an embodiment of the present invention.
This video playback device who sets up at client includes: a first determination module 510, a first transmission module 520, a first reception module 530, and a control module 540.
A first determining module 510, configured to determine screen ratio information of the playing device after determining the selected video information.
A first sending module 520, configured to send a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing device.
A first receiving module 530, configured to receive video source information corresponding to the video information returned by the server; and the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information.
And the control module 540 is configured to control the playback device to play back a video according to the video source information.
The functions of the apparatus according to the embodiment of the present invention have been described in the above-mentioned embodiment of the video playing method executed by the client, so that reference may be made to the related descriptions in the foregoing embodiments for details in the description of the embodiment, which is not described herein again.
The embodiment of the invention also provides a video playing device arranged on the server. Fig. 6 is a block diagram of a video playback device installed in a server according to an embodiment of the present invention.
This video playback device who sets up at server includes: a second receiving module 610, a second determining module 620 and a second transmitting module 630.
A second receiving module 610, configured to receive a video playing request sent by a client; the video playing request comprises: selected video information and screen scale information of the playback device.
A second determining module 620, configured to determine, in the video sources corresponding to the video information, a video source whose image ratio information matches the screen ratio information of the playback device.
A second sending module 630, configured to send video source information corresponding to the video source to the client, so that the client controls the playback device to play a video according to the video source information.
The functions of the apparatus according to the embodiment of the present invention have been described in the above-mentioned embodiment of the video playing method executed by the server, so that reference may be made to the related descriptions in the foregoing embodiments for details in the description of the embodiment, which is not described herein again.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 710, a communication interface 720, a memory 730, and a communication bus 740, where the processor 710, the communication interface 720, and the memory 730 complete mutual communication through the communication bus 740.
A memory 730 for storing a computer program;
the processor 710 is configured to, when executing the program stored in the memory 730, implement the video playing method executed at the client according to any of the foregoing embodiments, or implement the video playing method executed at the server according to any of the foregoing embodiments. The method comprises the following specific steps:
steps performed at the client side, comprising: after detecting that the video information is selected, determining screen proportion information of the playing equipment; sending a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment; receiving video source information corresponding to the video information returned by the server; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information; and controlling the playing equipment to play the video according to the video source information.
Wherein, the determining the screen proportion information of the playing device comprises: acquiring equipment information of the playing equipment; inquiring screen proportion information of the playing equipment according to the equipment information of the playing equipment; or, collecting a screen image of the playing device; and determining the screen proportion information of the playing equipment according to the screen image of the playing equipment.
Wherein, the playback device includes: and the screen projection equipment and/or the equipment where the client is located.
Steps performed at the server side, comprising: receiving a video playing request sent by a client; the video playing request comprises: the selected video information and the screen proportion information of the playing device; determining a video source of which the image proportion information is matched with the screen proportion information of the playing equipment in the video sources corresponding to the video information; and sending the video source information corresponding to the video source to the client so that the client can control the playing equipment to play the video according to the video source information.
Wherein, in the video source corresponding to the video information, determining the video source of which the image proportion information is matched with the screen proportion information of the playing device includes: taking a video source with image proportion information identical to the screen proportion information of the playing equipment as a target video source in the video sources corresponding to the video information; if the video source with the image proportion information same as the screen proportion information of the playing equipment does not exist, designating the video source with the image proportion information and the screen proportion information of the playing equipment with the minimum difference value as a target video source; and taking the target video source as a video source of which the image proportion information is matched with the screen proportion information of the playing equipment.
When or after the video source information corresponding to the video source is sent to the client, the method further comprises the following steps: and if the video source with the smallest difference between the image proportion information and the screen proportion information of the playing equipment is designated as a target video source, performing image processing on the target video source according to the screen proportion information of the playing equipment, and processing the image display size of the target video source to be the same as the screen proportion information.
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. Optionally, the memory may also 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 device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any of the video playing methods executed on a client or any of the video playing methods executed on a server in any of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the video playing methods described in the above embodiments, which are executed on a client, or execute any of the video playing methods described in the above embodiments, which are executed on a server.
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 (10)

1. A video playing method, characterized in that, the steps executed on the client side include:
after detecting that the video information is selected, determining screen proportion information of the playing equipment;
sending a video playing request to a server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment;
receiving video source information corresponding to the video information returned by the server; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information;
and controlling the playing equipment to play the video according to the video source information.
2. The method of claim 1, wherein determining the screen ratio information of the playback device comprises:
acquiring equipment information of the playing equipment; inquiring screen proportion information of the playing equipment according to the equipment information of the playing equipment; alternatively, the first and second electrodes may be,
acquiring a screen image of the playing equipment; and determining the screen proportion information of the playing equipment according to the screen image of the playing equipment.
3. The method according to claim 1 or 2,
the playback device includes: and the screen projection equipment and/or the equipment where the client is located.
4. A video playing method, characterized in that, the steps executed on the server side include:
receiving a video playing request sent by a client; the video playing request comprises: the selected video information and the screen proportion information of the playing device;
determining a video source of which the image proportion information is matched with the screen proportion information of the playing equipment in the video sources corresponding to the video information;
and sending the video source information corresponding to the video source to the client so that the client can control the playing equipment to play the video according to the video source information.
5. The method of claim 4, wherein determining a video source with image scale information matching with screen scale information of the playback device among the video sources corresponding to the video information comprises:
taking a video source with image proportion information identical to the screen proportion information of the playing equipment as a target video source in the video sources corresponding to the video information;
if the video source with the image proportion information same as the screen proportion information of the playing equipment does not exist, designating the video source with the image proportion information and the screen proportion information of the playing equipment with the minimum difference value as a target video source;
and taking the target video source as a video source of which the image proportion information is matched with the screen proportion information of the playing equipment.
6. The method according to claim 5, wherein when or after sending video source information corresponding to the video source to the client, further comprising:
and if the video source with the smallest difference between the image proportion information and the screen proportion information of the playing equipment is designated as a target video source, performing image processing on the target video source according to the screen proportion information of the playing equipment, and processing the image display size of the target video source to be the same as the screen proportion information.
7. A video playback apparatus provided on a client side, comprising:
the first determining module is used for determining the screen proportion information of the playing equipment after the selected video information is determined;
the first sending module is used for sending a video playing request to the server; the video playing request comprises the following steps: the video information and the screen proportion information of the playing equipment;
the first receiving module is used for receiving the video source information which is returned by the server and corresponds to the video information; the image proportion information of the video source corresponding to the video source information is matched with the screen proportion information;
and the control module is used for controlling the playing equipment to play the video according to the video source information.
8. A video playback apparatus, provided on a server side, comprising:
the second receiving module is used for receiving a video playing request sent by the client; the video playing request comprises: the selected video information and the screen proportion information of the playing device;
the second determining module is used for determining a video source of which the image proportion information is matched with the screen proportion information of the playing equipment in the video source corresponding to the video information;
and the second sending module is used for sending the video source information corresponding to the video source to the client so that the client can control the playing equipment to play the video according to the video source information.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1 to 3 or the method steps of any one of claims 4 to 6 when executing a program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any of claims 1 to 3 or carries out the method steps of any of claims 4 to 6.
CN201911349162.5A 2019-12-24 2019-12-24 Video playing method and device, electronic equipment and computer readable storage medium Active CN111031359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349162.5A CN111031359B (en) 2019-12-24 2019-12-24 Video playing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349162.5A CN111031359B (en) 2019-12-24 2019-12-24 Video playing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111031359A true CN111031359A (en) 2020-04-17
CN111031359B CN111031359B (en) 2023-01-10

Family

ID=70213030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349162.5A Active CN111031359B (en) 2019-12-24 2019-12-24 Video playing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111031359B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112616078A (en) * 2020-12-10 2021-04-06 维沃移动通信有限公司 Screen projection processing method and device, electronic equipment and storage medium
CN112929693A (en) * 2021-01-26 2021-06-08 广州欢网科技有限责任公司 Video display method, device and equipment and storage medium
CN114760503A (en) * 2022-04-15 2022-07-15 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893816A (en) * 2010-06-17 2010-11-24 广州市花都区凯迪威电子厂 Multifunctional micro-projector
CN102970600A (en) * 2012-11-20 2013-03-13 无锡成电科大科技发展有限公司 Cloud-computing-based high-definition video playing system and method
CN103546821A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for regulating video playing interface
WO2015062434A1 (en) * 2013-10-30 2015-05-07 乐视致新电子科技(天津)有限公司 Method and device for adjusting video playback interface
WO2015130097A1 (en) * 2014-02-26 2015-09-03 Lg Electronics Inc. Digital device and method of processing screensaver thereof
CN105744338A (en) * 2016-02-18 2016-07-06 腾讯科技(深圳)有限公司 Video processing method and equipment
CN106303573A (en) * 2016-08-30 2017-01-04 上海乐欢软件有限公司 A kind of 3D method of video image processing and server and client side
CN106463148A (en) * 2014-05-30 2017-02-22 索尼公司 Information processor and information processing method
US20170171567A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method, electronic device and system for playing videos
WO2017101401A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Video playback method, device and system
CN107071518A (en) * 2016-09-05 2017-08-18 北京奥鹏远程教育中心有限公司 The video broadcasting method and system of adaptive mobile terminal study
WO2017185645A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Portrait full screen playback method, apparatus and mobile playback terminal thereof
WO2017193576A1 (en) * 2016-05-13 2017-11-16 乐视控股(北京)有限公司 Video resolution adaptation method and apparatus, and virtual reality terminal
WO2018054375A1 (en) * 2016-09-26 2018-03-29 腾讯科技(深圳)有限公司 Live broadcast information processing method and device, and storage medium
CN108235079A (en) * 2017-12-20 2018-06-29 深圳市纽格力科技有限公司 It is a kind of that smart machine is supported to throw screen to the control system of common TV
CN109005438A (en) * 2018-08-24 2018-12-14 麒麟合盛网络技术股份有限公司 Video broadcasting method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893816A (en) * 2010-06-17 2010-11-24 广州市花都区凯迪威电子厂 Multifunctional micro-projector
CN102970600A (en) * 2012-11-20 2013-03-13 无锡成电科大科技发展有限公司 Cloud-computing-based high-definition video playing system and method
CN103546821A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for regulating video playing interface
WO2015062434A1 (en) * 2013-10-30 2015-05-07 乐视致新电子科技(天津)有限公司 Method and device for adjusting video playback interface
WO2015130097A1 (en) * 2014-02-26 2015-09-03 Lg Electronics Inc. Digital device and method of processing screensaver thereof
CN106463148A (en) * 2014-05-30 2017-02-22 索尼公司 Information processor and information processing method
US20170171567A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method, electronic device and system for playing videos
WO2017101401A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Video playback method, device and system
CN105744338A (en) * 2016-02-18 2016-07-06 腾讯科技(深圳)有限公司 Video processing method and equipment
WO2017185645A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Portrait full screen playback method, apparatus and mobile playback terminal thereof
WO2017193576A1 (en) * 2016-05-13 2017-11-16 乐视控股(北京)有限公司 Video resolution adaptation method and apparatus, and virtual reality terminal
CN106303573A (en) * 2016-08-30 2017-01-04 上海乐欢软件有限公司 A kind of 3D method of video image processing and server and client side
CN107071518A (en) * 2016-09-05 2017-08-18 北京奥鹏远程教育中心有限公司 The video broadcasting method and system of adaptive mobile terminal study
WO2018054375A1 (en) * 2016-09-26 2018-03-29 腾讯科技(深圳)有限公司 Live broadcast information processing method and device, and storage medium
CN108235079A (en) * 2017-12-20 2018-06-29 深圳市纽格力科技有限公司 It is a kind of that smart machine is supported to throw screen to the control system of common TV
CN109005438A (en) * 2018-08-24 2018-12-14 麒麟合盛网络技术股份有限公司 Video broadcasting method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUSEN LI: "《Play Request Dispatching for Efficient Virtual Machine Usage in Cloud Gaming》", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 *
彭丹阳: "《基于FPGA的视频跟踪与编码系统设计与实现》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112616078A (en) * 2020-12-10 2021-04-06 维沃移动通信有限公司 Screen projection processing method and device, electronic equipment and storage medium
CN112929693A (en) * 2021-01-26 2021-06-08 广州欢网科技有限责任公司 Video display method, device and equipment and storage medium
CN114760503A (en) * 2022-04-15 2022-07-15 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium
CN114760503B (en) * 2022-04-15 2023-12-05 北京爱奇艺科技有限公司 Video playing method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111031359B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN111031359B (en) Video playing method and device, electronic equipment and computer readable storage medium
CN108337551B (en) Screen recording method, storage medium and terminal equipment
CN108171677B (en) Image processing method and related equipment
CN108337505B (en) Information acquisition method and device
CN107621932B (en) Local amplification method and device for display image
CN104618803A (en) Information push method, information push device, terminal and server
CN110399842B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN110708568A (en) Video content mutation detection method and device
CN114650361B (en) Shooting mode determining method, shooting mode determining device, electronic equipment and storage medium
CN115696028A (en) Image direction adjusting method and device, storage medium and electronic equipment
CN112672102B (en) Video generation method and device
CN111369557A (en) Image processing method, image processing device, computing equipment and storage medium
CN113628192B (en) Image blur detection method, apparatus, device, storage medium, and program product
CN111161299A (en) Image segmentation method, computer program, storage medium, and electronic device
CN112967191B (en) Image processing method, device, electronic equipment and storage medium
CN108447107B (en) Method and apparatus for generating video
CN110211085B (en) Image fusion quality evaluation method and system
CN113313642A (en) Image denoising method and device, storage medium and electronic equipment
CN109727193B (en) Image blurring method and device and electronic equipment
CN112991419A (en) Parallax data generation method and device, computer equipment and storage medium
CN112040205A (en) Automatic correction method and device for projected image and projector
CN113643257B (en) Image noise detection method, device, equipment, storage medium and program product
CN116612146B (en) Image processing method, device, electronic equipment and computer storage medium
CN116540963B (en) Mapping relation calculation method, color calibration method, device and electronic equipment
CN112770110B (en) Video quality detection method, device and system

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