- Timestamp:
- Nov 13, 2013 2:33:31 AM (11 years ago)
- Location:
- pjproject/branches/projects/winphone
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/winphone/pjmedia/build/pjmedia_audiodev.vcxproj
r4618 r4650 432 432 <CompileAsWinRT>false</CompileAsWinRT> 433 433 <MinimalRebuild>true</MinimalRebuild> 434 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 434 435 </ClCompile> 435 436 <Lib> -
pjproject/branches/projects/winphone/pjsip-apps/src/pjsua/wp/build/pjsua_wp_backend.vcxproj
r4618 r4650 152 152 <AdditionalIncludeDirectories>../../../../../pjsip/include;../../../../../pjlib/include;../../../../../pjlib-util/include;../../../../../pjmedia/include;../../../../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 153 153 <AdditionalOptions>/D "_WIN32_WINPHONE" /D "PJ_M_ARMV7=1" %(AdditionalOptions)</AdditionalOptions> 154 <RuntimeLibrary>MultiThreadedD ebugDLL</RuntimeLibrary>154 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 155 155 </ClCompile> 156 156 <Link> … … 188 188 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Default</CompileAs> 189 189 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">CompileAsC</CompileAs> 190 <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT> 190 191 </ClCompile> 191 192 <ClCompile Include="..\..\pjsua_app_cli.c"> … … 193 194 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Default</CompileAs> 194 195 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">CompileAsC</CompileAs> 196 <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT> 195 197 </ClCompile> 196 198 <ClCompile Include="..\..\pjsua_app_common.c"> … … 198 200 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Default</CompileAs> 199 201 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">CompileAsC</CompileAs> 202 <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT> 200 203 </ClCompile> 201 204 <ClCompile Include="..\..\pjsua_app_config.c"> … … 203 206 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Default</CompileAs> 204 207 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">CompileAsC</CompileAs> 208 <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT> 205 209 </ClCompile> 206 210 <ClCompile Include="..\..\pjsua_app_legacy.c"> … … 208 212 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Default</CompileAs> 209 213 <CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">CompileAsC</CompileAs> 210 </ClCompile> 211 <ClCompile Include="..\backend\Globals.cpp" /> 214 <CompileAsWinRT Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">false</CompileAsWinRT> 215 </ClCompile> 216 <ClCompile Include="..\backend\Globals.cpp"> 217 <RuntimeLibrary Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">MultiThreadedDLL</RuntimeLibrary> 218 </ClCompile> 212 219 <ClCompile Include="..\backend\PjsuaCallback.cpp" /> 213 220 </ItemGroup> -
pjproject/branches/projects/winphone/pjsip-apps/src/pjsua/wp/pjsua_wp/App.xaml.cs
r4618 r4650 24 24 public partial class App : Application 25 25 { 26 /// <summary>27 /// Provides easy access to the root frame of the Phone Application.28 /// </summary>29 /// <returns>The root frame of the Phone Application.</returns>30 26 public PhoneApplicationFrame RootFrame { get; private set; } 31 27 32 /// <summary>33 /// The push channel URI for this application34 /// </summary>35 //public Uri PushChannelUri { get; private set; }36 37 /// <summary>38 /// An event that is raised when the push channel URI changes39 /// </summary>40 //public event EventHandler<Uri> PushChannelUriChanged;41 42 /// <summary>43 /// Constructor for the Application object.44 /// </summary>45 28 public App() 46 29 { … … 53 36 // Phone-specific initialization 54 37 InitializePhoneApplication(); 55 56 // Initialize the push channel57 //InitPushChannel();58 59 // Initialize the task to listen to incoming call notifications on the push channel60 //InitHttpNotificationTask();61 62 // Initalize the task to perform periodic maintenance63 //InitKeepAliveTask();64 38 65 39 // Show graphics profiling information while debugging. … … 84 58 } 85 59 86 // Code to execute when the application is launching (eg, from Start)87 // This code will not execute when the application is reactivated88 60 private void Application_Launching(object sender, LaunchingEventArgs e) 89 61 { 90 62 Debug.WriteLine("[App] Launching"); 91 92 // Call this method below at the beginning of this handler,93 // to let the background process that the UI is entering the foreground.94 //BackgroundProcessController.Instance.ConnectUi();95 96 // Do something, if required97 63 } 98 64 99 // Code to execute when the application is activated (brought to foreground)100 // This code will not execute when the application is first launched101 65 private void Application_Activated(object sender, ActivatedEventArgs e) 102 66 { 103 67 Debug.WriteLine("[App] Activated"); 104 105 // Call this method below at the beginning of this handler,106 // to let the background process that the UI is entering the foreground.107 //BackgroundProcessController.Instance.ConnectUi();108 109 // Do something, if required110 68 } 111 69 112 // Code to execute when the application is deactivated (sent to background)113 // This code will not execute when the application is closing114 70 private void Application_Deactivated(object sender, DeactivatedEventArgs e) 115 71 { 116 72 Debug.WriteLine("[App] Deactivated"); 117 118 // Do something, if required119 120 // Call this method below at the end of this handler,121 // to let the background process that the UI is leaving the foreground.122 //BackgroundProcessController.Instance.DisconnectUi();123 73 } 124 74 125 // Code to execute when the application is closing (eg, user hit Back)126 // This code will not execute when the application is deactivated127 75 private void Application_Closing(object sender, ClosingEventArgs e) 128 76 { 129 77 Debug.WriteLine("[App] Closing"); 130 131 // Do something, if required132 133 // Call this method below at the end of this handler,134 // to let the background process that the UI is leaving the foreground.135 //BackgroundProcessController.Instance.DisconnectUi();136 78 } 137 79 … … 190 132 } 191 133 192 // The name of our push channel.193 //private const string pushChannelName = "PhoneVoIPApp.PushChannel";194 195 //private void InitPushChannel()196 //{197 // // Try to find the push channel.198 // HttpNotificationChannel httpChannel = HttpNotificationChannel.Find(App.pushChannelName);199 200 // // If the channel was not found, then create a new connection to the push service.201 // if (httpChannel == null)202 // {203 // // We need to create a new channel.204 // httpChannel = new HttpNotificationChannel(App.pushChannelName);205 // httpChannel.Open();206 // }207 // else208 // {209 // // This is an existing channel.210 // this.PushChannelUri = httpChannel.ChannelUri;211 212 // Debug.WriteLine("[App] Existing Push channel URI is {0}", this.PushChannelUri);213 214 // // Let listeners know that we have a push channel URI215 // if (this.PushChannelUriChanged != null)216 // {217 // this.PushChannelUriChanged(this, this.PushChannelUri);218 // }219 220 // // TODO: Let your cloud server know that the push channel to this device is this.PushChannelUri.221 // }222 223 // // Register for all the events.224 // httpChannel.ChannelUriUpdated += new EventHandler<NotificationChannelUriEventArgs>(PushChannel_ChannelUriUpdated);225 // httpChannel.ErrorOccurred += new EventHandler<NotificationChannelErrorEventArgs>(PushChannel_ErrorOccurred);226 // httpChannel.HttpNotificationReceived += new EventHandler<HttpNotificationEventArgs>(PushChannel_HttpNotificationReceived);227 //}228 229 //private void PushChannel_ChannelUriUpdated(object sender, NotificationChannelUriEventArgs e)230 //{231 // Debug.WriteLine("[App] New Push channel URI is {0}", e.ChannelUri);232 233 // // Store the push channel URI234 // this.PushChannelUri = e.ChannelUri;235 236 // // Let listeners know that we have a push channel URI237 // if (this.PushChannelUriChanged != null)238 // {239 // this.PushChannelUriChanged(this, this.PushChannelUri);240 // }241 242 // // TODO: Let your cloud server know that the push channel to this device is e.ChannelUri.243 //}244 245 //private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)246 //{247 // // TODO: Let your cloud server know that the push channel to this device is no longer valid.248 //}249 250 //private void PushChannel_HttpNotificationReceived(object sender, HttpNotificationEventArgs e)251 //{252 // // TODO: Process raw push notifications here, if required.253 //}254 255 // The name of the incoming call task.256 //private const string incomingCallTaskName = "PhoneVoIPApp.IncomingCallTask";257 258 //public void InitHttpNotificationTask()259 //{260 // // Obtain a reference to the existing task, if any.261 // VoipHttpIncomingCallTask incomingCallTask = ScheduledActionService.Find(App.incomingCallTaskName) as VoipHttpIncomingCallTask;262 // if (incomingCallTask != null)263 // {264 // if (incomingCallTask.IsScheduled == false)265 // {266 // // The incoming call task has been unscheduled due to OOM or throwing an unhandled exception twice in a row267 // ScheduledActionService.Remove(App.incomingCallTaskName);268 // }269 // else270 // {271 // // The incoming call task has been scheduled and is still scheduled so there is nothing more to do272 // return;273 // }274 // }275 276 // // Create a new incoming call task.277 // incomingCallTask = new VoipHttpIncomingCallTask(App.incomingCallTaskName, App.pushChannelName);278 // incomingCallTask.Description = "Incoming call task";279 // ScheduledActionService.Add(incomingCallTask);280 //}281 282 // The name of the keep-alive task.283 //private const string keepAliveTaskName = "PjsuaWP.KeepAliveTask";284 285 //public void InitKeepAliveTask()286 //{287 // // Obtain a reference to the existing task, if any.288 // VoipKeepAliveTask keepAliveTask = ScheduledActionService.Find(App.keepAliveTaskName) as VoipKeepAliveTask;289 // if (keepAliveTask != null)290 // {291 // if (keepAliveTask.IsScheduled == false)292 // {293 // // The keep-alive task has been unscheduled due to OOM or throwing an unhandled exception twice in a row294 // ScheduledActionService.Remove(App.keepAliveTaskName);295 // }296 // else297 // {298 // // The keep-alive task has been scheduled and is still scheduled so there is nothing more to do299 // return;300 // }301 // }302 303 // keepAliveTask = new VoipKeepAliveTask(App.keepAliveTaskName);304 // keepAliveTask.Interval = new TimeSpan(12, 0, 0); // Every 12 hours305 // keepAliveTask.Description = "keep-alive task";306 // ScheduledActionService.Add(keepAliveTask);307 //}308 309 134 #endregion 310 135 }
Note: See TracChangeset
for help on using the changeset viewer.