Forum Discussion
Media files do not buffer/stream
Hi,
There are multiple content in our websites which are Media files most are swf (flash), they do not stream like a normal media/video file, rather they get downloaded completely and then start playing.
People say that this was working when the site was loadbalanced by APACHE, and problem started after migration to LTM
Any suggestions?
Version 10.2
5 Replies
- nitass
Employee
problem started after migration to LTMso,... what is the problem?? - Ajmal_2608
Nimbostratus
Earlier the video files used to start playing with some part downloaded (Live Streaming) and simultaneously remaining part was downloaded (Like a normal Youtube video)
Now - It starts playing only when the complete file is downloaded to browser
- nitass
Employee
is it rtmp? what variation are you using?
Real Time Messaging Protocol
http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
can you post the virtual server configuration? - Ajmal_2608
Nimbostratus
I think it is using RTMPT as everything works on HTTP/HTTPS only
Config (Modified to remove propitiatory data)
================================================
VIP
------
virtual test.net-https {
snat automap
destination 10.10.10.10:https
ip protocol tcp
rules test.net.iRule
profiles {
test.net-HttpProfile {}
test.net-SSL {
clientside
}
tcp-lan-optimized {
serverside
}
tcp-wan-optimized {
clientside
}
}
}
==============================================
HTTP Profile
---------------
profile http ala.sabanow.net-HttpProfile {
defaults from http-wan-optimized-compression-caching
ramcache disable
compress content type include {
"text/"
"application/(xml|x-javascript)"
"application/javascript"
}
compress content type exclude none
}
==============================================
iRule
--------
rule test.net.iRule {
when RULE_INIT {
set safe_http_methods [list "GET" "PUT" "DELETE" "POST" "HEAD"]
}
when CLIENT_ACCEPTED {
set trafficLog "[IP::remote_addr] -> "
}
when HTTP_REQUEST {
set trafficLog "[HTTP::method] [HTTP::uri]"
Reject unsupported HTTP methods
if { ![matchclass [HTTP::method] equals $::safe_http_methods] } {
set trafficLog "$trafficLog REJECTED:badMethod"
log local0. $trafficLog
HTTP::respond 200 content "PROTOCOL ERRORAccess Denied: Unsupported HTTP METHOD.
Please contact customer support for further details." noserver
}
Before we consider sticky sessions
switch -glob [string tolower [HTTP::uri]] {
"/outtage" -
"/maintenance.html" {
HTTP::respond 200 content "Maintenance HTML Here" noserver
}
"*.exe*" -
"*.dll*" -
"/index.html" -
"/sso/" -
"/sso/index.html" -
"/jboss.css" -
"/logo.gif" -
"/manager*" -
"/status*" -
"/jmx-console*" -
"/web-console*" -
"/jbossws*" {
Unauthorized Access Attempted
set trafficLog "$trafficLog REJECTED:secureURI"
log local0. $trafficLog
HTTP::respond 200 content "PROTOCOL ERRORAccess Denied: Secure URI.
Please contact customer support for further details." noserver
}
"/" -
"" {
Auto-redirect to main login page
set trafficLog "$trafficLog 302 REDIRECT:mainLogin"
log local0. $trafficLog
HTTP::respond 302 noserver Location "https://[HTTP::host]/test/Web/Main"
}
}
Enforce Sticky Sessio
if { [HTTP::cookie "JSESSIONID"] ne "" } {
persist uie [HTTP::cookie "JSESSIONID"] 1920
}
Finally, Loadbalance requests not handled above
switch -glob [string tolower [HTTP::uri]] {
"/gatekeeper*" -
"/scorm_launch*" -
"/aicc_bridge*" {
use pool test-content-tomcat-pool
}
"/assets*" -
"/prodasset*" -
"/content*" -
"/deskassets*" -
"/prodcontent*" -
"/production*" -
"/test_images*" {
use pool test-content-apache-pool
}
"/axis*" -
"/test*" {
use pool test-app-pool
}
}
} - Ajmal_2608
Nimbostratus
Also, I tried following things
Attached default stream profile "Stream" on the VIP
Added applicaton/shockwave in the compression list on HTTP profile
Not none of the above 2 helped
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com