Changeset 116
- Timestamp:
- 09/01/10 14:10:37 (17 months ago)
- Location:
- trunk/sources/androidapplestreaming/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/androidapplestreaming/src/api.cpp
r113 r116 62 62 #endif /* ANDROID */ 63 63 64 #ifdef BUILD_SIGNATURE 64 65 //1.1 Create the settings string 65 66 INFO("Build signature:\n%s", BUILD_SIGNATURE); 67 #endif /* BUILD_SIGNATURE */ 66 68 67 69 //2. Create the default protocol factory … … 95 97 } 96 98 97 #ifdef BUILD_SIGNATURE98 99 //6. Register it to the app manager 99 100 if (!ClientApplicationManager::RegisterApplication(pApp)) { 100 101 ASSERT("Unable to register application"); 101 102 } 102 #endif /* BUILD_SIGNATURE */103 103 104 104 //7. Create the RTSP acceptor -
trunk/sources/androidapplestreaming/src/main.cpp
r113 r116 91 91 //#define MY_SESSION_ID "" 92 92 93 #define MY_URL "http://localhost/~shiretu/ts6_raw/master.m3u8" 94 #define MY_KEY "" 95 #define MY_SESSION_ID "" 93 96 94 97 void testCommands() { … … 97 100 98 101 uint32_t contextId = (uint32_t) ASC_RES_PARAM(result, "contextId"); 99 result = CommandSetBitrates(contextId, "[8 00000]");102 result = CommandSetBitrates(contextId, "[850000]"); 100 103 FINEST("result:\n%s", STR(result.ToString())); 101 104 102 //result = CommandPlay(contextId, MY_URL, MY_SESSION_ID, MY_KEY);103 //FINEST("result:\n%s", STR(result.ToString()));105 result = CommandPlay(contextId, MY_URL, MY_SESSION_ID, MY_KEY); 106 FINEST("result:\n%s", STR(result.ToString())); 104 107 105 result = CommandPlay(contextId,106 "aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbWxiYW0vMjAxMC8wOC8yOC9NTEJfR0FNRV9WSURFT19LQ0FDTEVfSE9NRV8yMDEwMDgyOC9tYXN0ZXJfbW9iaWxlLm0zdTh8R3ZjbFJoV2lOMHlyZWcvL3NUeXJBNDJ4VXkwPXxwbGF5YmFjaz1IVFRQX0NMT1VEX01PQklMRSZjb250ZW50SWQ9MTEyNzU3MDkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMjY1NzQwLTIwMTAtMDgtMjgmaXBpZD0xMTYyNzcwNiZzZXNzaW9uS2V5PUFlMHNDUUFNUjJ2ZzQ2dUduT28xJTJGbVVYbjdFJTNEJmRldmljZUlkPUFORFJPSURfQTEwMDAwMTM3NTY2MDUmY291bnRyeT1ybyZwb3N0YWxDb2RlPTAwMDAwJnBsYXRmb3JtPUFORFJPSUQ="107 );108 FINEST("result:\n%s", STR(result.ToString()));108 // result = CommandPlay(contextId, 109 // "aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbWxiYW0vMjAxMC8wOC8yOC9NTEJfR0FNRV9WSURFT19LQ0FDTEVfSE9NRV8yMDEwMDgyOC9tYXN0ZXJfbW9iaWxlLm0zdTh8R3ZjbFJoV2lOMHlyZWcvL3NUeXJBNDJ4VXkwPXxwbGF5YmFjaz1IVFRQX0NMT1VEX01PQklMRSZjb250ZW50SWQ9MTEyNzU3MDkmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMjY1NzQwLTIwMTAtMDgtMjgmaXBpZD0xMTYyNzcwNiZzZXNzaW9uS2V5PUFlMHNDUUFNUjJ2ZzQ2dUduT28xJTJGbVVYbjdFJTNEJmRldmljZUlkPUFORFJPSURfQTEwMDAwMTM3NTY2MDUmY291bnRyeT1ybyZwb3N0YWxDb2RlPTAwMDAwJnBsYXRmb3JtPUFORFJPSUQ=" 110 // ); 111 // FINEST("result:\n%s", STR(result.ToString())); 109 112 110 113 // sleep(30);
Note: See TracChangeset
for help on using the changeset viewer.
