Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • V VOD_iOS_SDK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CCVideo
  • VOD_iOS_SDK
  • Issues
  • #3

Closed
Open
Created Aug 24, 2020 by Hanruisong@hanrsMaintainer

本地视频播放疑惑

Created by: liuzhuoming

我将视频下载到本地一个目录后,如何播放该文件?

DWPlayerView 提供了一个 方法来播放本地视频 -(void)playLocalVideo:(DWDownloadModel *)downloadModel;

对于需要的参数DWDownloadModel ,除了下面的方法我没有找到其他生成的函数。 于是我除了loaclPath和UserId 其他都是乱填,居然也能播放。但是为了安全起见,我觉得需要一个更合理的构造方法。

这个方法不可用,会删除loaclPath的内容

-(DWDownloadModel *)migrateDownloadTask:(NSString *)loaclPath
               DownloadUrl:(NSString *)downloadUrl
                 MediaType:(NSString *)mediaType
                   Quality:(NSString *)quality
                      Desp:(NSString *)desp
                    VRMode:(BOOL)vrMode
                OthersInfo:(NSDictionary *)othersInfo
                    UserId:(NSString *)userId
                   VideoId:(NSString *)videoId
        TotalBytesWritten:(int64_t)totalBytesWritten TotalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
Assignee
Assign to
Time tracking