Configuring Youtube Video Caching (Cli) - Juniper MEDIA FLOW CONTROLLER 2.0.4 - ADMINISTRATOR S GUIDE AND CLI Administrator's Manual

Administrator’s guide and cli command reference
Table of Contents

Advertisement

Media Flow Controller Administrator's Guide
Convert HEAD to GET: permit
Host-header Inherit: deny
Set X-Forwaded-For Header : yes
Client-Request Configuration:
Allow objects with a query-string to be cached: no
Client-Response Configuration :
Delivery Protocol: RTSP
Origin Fetch Configuration:
Cache-Age (Default): 28800 (seconds)
Cache Age Threshold: 60 (seconds)
Cache-Directive: follow
Object Size Threshold: NONE (Always Cached)
Virtual Player:
Live Pub-Point Details:
Pre-stage FTP Configuration:
User: example_ftpuser
7. From the browser, initiate a connection to Media Flow Controller for www.example.com.
Check the accesslog to see that Media Flow Controller processed it. You can view the
errorlog and the accesslog via the Media Flow Controller Web interface; use a browser to
open the Media Flow Controller IP address on port 8080 and login (default login: admin /
no password) and open the Service Logs tab.

Configuring YouTube Video Caching (CLI)

Configure a youtube type virtual player if you want to cache and optimize the delivery of
YouTube videos. See
configure YouTube video caching:
1. Configure a namespace with the proper URI prefix (/get_video or /videoplayback) and
domain name association to filter YouTube video requests
2. Configure a virtual player of type youtube to be associated with the above namespace
a. The cache name & seek configuration are required.
b. For case (a) described above the cache name configuration is video_id and fmt. For
case (b) described above the cache name configuration is id and itag
c. For seek configuration, the URI query is begin (seek length is not required)
3. Default cache age allowed for YouTube assets can be over-ridden using the namespace
origin-fetch options offered by the Media Flow Controller CLI to enable longer cache
intervals.
Example configuration to enable YouTube caching in Media Flow Controller:
test-vos (config) # virtual-player ytplayerA type youtube
test-vos (config virtual-player ytplayerA) # cache-name video-id query-
string-parm id format-id query-string-parm itag
test-vos (config virtual-player ytplayerA) # seek query-string-parm begin
test-vos (config virtual-player ytplayerA) # exit
test-vos (config) # show virtual-player ytplayerA
Virtual Player : ytplayerA
Type : youtube
Media Flow Controller Common Configuration Tasks (CLI)
"Using Virtual Player Type youtube" on page 77
Status Enabled: no
for more information. To
Configuring YouTube Video Caching (CLI)
199

Advertisement

Table of Contents
loading

This manual is also suitable for:

Media flow controller 2.0.4

Table of Contents