Public Types | Public Member Functions | List of all members
imm::IMediaController Class Referenceabstract

#include <IMediaController.h>

Inheritance diagram for imm::IMediaController:
istd::IChangeable ifile::IFileTypeInfo istd::IPolymorphic istd::IPolymorphic imm::IVideoController iqtmm::CFrameSeqVideoControllerComp

Public Types

enum  ChangeFlags { CF_STATUS = 0xc72a266, CF_MEDIA_POSITION }
 Data model change notification flags. More...
 
enum  SupportedFeatures { SF_OPEN_MEDIA = 0x1, SF_PLAY = 0x2, SF_SEEK = 0x4, SF_AUTO_PLAY = 0x8 }
 

Public Member Functions

virtual QString GetOpenedMediumUrl () const =0
 Get URL of the medium object. More...
 
virtual bool OpenMediumUrl (const QString &url, bool autoPlay=true)=0
 Open some media file. More...
 
virtual void CloseMedium ()=0
 Close this media player. More...
 
virtual bool IsPlaying () const =0
 Return true, if media is currntly playing. More...
 
virtual bool SetPlaying (bool state=true)=0
 Play or pause current media. More...
 
virtual double GetMediumLength () const =0
 Return length of opened media. More...
 
virtual double GetCurrentPosition () const =0
 Get current position. More...
 
virtual bool SetCurrentPosition (double position)=0
 Skip to some position of media stream. More...
 
virtual int GetSupportedFeatures () const =0
 Get info about features, that are supported by this media controller. More...
 

Detailed Description

Definition at line 17 of file IMediaController.h.

Member Enumeration Documentation

Data model change notification flags.

Enumerator
CF_STATUS 

Status (start/stop) changed.

CF_MEDIA_POSITION 

Current position changed.

Definition at line 25 of file IMediaController.h.

Enumerator
SF_OPEN_MEDIA 
SF_PLAY 
SF_SEEK 
SF_AUTO_PLAY 

Definition at line 37 of file IMediaController.h.

Member Function Documentation

virtual void imm::IMediaController::CloseMedium ( )
pure virtual

Close this media player.

It stops playing and closes media file.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual double imm::IMediaController::GetCurrentPosition ( ) const
pure virtual

Get current position.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual double imm::IMediaController::GetMediumLength ( ) const
pure virtual

Return length of opened media.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual QString imm::IMediaController::GetOpenedMediumUrl ( ) const
pure virtual

Get URL of the medium object.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual int imm::IMediaController::GetSupportedFeatures ( ) const
pure virtual

Get info about features, that are supported by this media controller.

See Also
SupportedFeatures

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual bool imm::IMediaController::IsPlaying ( ) const
pure virtual

Return true, if media is currntly playing.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual bool imm::IMediaController::OpenMediumUrl ( const QString &  url,
bool  autoPlay = true 
)
pure virtual

Open some media file.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual bool imm::IMediaController::SetCurrentPosition ( double  position)
pure virtual

Skip to some position of media stream.

Implemented in iqtmm::CFrameSeqVideoControllerComp.

virtual bool imm::IMediaController::SetPlaying ( bool  state = true)
pure virtual

Play or pause current media.

Implemented in iqtmm::CFrameSeqVideoControllerComp.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy