//
//  VideosListViewController.h
//  iDing
//
//  Created by MacBook Pro on 23/09/13.
//  Copyright (c) 2013 mahammad. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SHKActivityIndicator.h"
#import "AppDelegate.h"
#import "XMLParser.h"
#import "VideosData.h"
#import <MediaPlayer/MediaPlayer.h>
#import <AVFoundation/AVFoundation.h>
#import "EGORefreshTableHeaderView.h"
#import "MBProgressHUD.h"


@interface VideosListViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,EGORefreshTableHeaderDelegate,MBProgressHUDDelegate/*,NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate*/>
{

    
    EGORefreshTableHeaderView *_refreshHeaderView;
    BOOL _reloading;
    MBProgressHUD *HUD;

    
}
-(void) saveBuffer:(NSString *)str ;//:(NSString *)file_name;

//@property (nonatomic) NSURLSession *session;
//@property (nonatomic) NSURLSessionDownloadTask *downloadTask;
@property (nonatomic,readwrite)BOOL isVideoList, isVideoMuxList;
@property (nonatomic,retain)NSString *mp4UrlLink, *previous_response;
@property (nonatomic,retain)NSString *smallMP4UrlLink, *buffer_file_path;
@property (retain, nonatomic) IBOutlet UITableView *videosList;
@property(nonatomic,retain) NSMutableData *mutableData;
@property(nonatomic,retain) NSURLConnection *urlConnection;
@property(nonatomic,retain) NSMutableArray *tableData;//, *files_todownload;
@property(nonatomic,retain) NSTimer *autoUpdateTimer;

@end
