视频分屏处理

本文介绍了视频分屏处理的技术要点,包括如何将多个视频源整合到同一画面中,实现创意的视频展示效果。通过学习,读者可以理解视频分屏的实现原理,并掌握相关工具和方法。
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript">
        class UILayout {
            static SetScreenNumber(num) {
                UILayout.ScreenNumber = num;
            }

            static GetScreenNumber() {
                return UILayout.ScreenNumber;
            }

            static SetContainer(id) {
                UILayout.Container = document.getElementById(id);
            }

            static GetContainer() {
                return UILayout.Container;
            }

            static SetVideoWith(VideoWidth) {
                UILayout.VideoWidth = VideoWidth;
            }

            static GetVideoWith() {
                return UILayout.VideoWidth;
            }

            static SetVideoHeight(VideoHeight) {
                UILayout.VideoHeight = VideoHeight;
            }

            static GetVideoHeight() {
                return UILayout.VideoHeight;
            }

            static SetSelectVideoIndex(index) {
                UILayout.SelectVideoIndex = index;
            }

            static GetSelectVideoIndex() {
                return UILayout.SelectVideoIndex;
            }

            static Init(id, screenNums) {
                UILayout.SetContainer(id);
                UILayout.SetScreenNumber(screenNums);
                UILayout.SetVideoWith(352);
                UILayout.SetVideoHeight(288);
                UILayout.SetSelectVideoIndex(-1);
                UILayout.CreateCanvas();
                UILayout.LayoutScreens(screenNums);
            }

            static CreateCanvas() 
博客
v8worker
05-08 2962
05-06 2947
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值