### Sample Watermark Setup Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Example JSON configuration for setting up a watermark with image entry, margins, opacity, and scale. ```json {"imageEntry":"0_yn0vivhl","margins":"-100x10","opacity":"0.5","scale":"0x250"} ``` -------------------------------- ### Install and Deploy Kafka Plugins Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Steps to install Kafka plugins and deploy Kafka user events. Ensure Rdkafka is installed and necessary configurations are updated. ```php php /opt/kaltura/app/deployment/base/scripts/installPlugins.php ``` ```php php /opt/kaltura/app/deployment/updates/scripts/2022_07_27_deploy_kafka_user_events.php ``` -------------------------------- ### Install Apache Ant Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Instructions to install Apache Ant. ```bash Install [Apache Ant](http://ant.apache.org/manual/installlist.html "Apache Ant") ``` -------------------------------- ### Install Markdown Plugin Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this script to install the Markdown plugin. New clients may need to be generated afterward. ```php php /opt/kaltura/app/deployment/base/scripts/installPlugins.php ``` -------------------------------- ### Install Apache Tomcat 7 Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Instructions to install Apache Tomcat 7 as a Unix daemon. ```bash Install [Apache Tomcat 7](http://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon "Apache Tomcat 7") ``` -------------------------------- ### Flot Data Initialization Example Source: https://github.com/kaltura/server/blob/West-23.2.0/infra/monitor/web/js/flot/API.md Illustrates how to initialize a Flot chart with data, including series labels and data points. This is a common setup for basic Flot charts. ```javascript $.plot($("#placeholder"), [ { label: "Foo", data: [[0, 10], [7, 3]] } ], ...); ``` -------------------------------- ### Create SSO Table and Install Plugins Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md This deployment process involves creating the SSO table using a MySQL script and then installing necessary plugins. It also includes running PHP scripts to add SSO role and service permissions. ```bash Run mysql –h{HOSTNAME} –u{USER} –p{PASSWORD} kaltura < /opt/kaltura/app/deployment/updates/sql/2019_09_01_create_sso_table.sql Run install plugins: php /opt/kaltura/app/deployment/base/scripts/installPlugins.php php deployment/updates/scripts/add_permissions/2019_09_04_add_sso_role_and_permissions.php php deployment/updates/scripts/add_permissions/2019_09_04_sso_service.php ``` -------------------------------- ### Install Session Cue Point Plugin Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Use these PHP scripts to install plugins and add permissions for the Session Cue Point plugin. ```bash php /opt/kaltura/app/deployment/base/scripts/installPlugins.php php /opt/kaltura/app/deployment/updates/scripts/add_permissions/2023_05_29_add_sessionCuePoint_permission.php ``` -------------------------------- ### C Demo Code Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/clike/index.html A C code example demonstrating the use of ZeroMQ (zmq) and pthreads for asynchronous operations. This snippet includes thread initialization and a main thread loop for handling commands. ```c /* C demo code */ #include #include #include #include #include #include #include typedef struct { void* arg_socket; zmq_msg_t* arg_msg; char* arg_string; unsigned long arg_len; int arg_int, arg_command; int signal_fd; int pad; void* context; sem_t sem; } acl_zmq_context; #define p(X) (context->arg_##X) void* zmq_thread(void* context_pointer) { acl_zmq_context* context = (acl_zmq_context*)context_pointer; char ok = 'K', err = 'X'; int res; while (1) { while ((res = sem_wait(&context->sem)) == EINTR); if (res) {write(context->signal_fd, &err, 1); goto cleanup;} switch(p(command)) { case 0: goto cleanup; case 1: p(socket) = zmq_socket(context->context, p(int)); break; case 2: p(int) = zmq_close(p(socket)); break; case 3: p(int) = zmq_bind(p(socket), p(string)); break; case 4: p(int) = zmq_connect(p(socket), p(string)); break; case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break; case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break; case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break; case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break; case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break; } p(command) = errno; write(context->signal_fd, &ok, 1); } cleanup: close(context->signal_fd); free(context_pointer); return 0; } void* zmq_thread_init(void* zmq_context, int signal_fd) { acl_zmq_context* context = malloc(sizeof(acl_zmq_context)); pthread_t thread; context->context = zmq_context; context->signal_fd = signal_fd; sem_init(&context->sem, 1, 0); pthread_create(&thread, 0, &zmq_thread, context); pthread_detach(thread); return context; } ``` -------------------------------- ### Install Confluent Schema Registry API Client Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/avro/flix-tech/confluent-schema-registry-api/README.md Install the library using Composer. Ensure you use the correct version constraint. ```bash composer require "flix-tech/confluent-schema-registry-api=~4.0" ``` -------------------------------- ### Install SIP Plugins and Add Permissions Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Deployment scripts to install SIP plugins and add necessary permissions. This includes running PHP scripts and configuring server nodes. ```bash php /opt/kaltura/app/deployment/base/scripts/installPlugins.php php /opt/kaltura/app/deployment/updates/scripts/add_permissions/2019_04_21_add_pexip_permissions.php servernode add serverNode:objectType=KalturaSipServerNode serverNode:environment=$ENV$ serverNode:name=$NAME$ serverNode:description=$DESCRIPTION$ serverNode:hostName=$HOSTNAME$ servernode enable id=$CREATED_SERVER_NODE_ID$ ``` -------------------------------- ### Install Plugins using PHP Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute a PHP script to install plugins. This is often required after updates or when adding new functionalities. ```bash deployment/base/scripts/installPlugins.php ``` ```bash /opt/kaltura/app/deployment/base/scripts/installPlugins.php ``` -------------------------------- ### Install Plugins and Add Search History Permissions Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute these PHP scripts to install plugins and add necessary permissions for the Search History plugin. ```bash php /opt/kaltura/app/deployment/base/scripts/installPlugins.php php /opt/kaltura/app/deployment/updates/scripts/add_permissions/2023_05_07_add_searchhistory_permissions.php ``` -------------------------------- ### Install SmoothProtect.exe binary (Windows) Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Install the 'SmoothProtect.exe' binary on Windows systems. This is required for smooth protection transcoding. ```powershell Install 'SmoothProtect.exe' binary ``` -------------------------------- ### Install Flavor Asset HTTP Notifications Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a standalone client script to install flavor asset HTTP notifications. ```php php /opt/kaltura/app/tests/standAloneClient/exec.php /opt/kaltura/app/tests/standAloneClient/flavorAssetHttpNotifications.xml ``` -------------------------------- ### Jinja2 HTML Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/jinja2/index.html An example of a Jinja2 template embedded within HTML, demonstrating comments and a for loop. ```html Jinja2 Example
    {# this is a comment #} {%- for item in li -%}
  • {{ item.label }}
  • {% endfor -%}
``` -------------------------------- ### Install Live Analytics App Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Download and unzip the live analytics application distribution into the specified directory. ```bash https://github.com/kaltura/LiveAnalytics/releases/tag/0.1 /opt/Kaltura/apps/liveanalytics/v0.1/ ``` -------------------------------- ### Install Plugins Deployment Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Deploys plugins, including missing enums for the quiz plugin. This script is used for general plugin installation. ```bash php /deployment/base/scripts/installPlugins.php ``` -------------------------------- ### Add Partner Get Permission Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a PHP script to add permissions for the partner:get action to the mediaServer partner. ```bash php deployment/updates/scripts/add_permissions/2020_06_20_add_permission_partner_get.php ``` -------------------------------- ### SPARQL Query Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/sparql/index.html A sample SPARQL query demonstrating syntax highlighting and structure. ```sparql PREFIX a: PREFIX dc: PREFIX foaf: # Comment! SELECT ?given ?family WHERE { ?annot a:annotates . ?annot dc:creator ?c . OPTIONAL { ?c foaf:given ?given ; foaf:family ?family } . FILTER isBlank(?c) } ``` -------------------------------- ### reST Explicit Markup Block Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/rst/index.html Demonstrates the start of an explicit markup block in reStructuredText, indicated by a line starting with '.. '. ```rst .. This is an explicit markup block. ``` -------------------------------- ### Update Partner Get Permission Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Run this PHP script to allow partner -11 to execute partner.get. ```php php deployment/updates/scripts/add_permissions/2022_06_21_update_partner_get_permission.php ``` -------------------------------- ### reST Directive Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/rst/index.html Shows the syntax for using a generic directive in reStructuredText, which starts with '.. ' followed by the directive name. ```rst .. _directives: Directives ---------- A directive (:duref:`ref `) ``` -------------------------------- ### Run Integration Tests Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/avro/flix-tech/confluent-schema-registry-api/README.md Perform integration tests by starting a schema registry using Docker Compose. Ensure Docker Compose version 1.13.0 or higher is installed. ```bash make integration-test ``` -------------------------------- ### Configure Free Trial Resource URL Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Sets the URL for free trial resources in local.ini. ```ini free_trial_resource_url = @FREE_TRIAL_RESOURCE_URL@ ``` -------------------------------- ### Example Series Configuration Source: https://github.com/kaltura/server/blob/West-23.2.0/infra/monitor/web/js/flot/API.md Demonstrates how to configure specific series options, such as enabling and filling lines, and showing points without filling them. This configuration is part of the main options object. ```javascript var options = { series: { lines: { show: true, fill: true, fillColor: "rgba(255, 255, 255, 0.8)" }, points: { show: true, fill: false } } }; ``` -------------------------------- ### Install Couchbase PHP Extension Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Installs the Couchbase PHP extension using PECL. Ensure development tools and Couchbase libraries are installed beforehand. ```bash pecl install couchbase-2.0.7 ``` -------------------------------- ### Install Avro PHP Library with Composer Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/avro/wikimedia/avro/README.md Use Composer to install the Avro PHP library. Ensure you have PHP 5.5.9+ and the GMP extension installed. ```bash $ composer require wikimedia/avro ``` -------------------------------- ### Deploy New Live Audio Flavor Parameters Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this PHP script to deploy new flavor parameters for live audio. No specific configuration is required beforehand. ```bash php /opt/kaltura/app/deployment/updates/scripts/2017_12_20_deploy_new_live_params.php ``` -------------------------------- ### Deploy Audio Description Flavor Parameters Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this PHP script to deploy new audio description flavor parameters. Ensure the script path is correct. ```bash php /opt/kaltura/app/deployment/updates/scripts/2019_04_17_deploy_audio_description_flavor_params.php ``` -------------------------------- ### CSS Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/css/index.html An example of CSS code that can be highlighted by the CodeMirror CSS mode. ```css /* Some example CSS */ @import url("something.css"); body { margin: 0; padding: 3em 6em; font-family: tahoma, arial, sans-serif; color: #000; } #navigation a { font-weight: bold; text-decoration: none !important; } h1 { font-size: 2.5em; } h2 { font-size: 1.7em; } h1:before, h2:before { content: "::"; } code { font-family: courier, monospace; font-size: 80%; color: #418A8A; } ``` -------------------------------- ### XML/HTML Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/xml/index.html An example of XML/HTML content that can be edited with CodeMirror's XML mode. ```html HTML Example The indentation tries to be somewhat "do what I mean"... but might not match your style. ``` -------------------------------- ### Basic Google Client Initialization and API Call Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/google-api-php-client-1.1.2/README.md Initializes the Google client, sets application name and developer key, and makes a sample API call to list volumes from the Books API. This is a foundational example for interacting with Google APIs. ```php setApplicationName("Client_Library_Examples"); $client->setDeveloperKey("YOUR_APP_KEY"); $service = new Google_Service_Books($client); $optParams = array('filter' => 'free-ebooks'); $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams); foreach ($results as $item) { echo $item['volumeInfo']['title'], "
\n"; } ``` -------------------------------- ### Composer Installation (CLI) Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/PHPMailer/README.md Alternatively, run this command in your terminal to install PHPMailer via Composer. ```sh composer require phpmailer/phpmailer ``` -------------------------------- ### Deploy Activiti Processes Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Navigate to the bpmn directory and run the ant command to deploy processes. Ensure all tokens are replaced. ```bash cd @WEB_DIR@/content/clientlibs/bpmn ant ``` -------------------------------- ### Composer Installation (JSON) Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/PHPMailer/README.md Add this line to your composer.json file to install PHPMailer using Composer. ```json "phpmailer/phpmailer": "^6.9.1" ``` -------------------------------- ### Generate and Deploy BPMN Clients Source: https://github.com/kaltura/server/blob/West-23.2.0/doc/bpm-deployment.md Generate Java POJO and BPMN clients, then deploy them by navigating to the bpmn clientlibs directory and running Ant. ```bash php @APP_DIR@/generator/generate.php pojo,bpmn cp @WEB_DIR@/content/clientlibs/bpmn/deploy/src/activiti.cfg.template.xml @WEB_DIR@/content/clientlibs/bpmn/deploy/src/activiti.cfg.xml cd @WEB_DIR@/content/clientlibs/bpmn ant ``` -------------------------------- ### Initialize Live Packager Delivery Profiles Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Replace tokens and remove '.template' from the specified .ini files, then run the PHP script to create live packager delivery profiles. ```bash php /opt/kaltura/app/deployment/updates/scripts/2017_07_11_create_live_packager_delivery_profiles.php ``` -------------------------------- ### Add Permissions for Session Get Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this PHP script to add read permissions for session get. ```php php deployment/updates/scripts/add_permissions/2024_07_21_session_get_read_permissions.php ``` -------------------------------- ### Run script to add video avatar partner and permissions Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this PHP script to add the necessary partner and permissions for the video avatar microservice. ```bash php deployment/updates/scripts/add_permissions/2026_02_09_video_avatar_add_partner.php ``` -------------------------------- ### Basic PDF Creation with FPDF Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/fpdf/tutorial/tuto1.htm This is the minimal FPDF example. It includes the library, creates a PDF object, adds a page, sets a font, adds a 'Hello World!' cell, and outputs the PDF. ```php AddPage(); $pdf->SetFont('Arial','B',16); $pdf->Cell(40,10,'Hello World!'); $pdf->Output(); ?> ``` -------------------------------- ### Perl Code Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/perl/index.html A basic example of Perl code demonstrating strings, regular expressions, and variable assignments. ```perl #!/usr/bin/perl use Something qw(func1 func2); # strings my $s1 = qq'single line'; our $s2 = q(multi- line); =item Something Example. =cut my $html=<<'HTML' hi! HTML print "first,".join(',', 'second', qq~third~); if($s1 =~ m\[(?{$1}=$$.' predefined variables'; $s2 =~ s/\\-line//ox; $s1 =~ s\[ line \] \[ block \]ox; } 1; # numbers and comments __END__ something... ``` -------------------------------- ### Add System Get Version Permission Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute this PHP script to add the system get version permission. ```php php deployment/updates/scripts/add_permissions/2014_09_04_add_system_get_version_permission.php ``` -------------------------------- ### Add Partner and Permissions for Media Repurposing Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Deployment script to add partner and permissions for media repurposing. ```php deployment/updates/scripts/add_permissions/2024_02_14_media_repurposing_add_partner.php ``` -------------------------------- ### Update Interactivity Get Action Permissions Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a PHP script to update permissions for the interactivity get action. ```bash php deployment/updates/scripts/add_permissions/2020_06_02_update_interactivity_get_action_permissions.php ``` -------------------------------- ### Deploy 4K Flavor Parameters Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Run this PHP script to deploy the 4K flavor parameters. ```php php /opt/kaltura/app/deployment/updates/scripts/2025_05_29_deploy_4k_flavor_params.php ``` -------------------------------- ### Lua Syntax Highlighting Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/lua/index.html Demonstrates Lua syntax highlighting with multi-line and single-line comments, function definitions, table creation, conditional statements, and variable assignments. ```lua --[[ example useless code to show lua syntax highlighting this is multiline comment ]] function blahblahblah(x) local table = { "asd" = 123, "x" = 0.34, } if x ~= 3 then print( x ) elseif x == "string" my_custom_function( 0x34 ) else unknown_function( "some string" ) end --single line comment end function blablabla3() for k,v in ipairs( table ) do --abcde.. y=[=[ x=[[ x is a multi line string ]] but its definition is iside a highest level string! ]=] print(" \"\" ") s = math.sin( x ) end end ``` -------------------------------- ### Create Q&A Default Schema Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Runs a deployment script to create the default schema for the Q&A feature. Ensure the path is correct. ```bash php /opt/kaltura/app/deployment/updates/scripts/2015_05_11_create_qAndA_default_schema.php ``` -------------------------------- ### Install ffmpeg 2.2 (Linux) Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Install ffmpeg version 2.2 on Linux systems. Ensure it is not assigned to 'ffmpeg' or 'ffmpeg-aux' aliases. ```bash Install ffmpeg-2.2 from http://ny-www.kaltura.com/content/shared/bin/ffmpeg-2.2-bin.tar.gz Don't assign ffmpeg-2.2 to neither 'ffmpeg' nor to 'ffmpeg-aux' ``` -------------------------------- ### Markings Array Example Source: https://github.com/kaltura/server/blob/West-23.2.0/infra/monitor/web/js/flot/API.md An example of how to define markings using an array, specifying ranges and colors for visual elements within the grid. ```javascript markings: [ { xaxis: { from: 0, to: 2 }, yaxis: { from: 10, to: 10 }, color: "#bb0000" }, ... ] ``` -------------------------------- ### Deploy Monitoring Proxy Partner Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute the PHP script to add the monitoring-proxy partner. Ensure XML files are updated and '.template' is removed. ```bash php deployment/updates/scripts/add_permissions/2019_07_22_monitoring_proxy_add_partner.php ``` -------------------------------- ### Add Session Get Permission for Self Serve Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a PHP script to add session get permission for self-serve partners. ```bash php deployment/updates/scripts/add_permissions/2026_04_20_session_get_permission.php ``` -------------------------------- ### Enable Tvinci Distribution Plugins Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md To enable Tvinci distribution plugins, add the relevant lines to your plugins.ini file and then run the installPlugins.php script. ```bash TvinciDistribution ``` ```bash php deployment/base/scripts/installPlugins.php ``` -------------------------------- ### Initialize Partner Configuration for AI Framework Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Replace tokens in the ini file under the 'connectors-framework' section and remove the '.template' extension from the filename. ```ini /opt/kaltura/app/deployment/base/scripts/init_data/01.Partner.template.ini ``` -------------------------------- ### NTriples Example Content Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/ntriples/index.html An example of NTriples data format, showcasing subjects, predicates, objects, literals with language tags, and typed literals. ```ntriples . "literal 1" . _:bnode3 . _:bnode4 "literal 2"@lang . _:bnode5 "literal 3"^^ . ``` -------------------------------- ### ECL Syntax Highlighting Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/ecl/index.html Demonstrates ECL syntax highlighting with comments and basic code structures. This is a sample for demonstrating the mode. ```ecl /* sample useless code to demonstrate ecl syntax highlighting this is a multiline comment! */ // this is a singleline comment! import ut; r := record string22 s1 := '123'; integer4 i1 := 123; end; #option('tmp', true); d := dataset('tmp::qb', r, thor); output(d); ``` -------------------------------- ### RPM Spec File Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/rpm/spec/index.html A sample RPM spec file demonstrating the structure and common directives used in packaging software for RPM-based Linux distributions. ```rpm-spec # # spec file for package minidlna # # Copyright (c) 2011, Sascha Peilicke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. Name: libupnp6 Version: 1.6.13 Release: 0 Summary: Portable Universal Plug and Play (UPnP) SDK Group: System/Libraries License: BSD-3-Clause Url: http://sourceforge.net/projects/pupnp/ Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 BuildRoot: %{\_tmppath}/%{name}-%{version}-build %description The portable Universal Plug and Play (UPnP) SDK provides support for building UPnP-compliant control points, devices, and bridges on several operating systems. %package -n libupnp-devel Summary: Portable Universal Plug and Play (UPnP) SDK Group: Development/Libraries/C and C++ Provides: pkgconfig(libupnp) Requires: %{name} = %{version} %description -n libupnp-devel The portable Universal Plug and Play (UPnP) SDK provides support for building UPnP-compliant control points, devices, and bridges on several operating systems. %prep %setup -n libupnp-%{version} %build %configure --disable-static make %{?_smp_mflags} %install %makeinstall find %{buildroot} -type f -name '\*.la' -exec rm -f {} \; %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc ChangeLog NEWS README TODO %{\_libdir}/libixml.so.\* %{\_libdir}/libthreadutil.so.\* %{\_libdir}/libupnp.so.\* %files -n libupnp-devel %defattr(-,root,root,-) %{\_libdir}/pkgconfig/libupnp.pc %{\_libdir}/libixml.so %{\_libdir}/libthreadutil.so %{\_libdir}/libupnp.so %{\_includedir}/upnp/ %changelog ``` -------------------------------- ### Install AWS SDK for PHP using Composer Source: https://github.com/kaltura/server/blob/West-23.2.0/vendor/aws/README.md Use Composer to add the AWS SDK for PHP as a dependency to your project. This is the recommended installation method. ```bash composer require aws/aws-sdk-php ``` -------------------------------- ### R Lists and Basic Output Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/r/index.html Demonstrates how to create a list in R with named elements and print its contents using default and custom formatting. ```r # FIRST LEARN ABOUT LISTS -- X = list(height=5.4, weight=54) print("Use default printing --") print(X) print("Accessing individual elements --") cat("Your height is ", X$height, " and your weight is ", X$weight, "\n") ``` -------------------------------- ### Migrate Partner Media Server Configurations Script Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a script to migrate partner media server configurations, including overriding live delivery profiles. ```bash php /opt/kaltura/app/deployment/updates/scripts/2016_08_30_migrate_partner_media_server_configurations.php execute ``` -------------------------------- ### HTML Mixed Mode Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/htmlmixed/index.html This is an example of an HTML document with embedded CSS and JavaScript, intended for use with CodeMirror's HTML mixed mode. ```html Mixed HTML Example

Mixed HTML Example

``` -------------------------------- ### Install ffmpeg and ismindex binaries (Linux) Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Install ffmpeg v2.1.3 and ismindex binaries on Linux. This involves downloading and extracting tarballs and updating the ffmpeg alias. ```bash Install ffmpeg binary and ismindex binary from - http://ny-www.kaltura.com/content/shared/bin/ffmpeg-2.1.3-bin.tar.gz Switch the ffmpeg allias to work with the new ffmpeg-2.1.3 The ffmpeg-aux remains unchanged. ``` -------------------------------- ### Run PHP Script to Add Wowza Conversion Profile Permission Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Executes a PHP script to grant permissions for Wowza Media-Server to access conversion profiles. ```bash php /opt/kaltura/app/deployment/updates/scripts/add_permissions/2018_07_02_add_permission_wowza_conversionprofile.php ``` -------------------------------- ### Complete Data Specification Example Source: https://github.com/kaltura/server/blob/West-23.2.0/infra/monitor/web/js/flot/API.md An example showing an array of series objects, each with a label and data. This format is used to define multiple series for a single plot. ```javascript [ { label: "Foo", data: [ [10, 1], [17, -14], [30, 5] ] }, { label: "Bar", data: [ [11, 13], [19, 11], [30, -7] ] } ] ``` -------------------------------- ### Add Slim Audio Player Configuration Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Add the Kaltura_Client_Enum_UiConfObjType::SAP setting to admin.template.ini to enable the Slim Audio Player. ```ini settings.uiConfTypes[] = Kaltura_Client_Enum_UiConfObjType::SAP ``` -------------------------------- ### Initialize CodeMirror Python Mode Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/python/index.html Demonstrates how to initialize CodeMirror with the Python mode, specifying version and other options. ```javascript var editor = CodeMirror.fromTextArea(document.getElementById("code"), { mode: {name: "python", version: 2, singleLineStringErrors: false}, lineNumbers: true, indentUnit: 4, tabMode: "shift", matchBrackets: true }); ``` -------------------------------- ### Add Permissions for Live Stream Get Details Action Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Execute a PHP script to add necessary permissions for the live stream get details action. ```bash php /opt/kaltura/app/deployment/updates/scripts/add_permissions/2020_23_01_live_stream_get_details_action.php ``` -------------------------------- ### Add BaseEntry Get Permission for Game Service Partner Source: https://github.com/kaltura/server/blob/West-23.2.0/release-notes.md Run this PHP script to update base entry get permissions for the game service partner. ```php php deployment/updates/scripts/add_permissions/2023_01_17_update_baseentry_permission.php ``` -------------------------------- ### PL/SQL Code Example Source: https://github.com/kaltura/server/blob/West-23.2.0/admin_console/web/codemirror2/mode/plsql/index.html Demonstrates basic PL/SQL syntax including variable declaration, loops, and comments. This code is intended for use with the PL/SQL mode in CodeMirror. ```plsql -- Oracle PL/SQL Code Demo /* based on c-like mode, adapted to PL/SQL by Peter Raganitsch ( http://www.oracle-and-apex.com/ ) April 2011 */ DECLARE vIdx NUMBER; vString VARCHAR2(100); cText CONSTANT VARCHAR2(100) := 'That''s it! Have fun with CodeMirror 2'; BEGIN vIdx := 0; -- FOR rDATA IN ( SELECT * FROM EMP ORDER BY EMPNO ) -- LOOP -- vIdx := vIdx + 1; -- vString := rDATA.EMPNO || ' - ' || rDATA.ENAME; -- -- UPDATE EMP SET SAL = SAL * 101/100 WHERE EMPNO = rDATA.EMPNO ; -- END LOOP; -- SYS.DBMS_OUTPUT.Put_Line (cText); END; ```