The first PTT program

HelloPTT is a basic program for PTT service. It is developed by using ProPTT's client SDK.
There are very simple features.
We'd like that you can understand PTT programming through ProPTT2 SDK

Screens

Windows/Android/iOS

Linux

Linux version supports CLI UI.

Features

Please check Get Started

  • Login to ProPTT2
  • View channel list
  • Join and leave a PTT chhannel
  • Lock and unlock on joined PTT channel

Setup

Please check Get Started

Test accounts

ProPTT2 cloud service support test account for HelloPTT.
user1@hello.ptt.kr ~ user10@hello.ptt.kr/1234
It is only for testing. Please don't use them for service.

Description

iOS

Description about source files.
PTTService.m

  • It is control module for PTTClient, PTTChannel, Group and VideoChannel.
  • Process basic functions(log-in, log-out, channel, member, buddy, organization, lock, unlock) and fire events to UI about the response.
  • You need to input the SDK license at initialization.
ViewControllers/LoginViewController.m
  • After log-in, when buddy list and organization are received, UI move to ChannelListView.
  • If there is problem(means account is not collect ir license is invalid or network is unavailable), screen can't move to next.
ViewControllers/ChannelListViewController.m
  • Show channel list. There are channel's name and subscriber's count.
  • If user click a channel, then join to the channel and move into Channel detail view.
ViewControllers/ChannelDetailViewController.m
  • In channel detail view, user can use PTT lock/unlock.
  • If user click "Back buttom", channel isleaved and move to ChannelListView.

Android

Description about source files.
com.imptt.proptt.helloptt.PTTService.java

  • It is control module for PTTClient, PTTChannel, Group and VideoChannel.
  • Process basic functions(log-in, log-out, channel, member, buddy, organization, lock, unlock) and fire events to UI about the response.
  • You need to input the SDK license at initialization.
com.imptt.proptt.helloptt.ui.LoginActivity.java
  • After log-in, when buddy list and organization are received, UI move to ChannelListView.
  • If there is problem(means account is not collect ir license is invalid or network is unavailable), screen can't move to next.
com.imptt.proptt.helloptt.ui.ChannelListActivity.java
  • Show channel list. There are channel's name and subscriber's count.
  • If user click a channel, then join to the channel and move into Channel detail view.
com.imptt.proptt.helloptt.ui.ChannelDetailActivity.java
  • In channel detail view, user can use PTT lock/unlock.
  • If user click "Back buttom", channel isleaved and move to ChannelListView.

Windows

Description about source files.
PTTService.xaml.cs

  • It is control module for PTTClient, PTTChannel, Group and VideoChannel.
  • Process basic functions(log-in, log-out, channel, member, buddy, organization, lock, unlock) and fire events to UI about the response.
  • You need to input the SDK license at initialization.
LoginWindow.xaml.cs
  • After log-in, when buddy list and organization are received, UI move to ChannelListView.
  • If there is problem(means account is not collect ir license is invalid or network is unavailable), screen can't move to next.
ChannelListWindow.xaml.cs
  • Show channel list. There are channel's name and subscriber's count.
  • If user click a channel, then join to the channel and move into Channel detail view.
ChannelDetailWindow.xaml.cs
  • In channel detail view, user can use PTT lock/unlock.
  • If user click "Back buttom", channel isleaved and move to ChannelListView.

Linux

Description about source files.
HelloPTTMain.cpp

  • The main function is in here.
  • Main login is signal processing.
  • You need to input the SDK license at initialization.
ProPTTClient.cpp
  • Here is the main logig for ProPTT2.
  • And main menu for a user.
  • Login/Channel list/Join to a channel/Lock/Unlock/Leave/Quit.
sha512.cpp
  • Sha512 function for ProPTT2 password