媒体部件

媒体部件#

展示了一些图像、音频和视频核心部件的例子。

from ipywidgets import Image, Video, Audio
Image.from_file("../tutorials/images/WidgetArch.png")
video1 = Video.from_file("../howto/images/Big.Buck.Bunny.mp4")
video1
video1
video2 = Video.from_url("https://webrtc.github.io/samples/src/video/chrome.webm", autoplay=False)
video2
Audio.from_file("../howto/images/Big.Buck.Bunny.mp3", controls=True)