
Embedding on SSL encrypted site
Hello,
I am having problems embedding jwplayer with a rtmp/smil stream in an https site. Everything works fine in development (without ssl) but fails in production (ssl enabled). The reason is that jwplayer is trying to load crossdomain.xml from https://example.com:80/crossdomain.xml which fails due to protocol port mismatch. Is there any way to tell jwplayer to ommit the port and just load https://example.com/crossdomain.xml??!!
app.Video = class app.Video
constructor: ($ctx) ->
@$ctx = $ctx
@element = $ctx.attr('id')
@rtmp_url = $ctx.data('rtmp-path')
@webm_url = $ctx.data('webm-path')
@mobile_url = $ctx.data('mobile-path')
@poster_url = $ctx.data('poster-path')
@swf_path = $ctx.data('swf-path')
@setupPlayer()
setupPlayer: ->
jwplayer(@element).setup
flashplayer: @swf_path
skin: 'glow'
playlist: [
image: @poster_url
sources : [
{ file: @rtmp_url, type: 'rtmp' }
{ file: @mobile_url }
{ file: @webm_url }
]
]
primary: "flash"
height: 360
width: '100%'
aspectratio: '16:9'