text: //
  //  M3U8MasterPlaylist.h
  //  M3U8Kit
  //
  //  Created by Sun Jin on 3/25/14.
  //  Copyright (c) 2014 Jin Sun. All rights reserved.
  //
  
  #import <Foundation/Foundation.h>
  #import "M3U8ExtXStreamInfList.h"
  #import "M3U8ExtXKey.h"
  #import "M3U8ExtXMediaList.h"
  
  @interface M3U8MasterPlaylist : NSObject
  
  @property (nonatomic, strong) NSString *name;
  
  @property (readonly, nonatomic, strong) NSString *version;
  
  @property (readonly, nonatomic, copy) NSString *originalText;
  @property (readonly, nonatomic, copy) NSURL *baseURL;
  @property (readonly, nonatomic, copy) NSURL *originalURL;
  
  @property (readonly, nonatomic, strong) M3U8ExtXKey *xSessionKey;
  
  @property (readonly, nonatomic, strong) M3U8ExtXStreamInfList *xStreamList;
  @property (readonly, nonatomic, strong) M3U8ExtXMediaList *xMediaList;
  
  - (NSArray *)allStreamURLs;
  
  - (M3U8ExtXStreamInfList *)alternativeXStreamInfList;
  //#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="600k",LANGUAGE="eng",NAME="Audio",AUTOSELECT=YES,DEFAULT=YES,URI="/talks/769/audio/600k.m3u8?sponsor=Ripple",BANDWIDTH=614400
  - (void) addAlternateAudio:(NSString*) uri;
  
  - (instancetype)initWithContent:(NSString *)string baseURL:(NSURL *)baseURL;
  - (instancetype)initWithContentOfURL:(NSURL *)URL error:(NSError **)error;
  
  - (NSString *)m3u8PlainString;
  
  @end
  