FDDEMOViewController.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // FDDEMOViewController.m
  3. // FDNetworkObjC
  4. //
  5. // Created by fandongtongxue on 04/11/2020.
  6. // Copyright (c) 2020 fandongtongxue. All rights reserved.
  7. //
  8. #import "FDDEMOViewController.h"
  9. #import <FDNetworkObjC/FDNetworkObjC.h>
  10. @interface FDDEMOViewController ()
  11. @end
  12. @implementation FDDEMOViewController
  13. - (void)viewDidLoad
  14. {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view, typically from a nib.
  17. NSString *path = [[NSBundle mainBundle] pathForResource:@"v0200f0a0000bptlivl1mik40uaur8gg" ofType:@"mp4"];
  18. NSData *data = [NSData dataWithContentsOfFile:path];
  19. [[FDOSSManager defaultManager] setup:^{
  20. [[FDOSSManager defaultManager] UPLOAD:data progress:^(float percent) {
  21. } success:^(NSString * _Nonnull resultStr) {
  22. } failure:^(NSError * _Nonnull error) {
  23. }];
  24. }];
  25. }
  26. - (void)didReceiveMemoryWarning
  27. {
  28. [super didReceiveMemoryWarning];
  29. // Dispose of any resources that can be recreated.
  30. }
  31. @end