V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hongch
V2EX  ›  程序员

阿里云 oss 获得 livechanel 的这个请求应该怎么写?

  •  
  •   hongch · Oct 29, 2018 · 1038 views
    This topic created in 2736 days ago, the information mentioned may be changed or developed.
    1. 是阿里云 oss 获得推流地址的请求,xml 里的传一个对象给服务端?应该怎么写

    2. 示例如下

    PUT /ChannelName?live HTTP/1.1
    Host: BucketName.oss-cn-hangzhou.aliyuncs.com
    Date: GMT date
    Content-Length: Size
    Authorization: SignatureValue
    <?xml version="1.0" encoding="UTF-8"?>
    <LiveChannelConfiguration>
      <Description>ChannelDescription</Description>
      <Status>ChannelStatus</Status>
      <Target>
         <Type>HLS</Type>
         <FragDuration>FragDuration</FragDuration>
         <FragCount>FragCount</FragCount>
         <PlayListName>PlaylistName</PlayListName>
      </Target>
      <Snapshot>
        <RoleName>Snapshot ram role</RoleName>
        <DestBucket>Snapshot dest bucket</DestBucket>
        <NotifyTopic>Notify topic of MNS</NotifyTopic>
        <Interval>Snapshot interval in second</Interval>
      </Snapshot>
    </LiveChannelConfiguration>
    
    1 replies    2018-10-29 10:41:19 +08:00
    hongch
        1
    hongch  
    OP
       Oct 29, 2018
    有大神吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   860 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:56 · PVG 05:56 · LAX 14:56 · JFK 17:56
    ♥ Do have faith in what you're doing.