CN106534939A - Multi-video preview method and device and electronic equipment - Google Patents
Multi-video preview method and device and electronic equipment Download PDFInfo
- Publication number
- CN106534939A CN106534939A CN201610881185.0A CN201610881185A CN106534939A CN 106534939 A CN106534939 A CN 106534939A CN 201610881185 A CN201610881185 A CN 201610881185A CN 106534939 A CN106534939 A CN 106534939A
- Authority
- CN
- China
- Prior art keywords
- video display
- display area
- video
- area
- size
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a multi-video preview method, which comprises the following steps: creating at least two video display areas, the at least two video display areas including a first video display area and a second video display area, the first video display area partially overlaying the second video display area; loading and displaying a first video in the first video display area; moving the first video display area according to a sliding instruction input by a user; and when the first video display area is detected to move, dynamically displaying the second video display area, and loading and displaying a second video in the second video display area. The embodiment of the invention also discloses a multi-video preview device and electronic equipment. By adopting the embodiment of the invention, the memory occupation can be reduced under the condition of multi-video preview.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of many video previewing methods, device and electronic equipment.
Background technology
With the continuous upgrading and the continuous development of 4G networks of electronic equipment hardware, user can very easily use electronics
Equipment watches video.But, as the space shared by video content is than larger, and the limited memory of electronic equipment, to video
Process is just put forward higher requirement, and not only needs to keep the fluency of video playback, and needs to take into account user operation just
Profit, could meet the experience that user watches video.In the prior art scheme, electronic equipment can be according to mobile device
The size that the size of screen and video show, while load multiple videos and show on the screen of the electronic device, but, due to
Loading multiple videos simultaneously needs to consume very big internal memory, not only affects the fluency of video playback, and even results in application
The stuck phenomenon of operation.
The content of the invention
The embodiment of the present invention provides a kind of many video previewing methods, device and electronic equipment.Prior art side can be solved
The big problem of multiple video committed memories is loaded simultaneously in case.
First aspect present invention provides a kind of many video previewing methods, including:
At least two video display areas are created, at least two video display area includes the first video display area
With the second video display area, first video display area is partially covered on second video display area;
Load in first video display area and show the first video;
According to the slip instruction of user input, movement first video display area;
When the first video display area movement is detected, the second video display area described in Dynamic Display, and
Second video display area is loaded and shows the second video.
Wherein, described when the first video display area movement is detected, the second video described in Dynamic Display shows
Region includes:
The displacement of first video display area, second video display area are obtained relative to described first
The area size and archicenter position of the original area size of video display area and first video display area
Put;
According to the region of the sliding distance, the original area size and first video display area
Size and original centered location, determine area size and the regional center position of second video display area.
Wherein, it is described according to the sliding distance, the original area size and the first video viewing area
The area size in domain and original centered location, determine area size and the regional center position bag of second video display area
Include:
According to the sliding distance and the original area size, second video display area is calculated relative
In the current region size of first video display area;
According to the area size and archicenter of the current region size and first video display area
Position, determines area size and the regional center position of second video display area.
Wherein, it is described according to the sliding distance and the original area size, calculate second video and show
Show that region includes relative to the current region size of first video display area:
Product between the sliding distance and preset ratio coefficient is calculated into the first coefficient plus constant 1;
First coefficient is multiplied by into the original area size and obtains the second coefficient;
If second coefficient is less than the constant 1, using second coefficient as the current region size,
If second coefficient is not less than the constant 1, using the constant 1 as the current region size.
Wherein, it is described according to the current region size and the area size of first video display area
And original centered location, the area size and regional center position for determining second video display area include:
The area size of first video display area is multiplied by into the current region size, is calculated described
The area size of the second video display area.
Wherein, the original centered location of first video display area includes the archicenter of the first video display area
The abscissa and ordinate of point;
The area size according to the current region size and first video display area and original
Center, the area size and regional center position for determining second video display area include:
According to the original area size, the current region size and default maximum moving distance,
Calculate the current displacement of second video display area;
According to current displacement and the region of second video display area of second video display area
Size, determines the ordinate of the central point of second video display area, and by the original of first video display area
Abscissa of the abscissa of central point as the central point of second video display area.
Wherein, described when the first video display area movement is detected, the second video described in Dynamic Display shows
Region, and load in second video display area and show that the second video includes:
When the displacement of first video display area is detected more than the first predetermined threshold value, start described the
Two video display areas are loaded and show the second video.
Wherein, described when the first video display area movement is detected, the second video described in Dynamic Display shows
Region includes:
When the displacement of first video display area exceedes predetermined threshold value, stop showing that first video shows
Show region.
Correspondingly, second aspect present invention provides a kind of many video preview devices, including:
Region creation module, for creating at least two video display areas, at least two video display areas bag
The first video display area and the second video display area is included, first video display area is partially covered on described second and regards
On frequency viewing area;
Video load-on module, for loading in first video display area and showing the first video;
Region sliding block, for the slip instruction according to user input, movement first video display area;
Region display module, for when detecting first video display area and moving, second described in Dynamic Display
Video display area, and load in second video display area and show the second video.
Wherein, the region display module includes:
Information acquisition unit, shows for obtaining the displacement of first video display area, second video
Area of the region relative to the original area size and first video display area of first video display area
Domain size and original centered location;
Information determination unit, for regarding according to the sliding distance, the original area size and described first
The area size of frequency viewing area and original centered location, in determining the area size and region of second video display area
Heart position.
Wherein, described information determining unit specifically for:
According to the sliding distance and the original area size, second video display area is calculated relative
In the current region size of first video display area;
According to the area size and archicenter of the current region size and first video display area
Position, determines area size and the regional center position of second video display area.
Wherein, described information determining unit specifically for:
Product between the sliding distance and preset ratio coefficient is calculated into the first coefficient plus constant 1;
First coefficient is multiplied by into the original area size and obtains the second coefficient;
If second coefficient is less than the constant 1, using second coefficient as the current region size,
If second coefficient is not less than the constant 1, using the constant 1 as the current region size.
Wherein, described information determining unit specifically for:
The area size of first video display area is multiplied by into the current region size, is calculated described
The area size of the second video display area.
Wherein, the original centered location of first video display area includes the archicenter of the first video display area
The abscissa and ordinate of point;
Described information determining unit specifically for:
According to the original area size, the current region size and default maximum moving distance,
Calculate the current displacement of second video display area;
According to current displacement and the region of second video display area of second video display area
Size, determines the ordinate of the central point of second video display area, and by the original of first video display area
Abscissa of the abscissa of central point as the central point of second video display area.
Wherein, the region display module specifically for:
When the displacement of first video display area is detected more than the first predetermined threshold value, start described the
Two video display areas are loaded and show the second video.
Wherein, the region display module specifically for:
When the displacement of first video display area exceedes predetermined threshold value, stop showing that first video shows
Show region.
Correspondingly, third aspect present invention provides a kind of electronic equipment, including:Processor, memory, communication interface and
Bus;
The processor, the memory and the communication interface are connected by the bus and complete mutual leading to
Letter;
The memory storage executable program code;
The processor is run executable with described by reading the executable program code stored in the memory
The corresponding program of program code, for:
At least two video display areas are created, at least two video display area includes the first video display area
With the second video display area, first video display area is partially covered on second video display area;
Load in first video display area and show the first video;
According to the slip instruction of user input, movement first video display area;
When the first video display area movement is detected, the second video display area described in Dynamic Display, and
Second video display area is loaded and shows the second video.
Correspondingly, a kind of storage medium is embodiments provided, wherein, the storage medium applies journey for storage
Sequence, the application program are used for operationally performing a kind of many video previewing methods disclosed in embodiment of the present invention first aspect.
Correspondingly, a kind of application program is embodiments provided, wherein, the application program is used for operationally holding
A kind of many video previewing methods disclosed in row embodiment of the present invention first aspect.
Implement the embodiment of the present invention, create at least two video display areas, at least two video display area bags first
The first video display area and the second video display area is included, the first video display area is partially covered on the second video viewing area
On domain;Then load in the first video display area and show the first video;Secondly the slip instruction according to user input, mobile
First video display area;Finally when the movement of the first video display area is detected, the second video display area of Dynamic Display,
And the second video is loaded and shows in the second video display area, due to when region is shown without mobile first video, only loading
One video, in mobile first video display area, can load two videos simultaneously, in mobile first video display area
Afterwards, a video is only loaded, therefore while two videos of preview are ensured, reduces EMS memory occupation.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to using needed for embodiment description
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this area
For those of ordinary skill, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow sheet of the first embodiment of many video previewing methods proposed by the present invention;
Fig. 2 (A) is a kind of display schematic diagram of many video previews provided in an embodiment of the present invention;
Fig. 2 (B) is a kind of display schematic diagram of many video previews provided in an embodiment of the present invention;
Fig. 2 (C) is a kind of display schematic diagram of many video previews provided in an embodiment of the present invention
Fig. 3 is a kind of schematic flow sheet of the second embodiment of many video previewing methods proposed by the present invention;
Fig. 4 is a kind of structural representation of many video preview devices provided in an embodiment of the present invention;
Fig. 5 is the structural representation of region display module in device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this
Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art
Example, belongs to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is that a kind of flow process of the first embodiment of many video previewing methods proposed by the present invention is illustrated
Figure.As illustrated, the method in the embodiment of the present invention includes:
S101, creates at least two video display areas, and at least two video display area includes that the first video shows
Show region and the second video display area, first video display area is partially covered on second video display area
On;
In implementing, at least two video display area is shown with overlapped way, and wherein, the first video shows
Show that region is arranged on the superiors, the second video display area is arranged on the second layer, then other videos is arranged at next layer successively
Viewing area, per layer of video display area are partially covered on next layer of video display area.Also, the video of ground floor
Reduce area size of the viewing area relative to the video display area of the second layer, the video display area of third layer relative to
The video display area of the second layer reduces area size, can reduce the video that ratio shows next layer according to identical successively
Viewing area, it is also possible to show next layer of video display area according to different diminution ratios.
S102, loads in first video display area and shows the first video;
As shown in Fig. 2 (A), load in the first video display area of the superiors and show the first video, now, the second layer
Video display area and next layer of video display area be not loaded with video, such that it is able to reduce the occupancy to internal memory.
S103, according to the slip instruction of user input, movement first video display area;
As shown in Fig. 2 (B) and such as Fig. 2 (C), user with the first video display area of touch-control, and can slide to any direction,
First video display area is moved with the movement of position of touch, continues loading in the first video display area moving process
And after showing that the first video, the first video display area are moved in screen border, the first video display area of hidden parts.
S104, when the first video display area movement is detected, the second video display area described in Dynamic Display,
And load in second video display area and show the second video.
In implementing, when detecting first video display area and starting to move, start to amplify and move up
Second video display area, now starts to load in second video display area and show the second video, Jin Erke
To show the first video in the first video display area and show the second video in the second video display area simultaneously.Need explanation
, in the first video display area moving process, for the second video display area positioned at different original positions
(such as:The uncovered part of second video display area is in the top of the first video display area), can downwards, to the left or to
Move right, and more next layer of video display area can also follow the first moving for video display area and be amplified and move
It is dynamic.
Further, the displacement of first video display area, second video display area can be obtained
The region of original area size and first video display area relative to first video display area is big
Little and original centered location;According to the sliding distance, the original area size and the first video viewing area
The area size in domain and original centered location, determine area size and the regional center position of second video display area.
It is further alternative, described the can be calculated according to the sliding distance and the original area size
Current region size of two video display areas relative to first video display area;It is big according to the current region
The area size and original centered location of small scale and first video display area, determines that second video shows
The area size in region and regional center position.
Wherein it is possible to the product between the sliding distance and preset ratio coefficient is calculated first plus constant 1
Coefficient;First coefficient is multiplied by into the original area size and obtains the second coefficient;If second coefficient is less than institute
Constant 1 is stated, then using second coefficient as the current region size, if second coefficient is not less than the constant
1, then using the constant 1 as the current region size.For example, scale=MIN (1, imageScaleRatio* (1+
0.03*d)), wherein, scale is current region size, and imageScaleRatio is the second video display area phase
For the original area size of first video display area, 0.03 are preset ratio coefficient, d is sliding distance.
Further, the area size of first video display area can be multiplied by the current region size ratio
Example, is calculated the area size of second video display area.For example, the height of the first video display area be h, width
For w, the abscissa and ordinate of the archicenter point at place are (x, y), in the first video display area moving process, second
The height of video area is h*scale, and width is w*scale.
Further, can first according to the original area size, the current region size and pre-
If maximum vertical move distance, calculate second video display area currently vertically moves distance.For example, yDelta=
(1-scale) * maxYOffset/ (1-imageScaleRatio), wherein, maxYOffset is default maximum vertical move
Distance, imageScaleRatio are original area size, and scale is current region size, and yDelta is current vertical
To displacement, then according to second video display area currently vertically move distance and second video shows
The area size in region, determines the ordinate of the central point of second video display area, and first video is shown
Abscissa of the abscissa of the archicenter point in region as the central point of second video display area, for example, second regards
The central point of frequency viewing area is (x, yDelta+h*scale/2), and for currently vertically moving distance, h*scale is the to yDelta
The height of two video areas.
In embodiments of the present invention, at least two video display areas, at least two video display area bags are created first
The first video display area and the second video display area is included, the first video display area is partially covered on the second video viewing area
On domain;Then load in the first video display area and show the first video;Secondly the slip instruction according to user input, mobile
First video display area;Finally when the movement of the first video display area is detected, the second video display area of Dynamic Display,
And the second video is loaded and shows in the second video display area, due to when region is shown without mobile first video, only loading
One video, in mobile first video display area, can load two videos simultaneously, in mobile first video display area
Afterwards, a video is only loaded, therefore while two videos of preview are ensured, reduces EMS memory occupation.
Fig. 3 is refer to, Fig. 3 is that a kind of flow process of the second embodiment of many video previewing methods proposed by the present invention is illustrated
Figure.As illustrated, the method in the embodiment of the present invention includes:
S301, creates at least two video display areas, and at least two video display area includes that the first video shows
Show region and the second video display area, first video display area is partially covered on second video display area
On.
In implementing, at least two video display area is shown with overlapped way, and wherein, the first video shows
Show that region is arranged on the superiors, the second video display area is arranged on the second layer, then other videos is arranged at next layer successively
Viewing area, per layer of video display area are partially covered on next layer of video display area.Also, the video of ground floor
Reduce area size of the viewing area relative to the video display area of the second layer, the video display area of third layer relative to
The video display area of the second layer reduces area size, and can reduce ratio according to identical successively and show that next layer regards
Frequency viewing area, it is also possible to show next layer of video display area according to different diminution ratios.
S302, loads in first video display area and shows the first video.
As shown in Fig. 2 (A), load in the first video display area of the superiors and show the first video, now, the second layer
Video display area and next layer of video display area be not loaded with video, such that it is able to reduce the occupancy to internal memory.
S303, according to the slip instruction of user input, movement first video display area.
In implementing, such as Fig. 2 (B) and as shown in Fig. 2 (C), user can be with the first video display areas of touch-control, and to appointing
Meaning direction is slided, and the first video display area is moved with the movement of position of touch, is moved through in the first video display area
After continuing to load and show that the first video, the first video display area are moved in screen border in journey, hidden parts first
Video display area.
S304, when the displacement of first video display area is detected more than the first predetermined threshold value, starts
Second video display area loads and shows the second video, and then can show first in the first video display area simultaneously
Video and the second video is shown in the second video display area.
In implementing, the displacement of the first video display area can be obtained, if the first video display area
Displacement can be moved with the movement of position of touch not less than the first predetermined threshold value, the first video display area, loading
And the first video is shown, and the second video display area keeps constant, if the displacement of the first video display area exceedes
First predetermined threshold value, starts the second video display area of Dynamic Display (amplify and move up), in the second video display area
Start to load and show the second video, with the increase of the sliding distance of the first video display area, the second video display area
Area size also constantly increase.
Further, the displacement of first video display area, second video display area can be obtained
The region of original area size and first video display area relative to first video display area is big
Little and original centered location;According to the sliding distance, the original area size and the first video viewing area
The area size in domain and original centered location, determine area size and the regional center position of second video display area.
It is further alternative, described the can be calculated according to the sliding distance and the original area size
Current region size of two video display areas relative to first video display area;It is big according to the current region
The area size and original centered location of small scale and first video display area, determines that second video shows
The area size in region and regional center position.
Wherein it is possible to the product between the sliding distance and preset ratio coefficient is calculated first plus constant 1
Coefficient;First coefficient is multiplied by into the original area size and obtains the second coefficient;If second coefficient is less than institute
Constant 1 is stated, then using second coefficient as the current region size, if second coefficient is not less than the constant
1, then using the constant 1 as the current region size.For example, scale=MIN (1, imageScaleRatio* (1+
0.03*d)), wherein, scale is current region size, and imageScaleRatio is the second video display area phase
For the original area size of first video display area, 0.03 are preset ratio coefficient, d is sliding distance.
Further, the area size of first video display area can be multiplied by the current region size ratio
Example, is calculated the area size of second video display area.For example, the height of the first video display area be h, width
For w, the abscissa and ordinate of the archicenter point at place are (x, y), in the first video display area moving process, second
The height of video area is h*scale, and width is w*scale.
Further, can first according to the original area size, the current region size and pre-
If maximum vertical move distance, calculate second video display area currently vertically moves distance, for example, yDelta=
(1-scale) * maxYOffset/ (1-imageScaleRatio), wherein, maxYOffset is default maximum vertical move
Distance, imageScaleRatio are original area size, and scale is current region size, and yDelta is current vertical
To displacement, then according to second video display area currently vertically move distance and second video shows
The area size in region, determines the ordinate of the central point of second video display area, and first video is shown
Abscissa of the abscissa of the archicenter point in region as the central point of second video display area, for example, second regards
The central point of frequency viewing area is (x, yDelta+h*scale/2), and for currently vertically moving distance, h*scale is the to yDelta
The height of two video areas.
S305, when the displacement of first video display area is more than the second predetermined threshold value, stops showing described
First video display area.
In implementing, when the displacement of first video display area is more than the second predetermined threshold value, described
One video display area no longer shows that enter without blocking the second video display area, the second video display area can be complete
Show.After the second video display area is shown completely, can move the second video display area, and show that next layer regards
Frequency viewing area, loads in next layer of video display area and shows other videos.
In embodiments of the present invention, at least two video display areas, at least two video display area bags are created first
The first video display area and the second video display area is included, the first video display area is partially covered on the second video viewing area
On domain;Then load in the first video display area and show the first video;Secondly the slip instruction according to user input, mobile
First video display area;Finally when the movement of the first video display area is detected, the second video display area of Dynamic Display,
And the second video is loaded and shows in the second video display area, due to when region is shown without mobile first video, only loading
One video, in mobile first video display area, can load two videos simultaneously, in mobile first video display area
Afterwards, a video is only loaded, therefore while two videos of preview are ensured, reduces EMS memory occupation.
Fig. 4 is refer to, Fig. 4 is a kind of structural representation of many video preview devices proposed by the present invention.As illustrated, this
Device in inventive embodiments includes:
Region creation module 401, for creating at least two video display areas, at least two video display area
Including the first video display area and the second video display area, first video display area is partially covered on described second
On video display area.
In implementing, at least two video display area is shown with overlapped way, and wherein, the first video shows
Show that region is arranged on the superiors, the second video display area is arranged on the second layer, then other videos is arranged at next layer successively
Viewing area, per layer of video display area are partially covered on next layer of video display area.Also, the video of ground floor
Reduce area size of the viewing area relative to the video display area of the second layer, the video display area of third layer relative to
The video display area of the second layer reduces area size, and can reduce ratio according to identical successively and show that next layer regards
Frequency viewing area, it is also possible to show next layer of video display area according to different diminution ratios.
Video load-on module 402, for loading in first video display area and showing the first video.
In implementing, such as shown in Fig. 2 (A), the first video is loaded and shows in the first video display area of the superiors,
Now, the video display area of the video display area of the second layer and next layer is not loaded with video, right such that it is able to reduce
The occupancy of internal memory.
Region sliding block 403, for the slip instruction according to user input, movement first video display area.
In implementing, such as Fig. 2 (B) and as shown in Fig. 2 (C), user can be with the first video display areas of touch-control, and to appointing
Meaning direction is slided, and the first video display area is moved with the movement of position of touch, is moved through in the first video display area
After continuing to load and show that the first video, the first video display area are moved in screen border in journey, hidden parts first
Video display area.
Region display module 404, for when detecting first video display area and moving, the described in Dynamic Display
Two video display areas, and load in second video display area and show the second video.
In implementing, when detecting first video display area and starting to move, start to amplify and move up
Second video display area, now starts to load in second video display area and show the second video, Jin Erke
To show the first video in the first video display area and show the second video in the second video display area simultaneously.Need explanation
, in the first video display area moving process, for the second video display area positioned at different original positions
(such as:The uncovered part of second video display area is in the top of the first video display area), can downwards, to the left or to
Move right, and more next layer of video display area can also follow the first moving for video display area and be amplified and move
It is dynamic.
Further, as shown in figure 5, region display module 404 can further include:
Information acquisition unit 501, shows for obtaining the displacement of first video display area, second video
Show region relative to the original area size and first video display area of first video display area
Area size and original centered location.
Information determination unit 502, for according to the sliding distance, the original area size and described
The area size of one video display area and original centered location, determine area size and the area of second video display area
Domain center.
In implementing, described second can be calculated according to the sliding distance and the original area size
Current region size of the video display area relative to first video display area;According to the current region size
The area size and original centered location of ratio and first video display area, determines the second video viewing area
The area size in domain and regional center position.
Wherein it is possible to the product between the sliding distance and preset ratio coefficient is calculated first plus constant 1
Coefficient;First coefficient is multiplied by into the original area size and obtains the second coefficient;If second coefficient is less than institute
Constant 1 is stated, then using second coefficient as the current region size, if second coefficient is not less than the constant
1, then using the constant 1 as the current region size.For example, scale=MIN (1, imageScaleRatio* (1+
0.03*d)), wherein, scale is current region size, and imageScaleRatio is the second video display area phase
For the original area size of first video display area, 0.03 are preset ratio coefficient, d is sliding distance.
Further, the area size of first video display area can be multiplied by the current region size ratio
Example, is calculated the area size of second video display area.For example, the height of the first video display area be h, width
For w, the abscissa and ordinate of the archicenter point at place are (x, y), in the first video display area moving process, second
The height of video area is h*scale, and width is w*scale.
Further, can first according to the original area size, the current region size and pre-
If maximum vertical move distance, calculate second video display area currently vertically moves distance, for example, yDelta=
(1-scale) * maxYOffset/ (1-imageScaleRatio), wherein, maxYOffset is default maximum vertical move
Distance, imageScaleRatio are original area size, and scale is current region size, and yDelta is current vertical
To displacement, then according to second video display area currently vertically move distance and second video shows
The area size in region, determines the ordinate of the central point of second video display area, and first video is shown
Abscissa of the abscissa of the archicenter point in region as the central point of second video display area, for example, second regards
The central point of frequency viewing area is (x, yDelta+h*scale/2), and for currently vertically moving distance, h*scale is the to yDelta
The height of two video areas.、
Optionally, region display module 404 is additionally operable to surpass when the displacement for detecting first video display area
When crossing the first predetermined threshold value, beginning is loaded in second video display area and shows the second video.
In implementing, the displacement of the first video display area can be obtained, if the first video display area
Displacement can be moved with the movement of position of touch not less than the first predetermined threshold value, the first video display area, loading
And the first video is shown, and the second video display area keeps constant, if the displacement of the first video display area exceedes
First predetermined threshold value, starts the second video display area of Dynamic Display (amplify and move up), in the second video display area
Start to load and show the second video, with the increase of the sliding distance of the first video display area, the second video display area
Area size also constantly increase.
Optionally, region display module 404 is additionally operable to preset when the displacement of first video display area exceedes
During threshold value, stop showing first video display area.
In implementing, when the displacement of first video display area is more than the second predetermined threshold value, described
One video display area no longer shows that enter without blocking the second video display area, the second video display area can be complete
Show.After the second video display area is shown completely, can move the second video display area, and show that next layer regards
Frequency viewing area, loads in next layer of video display area and shows other videos.
In embodiments of the present invention, at least two video display areas, at least two video display area bags are created first
The first video display area and the second video display area is included, the first video display area is partially covered on the second video viewing area
On domain;Then load in the first video display area and show the first video;Secondly the slip instruction according to user input, mobile
First video display area;Finally when the movement of the first video display area is detected, the second video display area of Dynamic Display,
And the second video is loaded and shows in the second video display area, due to when region is shown without mobile first video, only loading
One video, in mobile first video display area, can load two videos simultaneously, in mobile first video display area
Afterwards, a video is only loaded, therefore while two videos of preview are ensured, reduces EMS memory occupation.
Fig. 6 is refer to, Fig. 6 is the structural representation of a kind of electronic equipment that the embodiment of the present invention is proposed.As illustrated, should
Electronic equipment can include:At least one processor 601, such as CPU, at least one communication interface 602, at least one memory
603, at least one bus 604.Wherein, bus 604 is used for realizing the connection communication between these components.Wherein, the present invention is real
The communication interface 602 for applying electronic equipment in example is wired sending port, or wireless device, such as including antenna assembly,
For carrying out the communication of signaling or data with other node devices.Memory 603 can be high-speed RAM memory, or
Non-labile memory (non-volatile memory), for example, at least one magnetic disc store.Memory 603 is optional
Can also be at least one storage device for being located remotely from aforementioned processor 601.Batch processing code is stored in memory 603,
And processor 601 be used for calling memory in the program code that stores, for performing following operation:
At least two video display areas are created, at least two video display area includes the first video display area
With the second video display area, first video display area is partially covered on second video display area;
Load in first video display area and show the first video;
According to the slip instruction of user input, movement first video display area;
When the first video display area movement is detected, the second video display area described in Dynamic Display, and
Second video display area is loaded and shows the second video.
Wherein, processor 601 is additionally operable to perform following operating procedure:
The displacement of first video display area, second video display area are obtained relative to described first
The area size and archicenter position of the original area size of video display area and first video display area
Put;
According to the region of the sliding distance, the original area size and first video display area
Size and original centered location, determine area size and the regional center position of second video display area.
Wherein, processor 601 is additionally operable to perform following operating procedure:
According to the sliding distance and the original area size, second video display area is calculated relative
In the current region size of first video display area;
According to the area size and archicenter of the current region size and first video display area
Position, determines area size and the regional center position of second video display area.
Wherein, processor 601 is additionally operable to perform following operating procedure:
Product between the sliding distance and preset ratio coefficient is calculated into the first coefficient plus constant 1;
First coefficient is multiplied by into the original area size and obtains the second coefficient;
If second coefficient is less than the constant 1, using second coefficient as the current region size,
If second coefficient is not less than the constant 1, using the constant 1 as the current region size.
Wherein, processor 601 is additionally operable to perform following operating procedure:
The area size of first video display area is multiplied by into the current region size, is calculated described
The area size of the second video display area.
Wherein, processor 601 is additionally operable to perform following operating procedure:
The area size according to the current region size and first video display area and original
Center, the area size and regional center position for determining second video display area include:
According to the original area size, the current region size and default maximum vertical move away from
From calculate second video display area currently vertically moves distance;
Distance and second video display area currently vertically moved according to second video display area
Area size, determines the ordinate of the central point of second video display area, and by first video display area
Abscissa of the abscissa of archicenter point as the central point of second video display area.
Wherein, processor 601 is additionally operable to perform following operating procedure:
When the displacement of first video display area is detected more than the first predetermined threshold value, start described the
Two video display areas are loaded and show the second video.
Wherein, processor 601 is additionally operable to perform following operating procedure:
When the displacement of first video display area is more than the second predetermined threshold value, stop showing that described first regards
Frequency viewing area.
It should be noted that the embodiment of the present invention also provides a kind of storage medium simultaneously, the storage medium is used for storing
Application program, the application program are used for operationally performing shown in a kind of many video previewing methods and Fig. 3 shown in Fig. 1
The operation that electronic equipment is performed is received in planting many video previewing methods.
It should be noted that the embodiment of the present invention also provides a kind of application program simultaneously, the application program is in fortune
Electronics is received in performing a kind of many video previewing methods shown in a kind of many video previewing methods and Fig. 3 shown in Fig. 1 during row
The operation that equipment is performed.
It should be noted that for aforesaid each embodiment of the method, in order to be briefly described, therefore which is all expressed as one it is
The combination of actions of row, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because
It is that, according to the present invention, certain some step can adopt other orders or while carry out.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this
It is bright necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in certain embodiment
Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Instruct related hardware to complete with by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English
Text:Random Access Memory, referred to as:RAM), disk or CD etc..
The content download method for being provided to the embodiment of the present invention above and relevant device, system are described in detail,
Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is simply used
The method of the present invention and its core concept is understood in help;Simultaneously for one of ordinary skill in the art, according to the present invention's
Thought, will change in specific embodiments and applications, and in sum, this specification content should not be construed as
Limitation of the present invention.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
Example ", or the description of " some examples " etc. mean specific features with reference to the embodiment or example description, structure, material or spy
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office
Combined in one or more embodiments or example in an appropriate manner.Additionally, in the case of not conflicting, the skill of this area
The feature of the different embodiments or example described in this specification and different embodiments or example can be tied by art personnel
Close and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise expressly limited specifically.
In flow chart or here any process described otherwise above or method description are construed as, expression includes
It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by the suitable of shown or discussion
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or here logic described otherwise above and/or step, for example, are considered use in flow charts
In the order list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (as computer based system, the system including processor or other can hold from instruction
The system of row system, device or equipment instruction fetch execute instruction) use, or with reference to these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
The dress that defeated program is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With the electricity that one or more connect up
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program thereon or other are suitable
Medium, because for example by carrying out optical scanner to paper or other media edlin, interpretation can then be entered or if necessary with which
His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art
Any one of row technology or their combination are realizing:With for realizing the logic gates of logic function to data-signal
Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried
Suddenly the hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the invention can be integrated in a processing module, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould
Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as
Fruit using in the form of software function module realize and as independent production marketing or use when, it is also possible to be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having shown that above and retouching
Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of many video previewing methods, it is characterised in that methods described is applied to electronic equipment, and methods described includes:
At least two video display areas are created, at least two video display area includes the first video display area and
Two video display areas, first video display area are partially covered on second video display area;
Load in first video display area and show the first video;
According to the slip instruction of user input, movement first video display area;
When the first video display area movement is detected, the second video display area described in Dynamic Display, and described
Second video display area is loaded and shows the second video.
2. the method for claim 1, it is characterised in that described when detecting the first video display area movement
When, the second video display area described in Dynamic Display includes:
The displacement of first video display area, second video display area are obtained relative to first video
The area size and original centered location of the original area size of viewing area and first video display area;
According to the area size of the sliding distance, the original area size and first video display area
And original centered location, determine area size and the regional center position of second video display area.
3. method as claimed in claim 2, it is characterised in that described according to the sliding distance, the original area size
The area size and original centered location of ratio and first video display area, determines the second video viewing area
The area size in domain and regional center position include:
According to the sliding distance and the original area size, second video display area is calculated relative to institute
State the current region size of the first video display area;
According to the area size and archicenter position of the current region size and first video display area
Put, determine area size and the regional center position of second video display area.
4. method as claimed in claim 3, it is characterised in that described big according to the sliding distance and the original area
Small scale, calculates current region size bag of second video display area relative to first video display area
Include:
Product between the sliding distance and preset ratio coefficient is calculated into the first coefficient plus constant 1;
First coefficient is multiplied by into the original area size and obtains the second coefficient;
If second coefficient is less than the constant 1, using second coefficient as the current region size, if institute
The second coefficient is stated not less than the constant 1, then using the constant 1 as the current region size.
5. the method as described in claim 3 or 4, it is characterised in that described according to the current region size, Yi Jisuo
Area size and the original centered location of the first video display area is stated, the area size of second video display area is determined
Include with regional center position:
The area size of first video display area is multiplied by into the current region size, described second is calculated
The area size of video display area.
6. method as claimed in claim 5, it is characterised in that the original centered location of first video display area includes
The abscissa and ordinate of the archicenter point of the first video display area;
The area size and archicenter according to the current region size and first video display area
Position, the area size and regional center position for determining second video display area include:
According to the original area size, the current region size and default maximum vertical move distance,
Calculate second video display area currently vertically moves distance;
According to the region for currently vertically moving distance and second video display area of second video display area
Size, determines the ordinate of the central point of second video display area, and by the original of first video display area
Abscissa of the abscissa of central point as the central point of second video display area.
7. method as claimed in claim 2, it is characterised in that described when detecting the first video display area movement
When, the second video display area described in Dynamic Display, and load in second video display area and show the second video bag
Include:
When the displacement of first video display area is detected more than the first predetermined threshold value, beginning is regarded described second
Frequency viewing area loads and shows the second video.
8. method as claimed in claim 2, it is characterised in that described when detecting the first video display area movement
When, the second video display area described in Dynamic Display includes:
When the displacement of first video display area is more than the second predetermined threshold value, stop showing that first video shows
Show region.
9. a kind of many video preview devices, it is characterised in that described device includes:
Region creation module, for creating at least two video display areas, at least two video display area includes
One video display area and the second video display area, first video display area are partially covered on second video and show
Show on region;
Video load-on module, for loading in first video display area and showing the first video;
Region sliding block, for the slip instruction according to user input, movement first video display area;
Region display module, for when detecting first video display area and moving, the second video described in Dynamic Display
Viewing area, and load in second video display area and show the second video.
10. a kind of electronic equipment, it is characterised in that include:Processor, memory, communication interface and bus;
The processor, the memory and the communication interface are connected by the bus and complete mutual communication;
The memory storage executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, for:
At least two video display areas are created, at least two video display area includes the first video display area and
Two video display areas, first video display area are partially covered on second video display area;
Load in first video display area and show the first video;
According to the slip instruction of user input, movement first video display area;
When the first video display area movement is detected, the second video display area described in Dynamic Display, and described
Second video display area is loaded and shows the second video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881185.0A CN106534939B (en) | 2016-10-09 | 2016-10-09 | Multi-video preview method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610881185.0A CN106534939B (en) | 2016-10-09 | 2016-10-09 | Multi-video preview method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534939A true CN106534939A (en) | 2017-03-22 |
CN106534939B CN106534939B (en) | 2019-07-05 |
Family
ID=58333104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610881185.0A Active CN106534939B (en) | 2016-10-09 | 2016-10-09 | Multi-video preview method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534939B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756785A (en) * | 2019-01-16 | 2019-05-14 | 上海哔哩哔哩科技有限公司 | Video switches playback method, device and storage medium |
CN110149539A (en) * | 2019-05-21 | 2019-08-20 | 北京字节跳动网络技术有限公司 | Method for broadcasting multimedia file, device, electronic equipment and storage medium |
CN112738633A (en) * | 2020-12-25 | 2021-04-30 | 广州繁星互娱信息科技有限公司 | Video playing method, device, equipment and readable storage medium |
US11206444B2 (en) * | 2018-12-28 | 2021-12-21 | Beijing Microlive Vision Technology Co., Ltd | Method and device for video previewing, electronic equipment, and computer-readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0840276A2 (en) * | 1996-11-01 | 1998-05-06 | Texas Instruments Incorporated | Window processing in an on screen display system |
CN101959038A (en) * | 2010-09-29 | 2011-01-26 | 福建新大陆通信科技股份有限公司 | Method for realizing multi-image preview function of set top box |
CN104519371A (en) * | 2014-12-31 | 2015-04-15 | 北京酷云互动科技有限公司 | Pushing method, pushing device and server |
CN104994314A (en) * | 2015-08-10 | 2015-10-21 | 合一网络技术(北京)有限公司 | Method and system for controlling picture in picture video on mobile terminal through gesture |
CN105554553A (en) * | 2015-12-15 | 2016-05-04 | 腾讯科技(深圳)有限公司 | Method and device for playing video through floating window |
CN105934943A (en) * | 2014-01-24 | 2016-09-07 | 巴科股份有限公司 | Dynamic display layout |
-
2016
- 2016-10-09 CN CN201610881185.0A patent/CN106534939B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0840276A2 (en) * | 1996-11-01 | 1998-05-06 | Texas Instruments Incorporated | Window processing in an on screen display system |
CN101959038A (en) * | 2010-09-29 | 2011-01-26 | 福建新大陆通信科技股份有限公司 | Method for realizing multi-image preview function of set top box |
CN105934943A (en) * | 2014-01-24 | 2016-09-07 | 巴科股份有限公司 | Dynamic display layout |
CN104519371A (en) * | 2014-12-31 | 2015-04-15 | 北京酷云互动科技有限公司 | Pushing method, pushing device and server |
CN104994314A (en) * | 2015-08-10 | 2015-10-21 | 合一网络技术(北京)有限公司 | Method and system for controlling picture in picture video on mobile terminal through gesture |
CN105554553A (en) * | 2015-12-15 | 2016-05-04 | 腾讯科技(深圳)有限公司 | Method and device for playing video through floating window |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11206444B2 (en) * | 2018-12-28 | 2021-12-21 | Beijing Microlive Vision Technology Co., Ltd | Method and device for video previewing, electronic equipment, and computer-readable storage medium |
CN109756785A (en) * | 2019-01-16 | 2019-05-14 | 上海哔哩哔哩科技有限公司 | Video switches playback method, device and storage medium |
CN109756785B (en) * | 2019-01-16 | 2022-05-20 | 上海哔哩哔哩科技有限公司 | Video switching playing method and device and storage medium |
CN110149539A (en) * | 2019-05-21 | 2019-08-20 | 北京字节跳动网络技术有限公司 | Method for broadcasting multimedia file, device, electronic equipment and storage medium |
CN112738633A (en) * | 2020-12-25 | 2021-04-30 | 广州繁星互娱信息科技有限公司 | Video playing method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106534939B (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106534939A (en) | Multi-video preview method and device and electronic equipment | |
CN100421103C (en) | Document layout control | |
US8891864B2 (en) | User-aided image segmentation | |
US20150199075A1 (en) | Adjusting sizes of attached windows | |
US20100107101A1 (en) | In-document floating object re-ordering | |
CN108733336A (en) | page display method and device | |
US10289291B2 (en) | Editing nested video sequences | |
KR20150032066A (en) | Method for screen mirroring, and source device thereof | |
CN107391012A (en) | A kind of information cuing method and mobile terminal | |
CN107272984A (en) | Application icon preview method and device and electronic equipment | |
US11640283B2 (en) | Control bar for element activation | |
CN103116442B (en) | The methods of exhibiting of terminal interface and device | |
CN106201242A (en) | Image processing method and device and electronic equipment | |
CN107657011A (en) | Video contents search method, apparatus and its equipment | |
US10795564B2 (en) | Content display control method and user terminal for performing content display control method | |
CN108959495A (en) | Page display method, device, equipment and the computer storage medium of H5 webpage | |
CN103995809A (en) | Information processing method and device of socialized media | |
CN107340955A (en) | The method and apparatus for obtaining the positional information after change in location of the view on screen | |
CN103679632A (en) | System and method for scaling different regions of image at different scaling ratios | |
CN105335040B (en) | Date switching method, device and mobile terminal | |
CN107330728A (en) | Information base price selection method and device, electronic equipment and storage medium | |
CN104769916A (en) | Computer-based exploration, research and control of tv | |
CN106095847A (en) | A kind of method realizing monitoring the page and the monitoring page | |
CN104407773A (en) | Page display method and device | |
CN102236647B (en) | A kind of time-based attribute configuration display packing and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |