Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advance interactive video #197

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10,186 changes: 10,186 additions & 0 deletions KalturaGeneratedAPIClientsPHP/KalturaClient.php

Large diffs are not rendered by default.

1,487 changes: 1,487 additions & 0 deletions KalturaGeneratedAPIClientsPHP/KalturaClientBase.php

Large diffs are not rendered by default.

5,313 changes: 5,313 additions & 0 deletions KalturaGeneratedAPIClientsPHP/KalturaEnums.php

Large diffs are not rendered by default.

24,347 changes: 24,347 additions & 0 deletions KalturaGeneratedAPIClientsPHP/KalturaTypes.php

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions KalturaGeneratedAPIClientsPHP/get-kaltura-playlist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
require_once('KalturaClient.php');

$config = new KalturaConfiguration();
$config->setServiceUrl('https://www.kaltura.com');
$client = new KalturaClient($config);

$loginId = "{USER_EMAIL}";
$password = "{PASSWORD}";
$partnerId = "";
$expiry = 86400;
$privileges = "*";
$otp = "";
$page_size = $_GET['pageSize'];
$page_index = $_GET['pageIndex'];
$search_text = $_GET['searchText'];

try {
$ks = $client->user->loginByLoginId($loginId, $password, $partnerId, $expiry, $privileges, $otp);
// var_dump($ks);
$client->setKS($ks);

$filter = new KalturaMediaEntryFilter();
$filter->searchTextMatchOr = $search_text;
$pager = new KalturaFilterPager();
$pager->pageSize = $page_size;
$pager->pageIndex = $page_index;


try {
$result = $client->media->listAction($filter, $pager);
echo json_encode(array("results" => $result));
} catch (Exception $e) {
echo json_encode(array("error" => $e->getMessage()));
}
} catch (Exception $e) {
echo json_encode(array("error" => $e->getMessage()));
}
17 changes: 17 additions & 0 deletions advance-interactive-video-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Advance Interactive Video

## Installation

To install the additional features such as the Kaltura, Youtube and Vimeo Pro playlist follow the below instructions.

```
# For Kaltura integration:-

Please Enter your Kaltura Credentials like 'secret', partnerId, expiry, privileges and sessionType inside KalturaGeneratedAPIClientsPHP/GetKalturaMediaEntry.php.

#For Youtube and Vimeo Pro Integration:-

Open src/scripts/config.js file and add your youtube API key
and channel Id. Whereas, for Vimeo pro you need to add token and channel ID.

```
9 changes: 9 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,20 @@
"preloadedJs": [
{
"path": "dist/h5p-interactive-video.js"
},
{
"path": "src/scripts/custom-integration.js"
},
{
"path": "src/scripts/config.js"
}
],
"preloadedCss": [
{
"path": "dist/h5p-interactive-video.css"
},
{
"path": "src/styles/modal.css"
}
],
"preloadedDependencies": [
Expand Down
Loading