mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
35 lines
909 B
Objective-C
35 lines
909 B
Objective-C
//
|
|
// Connection.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 1/19/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "VideoDecoderRenderer.h"
|
|
#import "StreamConfiguration.h"
|
|
|
|
#define CONN_TEST_SERVER "ios.conntest.moonlight-stream.org"
|
|
|
|
typedef struct {
|
|
CFTimeInterval startTime;
|
|
CFTimeInterval endTime;
|
|
int totalFrames;
|
|
int receivedFrames;
|
|
int networkDroppedFrames;
|
|
int totalHostProcessingLatency;
|
|
int framesWithHostProcessingLatency;
|
|
int maxHostProcessingLatency;
|
|
int minHostProcessingLatency;
|
|
} video_stats_t;
|
|
|
|
@interface Connection : NSOperation <NSStreamDelegate>
|
|
|
|
-(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer*)myRenderer connectionCallbacks:(id<ConnectionCallbacks>)callbacks;
|
|
-(void) terminate;
|
|
-(void) main;
|
|
-(BOOL) getVideoStats:(video_stats_t*)stats;
|
|
-(NSString*) getActiveCodecName;
|
|
|
|
@end
|