Aliyun.Oss.LiveChannel.signed_publish_url
You're seeing just the function
signed_publish_url
, go back to Aliyun.Oss.LiveChannel module for more information.
Link to this function
signed_publish_url(bucket, channel, expires, query_params \\ %{"playlistName" => "playlist.m3u8"})
Specs
生成包含签名的 RTMP 推流地址
Examples
iex> expires = Timex.now() |> Timex.shift(days: 1) |> Timex.to_unix()
iex> Aliyun.Oss.Object.signed_url("some-bucket", "some-object", expires, "GET", %{"Content-Type" -> ""})
"http://some-bucket.oss-cn-hangzhou.aliyuncs.com/oss-api.pdf?OSSAccessKeyId=nz2pc5*******9l&Expires=1141889120&Signature=vjbyPxybdZ*****************v4%3D"