支持更多音视频格式,添加点播测试页面

This commit is contained in:
Caleb
2026-03-11 10:56:04 +08:00
parent 3d64acb766
commit fd433e4337
18 changed files with 411 additions and 48 deletions

View File

@@ -6,6 +6,7 @@
#import "AVTabBarController.h"
#import "AVHomeViewController.h"
#import "AVCallViewController.h"
#import "AVVodListViewController.h"
#import "AVSettingsViewController.h"
#import "AVLoginViewController.h"
#import "AVUserManager.h"
@@ -25,6 +26,13 @@
image:[UIImage systemImageNamed:@"house"]
selectedImage:[UIImage systemImageNamed:@"house.fill"]];
// Create VOD tab
AVVodListViewController *vodVC = [[AVVodListViewController alloc] init];
UINavigationController *vodNav = [[UINavigationController alloc] initWithRootViewController:vodVC];
vodNav.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"点播"
image:[UIImage systemImageNamed:@"play.rectangle"]
selectedImage:[UIImage systemImageNamed:@"play.rectangle.fill"]];
// Create Call tab
AVCallViewController *callVC = [[AVCallViewController alloc] init];
UINavigationController *callNav = [[UINavigationController alloc] initWithRootViewController:callVC];
@@ -40,7 +48,7 @@
selectedImage:[UIImage systemImageNamed:@"gearshape.fill"]];
// Set view controllers
self.viewControllers = @[homeNav, callNav, settingsNav];
self.viewControllers = @[homeNav, vodNav, callNav, settingsNav];
// Customize tab bar appearance
self.tabBar.tintColor = [UIColor systemBlueColor];