Ignore:
Timestamp:
08/24/10 07:51:02 (21 months ago)
Author:
shiretu
Message:

-- android related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/applications/applestreamingclient/src/protocols/protocolfactory.cpp

    r7 r96  
    2626#include "protocols/aes/inboundaesprotocol.h" 
    2727#include "protocols/httpbuff/httpbufferprotocol.h" 
     28#include "protocols/timer/finetimer.h" 
    2829 
    2930ProtocolFactory::ProtocolFactory() { 
     
    4142        ADD_VECTOR_END(result, PT_HTTP_BUFF); 
    4243        ADD_VECTOR_END(result, PT_INBOUND_AES); 
     44#ifdef HAS_MS_TIMER 
     45        ADD_VECTOR_END(result, PT_FINE_TIMER); 
     46#endif /* HAS_MS_TIMER */ 
    4347        return result; 
    4448} 
     
    4650vector<string> ProtocolFactory::HandledProtocolChains() { 
    4751        vector<string> result; 
     52#ifdef HAS_MS_TIMER 
     53        ADD_VECTOR_END(result, PC_FINE_TIMER); 
     54#endif /* HAS_MS_TIMER */ 
     55 
    4856        ADD_VECTOR_END(result, PC_MASTER_PLAYLIST); 
    4957        ADD_VECTOR_END(result, PC_CHILD_PLAYLIST); 
     
    5866vector<uint64_t> ProtocolFactory::ResolveProtocolChain(string name) { 
    5967        vector<uint64_t> result; 
    60         if (name == PC_MASTER_PLAYLIST) { 
     68        if (false) { 
     69 
     70        } 
     71#ifdef HAS_MS_TIMER 
     72        else if (name == PC_FINE_TIMER) { 
     73                ADD_VECTOR_END(result, PT_UDP); 
     74                ADD_VECTOR_END(result, PT_FINE_TIMER); 
     75        } 
     76#endif /* HAS_MS_TIMER */ 
     77        else if (name == PC_MASTER_PLAYLIST) { 
    6178                ADD_VECTOR_END(result, PT_TCP); 
    6279                ADD_VECTOR_END(result, PT_OUTBOUND_HTTP); 
     
    99116        BaseProtocol *pResult = NULL; 
    100117        switch (type) { 
     118#ifdef HAS_MS_TIMER 
     119                case PT_FINE_TIMER: 
     120                        pResult = new FineTimer(); 
     121                        break; 
     122#endif /* HAS_MS_TIMER */ 
    101123                case PT_INBOUND_MASTER_M3U8: 
    102124                        pResult = new MasterM3U8Protocol(); 
Note: See TracChangeset for help on using the changeset viewer.