1) What are you trying to build?
2) How do you see yourself using the Call Widget API in that regard?
Thanks.
--
Melih O.
me...@tokbox.com
> --
> You received this message because you are subscribed to the Google Groups "TokBox-Developers" group.
> To post to this group, send email to tokbox-d...@googlegroups.com.
> To unsubscribe from this group, send email to tokbox-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tokbox-developers?hl=en.
>
i am using tokBox API to do that. then i want, when my user do
registration on my web, they also do registration to tokbox
automaticly. so when they make a video call, they can known as
registrated user to tokBox.
i am using Code igniter as my framework program, XAMPP for windows
version 1.7.3, php version 5.3.1.
i have called function TokBoxUser::registerUser($_POST['username1'],
$_POST['lastName'], $_POST['firstName']); after user registrate their
account on my website.
this is my registration code. i place this on my conntroler layer.
function insertProfile()
{
$polaemail = "^.+@.+..+$";
if($_POST['username1']==""||$_POST['password1']=="")
{
$data['info']="Invalid Email or Password. Please check your form";
$this->load->view('homeUI',$data);
}
else
{
$flag=1;
$uname=$this->Mod_Anggota->GetAllDataAnggota();
$rowuser = $uname->result();
foreach($rowuser as $row)
{
if($_POST['username1']==$row->EMAIL)
{
$data['info']= "Username was registered, use other";
$flag=0;
}
}
if($flag==1)
{
require_once 'SDK/TokBoxUser.php';
$hasil1 = $this->Mod_Anggota->InsertAnggota($_POST['username1'],
$_POST['password1'], $_POST['firstName'], $_POST['lastName'],
$_POST['nickName'], $_POST['gender'], $_POST['lokasi'],1);
$apiObj = TokBoxUser::registerUser($_POST['username1'],
$_POST['lastName'], $_POST['firstName']);
TokBoxUser::loginUser();
$tmp=$_POST['username1'];
$newdata= array(
'username'=>$tmp,
'nickname'=>$_POST['nickName']
);
$this->session->set_userdata($newdata);
redirect('/Anggota');
}
else
{
$data['incorrectlogin']="Incorrect Input,please make sure that
your input data are correct";
$data['tanda']=$flag;
$this->load->view('homeUI',$data);
}
}
}
when i tried to registrate new account, it replies error like what i
was shown to you before.
- how do i fix this and make my user registered to tokbox automatically?
- my application is working on localhost, i haven't host this yet.
must i host this first??
2) i just call function $htmlCode =
TokBoxCall::generateEmbedCode($callId, $width="800", $height="600");
as your example on video party example.
where must i put call widget function??is that must be together with other API?
i don't know yet how to use that function.
thnx Melih, sorry for my English.
--
best regrades,
Cahyawidi Sutanto.
That said, you'll need to figure out how to get Code Igniter to recognize the PHP SDK as a plugin. I've never tried this before, and I think that that is the problem that you're running into. Unfortunately, that's outside the scope of this developer list. Once you have the Code Igniter environment setup, the code that you have in place is exactly what you'll need to do to get video chat working on your site.
I hope that this helps.
--
Melih O.
me...@tokbox.com