jw html5

by 행복아이 posted Sep 04, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

ㅇㅇ

<script src="http://static.videoninja101.com/jwplayer/jwplayer.js"></script>
    <div id="mediaplayer"></div>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
    id: 'player1',
    width: '512',
    height: '288',
    autostart: false,
    skin: "http://static.videoninja101.com/jwplayer/modieus.zip",
    image: "http://static.videoninja101.com/jwplayer/preview.jpg",

    modes: [
        {
        type: "flash",
        src: "http://static.videoninja101.com/jwplayer/player.swf",
        config: {

            provider: 'rtmp',
            streamer: 'rtmp://streaming.videoninja101.com/cfx/st',

            'levels': [
                {
                bitrate: 2000,
                file: 'ed_1024x576_2000kbps.mp4',
                width: 1024},

            {
                bitrate: 750,
                file: 'ed_512x288_750kbps3.mp4',
                width: 512},

            {
                bitrate: 1250,
                file: 'ed_768x432_1250kbps.mp4',
                width: 768}

            ]
        }},

    {
        type: "html5",
        config: {
            'levels': [
                {
                file: 'http://static.videoninja101.com/video/ed/ed_mobile.mp4'},
            {
                file: 'http://static.videoninja101.com/video/ed/ed_mobile.webm'}

            ]
        },
        provider: 'video'},

    {
        type: "download",
        config: {
            file: "http://static.videoninja101.com/video/ed/ed_768x432_1250kbps.mp4"
        },
        provider: 'video'}
    ]

});
</script>