Skip to main content

Publishing guide

1) Copy

Integrating Jet-Stream into your portal is a matter of copy-paste:

1) Click on the Assets menu. We’ve put some demo content in your account.

2) Find Jet-StreamPlayer.smil and click on the play button: screenshot

2) Paste

3) Click the Copy icon next to the JavaScript code.

4) Paste the javascript code in the HTML code of your portal:

screenshot

Congratulations! You just integrated Jet-Stream Privacy Player. There is no step 3.

2) Paste.3) Click the Copy icon next to the JavaScript code. 4) Paste the javascript code in the HTML code of your portal: Congratulations! You just integrated Jet-Stream Privacy Player. There is no step 3.

Responsive

Jet-Stream Player is responsive. It automatically adapts to the size of the viewer’s browser or device screen size. You can also set a specific width and height. If the player is not displayed correctly in your website, please check your CSS stylesheets.

Smart URLs

Intelligent, active load balancing

Jet-Stream is not yet another ordinary CDN. We don’t use DNS to geo load balance traffic over our pool of servers and CDNs. DNS is too passive. It doesn’t enforce load balancing. The Jet-Stream Platform load balancers analyse each individual request. Within a millisecond our algorithms calculate the most optimal route, based upon over 15 variables, and redirect each user to the most optimal resource.

Smart load balancing URLs with parameters

To give you more control on how your media is delivered, Jet-Stream load balancing offers you URL and player parameters. Basic parameters that you can change are account and file. Other useful parameters are type, service and output. There are many more parameters available that make publishing media much easier, such as poster images, width and height, VAST advertisement, autoplay, repeat, 360° VR.

Embed code generator, video player generator

To help you generate javascript and iframe embed codes, the Jet-Stream Platform offers an integrated code generator for Privacy Player. It automatically detects whether you want to publish a downloadable object, a vod stream or a live stream, and changes the publishing parameters for you. You can turn on features such as autoplay, or add a poster image. The code will be updated immediately. Copy and paste the code to publish using the free and integrated Jet-Stream Privacy Player. Our load balancers will present Privacy Player to the viewer with the configured file or stream, in the right configuration.

Your own player

Privacy Player is integrated and offered unlimited, for free. It comes bundled with many professional features.

You can of course use any video player to publish your media. We don’t lock you into our workflow.

Use the same generator to genera-te URLs which can be used in any video player.

screenshot

Examples

Javascript for Privacy Player

<script src="https://cdn.jet-stream.com/static/pp/2.2.0/privacy-player.min.js"></script>
<div id="video-wrapper" style="height: 100%; width: 100%"></div>
<script>
let video_wrapper = document.querySelector("#video-wrapper")
player = new PrivacyPlayerPro(
"https://player.jet-stream.com/?account=Demo2020&file=JetStreamPlayer.smil&type=streaming&ser-vice=wowza&output=player&events=1",
video_wrapper, true, true );
</script>

iFrame for Privacy Player

<iframe src="https://player.jet-stream.com/?account=Demo2020&file=JetStreamPlayer.smil&ty-pe=streaming&service=wowza&output=player&events=1" width="100%" height="100%" frameborder="0" seamless allow="autoplay; fullscreen" allowfullscreen="true" webkitAllowFullScreen="true"></iframe>

URL for your own player

https://takeoff.jetstre.am/?account=Demo2020&file=JetStreamPlayer.smil&type=streaming&ser-vice=wowza&protocol=https&output=playlist.m3u8

Automation

Publishing automation

If you publish media at scale, you might want to automate player code generation.

1) Use the generator to create codes or URLs how you want them, with the right parameters.

2) Replace the file= value with a variable to generate a template javascript or iframe code or URL.

3) When you want to publish a specific video or a stream, simply use your template and fill in the variable with the correct file or stream name to generate the right code or URL for your web page.

Tip: the Control API and the status XML feeds can be used to automatically read out new available assets, streams and their URLs. This is how you can automate a bulk workflow chain between con-tent contributors and publishers.

Note: always use the takeoff load balancing URLs

The Jet-Stream load balancers individually redirect your audience to the best delivery resources. They are key to guarantee 100% uptime.

Always publish the presented load balancer URLs. Never publish output URLs. Bypassing the load balancer URLs can affect monitoring, statistics, capacity, performance and uptime. Output URLs expire: end users will not be able to access your content after a while.

If you need to present your viewers a direct output URL, our load balancers offer a back-end inte-gration option where your portal can request a dynamic output URL on behalf of the user (using their IP-address for geo optimisation).

Branding

Dynamic Branding

Privacy Player Pro lets you dynamically change colors, add graphical overlays, custom play but-tons and you can entirely hide and customize the play bar. Since all changes are in Javascript, you can dynamically change the colors while the stream is playing.

screenshot

Security

Lock assets and streams, generate tokens

1) Go to the API menu, choose the Secure Token screen.

2) Copy your private key (do not share this key).

screenshot

3) Check the examples and Javascript, Python and PHP sample codes on https://docs.jet-stream.com/docs/vdo-x/tokens/

4) Lock individual assets or streams (either through the web interface, or use the control API).

screenshot

Tip: the embed code generator shows how to inject the token parameter in the URL.

screenshot

Passwords

(Privacy Player Pro only)

1) Click on the key icon and enter a password. screenshot

2) Privacy Player Pro will ask for a password:

screenshot

Tip: objects are automatically locked. If you provide a valid token, the user does not need to enter a password. Vice versa you can offer specific users a password bypass for locked objects.You can use geo fencing in combination with tokens and passwords. Geo Fencing overrules