ESFlashView_FLVSupport

Inherits fromNSObject
FrameworkFlashInApp.framework
Declared in ESFlashView_FLVSupport.h
Companion guideFlash’In’App Programming Guide 
Required system version Mac OS X 10.4 and higher

 

Class description of ESFlashView_FLVSupport


ESFlashView_FLVSupport extends ESFlashView functionality by adding support for playing and playback managing of FLV files.

 

Tasks of ESFlashView_FLVSupport


 

Loading FLV file

Managing FLV playback

Getting FLV width and height

 

Instance Methods of ESFlashView_FLVSupport


loadFlvAtPath:

Loads FLV file from specified path.

– (BOOL) loadFlvAtPath:(NSString *)flvName;

Parameter

flvName – FLV file name.

Return value

The method returns YES – if FLV file is successfully loaded, otherwise – NO.

 

playFlv

Plays FLV file.

– (BOOL)playFlv;

Return value

The method returns YES – if FLV playback state was successfully changed, otherwise – NO.

 

stopPlayFlv

Stops playing FLV file.

– (BOOL)stopPlayFlv;

Return value

The method returns YES – if FLV playback state was successfully changed, otherwise – NO.

 

rewindFlv

Rewinds FLV file.

– (BOOL)rewindFlv;

Return value

The method returns YES – if FLV playback state successfully changed, otherwise – NO.

 

totalTime

Gets total FLV playing time.

– (double)totalTime;

Return value

FLV duration in sec.

 

currentTime

Gets current FLV playback time.

– (double)currentTime;

Return value

Current FLV playback time in sec.

 

gotoTime:

Go to specified playback time of FLV file.

– (BOOL) gotoTime:(double)Time;

Parameter

Time – specified playback time of FLV file.

Return value

The method returns YES – if current FLV playback time is successfully changed, otherwise – NO.

 

backFlv

Move to the previous second of FLV playback time.

– (BOOL)backFlv;

Return value

YES – if the method succeeded, otherwise – NO.

 

forwardFlv

Move to the next second of FLV playback time.

– (BOOL)forwardFlv;

Return value

YES – if the method succeeded, otherwise – NO.

 

setRepeatStyle:

Sets repeat function.

– (BOOL) setRepeatStyle:(BOOL)Repeat;

Parameter

Repeat – YES – for repeat function enabling, otherwise – NO.

Return value

YES – if the method succeeded, otherwise – NO.

 

getFlvWidth:height:

Gets FLV file width and height.

– (BOOL)getFlvWidth:(float*)width height:(float*)height;

Parameters

Width – FLV file width

Height – FLV file height

Return value

YES – if the method succeeded, otherwise – NO.