# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::VideoStream (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::VideoStream.

Video stream resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #h264

    def h264() -> ::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H264CodecSettings)) --- H264 codec settings.


  Note: The following fields are mutually exclusive: `h264`, `h265`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #h264=

    def h264=(value) -> ::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H264CodecSettings)) --- H264 codec settings.


  Note: The following fields are mutually exclusive: `h264`, `h265`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H264CodecSettings)) --- H264 codec settings.


  Note: The following fields are mutually exclusive: `h264`, `h265`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #h265

    def h265() -> ::Google::Cloud::Video::LiveStream::V1::VideoStream::H265CodecSettings

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H265CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H265CodecSettings)) --- H265 codec settings.


  Note: The following fields are mutually exclusive: `h265`, `h264`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #h265=

    def h265=(value) -> ::Google::Cloud::Video::LiveStream::V1::VideoStream::H265CodecSettings

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H265CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H265CodecSettings)) --- H265 codec settings.


  Note: The following fields are mutually exclusive: `h265`, `h264`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream::H265CodecSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream-H265CodecSettings)) --- H265 codec settings.


  Note: The following fields are mutually exclusive: `h265`, `h264`. If a field in that set is populated, all other fields in the set will automatically be cleared.