There was a problem loading the comments.

How does URL signing work?

Support Portal  »  Knowledgebase (FAQ)  »  Viewing Article

  Print
Editiones: VIMP Enterprise, VIMP Campus
Versions: 4.0.2+


The playback of VIMP videos as video embeds on external websites can be restricted to defined domains. 

 

To do this, activate streaming under Configuration -> Streaming -> Streaming settings and select "Native HLS" or "HLS via streaming server" as the protocol (if you have connected a streaming server such as Wowza).

 

In VIMP, URL signing can then be activated in the configuration under "URL signing". 

 

You can also specify the list of domains on which an embedded video may be played here.

 

URL signing also offers the option of restricting signing to individual videos. To activate this function, first create a user-defined media field of the type checkbox:

 

d7e43c8bb1f898ea1a8fbcf12c9c68474e74a28b6762144941892868c1504012ac1f27bb1499c7d3?t=0e259fb433900acaef1a7ec93b040e40

You can choose any field name you like, as well as the displayed name.

 

In the media field settings, set the visibility to hidden so that it is not displayed in the frontend, but only when uploading and editing the medium.

 

08b8942f9de4c2040d8e339d51b9a6ae14c4d19bd3b9271930b418c39276c8b59da06bb49631a504?t=5f9497f17c24c7d5c8a6c719a065a77d

 

55ef989f0dde7712a6d51ff9ebbc586fafcf1ca2f96223862acade0c2a875f1b4f30d8c6cb1cdbe9?t=2ffbfdeab77db7896adf5a41e44ec28a

 

Back in the URL signing configuration, select the field you have just created as the field responsible for signing.

 

From now on, only media for which the checkbox is ticked will be signed. All other media can continue to be integrated on any website without being checked.


Wowza configuration for URL signing 

If you want to use URL signing together with the Wowza Streaming Engine, please also carry out the following steps.

 

We assume that the Wowza Streaming Engine is already installed and configured. If not, please proceed as described in this FAQ article.

 

Install Wrench

Install the Wrench module as described in this article: https://streamtoolbox.com/wrench-setup

 

You also need the MySQL connector, which you can download via the download link in the Wrench FAQ: https://streamtoolbox.com/faq

 

After you have completed all configuration steps of the Wrench module and Wrench is running, log in to the Wrench GUI.

 

Please make the following settings there:

 

Name Value
wrench.db.driver com.mysql.jdbc.Driver
wrench.db.url VIMP database, e.g. jdbc:mysql://localhost:3306/vimp
wrench.db.user VIMP database user
wrench.db.pass VIMP database password
wrench.encoder.token secret encoder token
wrench.token.url.parameter t
wrench.token.resolver.sql SELECT username FROM url_signing WHERE md5(token)=:hashedtoken

 

Replace the database values (path, user, password) with your database parameters and assign any value for the secret encoder token.

 

Save the settings and restart your Wrench application in Wowza.

 

Alternatively, you can also enter the settings directly in the application.xml of your application as follows. This can normally be found under usr/local/WowzaEngine/conf/<application>.


<Property><Name>wrench.db.driver</Name><Value>com.mysql.jdbc.Driver</Value></Property>
<Property><Name>wrench.db.url</Name><Value>jdbc:mysql://localhost:3306/vimp</Value></Property>
<Property><Name>wrench.db.user</Name><Value>db_user</Value></Property>
<Property><Name>wrench.db.pass</Name><Value>db_passwort</Value></Property>
<Property><Name>wrench.token.url.parameter</Name><Value>t</Value></Property>
<Property><Name>wrench.http.autoaccept.ticket.count</Name><Value>3</Value></Property>
<Property><Name>wrench.http.autoaccept.ticket.timeout</Name><Value>15</Value></Property>
<Property><Name>wrench.ppv.grace.period</Name><Value>5</Value></Property>
<Property><Name>wrench.monitor.period</Name><Value>600</Value></Property>
<Property><Name>wrench.switchable.public.check.period</Name><Value>10</Value></Property>
<Property><Name>wrench.http.request.limit.time.window</Name><Value>30</Value></Property>
<Property><Name>wrench.encoder.token</Name><Value>encodersecret</Value></Property>
<Property><Name>wrench.token.resolver.sql</Name><Value>select token from url_signing where md5(token)=:hashedtoken</Value></Property>

 

Please replace the values in bold with your individual values.

 

Enter Wowza application in VIMP

Finally, enter the path to your Wrench-Wowza application in the admin area of VIMP under Configuration -> Streaming -> Streaming server URL for HLS with URL signing.

 


Share via

Related Articles

© VIMP GmbH