WebRTC 的所有示例都是视频聊天,是否可以通过 WebRTC 发送任何类型的视频? [英] All the examples of WebRTC are video chat, is it possible to send any type of video over WebRTC?

查看:29
本文介绍了WebRTC 的所有示例都是视频聊天,是否可以通过 WebRTC 发送任何类型的视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我希望能够通过 WebRTC 从视频文件(AVI 或任何其他文件)发送普通视频,这能做到吗?我看到的 WebRTC 的唯一例子是视频聊天,所以我觉得它似乎只面向网络摄像头和聊天.

So I want to be able to send a normal video from a video file (AVI or any other) through WebRTC, can that be done? The only examples I see of WebRTC are video chats, so I feel as if its only geared towards webcam and chats.

所以我的问题是,从技术上讲,可以通过 WebRTC 从视频文件(不是网络摄像头)发送普通视频吗?

So my question is, technically can sending normal video from a video file (not webcam) over WebRTC be done?

推荐答案

Try: "预先录制的媒体流" --- 文档和源代码.

此实验使用 MediaSource API 元素中呈现 Blobs.这个实验有一些问题需要解决,例如它无法发送更长的 WebM 视频.

This experiment uses MediaSource API to render Blobs in <video> element. This experiment has some issues need to be fixed e.g. it can't send longer WebM videos.

你可以试试这个实验嗯.

这篇关于WebRTC 的所有示例都是视频聊天,是否可以通过 WebRTC 发送任何类型的视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆