재생 소스
    • PDF

    재생 소스

    • PDF

    Article Summary

    Classic/VPC 환경에서 이용 가능합니다.

    재생 소스에서는 스크립트 코드를 수정하여 최소한의 설정으로 플레이어를 적용하는 방법과 하나의 플레이어로 여러 개의 영상을 재생하는 방법을 설명합니다.

    참고

    옵션을 설정하는 속성에 대한 설명은 플레이어 설정을 참고해 주십시오.

    기본 설정

    최소한의 설정으로 다음과 같이 컨트롤바 버튼 UI가 표시되는 플레이어를 적용할 수 있습니다.

    참고

    mp4, hls, dash 형식을 지원합니다.

    vpe-example-source_player_ko

    예제는 다음과 같습니다.

    //동영상(MP4)
    new ncplayer('video4', {
      playlist: 'https://CDN도메인/example_video_01.mp4',
    });
    

    여러 영상 재생

    playlist 속성으로 여러 개의 재생 소스를 전달하여 여러 개의 영상을 연속하여 재생할 수 있습니다.

    참고

    autostart 속성이 false인 경우에는 다음 영상이 자동으로 재생되지 않으며, '다음' 버튼과 '이전' 버튼이 표시됩니다. autostart 속성에 관한 예제는 자동 재생을 참고해 주십시오.

    예제는 다음과 같습니다.

    // NCP 동영상(MP4)
    new ncplayer('video1', {
      playlist: [
        { 
    			file: 'https://CDN도메인/example_video_01.mp4',
    			poster : 'https://CDN도메인/example_image_01.png' 
    		},
        { 
    			file: 'https://CDN도메인/example_video_02.mp4',
    			poster : 'https://CDN도메인/example_image_02.png'  
    		},
        { 
    			file: 'https://CDN도메인/example_video_03.mp4/index.m3u8', 
    			poster : 'https://CDN도메인/example_image_03.png'  
    		}
      ],
    });
    

    이 문서가 도움이 되었습니까?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.