com.brightcove.player.model.Video.createVideo()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中com.brightcove.player.model.Video.createVideo()方法的一些代码示例,展示了Video.createVideo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Video.createVideo()方法的具体详情如下:
包路径:com.brightcove.player.model.Video
类名称:Video
方法名:createVideo

Video.createVideo介绍

暂无

代码示例

代码示例来源:origin: BrightcoveOS/android-player-samples

@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View result = inflater.inflate(R.layout.fragment_main, container, false);
    baseVideoView = (BaseVideoView) result.findViewById(R.id.brightcove_video_view);
    super.onCreateView(inflater, container, savedInstanceState);

    Video video = Video.createVideo("http://media.w3.org/2010/05/sintel/trailer.mp4", DeliveryType.MP4);
    baseVideoView.add(video);
    baseVideoView.getAnalytics().setAccount("1760897681001");
    baseVideoView.start();

    return result;
  }
}

代码示例来源:origin: BrightcoveOS/android-player-samples

@Override
  protected void onCreate(Bundle savedInstanceState) {
    // When extending the BrightcovePlayer, we must assign the brightcoveVideoView before
    // entering the superclass. This allows for some stock video player lifecycle
    // management.  Establish the video object and use it's event emitter to get important
    // notifications and to control logging.
    setContentView(R.layout.activity_main);
    brightcoveVideoView = (BrightcoveExoPlayerVideoView) findViewById(R.id.brightcove_video_view);
    super.onCreate(savedInstanceState);

    Video video = Video.createVideo("YOUR_LIVE_HLS_STREAM", DeliveryType.HLS);
    video.getProperties().put(Video.Fields.PUBLISHER_ID, "YOUR_VIDEOCLOUD_PUBLISHER_ID");
    brightcoveVideoView.add(video);
    brightcoveVideoView.start();
  }
}

代码示例来源:origin: BrightcoveOS/android-player-samples

Video video = Video.createVideo("https://s3.amazonaws.com/as-zencoder/hls-timed-metadata/test.m3u8", DeliveryType.HLS);
video.getProperties().put(Video.Fields.PUBLISHER_ID, "5420904993001");
brightcoveVideoView.add(video);

代码示例来源:origin: BrightcoveOS/android-player-samples

@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Video video = Video.createVideo("http://media.w3.org/2010/05/sintel/trailer.mp4", DeliveryType.MP4);
    baseVideoView.add(video);
    baseVideoView.getAnalytics().setAccount("1760897681001");
    baseVideoView.start();
  }
}

相关文章