メタデータ
    • PDF

    メタデータ

    • PDF

    Article Summary

    Classic/VPC環境で利用できます。

    メタデータではスクリプトコードを修正してメタデータの表示有無を設定する方法と、表示されたメタデータに Clickイベントを設定する方法について説明します。

    参考
    • オプションを設定するプロパティに関する説明は、プレイヤー設定をご参照ください。
    • メタデータは Standard料金プランを利用する場合にのみ提供されます。

    メタデータの表示有無

    descriptionNoVisible プロパティでプレイヤーの上にメタデータの表示有無を設定できます。
    メタデータを表示しないように設定するユースケースは、次の通りです。

    // 動画(MP4)
    new ncplayer('video1', {
      autostart: true, // for test
      playlist: [
        { 
            file: 'https://CDNドメイン/example_video_01.mp4',
            poster: 'https://CDNドメイン/example_image_01.png',
            description:{
                "title": "NAVERクラウドの紹介", //タイトル
                "created_at": "2023.01.01", //アップロード日
                "profile_name": "NAVERクラウド", //アップローダのハンドルネームまたはチャンネル名
                "profile_image": "https://CDNドメイン/example_image_profile.png", //プロファイル画像またはチャンネル画像
          },
        },
          descriptionNoVisible: true, // メタデータ UIを表示しない(false(デフォルト): メタデータ UIを表示する)
      ],
    });
    

    メタデータ Clickイベント

    playlist.description プロパティでプレイヤーの上にメタデータを表示し、クリックするとイベントが発生するように設定できます。
    ユースケースは次の通りです。

    // 動画(MP4)
    new ncplayer('video1', {
      autostart: true, // for test
      playlist: [
        { 
            file: 'https://CDNドメイン/example_video_01.mp4',
            poster: 'https://CDNドメイン/example_image_01.png',
            description:{
                "title": "NAVERクラウドの紹介", //タイトル
                "created_at": "2023.01.01", //アップロード日
                "profile_name": "NAVERクラウド", //アップローダのハンドルネームまたはチャンネル名
                "profile_image": "https://CDNドメイン/example_image_profile.png", //プロファイル画像またはチャンネル画像
          },
        },
      ],
    });
    

    この記事は役に立ちましたか?

    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.