The caller should insert this token to the authorization header of the HTTP
requests to get the HLS playlist manifest and the video chunks.
eg: curl -H "Authorization: Bearer $TOKEN"
https://domain.com/test-stream.playback/master.m3u8
#token=
deftoken=(value)->::String
Parameter
value (::String) — The generated JWT token.
The caller should insert this token to the authorization header of the HTTP
requests to get the HLS playlist manifest and the video chunks.
eg: curl -H "Authorization: Bearer $TOKEN"
https://domain.com/test-stream.playback/master.m3u8
Returns
(::String) — The generated JWT token.
The caller should insert this token to the authorization header of the HTTP
requests to get the HLS playlist manifest and the video chunks.
eg: curl -H "Authorization: Bearer $TOKEN"
https://domain.com/test-stream.playback/master.m3u8
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::GenerateStreamHlsTokenResponse (v1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-GenerateStreamHlsTokenResponse) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::GenerateStreamHlsTokenResponse.\n\nResponse message for GenerateStreamHlsToken. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #expiration_time\n\n def expiration_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The expiration time of the token.\n\n### #expiration_time=\n\n def expiration_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The expiration time of the token. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- The expiration time of the token.\n\n### #token\n\n def token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The generated JWT token.\n\n The caller should insert this token to the authorization header of the HTTP\n requests to get the HLS playlist manifest and the video chunks.\n eg: curl -H \"Authorization: Bearer $TOKEN\"\n https://domain.com/test-stream.playback/master.m3u8\n\n### #token=\n\n def token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The generated JWT token.\n\n\n The caller should insert this token to the authorization header of the HTTP\n requests to get the HLS playlist manifest and the video chunks.\n eg: curl -H \"Authorization: Bearer $TOKEN\"\nhttps://domain.com/test-stream.playback/master.m3u8 \n**Returns**\n\n- (::String) --- The generated JWT token.\n\n The caller should insert this token to the authorization header of the HTTP\n requests to get the HLS playlist manifest and the video chunks.\n eg: curl -H \"Authorization: Bearer $TOKEN\"\n https://domain.com/test-stream.playback/master.m3u8"]]