CN110753251A - Video switching method and device and electronic equipment - Google Patents

Video switching method and device and electronic equipment Download PDF

Info

Publication number
CN110753251A
CN110753251A CN201810813773.XA CN201810813773A CN110753251A CN 110753251 A CN110753251 A CN 110753251A CN 201810813773 A CN201810813773 A CN 201810813773A CN 110753251 A CN110753251 A CN 110753251A
Authority
CN
China
Prior art keywords
video
view
sub
playing
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810813773.XA
Other languages
Chinese (zh)
Inventor
罗强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201810813773.XA priority Critical patent/CN110753251A/en
Publication of CN110753251A publication Critical patent/CN110753251A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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
    • H04N21/4312Generation 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
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a video switching method and device and electronic equipment. The method comprises the following steps: providing a video playing interface; when detecting that the operation received by the video playing interface accords with the preset video switching operation, determining a target sub-view corresponding to the video switching operation in an interface container of the video playing interface; and setting the target sub-view in a video playing area of a video playing interface for displaying so as to play the target video and realize video switching. According to the invention, the video switching is realized by the user through simple and convenient video switching operation, and the video switching experience of the user is improved.

Description

Video switching method and device and electronic equipment
Technical Field
The present invention relates to the field of video technologies, and in particular, to a video switching method and apparatus, and an electronic device.
Background
With the rapid development of internet technology and the popularization of terminal intellectualization, watching videos through mobile terminals such as mobile phones becomes a daily life style of people.
At present, when a user watches videos by using a mobile terminal, if the user wants to switch played videos in a video playing state, a video list which can be switched is opened by operations such as clicking, pulling down and the like, the videos to be switched are selected to be played, and then the video switching can be realized.
Disclosure of Invention
It is an object of the present invention to provide a new solution for video switching.
According to a first aspect of the present invention, there is provided a video switching method, comprising:
a video playing interface is provided, and the video playing interface,
the video playing interface is provided with a video playing area and an interface container, the interface container comprises a plurality of sub-views, and each sub-view is used for playing a switchable video associated with the sub-view;
when detecting that the operation received by the video playing interface accords with the preset video switching operation, determining a target sub-view corresponding to the video switching operation in the interface container;
wherein the target sub-view is used for playing a target video associated with the target sub-view;
and setting the target sub-view in the video playing area for displaying so as to play the target video and realize video switching.
Optionally, the step of providing a video playing interface includes:
and when the video playing area is set to enter a video playing state, constructing the interface container to be arranged in the video playing interface.
Optionally, the step of providing a video playing interface includes:
and when the interface container is constructed, configuring the sub-views according to the acquired video information for switching videos.
Optionally, the method further comprises:
when detecting that the operation received by the video playing interface accords with the video switching operation, determining video information of a video to be switched corresponding to the video switching operation according to the acquired switching video list;
and configuring the sub-view corresponding to the video to be switched according to the video information of the video to be switched.
Alternatively,
the video information at least comprises a preview video address and a video playing address of a corresponding video;
and/or the presence of a gas in the gas,
the sub-view comprises a video preview layer and a video play layer;
the step of configuring the sub-view at least comprises:
and according to the preview video address included in the video information, pre-loading a corresponding preview video clip in the video preview layer of the corresponding sub-view.
Optionally, the step of determining a target sub-view corresponding to the video switching operation in the interface container further includes:
and when the target sub-view does not exist in the interface container, acquiring the video information of the new video to be switched so as to configure and generate the target sub-view.
Alternatively,
the sub-views comprise video preview layers and video play layers, and the video preview layers are arranged on the corresponding video play layers;
the step of setting the target sub-view in the video playing area for displaying so as to play the corresponding switched target video comprises:
displaying a video preview layer of the target sub-view through the video playing area so as to play a preview video clip of the target video through the video preview layer of the target sub-view;
and when the video display area is detected to meet the preset video display condition, hiding the video preview layer of the target sub-view in the video display area, and displaying the video display layer of the target sub-view to display the target video.
Alternatively,
the video playing condition at least comprises one of the following conditions:
the video playing layer is triggered to load the target video according to the acquired video playing address of the target video, and the step of loading the target video is completed;
alternatively, the first and second electrodes may be,
the playing time of the video preview layer playing the preview video clip of the target video exceeds a preset time threshold, and the target video is loaded on the video playing layer.
Optionally, the method further comprises:
when the target sub-view is arranged in the video playing area for displaying, other sub-views in the interface container are arranged in a non-visual area in the video playing interface.
Optionally, the method further comprises:
when the video switching operation is completed, executing resource recovery processing on the sub-view displayed in the video playing area before the target sub-view;
and/or the presence of a gas in the gas,
the video switching operation at least comprises one of up-and-down sliding switching operation, arc track sliding switching operation or gesture sliding switching operation.
According to a second aspect of the present invention, there is provided a video switching apparatus comprising:
an interface providing unit for providing a video playing interface,
the video playing interface is provided with a video playing area and an interface container, the interface container comprises a plurality of sub-views, and each sub-view is used for playing a switchable video associated with the sub-view;
the view determining unit is used for determining a target sub-view corresponding to the video switching operation in the interface container when detecting that the operation received by the video playing interface accords with the preset video switching operation;
wherein the target sub-view is used for playing a target video associated with the target sub-view;
and the video playing unit is used for setting the target sub-view in the video playing area for displaying so as to play the target video and realize video switching.
According to a third aspect of the present invention, there is provided an electronic apparatus, comprising:
the display screen is used for displaying a human-computer interaction interface;
a memory for storing executable instructions;
and a processor, configured to operate the electronic device to execute any video switching control method provided in the first aspect of the present invention according to the control of the executable instruction.
According to an embodiment of the present invention, a video switching method, an apparatus, and an electronic device are provided, where when it is detected that a video playing interface receives a video switching operation performed by a user, a target sub-view corresponding to the video switching operation in a video container of the video playing interface is set in a video playing area of the video playing interface, and a corresponding target video is played through the target sub-view, so that video switching is achieved, and a user is provided with the video switching method, the apparatus, and the electronic device, which are simple and convenient to implement video switching through the video switching operation, and the video switching experience of the user is improved. The method is particularly suitable for application scenes in which users cannot perform complicated operations.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram showing an example of a hardware configuration of an electronic apparatus 1000 that can be used to implement an embodiment of the present invention.
Fig. 2 shows a flow chart of a video switching method of an embodiment of the present invention.
FIG. 3 shows a flow chart of the configure sub-view step of an embodiment of the present invention.
FIG. 4 is a flowchart illustrating the steps of playing a target video through a target sub-view according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of an example of displaying a target sub-view in a video playing area according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of an example of playing a target video through a target sub-view according to an embodiment of the present invention.
Fig. 7 shows a block diagram of the video switching apparatus 3000 of the embodiment of the present invention.
Fig. 8 shows a block diagram of an electronic device 4000 of an embodiment of the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a block diagram showing a hardware configuration of an electronic apparatus 1000 that can implement an embodiment of the present invention.
The electronic device 1000 may be a laptop, desktop, cell phone, tablet, etc. As shown in fig. 1, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example, and may specifically include Wifi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. A user can input/output voice information through the speaker 1700 and the microphone 1800.
The electronic device shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the electronic device 1000 is configured to store instructions for controlling the processor 1100 to operate to execute any one of the video switching methods provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a plurality of means are shown for the electronic device 1000 in fig. 1, the present invention may relate to only some of the means therein, e.g. the electronic device 1000 relates to only the processor 1100 and the storage means 1200. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< example >
The general concept of the embodiment of the invention is to provide a video switching scheme, when detecting that a video playing interface receives a video switching operation implemented by a user, a target sub-view corresponding to the video switching operation in a video container of the video playing interface is arranged in a video playing area of the video playing interface, and the corresponding target video is played through the target sub-view, so that the video switching is realized, the video switching is realized through simple and convenient video switching operation by the user, and the video switching experience of the user is improved. The method is particularly suitable for application scenes in which users cannot perform complicated operations.
< method >
In this embodiment, a video switching method is provided, as shown in fig. 2, including: steps S2100-S2300.
In step S2100, a video playing interface is provided.
In this embodiment, the video playing interface is a human-computer interaction interface that provides a video playing service by receiving a user operation.
The video playing interface is provided with a video playing area and an interface container.
The video playing area is a visual area for playing the video, and the video playing area may be a part or all of the visual area of the video playing interface.
The interface container is an interface component that provides relevant views to enable video switching. The interface container includes a plurality of sub-views therein. Each sub-view is used to play one video associated with its existence for switching. In this example, the sub-view is associated with a video available for switching, which means that video information of the video available for switching is configured or stored in the sub-view. The video information is information related to corresponding video playing, for example, the video information may include a preview video address of a corresponding video, a corresponding preview video clip (the video preview clip may be a picture, an animation or a certain clip of a video related to the corresponding video) may be obtained through the preview video address, or the video information may include a video playing address of a corresponding video, a corresponding complete video may be obtained through the video playing address, and so on.
In this embodiment, the video playing interface may further include other functional components, for example, a video playing progress bar, a video return button, a video pause button, and the like, where these functional components may be disposed in a functional layer of the video playing interface, and the functional layer may be disposed on the interface container, and is configured to be hidden or displayed by implementing clicking or other operations in the video playing interface.
In this embodiment, the video playing interface may be implemented in advance in whole or in part according to actual application requirements or application scenarios based on development frameworks provided by different operating systems.
In one example, the step of providing a video playback interface may comprise:
when the video playing area is set to enter a video playing state, an interface container is constructed to be arranged in the video playing interface.
The video playing area is set to enter a video playing state, namely, the interface container is constructed when the video playing interface actually plays the video, so that the interface container is prevented from being constructed too early to occupy more system processing resources, and the resource utilization efficiency is improved. In this example, the video play state may include a normal play state or a full-screen play state.
In another example, the step of providing a video playback interface includes:
and when the interface container is constructed, configuring the sub-views according to the acquired video information for switching the videos.
In this example, the video information of the videos available for switching may be obtained from a remote video server, or the video information available for switching may be determined according to a video playing history of the current user, for example, according to a video previewed or played by the user last time, and the video information of the next switchable video may be determined according to a video switching list which is obtained in advance and includes the video information of a plurality of videos available for switching and a switching sequence.
The video information is information related to corresponding video playing, for example, the video information may include a preview video address of a corresponding video, through which a corresponding preview video clip may be acquired, or the video information may include a video playing address of a corresponding video, through which a corresponding complete video may be acquired, and so on.
In this example, the video information may include at least a preview video address and a video play address of the corresponding video.
In this example, for each sub-view that needs to be configured, the sub-view can be configured according to the video information of the video to be switched associated with the sub-view, for example, the video with the switch can be preloaded for playing during switching according to the video playing address of the video to be switched associated with the sub-view, and when video switching is implemented, it is not necessary to wait for loading of the video to be directly displayed and switched; or, the corresponding preview video clip can be pre-loaded according to the video preview address of the video to be switched associated with the sub-view, and when the video switching is realized, the preview video clip is directly displayed for the user to preview and determine whether to continue watching; when the video information at least comprises a preview video address and a video playing address of a corresponding video, a corresponding preview video segment can be preloaded according to the video preview address, the corresponding video playing address is imported, the preview video segment is directly displayed when the video switching is realized, meanwhile, a corresponding complete video is loaded at the background according to the video playing address, when the complete video is loaded, the complete video is switched and played, the seamless switching between the videos is realized, and the like.
For example, the sub-view includes a video preview layer and a video play layer, and correspondingly, the step of configuring the sub-view at least includes:
and according to the preview video address included in the video information, pre-loading a corresponding preview video clip in the video preview layer of the corresponding sub-view.
Through preloading the corresponding preview video clip in the video preview layer of the sub-view, the subsequent steps can be combined, when the sub-view is displayed, the video preview layer is preferentially displayed for a user to watch the video preview clip loaded in the video preview layer, when the user switches videos, the video preview clip of the corresponding video can be rapidly displayed for the user, the phenomena of black screen, blockage and the like during video switching are avoided, and the video switching experience of the user is improved.
After the video playing interface is provided in step S2100, the following steps are entered:
step S2200 is executed to determine a target sub-view corresponding to the video switching operation in the interface container when it is detected that the operation received by the video playing interface matches the preset video switching operation.
In this embodiment, the video switching operation is an interactive operation performed on the video playing interface to trigger the video being played to be switched to the video that the user desires to play. The video switching operation may be preset according to an operation type supported by the video playing interface or a preference of a user, for example, the video switching operation includes at least one of an up-down sliding switching operation, an arc track sliding switching operation, or a gesture sliding switching operation.
The up-down sliding switching operation is suitable for switching videos by up-down sliding operation when the mobile equipment is in a vertical screen state (for example, in a vertical screen full-screen state); the arc track sliding switching operation is to switch videos through a semi-arc track of a user holding position, and is suitable for the horizontal screen or vertical screen state of the electronic equipment; the gesture sliding switching operation is that after a user implements a gesture behavior that the sliding distance exceeds a preset distance threshold value on a video playing interface, a switching view is directly triggered, and the preset distance threshold value can be set according to an application scene or an application requirement.
In this embodiment, the video switching operation may trigger switching of a currently played video to a certain target video that can be switched, and correspondingly, in the interface container, the target sub-view corresponding to the video switching operation is a sub-view that is associated with the target video and used for playing the target video. The target sub-view is used for playing the target video associated with the target sub-view.
The determination of the target sub-view may be performed in various ways, for example, the interface container is implemented as a container that can be turned over in response to a video switching operation (one page for each sub-view), and when the interface container detects that a video switching operation is received, the interface container performs one page turning, and the sub-view that is turned over to the uppermost page is the target sub-view.
In this embodiment, when a video switching operation is detected, the sub-view in the interface container may be configured, specifically, as shown in fig. 3, the method includes: steps S2210-S2220.
Step S2210, when detecting that the operation received by the video playing interface accords with the video switching operation, determining the video information of the video to be switched corresponding to the video switching operation according to the acquired switching video list.
The switching video list is a list including video information of a plurality of videos available for switching and a switching order. The switch video list may be pre-fetched from a remote video server.
When receiving the video switching operation, according to the switching video list, determining the video to be switched corresponding to the video switching operation from the video to be switched which is not previewed or played before the video switching operation, and correspondingly acquiring the video information of the corresponding video to be switched from the switching video list.
The video information is information related to corresponding video playing, for example, the video information may include a preview video address of a corresponding video, through which a corresponding preview video clip may be acquired, or the video information may include a video playing address of a corresponding video, through which a corresponding complete video may be acquired, and so on.
In this example, the video information may include at least a preview video address and a video play address of the corresponding video.
And S2220, configuring a sub-view corresponding to the video to be switched according to the video information of the video to be switched.
In this example, for each sub-view that needs to be configured, the sub-view can be configured according to the video information of the video to be switched associated with the sub-view, for example, the video with the switch can be preloaded for playing during switching according to the video playing address of the video to be switched associated with the sub-view, and when video switching is implemented, it is not necessary to wait for loading of the video to be directly displayed and switched; or, the corresponding preview video clip can be pre-loaded according to the video preview address of the video to be switched associated with the sub-view, and when the video switching is realized, the preview video clip is directly displayed for the user to preview and determine whether to continue watching; when the video information at least comprises a preview video address and a video playing address of a corresponding video, a corresponding preview video segment can be preloaded according to the video preview address, the corresponding video playing address is imported, the preview video segment is directly displayed when the video switching is realized, meanwhile, a corresponding complete video is loaded at the background according to the video playing address, when the complete video is loaded, the complete video is switched and played, the seamless switching between the videos is realized, and the like.
For example, the sub-view includes a video preview layer and a video play layer, and correspondingly, the step of configuring the sub-view at least includes:
and according to the preview video address included in the video information, pre-loading a corresponding preview video clip in the video preview layer of the corresponding sub-view.
The corresponding preview video clip is preloaded in the video preview layer of the sub-view, so that the subsequent steps can be combined, when the sub-view is displayed, the video preview layer is preferentially displayed for a user to watch the video preview clip loaded in the video preview layer, when the user switches videos, the video preview clip of the corresponding video can be directly displayed for the user, the phenomena of black screen, blockage and the like during video switching are avoided, and the video switching experience of the user is improved.
In practical applications, when the video switching operation is performed, there may not be a corresponding target sub-view in the interface container, for example, the interface container is implemented as a container that can be paged in response to the video switching operation (one page for each sub-view), when the video switching operation is detected to be received, the interface container performs one page flipping, the sub-view that is paged to the top page is the target sub-view, and the page flipping order is the same as the video switching order in the corresponding video switching list, and before the video switching operation is performed, the video switching list has been switched back to the last position in the list, and correspondingly, the sub-view in the interface container has been paged forward to the first sub-view, or, the video switching list has been switched forward to the first position in the list, and the sub-view in the interface container has been paged back to the last sub-view, at this time, the received video switching operation does not have a corresponding sub-view, nor does the received video to be switched.
For this situation, in this embodiment, the step of determining the target sub-view corresponding to the video switching operation in the interface container further includes:
and when the target sub-view does not exist in the interface container, acquiring the video information of the new video to be switched so as to configure and generate the target sub-view.
The video information of the new video to be switched can be acquired from the remote server, or a new video switching list is acquired from the remote server, and the video information corresponding to the new video to be switched is acquired from the new video switching list.
The step of configuring and generating the target sub-view may be that after a new sub-view is created, the corresponding target sub-view is obtained after the configuration according to the step of configuring the sub-view.
When the target sub-view does not exist in the interface container, the video information of the new video to be switched is acquired, and the target sub-view is configured and generated so as to display the corresponding switched target video through the target sub-view in combination with the subsequent steps, thereby avoiding the interruption of video switching and influencing the user experience.
After determining the target sub-view in step S2200, the method proceeds to:
step S2300, the target sub-view is set in the video playing area for displaying to play the target video, so as to implement video switching.
The target sub-view corresponds to the video switching operation, is arranged in the video playing area of the video playing interface to play the corresponding target video, so that the video switching is realized, the video switching is realized by a user through simple and convenient video switching operation, and the video switching experience of the user is improved. The method is particularly suitable for application scenes in which users cannot perform complicated operations.
In one example, the sub-view includes a video preview layer and a video play layer, the video preview layer being disposed above the corresponding video play layer. Correspondingly, the step of setting the target sub-view in the video playing area for displaying to play the corresponding switched target video includes, as shown in fig. 4: steps S2310-2320.
Step S2310, displaying the video preview layer of the target sub-view through the video play area, so as to play the preview video clip of the target video through the video preview layer of the target sub-view.
Step S2320, when it is detected that the preset video playing condition is met, hiding the video preview layer of the target sub-view in the video playing area, and displaying the video playing layer of the target sub-view to play the target video.
When a target video is displayed through a target sub-view, a video preview layer of the target sub-view is firstly displayed and a video playing layer is hidden, a preview video clip of the target video is played through the video preview layer (the preview video clip can be a video screenshot of the target video, a poster picture, a video moving picture or a hot spot video clip of the target video and the like), and when video playing conditions are met, the video preview layer is hidden to display the video playing layer so as to play the target video, so that the phenomena of black screen and blocking during video switching can be avoided, seamless switching between videos is realized, and smooth video switching experience is provided for a user. For example, as shown in fig. 5.
In this example, the video playing condition is a condition for evaluating whether the video playing is currently suitable, and may be set according to a specific application scene or application requirements.
For example, the video playing condition at least includes that the video playing layer is triggered to load the target video according to the acquired video playing address of the target video.
In this example, the video playing layer of the target sub-view may already complete the step of triggering the target video according to the video playing address of the acquired target video in the sub-view configuration process before detecting the video switching operation, or may automatically trigger the step of completing the step of triggering the target video according to the video playing address of the acquired target video when detecting the video switching operation; or after the video switching operation is detected, the user performs operation triggering with the video playing interface to complete the step of playing the target video according to the video playing address of the acquired target video. After the step of playing the target video according to the video playing address of the acquired target video is completed, the video playing layer of the target sub-view is loaded with the complete content of the target video, and the video is played through the video playing layer, so that the black screen and blockage during video switching can be avoided, and smooth video switching experience is provided for a user.
Or, for example, the video playing conditions include at least: the playing time of the video preview layer playing the preview video clip of the target video exceeds a preset time threshold, and the target video is loaded on the video playing layer.
The duration threshold is a time threshold for measuring whether the user has a desire to view the complete video, and may be set according to a specific application scenario or application requirements. When the playing time of the preview video frequency band of the target video played by the video preview layer exceeds the time threshold, the fact that the user has a desire to watch the complete video can be determined, the video preview layer is directly hidden on the premise that the target video is loaded on the video play layer, the target video is played through the video play layer, the phenomenon that the video is blocked and blocked during video switching can be avoided, and smooth video switching experience is provided for the user.
In this embodiment, the video switching method further includes:
and when the target sub-view is arranged in the video playing area for displaying, arranging other sub-views in the interface container in an invisible area in the video playing interface.
And other sub-views except the target sub-view in the interface container are arranged in the invisible area of the video playing interface, so that the display of the target sub-view is prevented from being influenced, and the switching between the sub-views is favorably realized.
For example, the sub-views include a video preview layer and a video play layer, the video preview layer is disposed on the corresponding video play layer, correspondingly, when the target sub-view plays the target video through the video play layer, the other sub-views except the target sub-view are all disposed in the invisible area in the video play interface and are all exposed on the video preview layer, when the video switching operation is detected, the corresponding sub-views are set to enter the video play area in response to the video switching operation, it is obvious that the video preview layer is displayed first, the video preview layer is hidden when the video playing conditions are met subsequently, and the target video is played through the video play layer, for example, as shown in fig. 6, the black screen and the blockage during video switching can be avoided, and smooth video switching experience is provided for a user.
In practical application, in a scene where a user frequently switches videos, corresponding sub-views may be correspondingly and frequently created, and thus, more processing resources are occupied, and processing performance is affected. For this situation, the video switching method in this embodiment further includes:
and when the video switching operation is completed, executing resource recycling processing on the sub-view displayed in the video playing area before the target sub-view.
The sub-views which are displayed before the target sub-view in the video playing area are displayed in the video playing area, and in response to the fact that the video switching operation has been moved to enter the sub-views in the invisible area of the video playing interface outside the video playing area, resource recovery processing such as sub-view deletion or sub-view reconfiguration is performed on the sub-views, so that resources occupied by the sub-views are reused after being released, resource vacancy is avoided, and resource utilization efficiency is improved.
< video switching apparatus >
In the present embodiment, there is also provided a video switching apparatus 3000, as shown in fig. 7, including: the interface providing unit 3100, the view determining unit 3200, and the video playing unit 3300 are used to implement the video switching method provided in this embodiment, and are not described herein again.
Video switching apparatus 3000 includes:
an interface providing unit 3100, for providing a video playing interface,
the video playing interface is provided with a video playing area and an interface container, the interface container comprises a plurality of sub-views, and each sub-view is used for playing a switchable video associated with the sub-view;
the view determining unit 3200 is configured to determine a target sub-view corresponding to a video switching operation in the interface container when detecting that an operation received by the video playing interface meets a preset video switching operation;
wherein the target sub-view is used for playing a target video associated with the target sub-view;
and the video playing unit 3300 is configured to set the target sub-view in the video playing area for displaying, so as to play the target video and implement video switching.
Optionally, the interface providing unit 3100 is for:
and when the video playing area is set to enter a video playing state, constructing the interface container to be arranged in the video playing interface.
Optionally, the interface providing unit 3100 further comprises:
and configuring the sub-views according to the acquired video information for video switching when the interface container is constructed.
Optionally, the video switching apparatus 3000 is further configured to:
when detecting that the operation received by the video playing interface accords with the video switching operation, determining video information of a video to be switched corresponding to the video switching operation according to the acquired switching video list;
and configuring the sub-view corresponding to the video to be switched according to the video information of the video to be switched.
Alternatively,
the video information at least comprises a preview video address and a video playing address of a corresponding video;
and/or the presence of a gas in the gas,
the sub-view comprises a video preview layer and a video play layer;
the means for configuring the child view is for:
and according to the preview video address included in the video information, pre-loading a corresponding preview video clip in the video preview layer of the corresponding sub-view.
Optionally, the view determination unit 3200 is further adapted to:
and when the target sub-view does not exist in the interface container, acquiring the video information of the new video to be switched so as to configure and generate the target sub-view.
Optionally, the sub-view includes a video preview layer and a video play layer, and the video preview layer is disposed on the corresponding video play layer;
the video playback unit 3300 is also shown to:
displaying a video preview layer of the target sub-view through the video playing area so as to play a preview video clip of the target video through the video preview layer of the target sub-view;
and when the video display area is detected to meet the preset video display condition, hiding the video preview layer of the target sub-view in the video display area, and displaying the video display layer of the target sub-view to display the target video.
Alternatively,
the video playing condition at least comprises one of the following conditions:
the video playing layer is triggered to load the target video according to the acquired video playing address of the target video, and the step of loading the target video is completed;
alternatively, the first and second electrodes may be,
the playing time of the video preview layer playing the preview video clip of the target video exceeds a preset time threshold, and the target video is loaded on the video playing layer.
Optionally, the video switching apparatus 3000 is further configured to:
when the target sub-view is arranged in the video playing area for displaying, other sub-views in the interface container are arranged in a non-visual area in the video playing interface.
Optionally, the video switching apparatus 3000 is further configured to:
and when the video switching operation is completed, executing resource recycling processing on the sub-view shown in the video playing area before the target sub-view.
And/or the presence of a gas in the gas,
the video switching operation at least comprises one of up-and-down sliding switching operation, arc track sliding switching operation or gesture sliding switching operation.
It will be appreciated by those skilled in the art that the video switching apparatus 3000 can be implemented in various ways. The video switching apparatus 3000 may be implemented, for example, by an instruction configuration processor. For example, the video switching apparatus 3000 may be implemented by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when starting up the device. For example, the video switch 3000 may be incorporated into a dedicated device (e.g., ASIC). The video switching apparatus 3000 may be divided into units independent of each other, or may be implemented by combining them together. The video switching apparatus 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
In this embodiment, the video switching apparatus 3000 may have various implementation forms, for example, the video switching apparatus 3000 may be application software (e.g., video APP) providing a video playing service, which implements the video switching method provided in this embodiment, or the video switching apparatus 3000 may be a plug-in that can be embedded in the application software providing the video playing service, and may also be a built-in or external functional module of an electronic device providing a video playing function, and the like.
< electronic apparatus >
In this embodiment, an electronic apparatus 4000 is further provided, as shown in fig. 8, including:
a display screen 4100 for displaying a human-computer interaction interface;
a memory 4200 for storing executable instructions;
the processor 4300 is configured to operate the electronic device 4000 to perform any one of the video switching control methods provided in this embodiment according to the control of the executable instruction.
In this embodiment, the electronic device 4000 may be a mobile phone, a palm computer, a tablet computer, a notebook computer, a desktop computer, or the like. In one example, the electronic device 4000 may be a mobile phone installed with application software providing a video playing service.
In this embodiment, the electronic device 4000 may further include other functional modules, for example, the electronic device 1000 shown in fig. 1.
The embodiments of the present invention have been described above with reference to the accompanying drawings, and according to the embodiments, a video switching method, an apparatus, and an electronic device are provided, where when it is detected that a video playing interface receives a video switching operation implemented by a user, a target sub-view corresponding to the video switching operation in a video container of the video playing interface is set in a video playing area of the video playing interface, and a corresponding target video is played through the target sub-view, so as to implement video switching, provide a user to implement video switching through a simple and convenient video switching operation, and improve video switching experience of the user. The method is particularly suitable for application scenes in which users cannot perform complicated operations.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (12)

1. A video switching method, comprising:
a video playing interface is provided, and the video playing interface,
the video playing interface is provided with a video playing area and an interface container, the interface container comprises a plurality of sub-views, and each sub-view is used for playing a switchable video associated with the sub-view;
when detecting that the operation received by the video playing interface accords with the preset video switching operation, determining a target sub-view corresponding to the video switching operation in the interface container;
wherein the target sub-view is used for playing a target video associated with the target sub-view;
and setting the target sub-view in the video playing area for displaying so as to play the target video and realize video switching.
2. The method of claim 1, wherein the step of providing a video playback interface comprises:
and when the video playing area is set to enter a video playing state, constructing the interface container to be arranged in the video playing interface.
3. The method of claim 1, wherein the step of providing a video playback interface comprises:
and when the interface container is constructed, configuring the sub-views according to the acquired video information for switching videos.
4. The method of claim 1, further comprising:
when detecting that the operation received by the video playing interface accords with the video switching operation, determining video information of a video to be switched corresponding to the video switching operation according to the acquired switching video list;
and configuring the sub-view corresponding to the video to be switched according to the video information of the video to be switched.
5. The method of claim 3 or 4,
the video information at least comprises a preview video address and a video playing address of a corresponding video;
and/or the presence of a gas in the gas,
the sub-view comprises a video preview layer and a video play layer;
the step of configuring the sub-view at least comprises:
and according to the preview video address included in the video information, pre-loading a corresponding preview video clip in the video preview layer of the corresponding sub-view.
6. The method of claim 1, wherein the step of determining a target sub-view in the interface container corresponding to the video switching operation further comprises:
and when the target sub-view does not exist in the interface container, acquiring the video information of the new video to be switched so as to configure and generate the target sub-view.
7. The method of claim 1, wherein,
the sub-views comprise video preview layers and video play layers, and the video preview layers are arranged on the corresponding video play layers;
the step of setting the target sub-view in the video playing area for displaying so as to play the corresponding switched target video comprises:
displaying a video preview layer of the target sub-view through the video playing area so as to play a preview video clip of the target video through the video preview layer of the target sub-view;
and when the video display area is detected to meet the preset video display condition, hiding the video preview layer of the target sub-view in the video display area, and displaying the video display layer of the target sub-view to display the target video.
8. The method of claim 7, wherein the video playback condition comprises at least one of:
the video playing layer is triggered to load the target video according to the acquired video playing address of the target video, and the step of loading the target video is completed;
alternatively, the first and second electrodes may be,
the playing time of the video preview layer playing the preview video clip of the target video exceeds a preset time threshold, and the target video is loaded on the video playing layer.
9. The method of claim 1, wherein the method further comprises:
when the target sub-view is arranged in the video playing area for displaying, other sub-views in the interface container are arranged in a non-visual area in the video playing interface.
10. The method of claim 1, wherein,
the method further comprises the following steps:
when the video switching operation is completed, executing resource recovery processing on the sub-view displayed in the video playing area before the target sub-view;
and/or the presence of a gas in the gas,
the video switching operation at least comprises one of up-and-down sliding switching operation, arc track sliding switching operation or gesture sliding switching operation.
11. A video switching apparatus, comprising:
an interface providing unit for providing a video playing interface,
the video playing interface is provided with a video playing area and an interface container, the interface container comprises a plurality of sub-views, and each sub-view is used for playing a switchable video associated with the sub-view;
the view determining unit is used for determining a target sub-view corresponding to the video switching operation in the interface container when detecting that the operation received by the video playing interface accords with the preset video switching operation;
wherein the target sub-view is used for playing a target video associated with the target sub-view;
and the video playing unit is used for setting the target sub-view in the video playing area for displaying so as to play the target video and realize video switching.
12. An electronic device, comprising:
the display screen is used for displaying a human-computer interaction interface;
a memory for storing executable instructions;
a processor, configured to execute the electronic device to perform the video switching control method according to any one of claims 1 to 10, according to the control of the executable instruction.
CN201810813773.XA 2018-07-23 2018-07-23 Video switching method and device and electronic equipment Pending CN110753251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810813773.XA CN110753251A (en) 2018-07-23 2018-07-23 Video switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810813773.XA CN110753251A (en) 2018-07-23 2018-07-23 Video switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110753251A true CN110753251A (en) 2020-02-04

Family

ID=69275049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810813773.XA Pending CN110753251A (en) 2018-07-23 2018-07-23 Video switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110753251A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014833A (en) * 2021-03-09 2021-06-22 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN113536137A (en) * 2021-08-13 2021-10-22 北京字节跳动网络技术有限公司 Information display method and device and computer storage medium
CN113573121A (en) * 2021-07-13 2021-10-29 富途网络科技(深圳)有限公司 Video playing method, device and storage medium
CN115237299A (en) * 2022-06-29 2022-10-25 北京优酷科技有限公司 Playing page switching method and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030089777A1 (en) * 2001-11-15 2003-05-15 Rajasekharan Ajit V. Method and system for authoring and playback of audio coincident with label detection
CN101764974A (en) * 2010-01-08 2010-06-30 烽火通信科技股份有限公司 Method and system for implementing multi-program preview of IPTV electronic program list
CN102301736A (en) * 2011-07-06 2011-12-28 华为技术有限公司 Method, device and mobile terminal for switching video display contents
CN102547377A (en) * 2011-12-21 2012-07-04 深圳创维数字技术股份有限公司 Method and device for transmitting video data to Set-top box
CN105847937A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Method and device for displaying video
CN107948740A (en) * 2017-10-30 2018-04-20 广州虎牙信息科技有限公司 Video playing control method, device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030089777A1 (en) * 2001-11-15 2003-05-15 Rajasekharan Ajit V. Method and system for authoring and playback of audio coincident with label detection
CN101764974A (en) * 2010-01-08 2010-06-30 烽火通信科技股份有限公司 Method and system for implementing multi-program preview of IPTV electronic program list
CN102301736A (en) * 2011-07-06 2011-12-28 华为技术有限公司 Method, device and mobile terminal for switching video display contents
CN102547377A (en) * 2011-12-21 2012-07-04 深圳创维数字技术股份有限公司 Method and device for transmitting video data to Set-top box
CN105847937A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Method and device for displaying video
CN107948740A (en) * 2017-10-30 2018-04-20 广州虎牙信息科技有限公司 Video playing control method, device and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014833A (en) * 2021-03-09 2021-06-22 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN113573121A (en) * 2021-07-13 2021-10-29 富途网络科技(深圳)有限公司 Video playing method, device and storage medium
CN113573121B (en) * 2021-07-13 2023-04-21 富途网络科技(深圳)有限公司 Video playing method, device and storage medium
CN113536137A (en) * 2021-08-13 2021-10-22 北京字节跳动网络技术有限公司 Information display method and device and computer storage medium
CN115237299A (en) * 2022-06-29 2022-10-25 北京优酷科技有限公司 Playing page switching method and terminal equipment
CN115237299B (en) * 2022-06-29 2024-03-22 北京优酷科技有限公司 Playing page switching method and terminal equipment

Similar Documents

Publication Publication Date Title
US11816303B2 (en) Device, method, and graphical user interface for navigating media content
CN105955607B (en) Content sharing method and device
JP2021507364A (en) User interface display methods, devices, devices and storage media
CN108363534B (en) Global preview method and device of editable object and electronic equipment
KR102113683B1 (en) Mobile apparatus providing preview by detecting rub gesture and control method thereof
JP5805588B2 (en) Electronic device, control method, and control program
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
WO2019007227A1 (en) Method and apparatus for continuing to display view after switching pages
US20190073101A1 (en) Method and device for switching pages of applications in a terminal device
US10237622B2 (en) Page turning method, page turning apparatus and terminal as well as computer readable medium
WO2021052255A1 (en) Method and apparatus for controlling hotspot recommendation pop-up window, and medium and electronic device
JP6655275B2 (en) Mobile device and control method thereof
CN110753251A (en) Video switching method and device and electronic equipment
EP3454198A1 (en) Method and apparatus for controlling application
EP3109772A1 (en) Text input method and device
CN107908447B (en) Application switching method and device and virtual reality device
US20160162139A1 (en) Information display terminal
KR20130093043A (en) Method and mobile device for user interface for touch and swipe navigation
JP2013084233A (en) Device, method, and program
WO2018112928A1 (en) Method for displaying information, apparatus and terminal device
CN110825997A (en) Information flow page display method and device, terminal equipment and system
WO2018112924A1 (en) Information display method, device and terminal device
CN110909275A (en) Page browsing method and device and electronic equipment
CN112584222A (en) Video processing method and device for video processing
CN109947506B (en) Interface switching method and device and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20200526

Address after: 310051 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100083, Beijing, Haidian District, Cheng Fu Road, No. 28, A building, block 12

Applicant before: UC MOBILE Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204

RJ01 Rejection of invention patent application after publication