{"id":19411481,"url":"https://github.com/volcengine/vevoddemo-ios","last_synced_at":"2025-07-09T05:35:57.682Z","repository":{"id":37290937,"uuid":"392169928","full_name":"volcengine/VEVodDemo-iOS","owner":"volcengine","description":"火山引擎点播SDK使用和抖音、西瓜同样的播放内核，稳定性和性能经过内部验证；Demo展示抖音短视频场景下使用预加载、预渲染策略，同时拥有类似西瓜视频的中、长视频场景，实现一个比较好的首帧效果。","archived":false,"fork":false,"pushed_at":"2024-12-12T13:02:50.000Z","size":317903,"stargazers_count":34,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T03:51:13.888Z","etag":null,"topics":["bytedance","douyin","player","xigua"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volcengine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-03T03:05:48.000Z","updated_at":"2025-03-26T07:19:33.000Z","dependencies_parsed_at":"2024-01-08T04:49:48.345Z","dependency_job_id":"b497bf24-2040-4eb2-a260-f864089ce7a4","html_url":"https://github.com/volcengine/VEVodDemo-iOS","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FVEVodDemo-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FVEVodDemo-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FVEVodDemo-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volcengine%2FVEVodDemo-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volcengine","download_url":"https://codeload.github.com/volcengine/VEVodDemo-iOS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250609256,"owners_count":21458454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytedance","douyin","player","xigua"],"created_at":"2024-11-10T12:21:37.720Z","updated_at":"2025-04-24T10:33:33.376Z","avatar_url":"https://github.com/volcengine.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## VOLCDemo介绍\n\n1. VOLCDemo基于TTSDK点播SDK开发，目前完成了短、中、长等场景的视频基础能力展示。并提供了一些示例使用方式和工具层，后续会持续迭代。\n2. 通过展示各种场景化解决方案来协助业务侧快速完成各类视频业务的快速搭建。\n3. 新版本新增短剧场景示例。\n\n\n## 目录结构说明\n\n```\n├─ VOLCDemo \n└── VOLCDemo\n    ├── Base    // AppDelegate等App基本文件\n└── Pods\n    ├── TTSDK   // 火山引擎SDK（点播SDK载体）\n        ...\n    ├── VEVodMain           // App入口（VEMainViewController）\n    ├── VEBaseKit           // 基础组件\n    ├── VEPlayerKit         // 点播播放器控件\n    ├── VEPlayerUIModule    // 点播UI控件封装层\n    ├── VESceneModule       // 场景模块（短、中、长视频模块示例, 新版本新增短剧场景）    \n```\n\n\n## VOLCDemo运行\n\n1. 进入 VEVodDemo-iOS/VOLCDemo 文件夹\n2. 执行 pod install\n3. 打开 VOLCDemo.xcworkspace 编译运行\n\n**注意：**\n\u003cb\u003eDemo 需要设置 AppId 和 License 才能成功运行，否则会抛出异常。\u003c/b\u003e 请联系火山引擎商务获取体验 License 文件和 AppId。获取到 License 文件后请将 License 导入到工程中。\n\n设置方式：\n\u003e 修改 AppDelegate\n```objective-c\n- (void)initTTSDK {\n\n    /// appid 和 license 不能为空，请到控制台申请后设置继续使用\n    /// licesne 和 bundle identifier 一一对应，\n    NSString *appId = @\"\"; \n    NSString *licenseName = @\"\";\n    \n    /// initialize ttsdk, configure Liscene ，this step cannot be skipped !!!!!\n    TTSDKConfiguration *configuration = [TTSDKConfiguration defaultConfigurationWithAppID:appId licenseName:licenseName];\n    /// 播放器CacheSize，默认100M，建议设置 300M\n    TTSDKVodConfiguration *vodConfig = [[TTSDKVodConfiguration alloc] init];\n    vodConfig.cacheMaxSize = 300 * 1024 * 1024; // 300M\n    configuration.vodConfiguration = vodConfig;\n    [TTSDKManager startWithConfiguration:configuration];\n}\n```\n\n## TTSDK点播SDK 集成方式\n\n### CocoaPods集成\n1. 添加pod依赖\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nsource 'https://github.com/volcengine/volcengine-specs.git'\n\nplatform :ios, '11.0'\n\ntarget 'VOLCDemo' do\n  \n  #这里需要明确指定使用 subspecs =\u003e Player-SR\n  #可在 ChangeLog 获取版本号，推荐使用最新版本\n  pod 'TTSDKFramework', 'x.x.x.x-premium', :subspecs =\u003e ['Player-SR']\n\nend\n```\n\n2. 执行 pod install\n\n\n### 更多集成相关文档链接\n- [集成准备](https://www.volcengine.com/docs/4/65775)\n- [快速开始](https://www.volcengine.com/docs/4/65777)\n- [基础功能接入](https://www.volcengine.com/docs/4/65779)\n- [高级功能接入](https://www.volcengine.com/docs/4/67626)\n- [预加载功能接入](https://www.volcengine.com/docs/4/65780)\n- [控件层使用](https://bytedance.feishu.cn/docx/doxcnqF1Y9NIzOQH0m8OVQ0cPFo)\n   - [快速开始](https://bytedance.feishu.cn/docx/doxcnMlusNTzjPb7jn2wMf1s7oe)\n- [短视频场景封装层使用](https://bytedance.feishu.cn/docx/doxcnprOaYpOREMnnW8U2mxGajb)\n\n\n## ChangeLog\n链接：https://www.volcengine.com/docs/4/66438\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fvevoddemo-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolcengine%2Fvevoddemo-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolcengine%2Fvevoddemo-ios/lists"}