This post assumes you have Kaltura CE4 and Red5 installed and configured for webcam recording, if you don’t read this post.
In this final video post about Kaltura CE4 and Red5 integration, we will show how to enable RTMP delivery and live streaming.
[kaltura-widget uiconfid=”6420041″ entryid=”1_44q21xg6″ width=”551″ height=”330″ addpermission=”” editpermission=”” /]RTMP delivery and live streaming using Red5
vim /opt/kaltura/app/alpha/apps/kaltura/modules/extwidget/actions/playManifestAction.class.php
$key = $flavorAsset->getSyncKey(flavorAsset::FILE_SYNC_FLAVOR_ASSET_SUB_TYPE_ASSET); $fileSync = kFileSyncUtils::getLocalFileSyncForKey($key); if(!$fileSync) continue; $urlManager->setClipTo($this->clipTo); $urlManager->setFileExtension($flavorAsset->getFileExt()); $urlManager->setProtocol(StorageProfile::PLAY_FORMAT_RTMP); $url = $urlManager->getFileSyncUrl($fileSync);
$data->streamID = 'livestream'; $data->backupStreamID = $data->streamID; $data->streamName = $job->entryId . '_%i@' . $data->streamID; $data->rtmp = 'rtmp://YourSite/oflaDemo'; $data->primaryBroadcastingUrl = 'rtmp://YourSite/oflaDemo'; $data->secondaryBroadcastingUrl = 'rtmp://YourSite/oflaDemo'; $data->encoderUsername = '';
vim /opt/kaltura/app/alpha/apps/kaltura/modules/extwidget/actions/streamclipperAction.class.php
Change $streamer = “rtmp://YourSite/oflaDemo”; (line 24)
Let us know in the comments or email us about your Red5+Kaltura Live Streaming deployment.