---title: Video---import CreateRoomObjectOptions from ./_createroomobjectoptions.md;The Video namespace contains the classes and functions that you need to create a video conferencing application.## Classes- [RoomDevice](./video-roomdevice.md)- [RoomScreenShare](./video-roomscreenshare.md)- [RoomSession](./video-roomsession.mdx)- [RoomSessionDevice](./video-roomsessiondevice.md)- [RoomSessionPlayback](./video-roomsessionplayback.md)- [RoomSessionRecording](./video-roomsessionrecording.md)- [RoomSessionScreenShare](./video-roomsessionscreenshare.md)## Functions:::caution DeprecatedFunctions directly on the Video namespace have been **deprecated**. Please use the [RoomSession](./video-roomsession.mdx) object to access constructors, properties, methods, and events.:::### ~~createRoomObject~~▸ Const **createRoomObject**(roomOptions): Promise> ⚠️ **Deprecated**>> Use [RoomSession](./video-roomsession.mdx) instead.Using Video.createRoomObject() you can create a RoomObject to join a room.#### Parameters #### ReturnsPromise#### ExampleWith an HTMLDivElement with id=root in the DOM.js// try { const roomObj = await Video.createRoomObject({ token: , rootElementId: root, }); roomObj.join();} catch (error) { console.error(Error, error);}---### ~~joinRoom~~▸ Const **joinRoom**(roomOptions): Promise> ⚠️ Deprecated.>> Use [RoomSession](./video-roomsession.mdx) instead.Using Video.joinRoom() you can automatically join a room.#### Parameters #### ReturnsPromise#### ExampleWith an HTMLDivElement with id=root in the DOM.js// try { const roomObj = await Video.joinRoom({ token: , rootElementId: root, }); // You have joined the room..} catch (error) { console.error(Error, error);}