We accelerate websites

15 days free trial Sign up

Media Acceleration Stream to the world

15 days free trial Sign up

Extensive Network Excellent world coverage

JW Player CDN integration

Introduction

Please refer here if you plan to integrate on-demand stream and please refer here if you plan to integrate live stream.

Integration of CDN Video or CDN Video Push service

Create a CDN Video or CDN Video Push service

Please refer to Creating a CDN Video service for more details.

Let's assume that 12345.r.cdnsun.net is the Service Identifier of your CDN Video service.

Enable CDN Video service in JW Player

<div id="mediaplayer"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://p.jwpcdn.com/6/10/jwplayer.js"></script>
<script type="text/javascript">
    $(document).ready(function(){        
        jwplayer('mediaplayer').setup({
            'playlist': [{
              'sources': [
                {
                  'file': 'rtmp://12345.r.cdnsun.net/12345/_definst_/mp4:12345/myvideo.mp4'
                },
                {
                  'file': 'http://12345.r.cdnsun.net/12345/_definst_/mp4:12345/myvideo.mp4/playlist.m3u8'
                }
              ]
            }],
            'width': 480,
            'height': 320
        });
    });
</script>

Please note that your video has to be in MP4 or FLV container format and encoded with H.264 video codec and AAC or MP3 audio codec. Please refer to Services/How-To for your streaming CDN URLs.

Apple HTTP Live Streaming (HLS)

Please note that for HLS streaming in JW Player you need a paid JW Player license.

JW Player logo

Please note that to remove or customize player logo you need a paid JW Player license or you need JW Player 7.0 or higher.

Generate the above code with our embed player generator

Generate Embed Player

Integration of CDN Live service

Create a CDN Live service

Please refer to Creating a CDN Live service for more details.

Let's assume that 12345.r.cdnsun.net is the Service Identifier of your CDN Live service.

Enable CDN Live service in JW Player

<div id="mediaplayer"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://p.jwpcdn.com/6/10/jwplayer.js"></script>
<script type="text/javascript">
    $(document).ready(function(){        
        jwplayer('mediaplayer').setup({
            'playlist': [{
              'sources': [
                {
                  'file': 'rtmp://12345.r.cdnsun.net/12345/_definst_/mystream'
                },
                {
                  'file': 'http://12345.r.cdnsun.net/12345/_definst_/mystream/playlist.m3u8'
                }
              ]
            }],
            'width': 480,
            'height': 320
        });
    });
</script>

Please note that your origin live stream has to be in MP4 or FLV container format and encoded with H.264 video codec and AAC or MP3 audio codec. Please refer to Services/How-To for your streaming CDN URLs.

Apple HTTP Live Streaming (HLS)

Please note that for HLS streaming in JW Player you need a paid JW Player license.

JW Player logo

Please note that to remove or customize player logo you need a paid JW Player license or you need JW Player 7.0 or higher.

Generate the above code with our embed player generator

Generate Embed Player
 
 _    _    _    _     _  _    __   __  
| \  / || | || | ||  | \| ||  \ \\/ // 
|  \/  || | || | ||  |  ' ||   \ ` //  
| .  . || | \\_/ ||  | .  ||    | ||   
|_|\/|_||  \____//   |_|\_||    |_||   
`-`  `-`    `---`    `-` -`     `-`'   
                                       
Europe
  • Amsterdam
  • Athens
  • Baku
  • Budapest
  • Copenhagen
  • Dubai
  • Dublin
  • Frankfurt
  • Helsingborg
  • Helsinki
  • Istanbul
  • Karlskrona
  • Kiev
  • Kungalv
  • London
  • Lvov
  • Milan
  • Moscow
  • Odessa
  • Oslo
  • Paris
  • Polevskoy
  • Rostov-on-Don
  • Saint Petersburg
  • Stockholm
  • Tel Aviv-Yafo
  • Trondheim
  • Zagreb
America
  • Arlington
  • Atlanta
  • Chicago
  • Dallas
  • Denver
  • Green Bay
  • Los Angeles
  • Miami
  • Montreal
  • New York
  • Phoenix
  • Portland
  • Provo
  • Queretaro
  • Reston
  • Sacramento
  • San Jose
  • Sao Paulo
  • Seattle
  • Toronto
  • Washington
Contact
  • e-mail: info@cdnsun.com
  • skype: cdnsun.com
  • phone: +1 844 300 9206
  • phone: +420 776 256 872
Blog Twitter LinkedIn Facebook CrunchBase Google+ / Google plus Foursquare Pinterest