CN109144611B - Android definition switching method and device, terminal and readable medium - Google Patents

Android definition switching method and device, terminal and readable medium Download PDF

Info

Publication number
CN109144611B
CN109144611B CN201811020652.6A CN201811020652A CN109144611B CN 109144611 B CN109144611 B CN 109144611B CN 201811020652 A CN201811020652 A CN 201811020652A CN 109144611 B CN109144611 B CN 109144611B
Authority
CN
China
Prior art keywords
textureview
definition
code stream
image view
stream information
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
CN201811020652.6A
Other languages
Chinese (zh)
Other versions
CN109144611A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811020652.6A priority Critical patent/CN109144611B/en
Publication of CN109144611A publication Critical patent/CN109144611A/en
Application granted granted Critical
Publication of CN109144611B publication Critical patent/CN109144611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an Android definition switching method, an Android definition switching device, a terminal and a readable medium, wherein the method comprises the following steps: when a definition switching event is monitored, acquiring current frame data played by a TextureView object, constructing a timer and setting a time period; before the timer is overtime, carrying out Gaussian blur processing on current frame data to obtain Gaussian blur data, and adding an image view with the Gaussian blur data to the top layer of the TextureView object; when code stream information after the definition is switched is acquired, judging whether a timer is overtime or not; if not, stopping the timer, removing the image view from the TextureView object, and controlling the TextureView object to play code stream information; if yes, closing the loading page started by the timer in time-out, and controlling the TextureView object to play code stream information. According to the Android definition switching method, the Android definition switching device, the Android definition switching terminal and the readable medium, the definition switching experience of a user is improved.

Description

Android definition switching method and device, terminal and readable medium
Technical Field
The embodiment of the invention relates to a computer technology, in particular to an Android definition switching method, an Android definition switching device, a terminal and a readable medium.
Background
When the Android terminal is used for pulling network audio and video resources (such as watching live broadcast), a user can perform definition switching according to requirements. The definition switching method generally includes acquiring a code stream address of the definition after switching through an HTTP request, and acquiring corresponding code stream information by accessing the code stream address. In the existing process of acquiring code stream information, a view presented by a player is usually a blank screen page or a loading page (also a loading page), so that a user obviously feels that a break time exists between code stream information before playing switching and code stream information after playing switching, and the user's definition switching experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide an Android sharpness switching method, an Android sharpness switching device, a terminal, and a readable medium, so as to improve sharpness switching experience of a user.
In a first aspect, an embodiment of the present invention provides an Android sharpness switching method, including:
when a definition switching event is monitored, acquiring current frame data of code stream information played by a TextureView object, constructing a loading page timer, determining the time period of the loading page timer, and setting the loading page timer according to the time period;
before the loading page timer is overtime, carrying out Gaussian blur processing on the acquired current frame data to obtain Gaussian blur data of the current frame data, setting the Gaussian blur data into an image view with layout parameters identical to those of a TextureView object, adding the image view with the Gaussian blur data to the top layer of the TextureView object, and acquiring code stream information after the definition is switched;
when code stream information after the definition is switched is acquired, judging whether the loaded page timer is overtime or not;
if not, stopping the page loading timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
if so, when the loading page closing timer is overtime, removing the image view from the TextureView object and controlling the TextureView object to play the code stream information after the definition is switched.
Optionally, the determining a time period for loading the page timer includes:
and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate when the definition switching event is monitored.
Optionally, the determining a time period for loading the page timer according to the monitored remaining rate of the CPU, remaining rate of the memory, and remaining rate of the network speed when the resolution switching event is monitored includes:
when a definition switching event is monitored, calling a CPU utilization rate obtaining method to obtain the CPU utilization rate, and determining the CPU residual rate according to the CPU utilization rate;
calling a memory information object acquisition method of an ActivityManager object to acquire a memory information object, calling an available memory acquisition method of the memory information object to acquire an available memory, calling a total memory acquisition method of the memory information object to acquire a total memory, and determining a memory surplus rate according to the available memory and the total memory;
acquiring the current network speed, calling a network type object acquisition method of a connManager object to acquire the network type object, acquiring a bandwidth corresponding to the network type object according to a preset network type object-bandwidth mapping relation, and determining the network surplus rate according to the current network speed and the bandwidth;
and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate.
Optionally, the determining a time period for loading the page timer according to the CPU remaining rate, the memory remaining rate, and the network speed remaining rate includes:
determining the time period for loading the page timer according to a formula T ═ K/(C ═ M ×) N;
wherein, T is the time period of loading the page timer, K is the adjusting parameter, C is the CPU residual rate, M is the memory residual rate, and N is the network speed residual rate.
Optionally, the performing gaussian blur processing on the acquired current frame data to obtain gaussian blur data of the current frame data, setting the gaussian blur data to an image view with layout parameters identical to those of the TextureView object, and adding the image view with the gaussian blur data to the top layer of the TextureView object includes:
calling a Gaussian fuzzy manager object construction method to construct a Gaussian fuzzy manager object;
calling a Gaussian algorithm of a Gaussian blur manager object to perform Gaussian blur processing on the current frame data to obtain Gaussian blur data of the current frame data;
calling an image view construction method to construct an image view, and setting layout parameters of the image view according to the layout parameters of the TextureView object;
calling an image setting method of an image view, and setting the Gaussian blur data into the image view;
and calling a view adding method of the TextureView object, and adding the image view provided with the Gaussian blur data to the top layer of the TextureView object.
Optionally, the acquiring code stream information after the definition switching includes:
acquiring a Uniform Resource Locator (URL) corresponding to the code stream information after the definition is switched;
setting the URL corresponding to the code stream information after the definition is switched into a player object corresponding to the TextureView object by calling a URL setting method;
and receiving the code stream information after the definition is switched by the player object corresponding to the TextureView object.
Optionally, before the monitoring of the sharpness switching event, the method includes:
defining a view bearing control of a TextureView class in a page layout file, and setting layout parameters and ID information of the view bearing control;
calling a view bearing control acquiring method according to the ID information of the view bearing control, acquiring the view bearing control, and marking the acquired view bearing control as a TextureView object;
binding the TextureView object with a player object by a view binding method of the player object; and the TextureView object plays the code stream information acquired by the bound player object.
In a second aspect, an embodiment of the present invention provides an Android sharpness switching apparatus, including:
the definition switching event monitoring module is used for acquiring current frame data of code stream information played by the TextureView object when a definition switching event is monitored, constructing a loading page timer, determining the time period of the loading page timer and setting the loading page timer according to the time period;
the Gaussian blur data setting module is used for performing Gaussian blur processing on the acquired current frame data to obtain Gaussian blur data of the current frame data before the loaded page timer is overtime, setting the Gaussian blur data into an image view with layout parameters identical to those of the TextureView object, adding the image view with the Gaussian blur data set to the top layer of the TextureView object, and acquiring code stream information after the definition is switched;
the definition switching module is used for judging whether the loaded page timer is overtime or not when the code stream information after definition switching is acquired;
if not, stopping the page loading timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
if so, when the loading page closing timer is overtime, removing the image view from the TextureView object and controlling the TextureView object to play the code stream information after the definition is switched.
In a third aspect, an embodiment of the present invention provides a terminal, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the Android sharpness switching method according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the Android sharpness switching method according to any embodiment of the present invention.
According to the Android definition switching method, the Android definition switching device, the Android terminal and the Android readable medium, when a definition switching event is monitored, current frame data of code stream information played by a TextureView object is acquired, a timer is built, and a time period is set; before the timer is overtime, carrying out Gaussian blur processing on current frame data to obtain Gaussian blur data, adding an image view with the Gaussian blur data to the top layer of a TextureView object, and acquiring code stream information after the definition is switched; when code stream information after the definition is switched is acquired, judging whether a timer is overtime or not; if not, stopping the timer, removing the image view from the TextureView object, and controlling the TextureView object to play code stream information; if yes, closing the loading page opened after removing the image view from the TextureView object when the timer is overtime, and controlling the TextureView object to play code stream information.
It can be understood that, in the process of acquiring the code stream information after the definition is switched, the view presented by the player before the timeout of the loaded page timer is an image view of gaussian fuzzy data of the last frame of data of the code stream information before the definition is switched, and the view presented by the player after the timeout of the loaded page timer is a loaded page. After the code stream information after the definition is switched is obtained, if the timer is not overtime, removing the image view with the Gaussian blur data, and controlling the TextureView object to play the code stream information after the definition is switched; if the timer is overtime, closing the loading page opened when the timer is overtime, and controlling the TextureView object to play the code stream information after the definition is switched. When the time consumed for acquiring the code stream information after the definition is switched is short, the sensory experience of a user is that the code stream information before the definition is switched is not stopped, and the code stream information after the definition is switched is directly played, so that the seamless switching of the definition on the sensory experience of the user is realized; when the time consumed for acquiring the code stream information after the definition conversion is long, the image view provided with the Gaussian blur data does not stay too long in the player, and the presentation time of the loaded page is shortened, so that the definition switching experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, 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 an Android sharpness switching method according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an Android sharpness switching apparatus according to a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying 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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of an Android definition switching method according to an embodiment of the present invention, where the embodiment is applicable to an Android definition switching situation, and the method may be implemented by a terminal, and specifically may be implemented by software and/or hardware in the terminal. Referring to fig. 1, the Android sharpness switching method includes the following steps:
s110, when a definition switching event is monitored, acquiring current frame data of code stream information played by the TextureView object, constructing a loading page timer, determining the time period of the loading page timer, and setting the loading page timer according to the time period.
When the Android terminal is used for pulling network audio and video resources (for example, watching live broadcast), a user can switch definition according to requirements, and specifically can switch definition by clicking a definition button control corresponding to a player object. Wherein, the view bearing control of the TextureView class belongs to one of the view bearing controls of the player. The player object can receive the code stream information corresponding to the set URL after setting the uniform resource locator URL, and can play the received code stream information through the TextureView object corresponding to the player object.
Wherein, monitoring the sharpness switching event comprises:
and monitoring the occurrence of a click event of the definition switching button through a preset definition switching button monitor.
The definition of the audio and video resources can be switched by clicking a definition switching button control corresponding to the player object; the monitor can be added on the definition switching button control to monitor whether the definition switching button has a click event.
The method for adding the monitor to the definition switching button control specifically may be:
btn.setOnClickListener(myListener);
btn is the name of the definition switch button control to indicate the definition switch button, and the name of the definition switch button is not limited to btn; the method comprises the steps that a monitor capable of monitoring a click event of a definition switching button control can be arranged through a setOnClickListener method; when the monitor monitors a click event of the definition switching button, the myListener method can be actively called back; the myListener method is used for completing acquisition of code stream information after definition switching.
The method for acquiring the current frame data of the code stream information played by the TextureView object can be specifically realized by the following method:
mTextureView.getBitmap();
wherein, mTextureView is the name of the TextureView object for representing the TextureView object, and the name of the TextureView object is not limited to mTextureView; the frame data of the code stream information currently played by the TextureView object can be obtained by the get method of the TextureView object; the current frame data of the code stream information played by the acquired TextureView object is BitMap data of a BitMap class; the obtained current frame data may also be named mBitMap to represent the obtained current frame data, and the current frame data name is not limited to the mBitMap.
Specifically, a load page Timer may be constructed by using a Timer mTimer ═ new Timer () function; mTimer is a name of a page loading timer, and can represent the page loading timer, and the name of the page loading timer is not limited to mTimer; wherein, a Timer type loading page Timer can be newly established through the new function.
Optionally, determining a time period for loading the page timer includes:
and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate when the definition switching event is monitored.
The time-consuming duration for acquiring the code stream information after the definition is switched is related to factors such as the CPU residual rate, the memory residual rate and the network speed residual rate. The time period for loading the page timer is determined according to the CPU residual rate, the memory residual rate and the network speed residual rate when the definition switching event is monitored, and the time period for loading the page timer is expected to be close to the time consumption duration for acquiring code stream information after definition switching.
The purpose of this is that, in the time period of loading the page timer (i.e. in the time of acquiring the code stream information after the definition is switched, it can also be understood as the definition switching preparation stage), the page presented by the player is an image view of the gaussian fuzzy data of the last frame of data of the code stream information before the definition is switched; when the loading page timer is overtime (namely when the code stream information after the definition is switched is successfully acquired, the definition switching preparation can be understood to be completed), the image view is replaced by the loading page, and the presenting time of the loading page in the player is only equal to the time when the player is opened when the code stream information is to be acquired, so that the presenting time of the loading page is very short, and the experience of rapidly switching the definition is provided for a user.
In practice, due to the sudden change of the CPU residual rate, the memory residual rate, the network speed residual rate, and other factors, the time period for loading the page timer is very short and is not equal to the time-consuming duration for acquiring the code stream information after the definition is switched. At this time, if the code stream information after the definition switching is not successfully acquired after the loaded page timer is overtime, the image view with the gaussian fuzzy data needs to be switched to the loaded page, so that the image view with the gaussian fuzzy data is prevented from staying in the player for too long time; if the loading page timer is not overtime, the code stream information after the definition is switched is successfully acquired, the step of switching to the loading page can be directly skipped, and when the player presents the image view of the Gaussian fuzzy data, the acquired code stream information is opened, so that the user sensory experience is that the code stream information before the definition is switched is not stopped, the code stream information after the definition is switched is directly played, and the seamless switching of the definition on the user sensory sense is realized.
Further, determining a time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate when the resolution switching event is monitored, includes:
when a definition switching event is monitored, calling a CPU utilization rate obtaining method to obtain the CPU utilization rate, and determining the CPU residual rate according to the CPU utilization rate; calling a memory information object acquisition method of an ActivityManager object to acquire a memory information object, calling an available memory acquisition method of the memory information object to acquire an available memory, calling a total memory acquisition method of the memory information object to acquire a total memory, and determining a memory surplus rate according to the available memory and the total memory; acquiring the current network speed, calling a network type object acquisition method of a connManager object to acquire the network type object, acquiring a bandwidth corresponding to the network type object according to a preset network type object-bandwidth mapping relation, and determining the network surplus rate according to the current network speed and the bandwidth; and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate.
The method for acquiring the CPU utilization rate specifically may be:
Runtime.getRunttime().exec("top");
wherein, the Runtime is a Runtime class inherent in the Android system; the Runtime object is obtained through the get method, and the top command can be called through an exec method in the Runtime class and is used for looking up the current CPU utilization rate. After the CPU utilization rate is obtained, subtracting the CPU utilization rate from 1 to obtain the CPU residual rate.
Wherein, the Android system can be used for getSystemservice (ACTIVICE) in the Android system; the method may obtain an ActivityManager object of ActivityManager type, which may be labeled mActitymanager, for example. The memory information object obtaining method of the ActivityManager object can be mActivitiymanager. The MemoryInfo is the memory information object of the system. The available memory obtaining method may be meminfo. The total memory obtaining method may be meminfo. The remaining rate of the memory can be obtained by dividing the available memory by the total memory method meminfo.
The current network speed can be obtained by the existing standard network speed obtaining method. The connManager object may be obtained by calling a getSystemService (context _ connection _ SERVICE) method of the system. The networklnfo object may be obtained by calling a getnetworklnfo method of the connManager object, and may specifically be the connManager. getSubtypeName () in the NetworkInfo can then be called to get a specific network type object. The network type object may include a mobile network (e.g., 2/3/4G mobile network) and may also include a Wireless-Fidelity (WI-FI), among others. And the preset network type object-bandwidth mapping relation comprises bandwidths corresponding to different network type objects. Wherein, the network residual rate can be determined by 1-current network speed/bandwidth.
Further, determining a time period for loading the page timer according to the CPU residual rate, the memory residual rate, and the network speed residual rate includes:
determining the time period for loading the page timer according to a formula T ═ K/(C ═ M ×) N; wherein, T is the time period of loading the page timer, K is the adjusting parameter, C is the CPU residual rate, M is the memory residual rate, and N is the network speed residual rate. The research and development personnel can modify the K value according to the actual situation.
After the time period T is determined, a function of mtimer. Wherein, the unit T is ms, which represents the timing period of the page loading timer; after the loading page timer is overtime, a task may be executed, and in the embodiment of the present invention, for example, a loading page may be opened.
S120, before the loading page timer is overtime, Gaussian blur processing is carried out on the obtained current frame data to obtain Gaussian blur data of the current frame data, the Gaussian blur data are set into an image view with layout parameters identical to those of the TextureView object, the image view with the Gaussian blur data set is added to the top layer of the TextureView object, and code stream information after definition switching is obtained.
The process of acquiring Gaussian blur data, setting the Gaussian blur data to an image view, trying to add an image to the top layer of the TextureView object and the process of acquiring code stream information after the definition is switched are carried out simultaneously. It is understood that the process of acquiring gaussian blur data, setting gaussian blur data to the image view, and attempting to add an image to the top level of a TextureView object, is performed simultaneously with the sharpness switch preparation phase.
Optionally, the gaussian blur processing is performed on the obtained current frame data to obtain gaussian blur data of the current frame data, the gaussian blur data is set to an image view with layout parameters identical to those of the TextureView object, and the image view with the gaussian blur data set is added to the top layer of the TextureView object, including:
calling a Gaussian fuzzy manager object construction method to construct a Gaussian fuzzy manager object; calling a Gaussian algorithm of a Gaussian blur manager object to perform Gaussian blur processing on current frame data to obtain Gaussian blur data of the current frame data; calling an image view construction method to construct an image view, and setting layout parameters of the image view according to the layout parameters of the TextureView object; calling an image setting method of an image view, and setting Gaussian fuzzy data into the image view; and calling a view adding method of the TextureView object, and adding the image view provided with the Gaussian blur data to the top layer of the TextureView object.
The method for constructing the gaussian fuzzy manager object specifically may be:
StackBlurManager mStackBlurManager=new StackBlurManager(mBitMap);
wherein, StackBlurManager represents a Gaussian fuzzy manager class; wherein, the mstackblurmManager is the name of the Gaussian blur manager object and is used for representing the Gaussian blur manager object, and the name of the Gaussian blur manager object is not limited to the mstackblurmManager; wherein, an mStackBlurManager object of the StackBlurManager type can be newly established by a new method; the mBitMap represents the acquired current frame data, is a parameter of the mstackblurmager object, and may be understood as transferring the current frame data to the gaussian fuzzy manager object, so that the gaussian fuzzy manager object may process the current frame data.
The gaussian algorithm of the gaussian fuzzy manager object may specifically be:
mstackBlurManager.process();
wherein, the mStackBlurManager is used for representing the Gaussian blur manager object; the input parameter mBitMap transmitted during the construction of the mDataCKBlurManager object can be subjected to Gaussian blur processing through a process method of the mDataKBlurManager, the mBitMap object after the Gaussian blur processing is returned, the mBitMap object after the Gaussian blur processing can be named as mBlurBitMap and used for representing Gaussian blur data of the previous frame data, and the name of the Gaussian blur data is not limited to the mBlurBitMap.
By constructing the Gaussian blur processor object, the Gaussian blur processing can be performed on the current frame data transmitted to the Gaussian blur manager object, so that the Gaussian blur data of the current frame data is obtained, and a foundation is laid for the player to present the Gaussian blur data of the current frame data.
The image view construction method may specifically be:
ImageView mImageView=new ImageView();
the mImageView is the name of the image view and can represent the image view, and the image view name is not limited to the mImageView; an image view of the ImageView type can be newly established by a new method.
The layout parameters may include height, width, and other information; wherein the layout parameters of the image view may be set to be the same as the layout parameters of the TextureView object so that the TextureView object may be perfectly covered when the image view is added to the top layer of the TextureView object. Therefore, when the Gaussian blur data is set in the image view and added to the TextureView object, the player view only presents the image view with the Gaussian blur data, so that the user sensory experience is not stopped before the definition is switched.
Further, setting the layout parameters of the image view according to the layout parameters of the TextureView object comprises:
calling a layout parameter object acquisition method to acquire a layout parameter object; assigning values to the layout parameter objects according to the layout parameters of the TextureView objects; and setting the layout parameters of the image view according to the assigned layout parameter object.
The method for acquiring the layout parameter object may specifically be:
ViewGroup.LayoutParams params=new ViewGroup.LayoutParams();
wherein params is a name of the layout parameter object, and may represent a layout parameter object of a type of viewgroup. And a layout parameter object of a ViewGroup. LayoutParams type can be newly established by a new method.
Wherein, assigning values to the layout parameter object according to the layout parameters of the TextureView object, which may specifically be:
params.width=mTextureView.getWidth();
params.height=mTextureView.getHeight();
wherein mTextureView may represent a TextureView object; wherein, the values of the Width and Height of mTextureView can be obtained by the get method of mTextureView; wherein, the assignment of the layout parameter object can be completed by assigning the Width of mTextureView to params.
Wherein, setting the layout parameters of the image view according to the assigned layout parameter object may specifically be:
mImageView.setLayoutParams(params);
wherein mImageView may represent an image view; the method of setLayoutParams can be used for setting the width and the height of the mImageView of the image view according to the params.width and the params.height of the assigned layout parameter object params, namely the setting of the layout parameters of the image view is realized.
The layout parameter object can be used as a link between the layout parameter of the TextureView object and the layout parameter of the image view, so that the setting efficiency of the layout parameter of the image view is improved. And the layout parameters of the image view are set to be the same as those of the TextureView object so that the TextureView object can be perfectly covered when the image view is added to the top layer of the TextureView object.
The image setting method of the image view may specifically be:
mImageView.setImage(mBlurBitMap);
wherein mImageView can represent an image view, and mBlurBitMap can represent Gaussian blur data of the previous frame data; wherein, the gaussian blur data can be set into the image view by the setImage method.
The view adding method of the TextureView object may specifically be:
mTextureView.addView(mImageView);
the system comprises a TextureView object, a mImageView, a reference image and a reference image, wherein the textureView object can be represented, and the mImageView can represent an image view after Gaussian blur data is set; wherein, the image view with the Gaussian blur data set can be added to the top layer of the TextureView object by the addView method.
Optionally, obtaining the code stream information after the definition is switched includes:
acquiring a Uniform Resource Locator (URL) corresponding to the code stream information after the definition is switched;
setting the URL corresponding to the code stream information after the definition is switched into a player object corresponding to the TextureView object by calling a URL setting method;
and receiving the code stream information after the definition is switched by the player object corresponding to the TextureView object.
The URL corresponding to the code stream information after the definition switching can be acquired after the definition switching button control is clicked, and the URL corresponding to the code stream information after the definition switching can be acquired in other modes; the URL setting method may specifically be an mmedia player, setUrl () method, where the mmedia player may represent a player object, and a URL corresponding to the bitstream information after the definition switching may be set in the player object by the setUrl method; the player object can download the code stream information by accessing the URL and store the code stream information.
S130, when the code stream information after the definition is switched is acquired, whether the page loading timer is overtime or not is judged.
When the code stream information after the definition switching is successfully acquired, the definition switching code stream information can be downloaded and stored, and the definition switching preparation can be also understood to be completed. Wherein, whether the loading timer is overtime can be judged by checking the current timing progress of the loading page timer.
S140, if not, stopping loading the page timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
the code stream information for controlling the TextureView object to play after the definition is switched may specifically be that the playing logic is started by calling an mhediplayer _ start () method in a player object mhediplayer. The method can be understood that the image view still appears in the player in the time period when the TextureView object is successfully played from the beginning of playing to the code stream information after the definition is switched; and removing the image view from the TextureView object when the code stream information after the definition is switched is successfully played by the TextureView object.
Wherein removing the image view from the TextureView object comprises:
a view removal method of the TextureView object is called to remove the image view from the TextureView object. The view removing method of the TextureView object may specifically be:
mTextureView.removeView(mImageView);
wherein mTextureView may represent a TextureView object, and mImageView may represent an image view after Gaussian blur data is set; wherein the image view after the gaussian blur data is set can be removed from the TextureView object by the removeView method.
S150, if yes, the loading page started after the image view is removed from the TextureView object when the loading page timer is closed and the TextureView object is controlled to play the code stream information after the definition is switched.
If the loading page timer is overtime when the code stream information after the definition switching is acquired, the time for acquiring the code stream information after the definition switching is proved to be too long. In this case, when the loading page timer is overtime, and the acquisition of the code stream information after the resolution is switched is not completed, the image view with the gaussian fuzzy data can be switched to the loading page, so that the image view with the gaussian fuzzy data is prevented from staying in the player for too long. And when the code stream information after the definition is switched is successfully acquired, controlling the TextureView object to play the code stream information after the definition is switched. In the time period of successful playing of the TextureView object, the loaded page is still presented in the player from the start of playing to the code stream information after the definition is switched; and removing the loaded page from the TextureView object when the code stream information after the definition is switched is successfully played in the TextureView object.
Optionally, before the monitoring of the sharpness switching event, the method includes:
defining a view bearing control of a TextureView class in a page layout file, and setting layout parameters and ID information of the view bearing control; calling a view bearing control acquiring method according to the ID information of the view bearing control, acquiring the view bearing control, and marking the acquired view bearing control as a TextureView object; binding the TextureView object with the player object by using a view binding method of the player object; and the TextureView object plays the code stream information acquired by the bound player object.
Wherein, a view bearing control of a TextureView class is defined in the page layout file, specifically, the view bearing control can be < TextureView > </TextureView >, and the view bearing control of the TextureView class can be declared in the XML layout file through the tag.
The layout parameters of the view bearing control comprise width and height information of the view bearing control, and the width and the height of the view bearing control can be respectively defined by writing statements android in the view bearing control, wherein the statements android comprise 100dp in width and 80dp in height; wherein, 100 and 80 can represent the values of the width and the height of the view bearing control, and the two values can be changed according to the actual requirement; where dp can be understood as a virtual pixel px, it will automatically adapt on devices with different pixel densities, such as: at 320 × 480 resolution, pixel density 160, 1dp ═ 1 px; 1dp is 1.5px at 480 × 800 resolution on a device with a pixel density of 240; wherein dp and px are calculated according to the formula: pixel density/160 actual number of pixels 1 dp. Wherein the layout parameters of the view bearer control can be inherited into the TextureView object.
The view bearing control can specify ID information through android, wherein the ID information of the view bearing control is a link for establishing connection between the code layer and the view layer. The method for obtaining the view bearing control is called according to the ID information of the view bearing control, specifically, findviewbeyid (r.id.texture _ view), the view bearing control can be obtained by searching the ID information of the view bearing control, and the obtained view bearing control can be marked as a TextureView object.
The view binding method of the player object may specifically be mdmediaplayer, wherein the mdmediaplayer may represent the player object, and wherein the TextureView object mTextureView may be bound to the player object mdmediaplayer by the bindView method, so that the TextureView object may play code stream information acquired by the mdediplayer.
The acquired preset TextureView object is bound with the player object, so that frame data can be played on the TextureView object, and a precondition is provided for the definition switching of the player.
According to the Android definition switching method provided by the embodiment, when a definition switching event is monitored, current frame data of code stream information played by a TextureView object is acquired, a timer is constructed, and a time period is set; before the timer is overtime, carrying out Gaussian blur processing on current frame data to obtain Gaussian blur data, adding an image view with the Gaussian blur data to the top layer of a TextureView object, and acquiring code stream information after the definition is switched; when code stream information after the definition is switched is acquired, judging whether a timer is overtime or not; if not, stopping the timer, removing the image view from the TextureView object, and controlling the TextureView object to play code stream information; if yes, closing the loading page opened after removing the image view from the TextureView object when the timer is overtime, and controlling the TextureView object to play code stream information.
It can be understood that, in the process of acquiring the code stream information after the definition is switched, the view presented by the player before the timeout of the loading page timer is an image view of gaussian fuzzy data of the last frame of data of the code stream information before the definition is switched, and the view presented by the player after the timeout of the loading page timer is a loading page; after the code stream information after the definition is switched is obtained, if the timer is not overtime, removing the image view with the Gaussian blur data, controlling the TextureView object to play the code stream information after the definition is switched, if the timer is overtime, closing a loading page opened when the timer is overtime, and controlling the TextureView object to play the code stream information after the definition is switched. When the time consumed for acquiring the code stream information after the definition is switched is short, the sensory experience of a user is that the code stream information before the definition is switched is not stopped, and the code stream information after the definition is switched is directly played, so that the seamless switching of the definition on the sensory experience of the user is realized; under the condition that the time consumption of code stream information after the definition conversion is obtained is long, the image view provided with Gaussian fuzzy data does not stay too long in a player, the presentation time of a loaded page is shortened, and therefore the definition switching experience of a user is improved.
Example two
Fig. 2 is a schematic structural diagram of an Android definition switching device according to a second embodiment of the present invention, which is applicable to an Android definition switching situation.
Referring to fig. 2, the Android sharpness switching apparatus in this embodiment includes:
a definition switching event monitoring module 210, configured to, when a definition switching event is monitored, obtain current frame data of code stream information played by the TextureView object, construct a loading page timer, determine a time period of the loading page timer, and set the loading page timer according to the time period;
the gaussian fuzzy data setting module 220 is used for performing gaussian fuzzy processing on the acquired current frame data before the loaded page timer is overtime to obtain gaussian fuzzy data of the current frame data, setting the gaussian fuzzy data into an image view with layout parameters identical to those of the TextureView object, adding the image view with the gaussian fuzzy data to the top layer of the TextureView object, and acquiring code stream information after the definition is switched;
the definition switching module 230, when acquiring the code stream information after the definition is switched, determines whether the loading page timer is overtime;
if not, stopping loading the page timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
if so, when the loading page closing timer is overtime, removing the image view from the TextureView object and controlling the TextureView object to play the code stream information after the definition is switched.
Optionally, the sharpness switching event monitoring module 210 includes:
and the time period determining submodule is used for determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate when the definition switching event is monitored.
Further, the time period determination sub-module may include:
the CPU surplus rate determining unit is used for calling a CPU utilization rate obtaining method to obtain the CPU utilization rate when a definition switching event is monitored, and determining the CPU surplus rate according to the CPU utilization rate;
the memory surplus rate determining unit is used for calling a memory information object obtaining method of the ActivityManager object to obtain a memory information object, calling an available memory obtaining method of the memory information object to obtain an available memory, calling a total memory obtaining method of the memory information object to obtain a total memory, and determining the memory surplus rate according to the available memory and the total memory;
a network surplus rate determining unit, configured to obtain a current network speed, call a network type object obtaining method of the connManager object to obtain the network type object, obtain a bandwidth corresponding to the network type object according to a preset network type object-bandwidth mapping relationship, and determine a network surplus rate according to the current network speed and the bandwidth;
and the time period determining unit is used for determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate.
Further, the time period determination unit is specifically configured to:
determining the time period for loading the page timer according to a formula T ═ K/(C ═ M ×) N;
wherein, T is the time period of loading the page timer, K is the adjusting parameter, C is the CPU residual rate, M is the memory residual rate, and N is the network speed residual rate.
Optionally, the gaussian fuzzy data setting module 220 includes:
the Gaussian fuzzy management object constructing submodule is used for calling a Gaussian fuzzy manager object constructing method to construct a Gaussian fuzzy manager object;
the Gaussian fuzzy data determining submodule is used for calling a Gaussian algorithm of a Gaussian fuzzy manager object to perform Gaussian fuzzy processing on the current frame data to obtain Gaussian fuzzy data of the current frame data;
the layout parameter setting submodule is used for calling an image view construction method to construct an image view and setting the layout parameters of the image view according to the layout parameters of the TextureView object;
the image view setting submodule is used for calling an image setting method of the image view and setting the Gaussian blur data into the image view;
and the image view adding sub-module calls a view adding method of the TextureView object and adds the image view provided with the Gaussian blur data to the top layer of the TextureView object.
Optionally, the gaussian fuzzy data setting module 220 further includes:
the uniform resource locator obtaining submodule is used for obtaining a uniform resource locator URL corresponding to the code stream information after the definition is switched;
the URL setting submodule is used for setting the URL corresponding to the code stream information after the definition is switched into a player corresponding to the TextureView object by calling a URL setting method;
and the code stream information acquisition submodule is used for receiving the code stream information after the definition is switched by the player corresponding to the TextureView object.
Optionally, the Android definition switching device further includes:
the view bearing control definition module is used for defining a view bearing control of a TextureView class in a page layout file and setting the layout parameter and the ID information of the view bearing control;
the TextureView object acquisition module is used for calling a view bearing control acquisition method according to the ID information of the view bearing control, acquiring the view bearing control and marking the acquired view bearing control as a TextureView object;
the binding module is used for binding the TextureView object with the player object by the view binding method of the player object; and the TextureView object plays the code stream information acquired by the bound player object.
The Android definition switching device provided in this embodiment is the same as the Android definition switching method provided in the first embodiment, and the technical details not described in detail in this embodiment may be referred to in the first embodiment.
EXAMPLE III
The embodiment provides a terminal which can be used for Android definition switching. Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. Referring to fig. 3, the terminal includes:
one or more processors 310;
a memory 320 for storing one or more programs;
when the one or more programs are executed by the one or more processors 310, the one or more processors 310 implement the Android sharpness switching method as provided in the first embodiment.
In FIG. 3, a processor 310 is illustrated as an example; the processor 310 and the memory 320 may be connected by a bus or other means, such as the bus connection shown in FIG. 3.
The memory 320 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the Android sharpness switching method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the terminal by running software programs, instructions and modules stored in the memory 320, that is, the Android sharpness switching method is implemented.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal and the Android sharpness switching method provided in the first embodiment belong to the same inventive concept, and technical details not described in detail in the first embodiment may be referred to in the first embodiment.
Example four
The present embodiment provides a readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the Android sharpness switching method as set forth in the first embodiment.
The readable medium provided by the embodiment and the Android sharpness switching method provided by the first embodiment belong to the same inventive concept, and technical details not described in detail in the embodiment can be referred to the first embodiment, and the first embodiment have the same beneficial effects.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. An Android definition switching method is characterized by comprising the following steps:
when a definition switching event is monitored, acquiring current frame data of code stream information played by a TextureView object, constructing a loading page timer, determining the time period of the loading page timer, and setting the loading page timer according to the time period;
before the loading page timer is overtime, carrying out Gaussian blur processing on the acquired current frame data to obtain Gaussian blur data of the current frame data, setting the Gaussian blur data into an image view with layout parameters identical to those of a TextureView object, adding the image view with the Gaussian blur data to the top layer of the TextureView object, and acquiring code stream information after the definition is switched;
when code stream information after the definition is switched is acquired, judging whether the loaded page timer is overtime or not;
if not, stopping the page loading timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
if yes, closing a loading page started after the image view is removed from the TextureView object when the loading page timer is overtime, and controlling the TextureView object to play the code stream information after the definition is switched;
the method comprises the steps of performing Gaussian blur processing on the acquired current frame data to obtain Gaussian blur data of the current frame data, setting the Gaussian blur data into an image view with layout parameters identical to those of a TextureView object, and adding the image view with the Gaussian blur data to the top layer of the TextureView object, and comprises the following steps:
calling a Gaussian fuzzy manager object construction method to construct a Gaussian fuzzy manager object;
calling a Gaussian algorithm of a Gaussian blur manager object to perform Gaussian blur processing on the current frame data to obtain Gaussian blur data of the current frame data;
calling an image view construction method to construct an image view, and setting layout parameters of the image view according to the layout parameters of the TextureView object;
calling an image setting method of an image view, and setting the Gaussian blur data into the image view;
and calling a view adding method of the TextureView object, and adding the image view provided with the Gaussian blur data to the top layer of the TextureView object.
2. The method of claim 1, wherein determining the time period for loading the page timer comprises:
and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate when the definition switching event is monitored.
3. The method of claim 2, wherein determining the time period for loading the page timer according to the remaining rate of the CPU, the remaining rate of the memory, and the remaining rate of the network speed when the resolution switch event is monitored comprises:
when a definition switching event is monitored, calling a CPU utilization rate obtaining method to obtain the CPU utilization rate, and determining the CPU residual rate according to the CPU utilization rate;
calling a memory information object acquisition method of an ActivityManager object to acquire a memory information object, calling an available memory acquisition method of the memory information object to acquire an available memory, calling a total memory acquisition method of the memory information object to acquire a total memory, and determining a memory surplus rate according to the available memory and the total memory;
acquiring the current network speed, calling a network type object acquisition method of a connManager object to acquire the network type object, acquiring a bandwidth corresponding to the network type object according to a preset network type object-bandwidth mapping relation, and determining the network surplus rate according to the current network speed and the bandwidth;
and determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate.
4. The method of claim 3, wherein determining the time period for loading the page timer according to the CPU residual rate, the memory residual rate and the network speed residual rate comprises:
determining the time period for loading the page timer according to a formula T ═ K/(C ═ M ×) N;
wherein, T is the time period of loading the page timer, K is the adjusting parameter, C is the CPU residual rate, M is the memory residual rate, and N is the network speed residual rate.
5. The method according to claim 1, wherein the obtaining of the code stream information after switching definition comprises:
acquiring a Uniform Resource Locator (URL) corresponding to the code stream information after the definition is switched;
setting the URL corresponding to the code stream information after the definition is switched into a player object corresponding to the TextureView object by calling a URL setting method;
and receiving the code stream information after the definition is switched by the player object corresponding to the TextureView object.
6. The method of claim 1, prior to said monitoring for a sharpness switch event, comprising:
defining a view bearing control of a TextureView class in a page layout file, and setting layout parameters and ID information of the view bearing control;
calling a view bearing control acquiring method according to the ID information of the view bearing control, acquiring the view bearing control, and marking the acquired view bearing control as a TextureView object;
binding the TextureView object with a player object by a view binding method of the player object; and the TextureView object plays the code stream information acquired by the bound player object.
7. An Android sharpness switching device, comprising:
the definition switching event monitoring module is used for acquiring current frame data of code stream information played by the TextureView object when a definition switching event is monitored, constructing a loading page timer, determining the time period of the loading page timer and setting the loading page timer according to the time period;
the Gaussian blur data setting module is used for performing Gaussian blur processing on the acquired current frame data to obtain Gaussian blur data of the current frame data before the loaded page timer is overtime, setting the Gaussian blur data into an image view with layout parameters identical to those of the TextureView object, adding the image view with the Gaussian blur data set to the top layer of the TextureView object, and acquiring code stream information after the definition is switched;
the definition switching module is used for judging whether the loaded page timer is overtime or not when the code stream information after definition switching is acquired;
if not, stopping the page loading timer, removing the image view from the TextureView object, and controlling the TextureView object to play the code stream information after the definition is switched;
if yes, closing a loading page started after the image view is removed from the TextureView object when the loading page timer is overtime, and controlling the TextureView object to play the code stream information after the definition is switched;
the Gaussian blur data setting module comprises:
the Gaussian fuzzy management object constructing submodule is used for calling a Gaussian fuzzy manager object constructing method to construct a Gaussian fuzzy manager object;
the Gaussian fuzzy data determining submodule is used for calling a Gaussian algorithm of a Gaussian fuzzy manager object to perform Gaussian fuzzy processing on the current frame data to obtain Gaussian fuzzy data of the current frame data;
the layout parameter setting submodule is used for calling an image view construction method to construct an image view and setting the layout parameters of the image view according to the layout parameters of the TextureView object;
the image view setting submodule is used for calling an image setting method of the image view and setting the Gaussian blur data into the image view;
and the image view adding sub-module calls a view adding method of the TextureView object and adds the image view provided with the Gaussian blur data to the top layer of the TextureView object.
8. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the Android sharpness switching method of any of claims 1-6.
9. A readable medium, on which a computer program is stored, which, when being executed by a processor, implements the Android sharpness switching method of any of claims 1-6.
CN201811020652.6A 2018-09-03 2018-09-03 Android definition switching method and device, terminal and readable medium Active CN109144611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811020652.6A CN109144611B (en) 2018-09-03 2018-09-03 Android definition switching method and device, terminal and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811020652.6A CN109144611B (en) 2018-09-03 2018-09-03 Android definition switching method and device, terminal and readable medium

Publications (2)

Publication Number Publication Date
CN109144611A CN109144611A (en) 2019-01-04
CN109144611B true CN109144611B (en) 2021-07-23

Family

ID=64826505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811020652.6A Active CN109144611B (en) 2018-09-03 2018-09-03 Android definition switching method and device, terminal and readable medium

Country Status (1)

Country Link
CN (1) CN109144611B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115515005A (en) * 2021-06-07 2022-12-23 京东方科技集团股份有限公司 Method and device for acquiring cover of program switching and display equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197371B (en) * 2016-03-15 2019-12-13 广州市动景计算机科技有限公司 video definition switching method and device
CN106375836A (en) * 2016-09-27 2017-02-01 广东小天才科技有限公司 Resolution switching method and device of video
CN107801085A (en) * 2017-09-30 2018-03-13 口碑(上海)信息技术有限公司 A kind of video playing control method and device

Also Published As

Publication number Publication date
CN109144611A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN107465936B (en) Live broadcast list mirror image display method, live broadcast platform server and client
EP3627318B1 (en) Game rendering method and apparatus, terminal, and non-transitory computer-readable storage medium
CN106375789B (en) Medium living broadcast method and apparatus
CN110557670A (en) Method, device, terminal and storage medium for playing video in webpage
CN113329252B (en) Live broadcast-based face processing method, device, equipment and storage medium
CN110860086B (en) Data processing method, readable storage medium, and electronic device
CN110377391B (en) Picture display method and device, mobile terminal and storage medium
CN107333148B (en) Method for processing video frequency and device, computer storage medium and equipment
CN105786519B (en) Android device program management method and android device
CN107911709A (en) live interface display method, device and terminal
CN106990962B (en) Dynamic screen locking wallpaper switching method and device and terminal
CN109144611B (en) Android definition switching method and device, terminal and readable medium
CN109120995B (en) Video cache analysis method, device, equipment and medium
CN116319790A (en) Rendering method, device, equipment and storage medium of full-true scene
CN109842524B (en) Automatic upgrading method and device, electronic equipment and computer readable storage medium
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN106375866A (en) Page loading method and terminal
CN109144613B (en) Android definition switching method and device, terminal and readable medium
CN112492325B (en) Viewer-assisted video transcoding task allocation method and device
CN109144612B (en) Android definition switching method and device, terminal and readable medium
CN114339412A (en) Video quality enhancement method, mobile terminal, storage medium and device
CN111384753A (en) State machine-based charge control strategy design method, device, equipment and medium
CN112087646A (en) Video playing method and device, computer equipment and storage medium
CN109413457B (en) Code stream definition switching method and device for Android system, terminal and readable medium
CN108521599A (en) A kind of methods of exhibiting of virtual present, device, terminal and storage medium

Legal Events

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