|  | @@ -112,12 +112,26 @@ class MVHomeController: MVBaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @objc func enterBackground() {
 | 
	
		
			
				|  |  |          BFLog(message: "进入到后台")
 | 
	
		
			
				|  |  | -        controlPlayrPasueOrResume(isPause: true)
 | 
	
		
			
				|  |  | +        var rootViewController = UIApplication.shared.keyWindow?.rootViewController
 | 
	
		
			
				|  |  | +        if rootViewController is UINavigationController {
 | 
	
		
			
				|  |  | +            rootViewController = (rootViewController as? UINavigationController)?.visibleViewController
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        BFLog(message: "rootViewController is \(rootViewController)")
 | 
	
		
			
				|  |  | +        if rootViewController is MVHomeController {
 | 
	
		
			
				|  |  | +            controlPlayrPasueOrResume(isPause: true)
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @objc func willEnterForeground() {
 | 
	
		
			
				|  |  |          BFLog(message: "进入到前台")
 | 
	
		
			
				|  |  | -        controlPlayrPasueOrResume(isPause: false)
 | 
	
		
			
				|  |  | +        var rootViewController = UIApplication.shared.keyWindow?.rootViewController
 | 
	
		
			
				|  |  | +        if rootViewController is UINavigationController {
 | 
	
		
			
				|  |  | +            rootViewController = (rootViewController as? UINavigationController)?.visibleViewController
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        BFLog(message: "rootViewController is \(rootViewController)")
 | 
	
		
			
				|  |  | +        if rootViewController is MVHomeController {
 | 
	
		
			
				|  |  | +            controlPlayrPasueOrResume(isPause: false)
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      override func viewWillAppear(_: Bool) {
 |