Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmtrs/yii-opentok
OpenTok PHP library for Yii Framework
https://github.com/dmtrs/yii-opentok
Last synced: about 1 hour ago
JSON representation
OpenTok PHP library for Yii Framework
- Host: GitHub
- URL: https://github.com/dmtrs/yii-opentok
- Owner: dmtrs
- Created: 2013-03-21T12:52:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T17:58:14.000Z (over 9 years ago)
- Last Synced: 2024-11-09T07:53:57.399Z (about 2 months ago)
- Language: PHP
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yii-opentok
===========
OpenTok php library for the Yii Framework**NOTE: NOT really usable lib**
##Configure
First of all there is an need to configure the `CApplicationComponent` in your `config/main.php` like the following example:array(
...
'tok' => array(
'class' => 'ext.yii-opentok.EOpenTok',
'key' => 'KEY', //provided by your opentok account
'secret' => 'SECRET', //provided by your opentok account
),
...
),
....
);Then in order to get the widget running you would have to create a session or retrieve a session from your "persistance" (cookie, session, db):
Bottom line the widget runs like this:tok->createSession()->id;
$this->widget('EOpenTokWidget', array(
'key' => Yii::app()->tok->key,
'sessionId' => $sessionId,
'token' => Yii::app()->tok->generateToken($sessionId),
));**NOTES**
- Above code is not tested it is a raw example of how to use the extension
- EOpenTokWidget is the bear min to get nothing, you need to check the opentok documentation for your specific case.##Resources
- [OpenTok Documentation](http://www.tokbox.com/opentok/api/documentation)
- [OpenTok REST API Documnetation](http://www.tokbox.com/opentok/api/tools/documentation/api/server_side_libraries.html)
- [Yii Framework](http://yiiframework.com)