More code examples for media capture