WO2023098163A1 - 应用处理方法、系统、电子设备和计算机可读存储介质 - Google Patents

应用处理方法、系统、电子设备和计算机可读存储介质 Download PDF

Info

Publication number
WO2023098163A1
WO2023098163A1 PCT/CN2022/114325 CN2022114325W WO2023098163A1 WO 2023098163 A1 WO2023098163 A1 WO 2023098163A1 CN 2022114325 W CN2022114325 W CN 2022114325W WO 2023098163 A1 WO2023098163 A1 WO 2023098163A1
Authority
WO
WIPO (PCT)
Prior art keywords
vstb
tstb
video
processing method
state
Prior art date
Application number
PCT/CN2022/114325
Other languages
English (en)
French (fr)
Inventor
李金峰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023098163A1 publication Critical patent/WO2023098163A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to an application processing method, system, electronic device, and computer-readable storage medium.
  • the main purpose of the embodiments of the present disclosure is to provide an application processing method, system, electronic device, and computer-readable storage medium, so that resource consumption on the cloud can be reduced.
  • an embodiment of the present disclosure provides an application processing method, which is applied to a virtual set-top box vSTB, where a cloud application runs in the vSTB, and the method includes: receiving an interactive operation instruction for the cloud application ; In the case of determining that the interactive operation instruction is used to instruct playing audio and video, determine the uniform resource locator url of the audio and video to be played according to the interactive operation instruction; send the url to the thin set-top box tSTB, so that all The tSTB obtains and plays the audio and video to be played according to the url.
  • an embodiment of the present disclosure further provides an application processing method, which is applied to a thin set-top box tSTB, including: sending an interactive operation instruction for the cloud application to a virtual set-top box vSTB, so that the vSTB determines When the interactive operation instruction is used to instruct to play audio and video, the uniform resource locator url of the audio and video to be played is determined according to the interactive operation instruction; wherein, the cloud application is running in the vSTB; receiving the The url sent by the vSTB; acquire and play the audio and video to be played according to the url.
  • an embodiment of the present disclosure also provides an application processing system, including: a thin set-top box tSTB and a virtual set-top box vSTB, where a cloud application runs in the vSTB;
  • the interactive operation instruction of the application in the case of determining that the interactive operation instruction is used to instruct to play the audio and video, determine the uniform resource locator url of the audio and video to be played according to the interactive operation instruction; send the url to the thin A set-top box tSTB; the tSTB is used to receive the url, and acquire and play the audio and video to be played according to the url.
  • an embodiment of the present disclosure further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be used by the Instructions executed by at least one processor, the instructions are executed by the at least one processor; in the case that the electronic device is a tSTB, the at least one processor can execute the above-mentioned application processing method applied to the tSTB; in the In the case where the electronic device is a vSTB, the at least one processor can execute the above application processing method applied to the vSTB.
  • an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned application processing method applied to tSTB is implemented or the above-mentioned application processing method is implemented.
  • Application processing method of vSTB is a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned application processing method applied to tSTB is implemented or the above-mentioned application processing method is implemented.
  • Application processing method of vSTB Application processing method of vSTB.
  • the application processing method provided by the embodiments of the present disclosure takes into account that if the business of playing audio and video is decoded and transmitted through the cloud application, it may cause a large consumption of resources on the cloud, and the interactive operation instructions for the cloud application are often Accounting for a very small part of the total usage time of the cloud application by the user, once the user clicks to enter the application scene, it will often enter a vacuum period without interactive operations.
  • the optimized app is already in experience, paused, or idle state.
  • the url of the audio and video to be played is determined according to the interactive operation instruction; the url is sent to the thin set-top box tSTB, so that tSTB acquires and plays according to the url
  • the audio and video to be played occupies a large bandwidth and has moderate performance requirements.
  • the decoding performance of the current user set-top box can still meet the basic services such as high-definition and ultra-high-definition video playback and on-demand services of Internet Protocol television (IPTV).
  • IPTV Internet Protocol television
  • the cloud application is used, it is equivalent to leaving the audio and video playback service in the cloud application to tSTB for execution, which is beneficial to avoid the audio and video playback service from consuming large cloud resources, so that it can be used
  • Cloud-based applications solve the problems of unsatisfactory physical hardware and complex model adaptation caused by new business deployment, while reducing resource consumption on the cloud.
  • FIG. 1 is an application processing method applied to a thin set-top box vSTB mentioned in an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an architecture for implementing an application processing method mentioned in an embodiment of the present disclosure
  • Fig. 3 is an interactive schematic diagram of the application processing method mentioned in the embodiment of the present disclosure.
  • FIG. 4 is an application processing method applied to tSTB mentioned in an embodiment of the present disclosure
  • Fig. 5 is a schematic diagram of an application processing system mentioned in an embodiment of the present disclosure.
  • Fig. 6 is a schematic structural diagram of an electronic device mentioned in an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides an application processing method, which is applied to a virtual set-top box (virtual Set-Top Box, referred to as vSTB), where the vSTB is connected to a thin Set-Top Box (referred to as tSTB), and the vSTB is located in the Among them, there are cloud applications running in the vSTB; wherein, the cloud applications may be, for example, human-computer interaction (User Interface, UI for short) applications, audio-visual applications, and game applications.
  • the host includes multiple vSTBs, and each vSTB can run a cloud application. Wherein, including multiple vSTBs in the host may also be understood as including multiple virtual machines in the host.
  • the flow chart of the application processing method in this embodiment can refer to FIG. 1, including:
  • Step 101 receiving an interactive operation instruction for the cloud application
  • Step 102 When it is determined that the interactive operation instruction is used to instruct to play audio and video, determine the Uniform Resource Locator url of the audio and video to be played according to the interactive operation instruction;
  • Step 103 Send the url to the thin set-top box tSTB, so that the tSTB obtains and plays the audio and video to be played according to the url.
  • the application processing method provided by the embodiments of the present disclosure takes into account that if the business of playing audio and video is decoded and transmitted through the cloud application, it may cause a large consumption of resources on the cloud, and the interactive operation instructions for the cloud application are often Accounting for a very small part of the total usage time of the cloud application by the user, once the user clicks to enter the application scene, it will often enter a vacuum period without interactive operations.
  • the optimized app is already in experience, paused, or idle state.
  • the url of the audio and video to be played is determined according to the interactive operation instruction; the url is sent to the thin set-top box tSTB, so that tSTB acquires and plays according to the url
  • the audio and video to be played occupies a large bandwidth and has moderate performance requirements.
  • the decoding performance of the current user set-top box can still meet the basic services of high-definition and ultra-high-definition video playback and on-demand services of Internet Protocol television (IPTV).
  • IPTV Internet Protocol television
  • the cloud application is used, it is equivalent to leaving the audio and video playback service in the cloud application to tSTB for execution, which is beneficial to avoid the audio and video playback service from consuming large cloud resources, so that it can While using cloud-based applications to solve the problems of unsatisfactory physical hardware and complex model adaptation caused by new business deployment, it also reduces resource consumption on the cloud.
  • the vSTB may receive an interactive operation instruction for the cloud application sent by the tSTB.
  • the interactive operation instruction may be, for example, an operation that can reflect human-computer interaction, such as touch operation, click operation, slide operation, input operation, etc. on the display interface of the cloud application.
  • the vSTB determines the Uniform Resource Locator (Uniform Resource Locator, referred to as URL) of the audio and video to be played according to the interactive operation instruction when determining that the interactive operation instruction is used to instruct to play the audio and video. That is to say, when the cloud application running in the vSTB needs to play audio and video, the cloud application can determine the url of the audio and video to be played.
  • Uniform Resource Locator Uniform Resource Locator
  • the interactive operation instruction is used to instruct the playback of audio and video, so as to determine the audio and video to be played according to the interactive operation instruction.
  • the vSTB can send the determined url to the tSTB, so that the tSTB can obtain the audio and video to be played according to the url, and decode and play them.
  • the vSTB may execute the interactive operation instruction, and send the execution result of the interactive operation instruction to tSTB, so that tSTB displays the execution result.
  • the cloudified application is a cloudified video playback application
  • the cloud application running in vSTB can perform the input operation and search operation, search for movie A, and send the execution result of the searched movie A to tSTB, so that tSTB can display the movie A on the TV Execution results, such as displaying information related to movie A, for example, movie A's introduction, playback volume and other information.
  • the input operation and the search operation can be understood as not being used for instructing to play audio and video interactive operation instructions.
  • the cloudized application is a cloudified video playback application
  • the user performs interactive operations in the cloudized video playback application, such as input operations, search operations, etc.
  • the video playback business scenario of the playback application is that the user clicks the play button of a certain video and performs an interactive operation instruction for instructing to play audio and video.
  • the vSTB can obtain the url of a video clicked by the user and send the url to tSTB.
  • tSTB obtains the video source according to the url, that is, obtains the video resource to be played, and decodes and plays it.
  • the user performs interactive operations on the cloudified music player application, such as searching for music through an input operation, browsing the desired music through a sliding operation, and once the music is played
  • the scenario is that the user clicks the play button of a certain music, vSTB can send the url of the music selected by the user to tSTB, and tSTB obtains the audio source according to the url, that is, obtains the audio resource to be played, and decodes and plays it.
  • a schematic diagram of the architecture for implementing the application processing method can be referred to in FIG. 2 .
  • business offloading is realized, the application is cloudified, and audio and video playback is kept locally in the tSTB.
  • L1 , L2 , and L3 represent cloudified UI applications, audio-visual applications, and game applications running in the three vSTBs respectively.
  • s1 indicates that traditional video services such as cable TV are directly borne by the set-top box.
  • s2 represents the cloudization of applications such as UI, audio-visual, and games.
  • the cloudified applications run in the vSTB.
  • the vSTB mainly performs GPU rendering acceleration, so that users can interact with game applications running on the cloud. to interact.
  • s3 represents the data interaction between the cloudified application and the tSTB, and the data interaction includes the execution result of the cloudified application on the interactive operation command and the audio and video url.
  • the data interaction with tSTB includes game screens and user game operation instructions.
  • the host can allocate corresponding resources to each vSTB according to the dimensions of CPU and memory according to the business scenarios and traffic carried by multiple vSTBs, that is, virtual machines, so that each vSTB can be allocated resources reasonably.
  • the cloud application executes the interactive operation instruction and receives the execution result of the interactive operation instruction;
  • the url of the audio and video to be played is received from the cloud application, and the audio and video to be played is obtained and played according to the url. That is to say, in the embodiment of the present disclosure, the business of the cloud application is divided into interactive operation instructions and audio and video playback.
  • the audio and video playback service occupies a large bandwidth and has moderate performance requirements.
  • the decoding performance of the current user set-top box can still meet the high-definition, Ultra-high-definition video playback, on-demand and other basic services, so in the embodiment of the present disclosure, although the cloud application is used, it is equivalent to leaving the audio and video playback services in the cloud application to tSTB for execution, and only the cloud application needs
  • the interactive operation instructions that consume less resources on the cloud are left to the cloud application for execution, which helps to avoid the audio and video playback business from consuming a large amount of resources on the cloud, so that the cloud application can be used to solve the problem of physical hardware caused by new business deployment. While satisfying problems such as complex model adaptation, etc., it also reduces resource consumption on the cloud.
  • the vSTB is located in the host, and the host includes multiple vSTBs, the states of the vSTBs include a suspended state and a normal state, and among the vSTBs in the normal state, there are vSTBs that meet the preset virtual machine suspension conditions , the state of the vSTB that meets the virtual machine suspension condition is switched to the suspended state; if there is a vSTB that meets the preset virtual machine recovery condition among the suspended vSTBs, the vSTB that meets the virtual machine recovery condition The state is switched to normal state.
  • the preset virtual machine suspension condition includes: no operation on the vSTB within the first preset time period; or, the vSTB is in a state of reducing the frame rate and the There is no operation on the vSTB; wherein, the reduced frame rate state is a state that the vSTB enters when there is no operation on the vSTB within a third preset time period after the initial connection between the tSTB and the vSTB.
  • the preset virtual machine recovery condition includes one of the following or any combination thereof: receiving an interactive operation instruction, completion or failure of video playback in the electronic program guide EPG, completion or failure of video playback in the cloud application.
  • the state of the suspended vSTB in the suspended state exceeds the fourth preset duration
  • the state of the suspended vSTB is switched to normal every fourth preset duration state, and in the case that no operation on the vSTB switched to the normal state is detected within the fifth preset duration, the vSTB switched to the normal state is suspended again; wherein, the fourth preset duration is longer than the fifth preset duration.
  • An embodiment of the present disclosure provides an application processing method, which is applied to tSTB.
  • the flowchart of the application processing method can refer to FIG. 4 , including:
  • Step 401 Send an interactive operation instruction to the cloud application to the vSTB, so that the vSTB determines the url of the audio and video to be played according to the interactive operation instruction when it is determined that the interactive operation instruction is used to instruct to play the audio and video; wherein, in the vSTB Run cloud-based applications;
  • Step 402 Receive the url sent by vSTB;
  • Step 403 Obtain and play the audio and video to be played according to the url.
  • this embodiment is an embodiment of the application processing method applied to the host corresponding to the above-mentioned embodiment of the application processing method applied to the vSTB.
  • This implementation manner can be implemented in cooperation with the above-mentioned embodiment of the application processing method applied to the vSTB.
  • the relevant technical details and technical effects mentioned in the above embodiments of the application processing method applied to the vSTB are still valid in this implementation manner, and are not repeated here to reduce repetition.
  • the relevant technical details mentioned in this implementation manner can also be applied to the above-mentioned embodiments of the application processing method applied to the vSTB.
  • the host includes multiple vSTBs, and the states of the vSTBs include a suspended state and a normal state.
  • the application processing method further includes: in the vSTB in the normal state If there is a vSTB that satisfies the preset virtual machine suspension condition, switch the state of the vSTB that meets the virtual machine suspension condition to the suspended state; in the suspended state, there is a vSTB that meets the preset virtual machine recovery condition In the case of the vSTB, the state of the vSTB that meets the virtual machine recovery condition is switched to the normal state.
  • the host includes multiple vSTBs, which may also be understood as the host includes multiple virtual machines.
  • a vSTB that satisfies the preset virtual machine suspension conditions can be understood as an inactive virtual machine.
  • the embodiments of the present disclosure can effectively maximize the utilization of the performance of the cloud host, thereby improving the performance of the virtual machine. the number of concurrency.
  • the normal operation of the virtual machine that needs to work can not be affected.
  • the above virtual machine suspension conditions and virtual machine recovery conditions can be set according to actual needs.
  • the virtual machine suspension conditions are used to indicate that the virtual machine is not active, and even if it is suspended, it will not have a great impact on the services required by the user.
  • the virtual machine recovery condition is used to indicate that the virtual machine becomes active from inactivity. If the state of the virtual machine is not switched from the suspended state to the normal state, the user's business may be affected.
  • the above-mentioned virtual machine suspension condition includes: no operation on the vSTB within the first preset time period; wherein, the first preset time period can be set according to actual needs, for example, it can be set to 5 minutes , that is, if no operation on the vSTB is detected within 5 minutes, the vSTB can be suspended. Wherein, no operation on the vSTB is detected within 5 minutes, which can also be understood as no operation on the cloud application running in the vSTB is detected within 5 minutes. That is to say, if the user has not operated the vSTB for a long time, the vSTB will be suspended.
  • the above-mentioned virtual machine suspension condition includes: the vSTB is in the state of reducing the frame rate and there is no operation on the vSTB within the second preset time period; wherein, the state of reducing the frame rate is after tSTB is connected to the vSTB for the first time, after A state that the vSTB enters when there is no operation on the vSTB within the third preset time period.
  • the second preset time period and the third preset time period can be set to be the same or different according to actual needs.
  • both can be set to 5 minutes, that is, after tSTB and vSTB are connected for the first time, if there is no operation on vSTB within 5 minutes, It will not trigger the suspension of the virtual machine, but reduce the frame rate of the vSTB, so that the vSTB enters the state of reducing the frame rate.
  • the vSTB reduces the frame rate for 5 minutes, and there is still no operation on the vSTB
  • the vSTB is suspended, that is, the state of the vSTB is switched to the suspended state.
  • Reduce the frame rate of vSTB first, so that the CPU load can be reduced, and while reducing resource consumption, obtain a longer non-suspend time for vSTB, so as to avoid vSTB being suspended quickly.
  • the above-mentioned virtual machine recovery conditions include one of the following or any combination thereof: receipt of an interactive operation instruction, completion or failure of video playback in an electronic program guide (Electronic Program Guide, EPG), video playback in a cloud application Complete or fail.
  • EPG Electronic Program Guide
  • the receipt of interactive operation instructions, the completion or failure of video playback in EPG, and the completion or failure of video playback in cloud applications all indicate that some user operation instructions may need to be responded to in the future.
  • Execute the interactive operation instruction if the video playback in the EPG or cloud application is complete or fails, the user may need to operate to replay the video or quit playing the video, so as to change the status of video playback completion or failure.
  • receiving an interactive operation instruction may be understood as the user sending a button, a joystick, touch information, and the like.
  • restoring the state of the vSTB to a normal state is beneficial to satisfy the subsequent service requirements that may be required by the user.
  • the state switching of multiple virtual machines in the host can also be managed and controlled by the host in a unified manner.
  • the host can obtain the states of multiple virtual machines in real time, and perform normal state and suspension according to the states of multiple virtual machines. switch between states.
  • the state of the vSTB in the suspended state is switched every said fourth preset time length is in the normal state, and in the case that any operation on the vSTB switched to the normal state is not detected within the fifth preset duration, the vSTB switched to the normal state is suspended again; wherein, the fourth preset duration is longer than the five preset duration Set duration.
  • the fourth preset duration and the fifth preset duration can be set according to actual needs, the fourth preset duration can be set at the hour level, and the fifth preset duration can be set at the minute level.
  • the fourth preset duration can be set to 4 hours, and the fifth preset duration can be set to 1 minute, that is, tSTB can resume a vSTB that is continuously in a suspended state every 4 hours. If no operation on the vSTB is detected within minutes, the tSTB may suspend the vSTB again. Restoring the vSTB every fourth preset time length is beneficial to ensure the timeliness of vSTB restoration.
  • the above-mentioned EPG heartbeat link of the vSTB in the normal state is maintained by the vSTB and the EPG server; the above-mentioned EPG heartbeat link of the vSTB in the suspended state is maintained by the tSTB and the EPG server. That is to say, when the vSTB is in a normal state, the vSTB sends a keep-alive heartbeat to the EPG server to maintain the heartbeat link between the vSTB and the EPG server. When the vSTB is in the suspended state, the tSTB sends a keep-alive heartbeat to the EPG server on behalf of the vSTB to maintain the heartbeat link between the vSTB and the EPG server. Therefore, the embodiments of the present disclosure can normally maintain the heartbeat link between the vSTB and the EPG server when the vSTB is in different states, which is beneficial to ensure the timeliness when the EPG server needs to be used.
  • the vSTB before switching the state of the vSTB that satisfies the virtual machine suspension condition to the suspended state, it also includes: requesting the information of the EPG server that the vSTB logs in to the vSTB; After the state is switched to the suspended state, it also includes: according to the information of the requested EPG server, determine the EPG server that needs to keep a heartbeat with the vSTB in the suspended state; tSTB sends the vSTB in the suspended state to the determined EPG server Signal, so that the EPG heartbeat link of the vSTB in the pending state is maintained by the tSTB and the determined EPG server.
  • the information of the EPG server may include the domain name of the EPG server (EPGdomain for short), and the EPG service port number (EPGport for short). That is to say, before the vSTB virtual machine is suspended, tSTB first requests the EPGdomain and EPGport of vSTB login from vSTB, so that tSTB can determine the EPG server that needs to keep the heartbeat with the suspended vSTB according to the requested EPGdomain and EPGport, so that Even if the vSTB virtual machine hangs up later, tSTB can also successfully send a keep-alive heartbeat to the EPG server on behalf of the vSTB virtual machine.
  • EPGdomain the domain name of the EPG server
  • EPGport EPGport for short
  • the interaction schematic diagram of the application processing method can refer to FIG. 3 , including:
  • Step 301 establish a connection
  • the tSTB accesses the cloud set-top box service to determine the vSTB that needs to be connected, so that the tSTB establishes a connection channel with the vSTB that needs to be connected.
  • Step 302 transfer the service platform account and password to trigger login
  • the tSTB passes the service platform account and password to the vSTB, so that the vSTB completes the service platform login authentication, and obtains the login EPGdomain and EPGport.
  • Step 303 Determine whether to reduce the frame rate of the vSTB, or suspend the vSTB;
  • the timer is started. Determine whether to reduce the frame rate of vSTB or suspend the virtual machine according to the following rules including but not limited to:
  • the suspension of the virtual machine can be understood as switching the state of the virtual machine to a suspended state. It should be noted that the above-mentioned 5 minutes is only an exemplary description, and is not limited thereto in specific implementation.
  • the vSTB virtual machine After the vSTB virtual machine reduces the frame rate for 5 minutes, and there is still no operation on the vSTB virtual machine, it is determined that the vSTB virtual machine can be suspended; among them, there is still no operation on the vSTB virtual machine, which can be understood as the user's operation on the vSTB virtual machine. There are no operations for cloud-based applications.
  • the frame rate reduction is canceled and the normal frame rate is restored.
  • Step 304 If it is determined that the vSTB virtual machine needs to be suspended, tSTB requests EPGdomain and EPGport from vSTB;
  • Step 305 vSTB sends EPGdomain and EPGport to tSTB; for example, after tSTB obtains EPGdomain and EPGport, it can determine the address of the EPG server that maintains a heartbeat connection with vSTB according to EPGdomain and EPGport, so that after vSTB is suspended, it can proxy vSTB to EPG server Send a keep-alive heartbeat.
  • Step 306 tSTB triggers the vSTB virtual machine to suspend; wherein, after the suspend is successful, record the state of the vSTB virtual machine as suspended, and stop the timer.
  • Step 307 The tSTB proxy vSTB virtual machine maintains a heartbeat link with the EPG server;
  • the vSTB virtual machine with EPG sends a keep-alive heartbeat to the logged-in EPG server regularly by the tSTB agent to maintain the heartbeat link.
  • Step 308 tSTB resumes the vSTB virtual machine regularly, and suspends it again after 1 minute;
  • tSTB can restore the vSTB virtual machine every certain period of time (such as 4 hours). After returning to normal, if there is still no detection within 1 minute If there is any operation on the vSTB virtual machine, the vSTB virtual machine will be suspended again. It should be noted that the 1 minute and 4 hours mentioned in this embodiment are only exemplary descriptions, and are not limited thereto in specific implementation.
  • Step 309 Determine whether the suspended vSTB virtual machine needs to be restored
  • the vSTB virtual machine is in the suspended state: including but not limited to the following situations will trigger the recovery of the vSTB virtual machine: the user sends a button, joystick, touch information, etc. to detect the user's interactive operation command; video playback in the EPG Completed or failed; video playback in APK completed or failed.
  • Step 310 tSTB sends an instruction to the vSTB virtual machine to restore the vSTB virtual machine;
  • tSTB sends a recovery command to the vSTB virtual machine.
  • the state of the vSTB virtual machine is recorded as normal, and the recovery of the vSTB virtual machine can be understood as Switch the status of the vSTB virtual machine to normal.
  • Step 311 After the vSTB virtual machine recovers, the vSTB virtual machine keeps a heartbeat with the EPG server;
  • the EPG heartbeat link of the virtual machine with EPG also restores to be maintained between the vSTB and the EPG server.
  • this embodiment is equivalent to providing a method suitable for cloud-based set-top boxes to increase the number of concurrent virtual machines in a single host, which can solve the contradiction between cloud-based set-top box technology and cost to a certain extent, and through reasonable detection of user Behavior, timely suspending inactive vSTB virtual machines can effectively maximize the performance of cloud hosts, thereby increasing the number of concurrent vSTB virtual machines.
  • the vSTB virtual machine provides application virtualization business scenarios, and the set-top box realizes decoding and playing audio and video, which can also effectively reduce resource consumption on the cloud, so that the limited resources on the cloud can meet the needs of more vSTB virtual machines. It is beneficial to further increase the concurrent number of vSTB virtual machines.
  • This embodiment realizes the switching of audio and video playback code streams and the dynamic management of active virtual machine resources in the cloud application scenario. While ensuring the normal user experience, it increases the number of concurrently running virtual machines on a single host and reduces the operating costs.
  • step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
  • An embodiment of the present disclosure provides an application processing system, as shown in FIG. 5 , including: a thin set-top box tSTB501 and a virtual set-top box vSTB, the vSTB is located in the host 502, the vSTB is connected to the tSTB501, and a cloud application runs in the vSTB; It is used to receive an interactive operation instruction for the cloud application; when it is determined that the interactive operation instruction is used to instruct to play audio and video, determine the URL of the audio and video to be played according to the interactive operation instruction; send the URL to the thin set-top box tSTB501; tSTB501 is used to receive the url, and obtain and play the audio and video to be played according to the url.
  • the host 502 may include multiple vSTBs, and each vSTB may run one cloud application.
  • this embodiment is a system embodiment corresponding to the above-mentioned method embodiment, and this embodiment can be implemented in cooperation with the above-mentioned method embodiment.
  • the relevant technical details and technical effects mentioned in the foregoing method embodiments are still valid in this implementation manner, and will not be repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this implementation manner may also be applied to the foregoing method embodiments.
  • An embodiment of the present disclosure provides an electronic device, as shown in FIG. 6 , including: at least one processor 601; and a memory 602 communicatively connected to at least one processor 601; An instruction executed by a processor 601, the instruction is executed by at least one processor 601; when the electronic device is a tSTB, at least one processor 601 can execute the above-mentioned application processing method applied to the tSTB; when the electronic device is a host , at least one processor 601 can execute the above-mentioned application processing method applied to the host.
  • the memory 602 and the processor 601 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 601 and various circuits of the memory 602 together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor 601 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 601 .
  • Processor 601 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. And the memory 602 may be used to store data used by the processor 601 when performing operations.
  • the embodiment of the present disclosure also provides a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开实施例涉及通信技术领域,公开了一种应用处理方法、系统、电子设备和计算机可读存储介质。上述应用处理方法应用于虚拟机顶盒vSTB,所述vSTB中运行有云化应用,所述方法包括:接收对所述云化应用的交互操作指令;在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;将所述url发送至瘦机顶盒tSTB,以使所述tSTB根据所述url获取并播放所述需播放的音视频,使得可以降低云上资源消耗。

Description

应用处理方法、系统、电子设备和计算机可读存储介质
相关申请的交叉引用
本公开基于2021年11月30日提交的发明名称为“应用处理方法、系统、电子设备和计算机可读存储介质”的中国专利申请CN202111449986.7,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开实施例涉及通信技术领域,特别涉及一种应用处理方法、系统、电子设备和计算机可读存储介质。
背景技术
随着通信及互联网技术的高速发展,用户带宽不断升级,传统的物理机顶盒有限的中央处理器(central processing unit,简称为CPU)、随机存取存储器(Random Access Memory,简称为RAM)等性能以及日渐发展的虚拟现实技术(Virtual Reality,简称为VR)、游戏及各类定制化业务需求,各项业务云化成为趋势。虽然云化业务能够解决目前的物理机顶盒的性能问题,然而将所有业务均通过云化应用处理,会带来较大的云上资源消耗。
发明内容
本公开实施例的主要目的在于提出一种应用处理方法、系统、电子设备和计算机可读存储介质,使得可以降低云上资源消耗。
为至少实现上述目的,本公开实施例提供了一种应用处理方法,应用于虚拟机顶盒vSTB,所述vSTB中运行有云化应用,所述方法包括:接收对所述云化应用的交互操作指令;在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;将所述url发送至瘦机顶盒tSTB,以使所述tSTB根据所述url获取并播放所述需播放的音视频。
为至少实现上述目的,本公开实施例还提供了一种应用处理方法,应用于瘦机顶盒tSTB,包括:向虚拟机顶盒vSTB发送对所述云化应用的交互操作指令,以使所述vSTB在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;其中,所述vSTB中运行有所述云化应用;接收所述vSTB发送的所述url;根据所述url获取并播放所述需播放的音视频。
为至少实现上述目的,本公开实施例还提供了一种应用处理系统,包括:瘦机顶盒tSTB和虚拟机顶盒vSTB,所述vSTB中运行有云化应用;所述vSTB,用于接收对所述云化应用的交互操作指令;在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;将所述url发送至瘦机顶盒tSTB;所述tSTB,用于接收所述url,并根据所述url获取并播放所述需播放的音视频。
为至少实现上述目的,本公开实施例还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一 个处理器执行的指令,所述指令被所述至少一个处理器执行;在所述电子设备为tSTB的情况下,所述至少一个处理器能够执行上述应用于tSTB的应用处理方法;在所述电子设备为vSTB的情况下,所述至少一个处理器能够执行上述应用于vSTB的应用处理方法。
为至少实现上述目的,本公开实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的应用于tSTB的应用处理方法或者实现上述应用于vSTB的应用处理方法。
本公开实施例提供的应用处理方法,考虑到如果播放音视频这种业务通过云化应用来进行解码传输,可能会带来较大的云上资源消耗,而对云化应用的交互操作指令往往占用户对云化应用的总使用时长中的极少部分,用户一旦点击进入应用场景,往往会进入一段无交互操作的真空期,一旦用户长时间未进行任何操作,基本可视为用户对云化应用已处于体验、暂停或闲暇状态。因此,本公开实施例在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的url;将url发送至瘦机顶盒tSTB,以使tSTB根据url获取并播放需播放的音视频。音视频播放这一业务占用带宽大,对性能要求适中,当前用户机顶盒的解码性能仍能满足交互式网络电视(Internet Protocol television,IPTV)的高清、超高清视频播放、点播等基本业务,因此本公开实施例中,虽然使用了云化应用,但相当于将云化应用中的音视频播放业务留给tSTB执行,有利于避免音视频播放业务会耗费较大的云上资源,从而可以在使用云化应用解决新业务部署带来的物理硬件不满足、机型适配复杂等问题的同时,降低云上资源消耗。
附图说明
图1是本公开实施例中提到的应用于瘦机顶盒vSTB的应用处理方法;
图2是本公开实施例中提到的实现应用处理方法的架构示意图;
图3是本公开实施例中提到的应用处理方法的交互示意图;
图4是本公开实施例中提到的应用于tSTB的应用处理方法;
图5是本公开实施例中提到的应用处理系统的示意图;
图6是本公开实施例中提到的电子设备的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本公开各实施例中,为了使读者更好地理解本公开而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本公开所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本公开的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本公开的一个实施例提供了一种应用处理方法,应用于虚拟机顶盒(virtual Set-Top Box,简称为vSTB),vSTB与瘦机顶盒(thin Set-Top Box,简称为tSTB)连接,vSTB位于主机中,vSTB中运行有云化应用;其中,云化应用比如可以为:人机交互(User Interface,简称 为UI)类应用、视听类应用、游戏类应用。在一些实施例中,主机中包括多个vSTB,每个vSTB中可以运行一个云化应用。其中,主机中包括多个vSTB也可以理解为主机中包括多个虚机。本实施例中的应用处理方法的流程图可以参考图1,包括:
步骤101:接收对云化应用的交互操作指令;
步骤102:在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的统一资源定位符url;
步骤103:将url发送至瘦机顶盒tSTB,以使tSTB根据url获取并播放需播放的音视频。
本公开实施例提供的应用处理方法,考虑到如果播放音视频这种业务通过云化应用来进行解码传输,可能会带来较大的云上资源消耗,而对云化应用的交互操作指令往往占用户对云化应用的总使用时长中的极少部分,用户一旦点击进入应用场景,往往会进入一段无交互操作的真空期,一旦用户长时间未进行任何操作,基本可视为用户对云化应用已处于体验、暂停或闲暇状态。因此,本公开实施例在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的url;将url发送至瘦机顶盒tSTB,以使tSTB根据url获取并播放需播放的音视频。音视频播放这一业务占用带宽大,对性能要求适中,当前用户机顶盒的解码性能仍能满足交互式网络电视(Internet Protocol television,简称为IPTV)的高清、超高清视频播放、点播等基本业务,因此本公开实施例中,虽然使用了云化应用,但相当于将云化应用中的音视频播放业务留给tSTB执行,有利于避免音视频播放业务会耗费较大的云上资源,从而可以在使用云化应用解决新业务部署带来的物理硬件不满足、机型适配复杂等问题的同时,降低云上资源消耗。
在步骤101中,vSTB可以接收tSTB发送的对云化应用的交互操作指令。
其中,交互操作指令比如可以为能够体现人机交互的操作,比如可以在云化应用的显示界面上的触摸操作、点击操作、滑动操作、输入操作等。
在步骤102中,vSTB在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的统一资源定位符(Uniform Resource Locator,简称为URL)。也就是说,在vSTB中运行的云化应用需要进行音视频播放时,云化应用可以确定需要播放的音视频的url。
比如,当用户在该视频播放应用的显示界面上点击了对“电影A”或“歌曲B”的播放按键,可以确定交互操作指令用于指示播放音视频,从而根据交互操作指令确定需播放的“电影A”或“歌曲B”的URL。
在步骤103中,vSTB可以将确定的url发送给tSTB,使得tSTB可以根据url获取需要播放的音视频,并进行解码播放。
在一个实施例中,在确定交互操作指令不用于指示播放音视频的情况下,vSTB可以执行交互操作指令,并将对交互操作指令的执行结果发送tSTB,以使tSTB展示执行结果。比如,假设云化应用为云化的视频播放应用,当用户在该视频播放应用的显示界面上的搜索框中输了“电影A”(输入操作),并点击了搜索框旁边的确认搜索按钮(搜索操作),则vSTB中运行的云化应用可以执行该输入操作和搜索操作,搜索到电影A,并将搜索到的电影A这一执行结果发送给tSTB,从而tSTB可以在电视机上展示该执行结果,比如展示和电影A相关的信息,比如,电影A的简介、播放量等信息。其中,输入操作和搜索操作即可以理解为不用于指示播放音视频交互操作指令。
在一个实施例中,假设云化应用为云化的视频播放应用,用户在云化的视频播放应用进行交互操作,比如输入操作、搜索操作等不用于指示播放音视频交互操作指令,一旦进入视频播放应用的播放视频业务场景即用户点击了对某视频的播放按键,进行了用于指示播放音视频的交互操作指令,vSTB可以获取用户点击的某视频的url,并下发url到tSTB,由tSTB根据该url获取视频源,即获取需要播放的视频资源,并进行解码播放。
在一个实施例中,假设云化应用为云化的音乐播放应用,用户在云化的音乐播放应用进行交互操作,比如通过输入操作搜索音乐,通过滑动操作浏览想听的音乐,一旦播放音乐的场景即用户点击了对某音乐的播放按键,vSTB可以下发用户选择播放的音乐的url到tSTB,由tSTB根据该url获取音频源,即获取需要播放的音频资源,并进行解码播放。
在一个实施例中,实现应用处理方法的架构示意图可以参考图2,基于图2中的架构实现业务分流,将应用进行云化,音视频播放保留在tSTB本地进行。图2中,L1、L2、L3分别表示3个vSTB中分别运行的云化后的UI类应用、视听类应用、游戏类应用。图2中,s1表示有线电视等传统视频业务直接由机顶盒进行承载。s2表示UI类、视听类、游戏类等应用的云化,vSTB中运行云化后的应用,对于游戏应用的云化处理,vSTB主要进行GPU渲染加速,使得用户可以和在云端运行的游戏应用进行交互。s3表示云化后的应用与tSTB之间的数据交互,该数据交互包括云化后的应用对交互操作指令的执行结果和音视频url。对于云化后的游戏应用,其与tSTB之间的数据交互包括游戏画面和用户的游戏的操作指令。
在一个实施例中,主机可以根据多个vSTB即虚机承载的业务场景及业务量,按照CPU、内存等维度对每个vSTB分配对应的资源,使得每个vSTB可以被合理的分配资源。
本公开中考虑到如果播放音视频这种业务通过云化应用来进行解码传输,可能会带来较大的云上资源消耗,而对云化应用的交互操作指令往往占用户对云化应用的总使用时长中的极少部分,用户一旦点击进入应用场景,往往会进入一段无交互操作的真空期,一旦用户长时间未进行任何操作,基本可视为用户对云化应用已处于体验、暂停或闲暇状态。因此,本公开实施例通过分流,在需要对vSTB中运行的云化应用执行交互操作指令的情况下,通过云化应用执行交互操作指令,并接收对交互操作指令的执行结果;在需要基于云化应用进行音视频播放的情况下,接收云化应用发送的需要播放的音视频的url,根据url获取并播放需要播放的音视频。即,本公开实施例中将云化应用的业务分流为交互操作指令和音视频播放,音视频播放这一业务占用带宽大,对性能要求适中,当前用户机顶盒的解码性能仍能满足IPTV的高清、超高清视频播放、点播等基本业务,因此本公开实施例中,虽然使用了云化应用,但相当于将云化应用中的音视频播放业务留给tSTB执行,将云化应用中的仅需要消耗较少云上资源的交互操作指令留给云化应用执行,有利于避免音视频播放业务会耗费较大的云上资源,从而可以在使用云化应用解决新业务部署带来的物理硬件不满足、机型适配复杂等问题的同时,降低云上资源消耗。
在一个实施例中,vSTB位于主机中,主机中包括多个vSTB,vSTB的状态包括挂起状态和正常状态,在处于正常状态的vSTB中存在满足预设的虚机挂起条件的vSTB的情况下,满足虚机挂起条件的vSTB的状态被切换为挂起状态;在处于挂起状态的vSTB中存在满足预设的虚机恢复条件的vSTB的情况下,满足虚机恢复条件的vSTB的状态被切换为正常状态。
在一个实施例中,预设的虚机挂起条件包括:在第一预设时间段内对vSTB无任何操作; 或,vSTB处于降低帧率状态且在第二预设时间段内对所述vSTB无任何操作;其中,降低帧率状态为tSTB与vSTB初次连接后,在第三预设时间段内对vSTB无任何操作的情况下,vSTB进入的状态。
在一个实施例中,预设的虚机恢复条件包括以下之一或其任意组合:接收到交互操作指令、电子节目指南EPG中视频播放完成或失败、云化应用中视频播放完成或失败。
在一个实施例中,在处于挂起状态的vSTB处于挂起状态的持续时长超过第四预设时长的情况下,每隔第四预设时长,处于挂起状态的vSTB的状态被切换为正常状态,并在第五预设时长内未检测到对切换为正常状态的vSTB的操作的情况下,切换为正常状态的vSTB被再次挂起;其中,第四预设时长大于五预设时长。
本公开的一个实施例提供了一种应用处理方法,应用于tSTB,该应用处理方法的流程图可以参考图4,包括:
步骤401:向vSTB发送对云化应用的交互操作指令,以使vSTB在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的url;其中,vSTB中运行有云化应用;
步骤402:接收vSTB发送的url;
步骤403:根据url获取并播放需播放的音视频。
不难发现,本实施方式为与上述应用于vSTB的应用处理方法的实施例相对应的应用于主机的应用处理方法的实施例。本实施方式可与上述应用于vSTB的应用处理方法的实施例互相配合实施。上述应用于vSTB的应用处理方法的实施例中提到的相关技术细节和技术效果在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在上述应用于vSTB的应用处理方法的实施例中。
在一个实施例中,主机中包括多个vSTB,vSTB的状态包括挂起状态和正常状态,应用处理方法除了图4中的步骤401至步骤403之外,还包括:在处于正常状态的vSTB中存在满足预设的虚机挂起条件的vSTB的情况下,将满足虚机挂起条件的vSTB的状态切换为挂起状态;在处于挂起状态的vSTB中存在满足预设的虚机恢复条件的vSTB的情况下,将满足虚机恢复条件的vSTB的状态切换为正常状态。其中,主机中包括多个vSTB,也可以理解为主机中包括多个虚机。满足预设的虚机挂起条件的vSTB可以理解为不活跃的虚机,本公开实施例通过及时挂起不活跃的虚机,能够有效地最大化利用云化主机的性能,从而提高虚机的并发数量。通过将满足虚机恢复条件的vSTB的状态切换为正常状态,使得可以不影响需要工作的虚机正常工作。
上述的虚机挂起条件和虚机恢复条件可以根据实际需要进行设置,虚机挂起条件用于表征虚机不活跃,即使挂起也不会对用户需要的业务造成较大影响。虚机恢复条件用于表征虚机从不活跃开始活跃,如果不将虚机的状态从挂起状态切换为正常状态,可能会对用户的业务造成影响。
在一个实施例中,上述的虚机挂起条件包括:在第一预设时间段内对vSTB无任何操作;其中,第一预设时间段可以根据实际需要进行设置,比如可以设置为5分钟,即如果在5分 钟内未检测到对vSTB的任何操作,可以将该vSTB挂起。其中,在5分钟内未检测到对vSTB的任何操作,也可以理解为在5分钟内未检测到对vSTB中运行的云化应用的任何操作。也就是说,如果用户长时间未操作vSTB,则将vSTB挂起,考虑到用户长时间未操作vSTB,接下来继续操作vSTB的可能性较小,表明该vSTB不活跃,此时将vSTB挂起不会对用户需要的业务造成较大影响。
在一个实施例中,上述虚机挂起条件包括:vSTB处于降低帧率状态且在第二预设时间段内对vSTB无任何操作;其中,降低帧率状态为tSTB与vSTB初次连接后,在第三预设时间段内对vSTB无任何操作的情况下,vSTB进入的状态。第二预设时间段和第三预设时间段可以根据实际需要进行设置为相同或不同,比如可以均设置为5分钟,即tSTB与vSTB初次连接后,如果5分钟内对vSTB无任何操作,不会触发虚机挂起,而是降低vSTB的帧率,使vSTB进入降低帧率状态。在vSTB降低帧率5分钟后,并且对该vSTB仍无任何操作,则将该vSTB挂起,即将该vSTB的状态切换为挂起状态。先降低vSTB的帧率,使得可以降低CPU的负荷,在减少资源消耗的同时为vSTB争取较长的非挂起时间,避免vSTB较快的被挂起。
在一个实施例中,上述的虚机恢复条件包括以下之一或其任意组合:接收到交互操作指令、电子节目指南(Electronic Program Guide,EPG)中视频播放完成或失败、云化应用中视频播放完成或失败。其中,接收到交互操作指令、EPG中视频播放完成或失败、云化应用中视频播放完成或失败均表明接下来可能需要响应用户的一些操作指令,比如:接收到交互操作指令,云化应用需要执行该交互操作指令;如果EPG或云化应用中视频播放完成或失败,用户可能需要操作以实现重新播放视频或是退出播放视频,以改变视频播放完成或失败这一状态。其中,接收到交互操作指令可以理解为用户发送按键、遥杆、触摸信息等。在本实施例提供的虚机恢复条件下,将vSTB的状态恢复为正常状态,有利于满足用户后续可能需要的业务需求。
在一个实施例中,主机中的多个虚机的状态切换也可以由主机统一进行管理控制,主机可以实时获取多个虚机的状态,并根据多个虚机的状态进行正常状态和挂起状态之间的切换。
在一个实施例中,在处于所挂起状态的vSTB处于挂起状态的持续时长超过第四预设时长的情况下,每隔所述第四预设时长将处于挂起状态的vSTB的状态切换为正常状态,并在第五预设时长内未检测到对切换为正常状态的vSTB的任何操作的情况下,将切换为正常状态的vSTB再次挂起;其中,第四预设时长大于五预设时长。第四预设时长和五预设时长可以根据实际需要进行设置,第四预设时长可以设置为小时级别,第五预设时长可以设置为分钟级别。比如,第四预设时长可以设置为4小时,第五预设时长可以设置为1分钟,即tSTB可以每隔4小时将持续处于挂起状态的vSTB恢复一次,如果在恢复为正常状态的1分钟内,仍未检测到对vSTB的任何操作,则tSTB可以将该vSTB再次挂起。每隔第四预设时长将vSTB恢复一次,有利于保证vSTB恢复的时效性。
在一个实施例中,上述的处于正常状态的vSTB的EPG心跳链路由vSTB和EPG服务器 保持;上述的处于挂起状态的vSTB的EPG心跳链路由tSTB和EPG服务器保持。也就是说,当vSTB处于正常状态时,由vSTB向EPG服务器发送保活心跳,以维持vSTB和EPG服务器之间的心跳链路。当vSTB处于挂起状态时,由tSTB代理vSTB向EPG服务器发送保活心跳,以维持vSTB和EPG服务器之间的心跳链路。因此,本公开实施例可以在vSTB处于不同状态时均能够正常维持vSTB和EPG服务器之间的心跳链路,有利于保证需要使用EPG服务器时的时效性。
在一个实施例中,在将满足虚机挂起条件的vSTB的状态切换为挂起状态之前,还包括:向vSTB请求vSTB登录的EPG服务器的信息;在将满足虚机挂起条件的vSTB的状态切换为挂起状态之后,还包括:根据请求的EPG服务器的信息,确定需要与处于挂起状态的vSTB保持心跳的EPG服务器;tSTB代理处于挂起状态的vSTB向确定的EPG服务器发送保活信号,以使处于挂起状态的vSTB的EPG心跳链路由tSTB和确定的EPG服务器保持。其中,EPG服务器的信息可以包括EPG服务器域名(简称EPGdomain)、EPG服务端口号(简称EPGport)。也就是说,vSTB虚机挂起前,tSTB先向vSTB请求vSTB登录的EPGdomain和EPGport,使得tSTB可以根据请求得到的EPGdomain和EPGport确定需要与处于挂起状态的vSTB保持心跳的EPG服务器,从而使得后续即使vSTB虚机挂起,tSTB也可以代理该vSTB虚机成功向EPG服务器发送保活心跳。
在一个实施例中,应用处理方法的交互示意图可以参考图3,包括:
步骤301:建立连接;
比如,tSTB接入云化机顶盒服务确定需要连接的vSTB,从而tSTB与需要连接的vSTB建立连接通道。
步骤302:传递业务平台账户和密码,触发登录;
比如,tSTB通过向vSTB传递业务平台账户和密码,使得vSTB完成业务平台登录认证,并获取登录的EPGdomain和EPGport。
步骤303:判断是否需要降低vSTB的帧率,或是将vSTB挂起;
比如,在vSTB虚机处于正常状态时,启动定时器计时。根据包括但不限于下列规则判断是否需要降低vSTB的帧率或是挂起虚机:
用户初次连接进入云端时(即tSTB与vSTB初级建立连接或是刚建立连接),对vSTB无任何操作一定时长内(比如5分钟),不会触发vSTB虚机挂起,控制vSTB虚机进入降低帧率状态。其中,虚机挂起即可以理解为将虚机的状态切换为挂起状态。需要说明的是,上述的5分钟只是示例性的说明,在具体实现中并不以此为限。
vSTB虚机降低帧率5分钟后,并且对vSTB虚机仍无任何操作,判定可以将vSTB虚机挂起;其中,对vSTB虚机仍无任何操作可以理解为用户对vSTB虚机中运行的云化应用没有任何操作。
当检测到用户有操作行为且vSTB虚机处于降低帧率(简称降帧)状态,则解除降帧,恢复正常帧率。
步骤304:如果判定判断vSTB虚机需要挂起,tSTB向vSTB请求EPGdomain和EPGport;
步骤305:vSTB向tSTB发送EPGdomain和EPGport;比如,tSTB得到EPGdomain和 EPGport后,可以根据EPGdomain和EPGport确定与vSTB保持心跳连接的EPG服务器的地址,从而可以在vSTB挂起后,代理vSTB向EPG服务器发送保活心跳。
步骤306:tSTB触发vSTB虚机挂起;其中,挂起成功后,记录vSTB虚机状态为挂起,并停止计时器。
步骤307:tSTB代理vSTB虚机与EPG服务器保持心跳链路;
即,vSTB虚机挂起后,有EPG的vSTB虚机由tSTB代理定时向登录的EPG服务器发送保活心跳,以保持心跳链路。
步骤308:tSTB定时恢复vSTB虚机,1分钟后再次挂起;
即,如果vSTB虚机长时间挂起,为保证vSTB虚机恢复的时效性,tSTB可以每隔一定时长(比如4小时)将vSTB虚机恢复一次,恢复正常后,如果1分钟内还是没有检测到对vSTB虚机的任何操作,则将vSTB虚机再次挂起。需要说明的是,本实施例提到的1分钟、4小时只是示例性的说明,在具体实现中,并不以此为限。
步骤309:判断是否需要将挂起的vSTB虚机恢复;
本实施例中,vSTB虚机在挂起状态下:包括但不限于以下情形会触发vSTB虚机恢复:用户发送按键、遥杆、触摸信息等即检测到用户的交互操作指令;EPG中视频播放完成或失败;APK中视频播放完成或失败。
步骤310:tSTB向vSTB虚机发送指令,以恢复vSTB虚机;
也就是说,当判定需要将挂起的vSTB虚机恢复,tSTB向vSTB虚机发送恢复指令,vSTB虚机恢复成功后,记录vSTB虚机的状态为正常状态,vSTB虚机恢复即可以理解为将vSTB虚机的状态切换为正常状态。
步骤311:vSTB虚机恢复后,vSTB虚机与EPG服务器保持心跳;
也就是说,vSTB虚机恢复后,有EPG的虚机的EPG心跳链路也恢复为由vSTB和EPG服务器间保持。
本实施例中,考虑到单台主机能够正常运行的vSTB虚机数量有限,大量增设主机势必导致成本不断增加,而成本问题是当前制约云化机顶盒技术落地的重要影响因素。基于此,本实施例相当于提供了一种适用于云化机顶盒提升单台主机中虚机并发数的方法,能够在一定程度上解决云化机顶盒技术与成本之间的矛盾,通过合理检测用户行为,及时挂起不活跃的vSTB虚机,能够有效地最大化利用云化主机的性能,从而提高vSTB虚机的并发数量。同时,通过实现分流,vSTB虚机提供应用虚拟化业务场景,机顶盒实现解码播放音视频,还能有效的降低云上资源消耗,使得云上有限的资源能够满足更多vSTB虚机的需求,有利于进一步提高vSTB虚机的并发数量。本实施例实现了在云化应用的场景下音视频播放码流的切换和活跃虚机资源的动态管理,在保证用户体验正常的同时,提高了单台主机并发运行虚机的数量,降低了运营成本。
需要说明的是,本公开实施例中的上述各示例均为为方便理解进行的举例说明,并不对本发明的技术方案构成限定。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本公开的一个实施例提供了一种应用处理系统,如图5所示,包括:瘦机顶盒tSTB501和虚拟机顶盒vSTB,vSTB位于主机502中,vSTB与tSTB501连接,vSTB中运行有云化应用;vSTB用于接收对云化应用的交互操作指令;在确定交互操作指令用于指示播放音视频的情况下,根据交互操作指令确定需播放的音视频的统一资源定位符url;将url发送至瘦机顶盒tSTB501;tSTB501用于接收url,并根据url获取并播放需播放的音视频。
在一些实施例中,如图5所示,主机502中可以包括多个vSTB,每个vSTB中可以运行1个云化应用。
不难发现,本实施方式为与上述方法实施例相对应的系统实施例,本实施方式可与上述方法实施例互相配合实施。上述方法实施例中提到的相关技术细节和技术效果在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在上述方法实施例中。
本公开的一个实施例提供了一种电子设备,如图6所示,包括:至少一个处理器601;以及,与至少一个处理器601通信连接的存储器602;其中,存储器602存储有可被至少一个处理器601执行的指令,指令被至少一个处理器601执行;在电子设备为tSTB的情况下,至少一个处理器601能够执行上述应用于tSTB的应用处理方法;在电子设备为主机的情况下,至少一个处理器601能够执行上述的应用于主机的应用处理方法。
其中,存储器602和处理器601采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器601和存储器602的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器601处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器601。
处理器601负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器602可以被用于存储处理器601在执行操作时所使用的数据。
本公开实施例还提供了一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。

Claims (12)

  1. 一种应用处理方法,应用于虚拟机顶盒vSTB,所述vSTB中运行有云化应用,所述方法包括:
    接收对所述云化应用的交互操作指令;
    在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;
    将所述url发送至瘦机顶盒tSTB,以使所述tSTB根据所述url获取并播放所述需播放的音视频。
  2. 根据权利要求1所述的应用处理方法,其中,所述方法还包括:
    在确定所述交互操作指令不用于指示播放音视频的情况下,执行所述交互操作指令,并将对所述交互操作指令的执行结果发送所述tSTB,以使所述tSTB展示所述执行结果。
  3. 一种应用处理方法,应用于瘦机顶盒tSTB,包括:
    向虚拟机顶盒vSTB发送对所述云化应用的交互操作指令,以使所述vSTB在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;其中,所述vSTB中运行有所述云化应用;
    接收所述vSTB发送的所述url;
    根据所述url获取并播放所述需播放的音视频。
  4. 根据权利要求3所述的应用处理方法,其中,所述vSTB位于主机中,所述主机中包括多个所述vSTB,所述vSTB的状态包括挂起状态和正常状态,所述方法还包括:
    在处于所述正常状态的vSTB中存在满足预设的虚机挂起条件的vSTB的情况下,将满足所述虚机挂起条件的vSTB的状态切换为挂起状态;
    在处于所述挂起状态的vSTB中存在满足预设的虚机恢复条件的vSTB的情况下,将满足所述虚机恢复条件的vSTB的状态切换为正常状态。
  5. 根据权利要求4所述的应用处理方法,其中,所述预设的虚机挂起条件包括:
    在第一预设时间段内对所述vSTB无任何操作;或,
    所述vSTB处于降低帧率状态且在第二预设时间段内对所述vSTB无任何操作;其中,所述降低帧率状态为所述tSTB与所述vSTB初次连接后,在第三预设时间段内对所述vSTB无任何操作的情况下,所述vSTB进入的状态。
  6. 根据权利要求4所述的应用处理方法,其中,所述预设的虚机恢复条件包括以下之一或其任意组合:
    接收到交互操作指令、电子节目指南EPG中视频播放完成或失败、云化应用中视频播放完成或失败。
  7. 根据权利要求4所述的应用处理方法,其中,所述方法还包括:
    在处于所述挂起状态的vSTB处于所述挂起状态的持续时长超过第四预设时长的情况下,每隔所述第四预设时长,将所述处于所述挂起状态的vSTB的状态切换为正常状态,并在第五预设时长内未检测到对切换为正常状态的vSTB的操作的情况下,将所述切换为正常状态的vSTB再次挂起;其中,所述第四预设时长大于所述五预设时长。
  8. 根据权利要求4至7任一项所述的应用处理方法,其中,处于所述正常状态的vSTB 的EPG心跳链路由所述vSTB和EPG服务器保持;处于所述挂起状态的vSTB的EPG心跳链路由所述tSTB和EPG服务器保持。
  9. 根据权利要求8所述的应用处理方法,其中,在所述将满足所述虚机挂起条件的vSTB的状态切换为挂起状态之前,还包括:
    向所述vSTB请求所述vSTB登录的EPG服务器的信息;
    在所述将满足所述虚机挂起条件的vSTB的状态切换为挂起状态之后,还包括:
    根据请求的所述EPG服务器的信息,确定需要与处于所述挂起状态的vSTB保持心跳的EPG服务器;
    代理处于所述挂起状态的vSTB向确定的EPG服务器发送保活信号,以使处于所述挂起状态的vSTB的EPG心跳链路由所述tSTB和所述确定的EPG服务器保持。
  10. 一种应用处理系统,包括:瘦机顶盒tSTB和虚拟机顶盒vSTB,所述vSTB中运行有云化应用;
    所述vSTB,用于接收对所述云化应用的交互操作指令;在确定所述交互操作指令用于指示播放音视频的情况下,根据所述交互操作指令确定需播放的音视频的统一资源定位符url;将所述url发送至瘦机顶盒tSTB;
    所述tSTB,用于接收所述url,并根据所述url获取并播放所述需播放的音视频。
  11. 一种电子设备,包括:至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行;
    在所述电子设备为vSTB的情况下,所述至少一个处理器能够执行如权利要求1至2中任一所述的应用处理方法;
    在所述电子设备为tSTB的情况下,所述至少一个处理器能够执行如权利要求3至9任一项所述的应用处理方法。
  12. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至2中任一所述的应用处理方法,或者实现权利要求3至9任一项所述的应用处理方法。
PCT/CN2022/114325 2021-11-30 2022-08-23 应用处理方法、系统、电子设备和计算机可读存储介质 WO2023098163A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111449986.7 2021-11-30
CN202111449986.7A CN116208804A (zh) 2021-11-30 2021-11-30 应用处理方法、系统、电子设备和计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2023098163A1 true WO2023098163A1 (zh) 2023-06-08

Family

ID=86508175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114325 WO2023098163A1 (zh) 2021-11-30 2022-08-23 应用处理方法、系统、电子设备和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN116208804A (zh)
WO (1) WO2023098163A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349177A (zh) * 2014-09-26 2015-02-11 华为技术有限公司 一种在桌面云下转向播放多媒体文件的方法、虚拟机及系统
US20170272792A1 (en) * 2016-03-16 2017-09-21 Telefonaktiebolaget Lm Ericsson (Publ) Distributed content popularity determination in a streaming environment with interconnected set-top boxes
US20180288493A1 (en) * 2017-03-31 2018-10-04 Intel Corporation Controlling digital video bandwidth utilization with a virtualized communication hub
CN111083527A (zh) * 2019-12-31 2020-04-28 北京视博云科技有限公司 应用的视频播放方法、装置、存储介质及电子设备
CN111478930A (zh) * 2019-01-23 2020-07-31 中兴通讯股份有限公司 Stb云化方法、系统、瘦stb、虚拟stb及平台、存储介质
CN112911405A (zh) * 2019-12-04 2021-06-04 中国电信股份有限公司 虚拟机顶盒的控制方法及装置、虚拟机顶盒系统
CN113595976A (zh) * 2021-06-15 2021-11-02 阿里巴巴新加坡控股有限公司 多媒体播放方法、云服务器、系统及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349177A (zh) * 2014-09-26 2015-02-11 华为技术有限公司 一种在桌面云下转向播放多媒体文件的方法、虚拟机及系统
US20170272792A1 (en) * 2016-03-16 2017-09-21 Telefonaktiebolaget Lm Ericsson (Publ) Distributed content popularity determination in a streaming environment with interconnected set-top boxes
US20180288493A1 (en) * 2017-03-31 2018-10-04 Intel Corporation Controlling digital video bandwidth utilization with a virtualized communication hub
CN111478930A (zh) * 2019-01-23 2020-07-31 中兴通讯股份有限公司 Stb云化方法、系统、瘦stb、虚拟stb及平台、存储介质
CN112911405A (zh) * 2019-12-04 2021-06-04 中国电信股份有限公司 虚拟机顶盒的控制方法及装置、虚拟机顶盒系统
CN111083527A (zh) * 2019-12-31 2020-04-28 北京视博云科技有限公司 应用的视频播放方法、装置、存储介质及电子设备
CN113595976A (zh) * 2021-06-15 2021-11-02 阿里巴巴新加坡控股有限公司 多媒体播放方法、云服务器、系统及存储介质

Also Published As

Publication number Publication date
CN116208804A (zh) 2023-06-02

Similar Documents

Publication Publication Date Title
US10814227B2 (en) Game state save, transfer and resume for cloud gaming
US10503371B2 (en) Virtual tabs supporting web content suspension
US20220360830A1 (en) Cloud Phone-Based Live Streaming Method and Apparatus
WO2021159770A1 (zh) 视频播放方法、装置、设备和存储介质
CN106301865B (zh) 应用于服务提供设备的数据处理方法和设备
US20150095758A1 (en) Web content suspension compatibility and suspended web content lifetime
US9880953B2 (en) Systems and methods for network I/O based interrupt steering
US11588875B2 (en) Multi-media redirection for media applications
CN114902686A (zh) Web浏览器多媒体重定向
US11962853B2 (en) Computing device upgrading system over a wireless network
US11838589B2 (en) Port-connected television upgrader device
US11190842B2 (en) USB-based media device upgrading system
WO2023098163A1 (zh) 应用处理方法、系统、电子设备和计算机可读存储介质
WO2024051148A1 (zh) 云游戏控制方法、装置、电子设备及存储介质
CN113726882A (zh) 基于5g网络的信息服务系统、方法及装置、设备、介质
KR102399661B1 (ko) 원격 접속을 위한 장치 및 방법
US12126869B2 (en) Port-connected television upgrader device
KR102369525B1 (ko) 원격 접속을 위한 장치, 시스템 및 방법
US20240346397A1 (en) Systems and methods for determing whether streaming devices under an identical user account are co-located
KR102570284B1 (ko) 화면 제공을 위한 서비스 서버 및 그 동작 방법
KR102566262B1 (ko) 서비스 서버 및 그 동작 방법
WO2024215752A1 (en) Systems and methods for determining whether streaming devices under an identical user account are co-located
CN116319701A (zh) 用于音视频的流传输方法及装置、电子设备和介质
CN117076086A (zh) 播放处理方法及装置
WO2022235979A1 (en) Systems and methods for providing streaming telemetry data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22899982

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE