MOLVideoFunctions.m 885 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // MOLVideoFunctions.m
  3. // STLBGVideo
  4. //
  5. // Created by StoneLeon on 16/1/13.
  6. // Copyright © 2016年 StoneLeon. All rights reserved.
  7. //
  8. #import "MOLVideoFunctions.h"
  9. @implementation MOLVideoFunctions
  10. /**
  11. * 获取plist文件
  12. */
  13. + (NSDictionary *)getUrlInfo {
  14. NSString *MD5PlistPath = [[NSBundle mainBundle] pathForResource:@"C415F3F13BBD50B1-info" ofType:@"plist"];
  15. NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:MD5PlistPath];
  16. return dict;
  17. }
  18. + (NSString *)getVideoUrl {
  19. NSString *videoUrl = [[MOLVideoFunctions getUrlInfo] objectForKey:@"Url"];
  20. return videoUrl;
  21. }
  22. + (NSString *)getVideoType {
  23. NSString *Type = [[MOLVideoFunctions getUrlInfo] objectForKey:@"Type"];
  24. return Type;
  25. }
  26. + (BOOL)getLoopMode {
  27. BOOL ModeBool = [[[MOLVideoFunctions getUrlInfo] objectForKey:@"Mode Loop"] boolValue];
  28. return ModeBool;
  29. }
  30. @end