[go: up one dir, main page]

CN109831688B - Video suspension playing method and device based on iOS system - Google Patents

Video suspension playing method and device based on iOS system Download PDF

Info

Publication number
CN109831688B
CN109831688B CN201910180250.0A CN201910180250A CN109831688B CN 109831688 B CN109831688 B CN 109831688B CN 201910180250 A CN201910180250 A CN 201910180250A CN 109831688 B CN109831688 B CN 109831688B
Authority
CN
China
Prior art keywords
page
controller
floating
video
avplayerlayer
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.)
Active
Application number
CN201910180250.0A
Other languages
Chinese (zh)
Other versions
CN109831688A (en
Inventor
潘亚南
张智超
修志远
高海营
刘喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Ultra HD Video Industry Co Ltd
Original Assignee
Shandong Yunman Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yunman Intelligent Technology Co ltd filed Critical Shandong Yunman Intelligent Technology Co ltd
Priority to CN201910180250.0A priority Critical patent/CN109831688B/en
Publication of CN109831688A publication Critical patent/CN109831688A/en
Application granted granted Critical
Publication of CN109831688B publication Critical patent/CN109831688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a video floating playing method and device based on an iOS system. Transferring the suspension view model with the available attributes of the AVPlayerLayer to a view controller with the expanded suspension window display function; determining a floating controller constructed with a dedicated window and a dedicated view above the dedicated window with the highest display right and below the AVPlayerLayer; displaying a first page supporting target video playing; determining a second page when external request is carried out for suspension play, and acquiring a controller at the uppermost layer of the second page by using a column controller; controlling the special window to be positioned at the uppermost layer of the second page by using the controller and the suspension controller; controlling the target video to be played on the AVPlayerLayer by utilizing a column controller according to the available attributes; and switching the displayed page into a second page by utilizing the navigation controller. The scheme can improve the video playing effect.

Description

Video suspension playing method and device based on iOS system
Technical Field
The invention relates to the technical field of computers, in particular to a video suspension playing method and device based on an iOS system.
Background
At present, a lot of on-demand and live broadcast mobile terminals APP are generated under the background of mobile internet and stream media explosion.
The APP of most current video playing can realize small window playing. For example, a user may click a preset widget playing button in the APP to play a video through a widget, and may drag the playing window to adjust a window position and drag the playing window to adjust a window size.
However, the playing effect is not good. For example, when a small window is played, video disconnection, sound stop, and pause playback are likely to occur.
Disclosure of Invention
The invention provides a video suspension playing method and device based on an iOS system, which can improve the video playing effect.
In order to achieve the purpose, the invention is realized by the following technical scheme:
in a first aspect, the invention provides a video floating play method based on an iOS system, which determines a constructed floating view model (floating view model), wherein the floating view model is provided with an available attribute of AVPlayerLayer;
passing the flowingviewmodel to a UIviewController (view controller) extended with a floating window presentation function;
determining a floating controller (suspension controller) constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView;
further comprising:
displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page;
when the external triggering operation aiming at the video suspension play function button is monitored, determining a second page to be displayed, and acquiring a Controller (Controller) at the uppermost layer of the second page by using a UITabbar Controller (column Controller) in the UIviewcontroller;
controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller;
and controlling the displayed page to be switched from the first page to the second page by using a UINavgationcontroller (navigation controller) in the UIviewcontroller.
Further, the controlling the displayed page to switch from the first page to the second page comprises: and according to the pre-constructed transition animation, executing animation conversion processing from the first page to the second page so as to display the second page.
Further, the flowingviewmodel is also provided with available attributes of page sources;
after the monitoring of the external triggering operation for the video floating playing function button, further comprising: recording the page source as the first page by using the UIviewController;
after the controlling the displayed page to be switched from the first page to the second page, further comprising: when the target video is played in a floating mode, when the external trigger operation aiming at a preset button for exiting the floating play function is monitored, the recorded first page is obtained from the UIviewcontroller by using the Floatingcontroller and is transmitted to the UINavgationcontroller; and controlling the displayed page to be switched into the first page by utilizing the UINavgationcontroller.
Further, any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are set in the floating viewmodel.
In a second aspect, the present invention provides an iOS system-based video floating playback apparatus, including:
a determining unit, configured to determine a constructed FloatingViewModel, where an available attribute of the AVPlayerLayer is set in the FloatingViewModel; transmitting the FloatingViewModel to a UIviewController extended with a floating window showing function; determining a flowing controller constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView;
the display unit is used for displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page; displaying the second page;
the processing unit is used for determining the second page to be displayed when the external triggering operation aiming at the video suspension play function button is monitored, and acquiring a Controller of the uppermost layer of the second page by using a UITabbar Controller in the UIviewcontroller; controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller; and controlling the page displayed by the display unit to be switched from the first page to the second page by using a UINavgationcontroller in the UIviewcontroller.
Further, the processing unit is configured to execute animation conversion processing from the first page to the second page according to pre-constructed TransitionAnimation, so as to control the presentation unit to present the second page.
Further, the flowingviewmodel is also provided with available attributes of page sources;
the processing unit is further configured to record the page source as the first page by using the UIviewController after monitoring an external trigger operation for the video floating play function button; when the display unit is controlled to float and play the target video and the external trigger operation aiming at a preset button exiting the floating and playing function is monitored, the floating controller is utilized to obtain the recorded first page from the UIviewcontroller and transmit the first page to the UINavgationcontroller; and controlling the page displayed by the display unit to be switched into the first page by using the UINavgationcontroller.
Further, any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are set in the floating viewmodel.
In a third aspect, the present invention provides a readable medium, which includes an execution instruction, and when a processor of a storage controller executes the execution instruction, the storage controller executes any one of the above-mentioned iOS system-based video floating playback methods.
In a fourth aspect, the present invention provides a memory controller comprising: a processor, a memory, and a bus;
the storage is used for storing an execution instruction, the processor is connected with the storage through the bus, and when the storage controller runs, the processor executes the execution instruction stored in the storage, so that the storage controller executes any one of the above video floating playing methods based on the iOS system.
The invention provides a video floating playing method and device based on an iOS system. Transferring the suspension view model with the available attributes of the AVPlayerLayer to a view controller with the expanded suspension window display function; determining a floating controller constructed with a dedicated window and a dedicated view above the dedicated window with the highest display right and below the AVPlayerLayer; displaying a first page supporting target video playing; determining a second page when external request is carried out for suspension play, and acquiring a controller at the uppermost layer of the second page by using a column controller; controlling the special window to be positioned at the uppermost layer of the second page by using the controller and the suspension controller; controlling the target video to be played on the AVPlayerLayer by utilizing a column controller according to the available attributes; and switching the displayed page into a second page by utilizing the navigation controller. The invention can improve the video playing effect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a video floating playing method based on an iOS system according to an embodiment of the present invention;
fig. 2 is a flowchart of another video floating playing method based on the iOS system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a video floating-playback apparatus based on an iOS system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a video floating playback method based on an iOS system, which may include the following steps:
step 101: determining a constructed FloatgViewModel, wherein the FloatgViewModel is provided with the available attribute of the AVPlayerLayer.
Step 102: and transmitting the FloatWiewModel to the UIviewController extended with the floating window showing function.
Step 103: determining a flowing controller constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView.
Step 104: and displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page.
Step 105: when the triggering operation of the external video floating play function button is monitored, a second page to be displayed is determined, and a Controller of the uppermost layer of the second page is obtained by using a UITabbar Controller in the UIviewcontroller.
Step 106: controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller.
Step 107: and controlling the displayed page to be switched from the first page to the second page by using a UINavgationcontroller in the UIviewcontroller.
The embodiment of the invention provides a video floating playing method based on an iOS system, which comprises the following steps: transferring the suspension view model with the available attributes of the AVPlayerLayer to a view controller with the expanded suspension window display function; determining a floating controller constructed with a dedicated window and a dedicated view above the dedicated window with the highest display right and below the AVPlayerLayer; displaying a first page supporting target video playing; determining a second page when external request is carried out for suspension play, and acquiring a controller at the uppermost layer of the second page by using a column controller; controlling the special window to be positioned at the uppermost layer of the second page by using the controller and the suspension controller; controlling the target video to be played on the AVPlayerLayer by utilizing a column controller according to the available attributes; and switching the displayed page into a second page by utilizing the navigation controller. The embodiment of the invention can improve the video playing effect.
In detail, iOS is a mobile operating system developed by apple inc. The video floating playing method based on the iOS system provided by the embodiment of the invention can be generally used for mobile phones supporting the iOS system.
In the embodiment of the present invention, steps 101 to 103 may be performed in advance, and based on this, steps 104 to 107 may be performed as needed based on user operation, and may be repeated multiple times.
Through steps 101 to 103, the components for implementing the large and small screen switching are determined in advance. And step 105 to step 106, implementing the FloatingViewModel to perform basic configuration at the place where the large screen and the small screen are to be switched. Thus, after the SHOW _ FLOATING _ VIEW notification is sent, the switching between the two pages can be realized, and the video is played on the switched page in a suspending way.
Corresponding to the step 101, in the embodiment of the present invention, the floating view model, which is a floating view model, may be used as a configuration item for configuring each available attribute as needed. The whole scheme can carry out information transfer by means of configuration items. The most important of these available attributes is AVPlayerLayer, which is a prerequisite to ensure that the player does not break.
Corresponding to the above step 102, the constructed flowingviewmodel can be delivered to the UIviewController extended with the floating window display function by means of notification. For example, the UITabbrController + FloatingExtension class may be passed to. This class is an extension to the UITabbar controller, extending the functionality of displaying a floating window.
In detail, UiviewController includes uitabbercontroller and uinavgaptioncontroller. The sub-controllers in the uviewController can use this extended functionality as needed.
Corresponding to the step 103, a floating controller is determined, in which a dedicated baseWindow and baseView are constructed for video floating play. Specifically, the AVPlayerLayer is placed on the baseView, which is in turn placed on the baseWindow. Thus, by constructing a dedicated floating window, global usage may not be affected.
Based on the above, the video floating playing method based on the iOS system provided in the embodiment of the present invention has the whole scope of application in the video playing APP, and at least has the following characteristics:
the characteristics are as follows: and (5) seamless switching of videos.
In detail, the video player of the iOS system is developed on what is called the CALayer subclass, AVPlayerLayer. That is, AVPlayerLayer is the control we really see the picture. Thus, the AVPlayerLayer is transmitted in each page, thereby achieving the purpose of seamless switching without stopping video playing.
For example, in order to make the video of the B page continue to be played after returning to the a page, the AVPlayerLayer only needs to return to the a page to find a position for display.
Because the seamless switching of the videos can be realized, the occurrence probability of phenomena such as video disconnection, sound stop, pause replay and the like during small window playing can be effectively reduced.
And (2) the characteristics: the global function use of the APP cannot be influenced.
In detail, the AVPlayerLayer can be added to a dedicated UIWindow, such as the baseWindow described above, and its display right can be raised to the highest display right, such as to be the same as UIAlert, so that it can be displayed globally without affecting the normal use of the function.
In detail, UIAlert can be used for alert notification in general.
And (3) characteristics: convenient to use and non-invasive.
In detail, the purpose that any layer or view can be operated globally by importing the UIViewController extension header file without writing any lines of codes can be achieved by extending the UIViewController.
In summary, the implementation of the video floating play based on the iOS system disclosed in the embodiments of the present invention does not affect the normal use of the system, and can respond globally. Therefore, after the function is started at the mobile phone end, the user can play the video program continuously through the small window on the whole APP, and normal use of the item is not influenced.
In the embodiment of the invention, all data in the APP can be browsed on the premise of video playing, so that the user experience is greatly improved, and the user can freely operate the whole APP and cannot freely experience the whole APP without being limited by a video playing scope.
In detail, in the process of jumping from the first page to the second page, the animation processing can be added. In which animation processing can be performed by the TransitionAnimation class.
Based on this, in one embodiment of the present invention, the controlling the displayed page to be switched from the first page to the second page comprises: and according to the pre-constructed TransitionAnimation, executing animation conversion processing from the first page to the second page so as to display the second page.
In detail, through the processing of the newly added animation, the switching operation is not obtrusive, and the watching experience of a user is improved.
Corresponding to the above steps 104 to 107, the display terminal may display a first page for the user to view the target video. When a user needs to browse other pages while watching a target video, another page can be displayed, and the target video is played in a floating mode on the page. Typically, a jump may be made to a page immediately preceding the first page.
On the basis, when the user needs to quit the hover play, the display terminal usually needs to display the first page again. Therefore, in an embodiment of the present invention, the flowingviewmodel is also provided with an available attribute of a page source;
after the monitoring of the external triggering operation for the video floating playing function button, further comprising: recording the page source as the first page by using the UIviewController;
after the controlling the displayed page to be switched from the first page to the second page, further comprising: when the target video is played in a floating mode, when the external trigger operation aiming at a preset button for exiting the floating play function is monitored, the recorded first page is obtained from the UIviewcontroller by using the Floatingcontroller and is transmitted to the UINavgationcontroller; and controlling the displayed page to be switched into the first page by utilizing the UINavgationcontroller.
For example, when the user clicks the floating window to request to return to the first page in the floating play process, the first page can be accurately found and displayed through the first page recorded in the floating controller.
In an embodiment of the present invention, any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are further set in the floating viewmodel.
In detail, the user can set these parameters as desired, otherwise preset standard values can be used by default. Based on these parameters, the hover play implementation at page switch can be defined.
As shown in fig. 2, an embodiment of the present invention provides another video floating playing method based on an iOS system, which specifically includes the following steps:
step 201: and determining the constructed FloatgViewModel, wherein the available attribute of the AVPlayerLayer and the available attribute of the page source are set in the FloatgViewModel.
In detail, the flowingviewmodel may also be provided with an available attribute of the floating window size, an available attribute of the floating window position, an available attribute of the floating window switching speed, and the like.
Step 202: the flowingviewmodel is passed to the uviewcontroller that has been extended with the floating window show function.
Step 203: and determining the flowing controller constructed with baseWindow and baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView.
Step 204: and displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page.
Taking the mobile phone display as an example, at this time, the mobile phone displays the first page, so that the user can view the target video played on the first page in full screen.
Step 205: when the triggering operation of the external video floating play function button is monitored, a second page to be displayed is determined, a Controller of the uppermost layer of the second page is obtained by using a UITabbar Controller in the UIviewcontroller, and a page source is recorded as the first page by using the UIviewcontroller.
Step 206: controlling baseWindow to be located at the uppermost layer of the second page by using a Controller and a flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using a UITabbar Controller.
Step 207: and executing animation conversion processing from the first page to the second page according to the pre-constructed TransitionAnimation by using a UINavgationcontroller in the UIviewcontroller so as to display the second page.
At this time, the mobile phone displays the second page, and a floating window for playing the target video exists on the second page, so that the user can view the second page and watch the target video continuously through the floating window.
Step 208: when the target video is played in a floating mode, when the external trigger operation aiming at a preset button for exiting the floating play function is monitored, the recorded first page is obtained from the UIviewcontroller by using the floating controller and is transmitted to the UINavgationcontroller.
Assuming that the user finishes viewing the second page at this time, the target video is expected to be played in a full screen mode, so that the small-screen floating playing mode can be exited.
Step 209: and controlling the displayed page to be switched from the second page to the first page by using the UINavgationcontroller.
At this time, the mobile phone displays the first page again, so that the user can watch the target video played on the first page.
As shown in fig. 3, an embodiment of the present invention provides an iOS system-based video floating playback apparatus, including:
a determining unit 301, configured to determine a constructed flowingviewmodel, where an available attribute of AVPlayerLayer is set in the flowingviewmodel; transmitting the FloatingViewModel to a UIviewController extended with a floating window showing function; determining a flowing controller constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView;
the display unit 302 is configured to display a first page, where the first page may support playing of a target video, and a video floating playing function button is arranged in the first page; displaying the second page;
the processing unit 303 is configured to determine the second page to be displayed when it is monitored that an external trigger operation is performed on the video floating play function button, and acquire a Controller of an uppermost layer of the second page by using a uitabbbar Controller in the UIviewController; controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller; and controlling the page displayed by the display unit 302 to be switched from the first page to the second page by using a UINavgationcontroller in the UIviewcontroller.
In an embodiment of the present invention, the processing unit 303 is configured to perform an animation conversion process from the first page to the second page according to a pre-constructed TransitionAnimation, so as to control the presentation unit 302 to present the second page.
In an embodiment of the present invention, the flowingviewmodel is further provided with an available attribute of a page source;
the processing unit 303 is further configured to record the page source as the first page by using the UIviewController after monitoring that an external trigger operation is performed on the video floating play function button; when the display unit 302 is controlled to float and play the target video and the external trigger operation for exiting a float play function button is monitored, the floating controller is utilized to acquire the recorded first page from the UIviewcontroller and transmit the first page to the UINavgationcontroller; and controlling the page displayed by the display unit 302 to be switched to the first page by using the UINavgationcontroller.
In an embodiment of the present invention, any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are further set in the floating viewmodel.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a readable medium, which includes an execution instruction, and when a processor of a storage controller executes the execution instruction, the storage controller executes any one of the iOS system based video floating playing methods described above.
In addition, an embodiment of the present invention further provides a memory controller, including: a processor, a memory, and a bus;
the storage is used for storing an execution instruction, the processor is connected with the storage through the bus, and when the storage controller runs, the processor executes the execution instruction stored in the storage, so that the storage controller executes any one of the above video floating playing methods based on the iOS system.
In summary, the embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, the suspension view model with the available attributes of the AVPlayerLayer is transferred to the view controller with the expanded suspension window display function; determining a floating controller constructed with a dedicated window and a dedicated view above the dedicated window with the highest display right and below the AVPlayerLayer; displaying a first page supporting target video playing; determining a second page when external request is carried out for suspension play, and acquiring a controller at the uppermost layer of the second page by using a column controller; controlling the special window to be positioned at the uppermost layer of the second page by using the controller and the suspension controller; controlling the target video to be played on the AVPlayerLayer by utilizing a column controller according to the available attributes; and switching the displayed page into a second page by utilizing the navigation controller. The embodiment of the invention can improve the video playing effect.
2. In the embodiment of the invention, all data in the APP can be browsed on the premise of video playing, so that the user experience is greatly improved, and the user can freely operate the whole APP and cannot freely experience the whole APP without being limited by a video playing scope.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. A video floating playing method based on an iOS system is characterized in that,
determining a constructed floating view model FloatingViewmodel, wherein the available attribute of AVPlayerLayer is set in the FloatingViewmodel;
the FloatingViewModel is transferred to a view controller UIviewController with an expanded floating window display function;
determining a suspension controller flow controller constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView;
further comprising:
displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page;
when the triggering operation of the external video floating play function button is monitored, determining a second page to be displayed, and acquiring a Controller of the uppermost layer of the second page by using a column Controller UITabbar Controller in the UIviewcontroller;
controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller;
controlling the displayed page to be switched from the first page to the second page by utilizing a navigation controller UINavgationcontroller in the UIviewcontroller;
the FloatingViewModel is also provided with an available attribute of a page source;
after the monitoring of the external triggering operation for the video floating playing function button, further comprising: recording the page source as the first page by using the UIviewController;
after the controlling the displayed page to be switched from the first page to the second page, further comprising: when the target video is played in a floating mode, when the external trigger operation aiming at a preset button for exiting the floating play function is monitored, the recorded first page is obtained from the UIviewcontroller by using the Floatingcontroller and is transmitted to the UINavgationcontroller; controlling the displayed page to be switched into the first page by using the UINavgationcontroller;
any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are also set in the floating viewmodel.
2. The method of claim 1,
the controlling the displayed page to switch from the first page to the second page comprises: and according to the pre-constructed transition animation transition, executing animation conversion processing from the first page to the second page so as to display the second page.
3. An iOS system-based video levitation playback apparatus, comprising:
the determining unit is used for determining a constructed floating view model, wherein the floating view model is provided with an available attribute of the AVPlayerLayer; the FloatingViewModel is transferred to a view controller UIviewController with an expanded floating window display function; determining a suspension controller flow controller constructed with a baseWindow and a baseView, wherein the display permission of the baseWindow is the highest display permission, the baseView is placed above the baseWindow, and the AVPlayerLayer is placed above the baseView;
the display unit is used for displaying a first page, wherein the first page can support the playing of a target video, and a video suspension playing function button is arranged in the first page; displaying the second page;
the processing unit is used for determining the second page to be displayed when the external triggering operation aiming at the video suspension play function button is monitored, and acquiring a Controller at the uppermost layer of the second page by utilizing a column Controller UITabbar Controller in the UIviewcontroller; controlling the baseWindow to be located at the uppermost layer of the second page by using the Controller and the flowing Controller, and controlling the target video to be played on the AVPlayerLayer according to the available attribute of the AVPlayerLayer by using the UITabbar Controller; controlling the page displayed by the display unit to be switched from the first page to the second page by using a navigation controller UINavgationcontroller in the UIviewcontroller;
the FloatingViewModel is also provided with an available attribute of a page source;
the processing unit is further configured to record the page source as the first page by using the UIviewController after monitoring an external trigger operation for the video floating play function button; when the display unit is controlled to float and play the target video and the external trigger operation aiming at a preset button exiting the floating and playing function is monitored, the floating controller is utilized to obtain the recorded first page from the UIviewcontroller and transmit the first page to the UINavgationcontroller; controlling the page displayed by the display unit to be switched into the first page by using the UINavgationcontroller;
any one or more of an available attribute of a floating window size, an available attribute of a floating window position, and an available attribute of a floating window switching speed are also set in the floating viewmodel.
4. The iOS system based video levitation playback device of claim 3,
the processing unit is used for executing animation conversion processing from the first page to the second page according to pre-constructed transition animation conversion so as to control the display unit to display the second page.
5. A readable medium comprising executable instructions which, when executed by a processor of a storage controller, cause the storage controller to perform the iOS system based video floating-play method of any of claims 1 to 2.
6. A storage controller, comprising: a processor, a memory, and a bus;
the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored by the memory, so that the storage controller executes the video floating playing method based on the iOS system according to any one of claims 1 to 2.
CN201910180250.0A 2019-03-11 2019-03-11 Video suspension playing method and device based on iOS system Active CN109831688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910180250.0A CN109831688B (en) 2019-03-11 2019-03-11 Video suspension playing method and device based on iOS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910180250.0A CN109831688B (en) 2019-03-11 2019-03-11 Video suspension playing method and device based on iOS system

Publications (2)

Publication Number Publication Date
CN109831688A CN109831688A (en) 2019-05-31
CN109831688B true CN109831688B (en) 2021-01-22

Family

ID=66868833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910180250.0A Active CN109831688B (en) 2019-03-11 2019-03-11 Video suspension playing method and device based on iOS system

Country Status (1)

Country Link
CN (1) CN109831688B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427523B (en) * 2020-01-19 2022-08-02 杭州海康威视数字技术股份有限公司 Window overlay display processing method, device and electronic device
CN113873316B (en) * 2021-11-04 2024-02-27 上海哔哩哔哩科技有限公司 Live broadcasting room video playing method and device
CN115150655B (en) * 2022-07-05 2024-07-16 深圳创维-Rgb电子有限公司 Display control method and device of display device, display device and storage medium
CN115225950A (en) * 2022-07-18 2022-10-21 上海哔哩哔哩科技有限公司 Video playing control method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677523A (en) * 2013-12-10 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for displaying application software interface
CN104135693A (en) * 2014-07-22 2014-11-05 乐视网信息技术(北京)股份有限公司 A video playing method, smart TV and server
CN105847996A (en) * 2016-05-25 2016-08-10 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN106303664A (en) * 2016-10-13 2017-01-04 合信息技术(北京)有限公司 Video broadcasting method and device
CN106572379A (en) * 2016-10-18 2017-04-19 深圳市云宙多媒体技术有限公司 Method and device for playing picture-in-picture in web video
CN106792089A (en) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device
CN108366301A (en) * 2018-04-24 2018-08-03 中国广播电视网络有限公司 A kind of video suspension playback method based on Android
CN108495169A (en) * 2018-03-23 2018-09-04 北京焦点新干线信息技术有限公司 Information displaying method and device
CN108777819A (en) * 2018-09-13 2018-11-09 上海二三四五网络科技有限公司 A kind of control method and control device based on browser player plays video web page
CN108882039A (en) * 2018-07-09 2018-11-23 北京酷我科技有限公司 A kind of method for handover control of the video playing owner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5082950B2 (en) * 2008-03-13 2012-11-28 住友化学株式会社 Method for decomposing volatile aromatic compounds

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677523A (en) * 2013-12-10 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for displaying application software interface
CN104135693A (en) * 2014-07-22 2014-11-05 乐视网信息技术(北京)股份有限公司 A video playing method, smart TV and server
CN105847996A (en) * 2016-05-25 2016-08-10 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN106303664A (en) * 2016-10-13 2017-01-04 合信息技术(北京)有限公司 Video broadcasting method and device
CN106572379A (en) * 2016-10-18 2017-04-19 深圳市云宙多媒体技术有限公司 Method and device for playing picture-in-picture in web video
CN106792089A (en) * 2016-12-15 2017-05-31 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device
CN108495169A (en) * 2018-03-23 2018-09-04 北京焦点新干线信息技术有限公司 Information displaying method and device
CN108366301A (en) * 2018-04-24 2018-08-03 中国广播电视网络有限公司 A kind of video suspension playback method based on Android
CN108882039A (en) * 2018-07-09 2018-11-23 北京酷我科技有限公司 A kind of method for handover control of the video playing owner
CN108777819A (en) * 2018-09-13 2018-11-09 上海二三四五网络科技有限公司 A kind of control method and control device based on browser player plays video web page

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《举手之劳打造更顺手的iOS系统》;晨光;《个人电脑》;20141215;全文 *
《基于IOS平台短视频APP的涉及与实现》;刘思尧;《中国优秀硕士学位论文全文数据库》;20171215;全文 *

Also Published As

Publication number Publication date
CN109831688A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN109831688B (en) Video suspension playing method and device based on iOS system
US10796726B2 (en) Video recording method and apparatus for mobile terminal
CN109640188B (en) Video preview method and device, electronic equipment and computer readable storage medium
CN108235086B (en) Video playing control method and device and corresponding terminal
WO2019007227A1 (en) Method and apparatus for continuing to display view after switching pages
US8776120B2 (en) Remote controller with multimedia content display and control method thereof
WO2015184745A1 (en) Method and system for displaying hover play window
US10972798B2 (en) Display method and device for attached media information
US12413819B2 (en) Video playback method and apparatus, computer device, and storage medium
JP2023535639A (en) VIDEO INTERACTION METHOD, APPARATUS, DEVICE AND STORAGE MEDIUM
CN102090043A (en) Synchronization of real-time media playback status
JP7729927B2 (en) Audio processing method, device, electronic device, and storage medium
CN113727170A (en) Video interaction method, device, equipment and medium
CN103618959A (en) Method and device for video playing
US20170353705A1 (en) Method for processing signals with operating state-dependent handling of multimedia attributes and electronic device thereof
EP2460350B1 (en) Video reproduction apparatus, control method thereof, and computer-readable storage medium storing program
EP4589961A1 (en) Playback control method and apparatus, electronic device and storage medium
US20130031477A1 (en) Mode notifications
CN114786063A (en) Audio and video processing method, device and equipment and storage medium
CN110062287B (en) Target object control method and device, storage medium and electronic equipment
CN106406898A (en) Banner display method and device and electronic equipment
CN109144354B (en) Method and equipment for rotating player view layer
CN113778575A (en) Image processing method and device and electronic equipment
CN112637409B (en) Content output method and device and electronic equipment
US20220385985A1 (en) Method and apparatus for video processing

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

Effective date of registration: 20210104

Address after: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Applicant after: SHANDONG YUNMAN INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 250100 First Floor of R&D Building 2877 Kehang Road, Sun Village Town, Jinan High-tech Zone, Shandong Province

Applicant before: SHANDONG INSPUR BUSINESS SYSTEM Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Patentee after: Shandong Inspur Yunman Intelligent Technology Co.,Ltd.

Address before: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Patentee before: SHANDONG YUNMAN INTELLIGENT TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Patentee after: Shandong Inspur Ultra HD Video Industry Co.,Ltd.

Address before: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Patentee before: Shandong Inspur Yunman Intelligent Technology Co.,Ltd.