//
//  _M3U8MasterPlaylist.h
//  M3U8Kit
//
//  Created by Sun Jin on 3/25/14.
//  Copyright (c) 2014 Jin Sun. All rights reserved.
//

#import <Foundation/Foundation.h>
@class _M3U8ExtXStreamInfList;
@class _M3U8ExtXMediaList;

@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) _M3U8ExtXStreamInfList *xStreamList;
@property (readonly, nonatomic, strong) _M3U8ExtXMediaList *xMediaList;
// BITMOVIN CHANGES START
@property (readonly, nonatomic, strong) _M3U8ExtXStreamInfList *xIFrameStreamList;
// BITMOVIN CHANGES END
- (NSArray *)allStreamURLs;
- (NSArray *)allRawStreamURLs;

- (_M3U8ExtXStreamInfList *)alternativeXStreamInfList;

- (instancetype)initWithContent:(NSString *)string baseURL:(NSURL *)baseURL;
- (instancetype)initWithContentOfURL:(NSURL *)URL error:(NSError **)error;

- (NSString *)m3u8PlanString;

@end
