![Juniper MEDIA FLOW CONTROLLER 2.0.4 - Administrator'S Manual Download Page 199](http://html1.mh-extra.com/html/juniper/media-flow-controller-2-0-4/media-flow-controller-2-0-4_administrators-manual_2032854199.webp)
Configuring YouTube Video Caching (CLI)
199
Media Flow Controller Administrator’s Guide
Media Flow Controller Common Configuration Tasks (CLI)
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 Status Enabled: no
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
“Using Virtual Player Type youtube” on page 77
for more information. To
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
Summary of Contents for MEDIA FLOW CONTROLLER 2.0.4 -
Page 6: ...Media Flow Controller Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Page 24: ...LIST OF FIGURES XXIV Copyright 2010 Juniper Networks Inc...
Page 37: ...Copyright 2010 Juniper Networks Inc 37 PART 1 Media Flow Controller Administration...
Page 38: ...Media Flow Controller Administrator s Guide 38 Copyright 2010 Juniper Networks Inc...
Page 285: ...Copyright 2010 Juniper Networks Inc 285 PART 2 Media Flow Controller Command and MIB Reference...
Page 286: ...Media Flow Controller Administrator s Guide 286 Copyright 2010 Juniper Networks Inc...