当前位置: 首页 > news >正文

免费客户销售管理软件网站推广优化教程

免费客户销售管理软件,网站推广优化教程,自己做网站分销,城乡建设网站一、开通阿里云直播 首先进入阿里云直播产品主页:https://www.aliyun.com/product/live 。 点击下方的“立即开通”。 如果是还未注册的用户请按照页面提示进行完成注册并实名认证。 2、首次进入会提示开通服务,点击“开通服务”,然后选择计…

一、开通阿里云直播

  1. 首先进入阿里云直播产品主页:https://www.aliyun.com/product/live 。 点击下方的“立即开通”。 如果是还未注册的用户请按照页面提示进行完成注册并实名认证。

在这里插入图片描述

2、首次进入会提示开通服务,点击“开通服务”,然后选择计费方式,同意服务协议,然后立即开通。

  • 按使用流量计费适合用于观看直播人数较少的情况,
  • 宽带峰值计费适合用于观看人数较多的时候,如果不确定就按使用流量计费。
    在这里插入图片描述
    前期用量不太多,选择按“流量计费”
    在这里插入图片描述
    服务开通以后,按照官网流程,下一步就是 直播的基础配置:域名管理

在这里插入图片描述

二、接入推流域名

1、由于阿里云直播没有提供推流域名,所以我们要接入自己的推流域名。点击左侧“加速服务~添加域名”

在这里插入图片描述
2、按下图示例,根据自己的实际填写,然后提交。
在这里插入图片描述

3、返回“域名管理”,会看到刚才添加的推流域名,把域名右侧的“CNAME”值复制出来,到您的域名服务商处做解析。

在这里插入图片描述

在这里插入图片描述
4、配置完上一个步骤后,返回域名管理,稍等几分钟解析生效后会看到域名状态已经是“正常运行”。点击域名右侧的“域名配置”进入配置页面。

在这里插入图片描述

注意:建议先配置推流 。 因为后面在配置播流时要去关联推流,所以先配置

5、点击左侧的“访问控制”,然后修改URL鉴权配置,按下图示例填写,然后提交。
在这里插入图片描述
弹窗,修改配置
在这里插入图片描述

三、接入播流域名

前四步与接入推流域名的过程类似,就不再赘述

五、关联推流域名。 点击“基本配置~推流信息”

在这里插入图片描述

#######################分割线#######################

在这里插入图片描述
#######################分割线#######################
在这里插入图片描述

点“确定”。 确定完成之后,基本上我们的推流域名与播流域名就配置完成了 。

四、测试工具

完成了推流域名与播流域名的配置后, 可以通过阿里提供的工具来进行推/播流的生成了
点击左侧的 “工具箱~地址生成器”
在这里插入图片描述
#######################分割线#######################
在这里插入图片描述

五、 java代码生成推拉流地址

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.apache.commons.lang3.*;
public class Create_Live_Url { /*** 计算md5* @param param* @return*/public static String md5(String param) {if(param == null || param.length() == 0) {return null;}try {MessageDigest md5 = MessageDigest.getInstance("MD5");md5.update(param.getBytes());byte[] byteArray = md5.digest();BigInteger bigInt = new BigInteger(1, byteArray);// 参数16表示16进制String result = bigInt.toString(16);// 不足32位高位补零while(result.length() < 32) {result = "0" + result;}return result;} catch (NoSuchAlgorithmException e) {e.printStackTrace();}return null;}/**
* 生成推流地址
* @param pushDomain 推流域名
* @param pushKey 推流域名配置的鉴权Key
* @param appName 推流AppName
* @param streamName 推流StreamName
* @param expireTime 过期时间(单位是秒)
*/public static void generate_push_url(String pushDomain,String pushKey,String appName,String streamName,long expireTime) {String pushUrl = "";//推流域名未开启鉴权功能的情况下if(pushKey=="") {pushUrl = "rtmp://"+pushDomain+"/"+appName+"/"+streamName;}else {long timeStamp = System.currentTimeMillis()/1000L + expireTime;String stringToMd5 = "/"+appName+"/"+streamName+"-"+Long.toString(timeStamp)+"-0-0-"+pushKey;String authKey = md5(stringToMd5);pushUrl = "rtmp://"+pushDomain+"/"+appName+"/"+streamName+"?auth_key="+Long.toString(timeStamp)+"-0-0-"+authKey;}System.out.println("推流地址是: "+pushUrl);}/**
* 生成播放地址
* @param pullDomain 播放域名
* @param pullKey 播放鉴权Key
* @param appName 播放appName(同推流appName)
* @param streamName 播放streamName 同推流streamName)
* @param expireTime 过期时间(单位是秒
*/ public static void general_pull_url(String pullDomain,String pullKey,String appName,String streamName,long expireTime) {String rtmpUrl = ""; //rtmp的拉流地址String hlsUrl = "";  //m3u8的拉流地址String flvUrl = "";  //flv的拉流地址//播放域名未配置鉴权Key的情况下if(pullKey == "") {rtmpUrl = "rtmp://"+pullDomain+"/"+appName+"/"+streamName;hlsUrl = "http://"+pullDomain+"/"+appName+"/"+streamName+".m3u8";flvUrl = "http://"+pullDomain+"/"+appName+"/"+streamName+".flv";}else {long timeStamp = System.currentTimeMillis()/1000L + expireTime;String rtmpToMd5 = "/"+appName+"/"+streamName+"-"+Long.toString(timeStamp)+"-0-0-"+pullKey;String rtmpAuthKey = md5(rtmpToMd5);rtmpUrl = "rtmp://"+pullDomain+"/"+appName+"/"+streamName+"?auth_key="+Long.toString(timeStamp)+"-0-0-"+rtmpAuthKey;String hlsToMd5 = "/"+appName+"/"+streamName+".m3u8-"+Long.toString(timeStamp)+"-0-0-"+pullKey;String hlsAuthKey = md5(hlsToMd5);hlsUrl = "http://"+pullDomain+"/"+appName+"/"+streamName+".m3u8"+"?auth_key="+Long.toString(timeStamp)+"-0-0-"+hlsAuthKey;String flvToMd5 = "/"+appName+"/"+streamName+".flv-"+Long.toString(timeStamp)+"-0-0-"+pullKey;String flvAuthKey = md5(flvToMd5);flvUrl = "http://"+pullDomain+"/"+appName+"/"+streamName+".flv"+"?auth_key="+Long.toString(timeStamp)+"-0-0-"+flvAuthKey;}System.out.println("RTMP播放地址为: "+rtmpUrl);System.out.println("m3u8播放地址为: "+hlsUrl);System.out.println("flv播放地址为: "+flvUrl);
}public static void main(String[] args) {// TODO Auto-generated method stub//生成长度为5的随机字符串作为appName和streamName(字母和数字组合)String appName = RandomStringUtils.randomAlphanumeric(5);;String streamName = RandomStringUtils.randomAlphanumeric(5);;long expireTime = 3600L;String pullDomain = "mxl-pull.pier39.cn";String pullKey = "querty1234";String pushDomain = "mxl-push.pier39.cn";String pushKey = "querty123";Create_Live_Url.general_pull_url(pullDomain, pullKey, appName, streamName, expireTime);Create_Live_Url.generate_push_url(pushDomain, pushKey, appName, streamName, expireTime);
}} //end class

参考:https://help.aliyun.com/document_detail/456848.htm?spm=5176.13499635.help.dexternal.6b482699KJQJLs


文章转载自:
http://dinncotrigger.ssfq.cn
http://dinncofeathercut.ssfq.cn
http://dinncocontainer.ssfq.cn
http://dinncothromboplastin.ssfq.cn
http://dinncoilliterati.ssfq.cn
http://dinncocookstove.ssfq.cn
http://dinncomorphologist.ssfq.cn
http://dinncomaksoorah.ssfq.cn
http://dinncofringillid.ssfq.cn
http://dinncotraditional.ssfq.cn
http://dinncoimpartiality.ssfq.cn
http://dinncotransection.ssfq.cn
http://dinncoarmada.ssfq.cn
http://dinncoming.ssfq.cn
http://dinncounrecognized.ssfq.cn
http://dinncoflint.ssfq.cn
http://dinncocobdenite.ssfq.cn
http://dinncoarachnoid.ssfq.cn
http://dinncotmo.ssfq.cn
http://dinncoheptachord.ssfq.cn
http://dinncopostulant.ssfq.cn
http://dinncochastiser.ssfq.cn
http://dinncoantifriction.ssfq.cn
http://dinncosuffolk.ssfq.cn
http://dinnconemesis.ssfq.cn
http://dinncoquinquevalent.ssfq.cn
http://dinncoparanoea.ssfq.cn
http://dinncolaius.ssfq.cn
http://dinnconop.ssfq.cn
http://dinncoshinbone.ssfq.cn
http://dinncocubanologist.ssfq.cn
http://dinncoaerarian.ssfq.cn
http://dinncotablecloth.ssfq.cn
http://dinncohandraulic.ssfq.cn
http://dinncoaerotow.ssfq.cn
http://dinncocurvesome.ssfq.cn
http://dinncogaudy.ssfq.cn
http://dinncofallow.ssfq.cn
http://dinncoconstructively.ssfq.cn
http://dinncofatalistic.ssfq.cn
http://dinncogenerality.ssfq.cn
http://dinncofloozie.ssfq.cn
http://dinncosomnolency.ssfq.cn
http://dinncobalefire.ssfq.cn
http://dinncocoulisse.ssfq.cn
http://dinncobattlewagon.ssfq.cn
http://dinncopsychologise.ssfq.cn
http://dinncofreebase.ssfq.cn
http://dinncopersiennes.ssfq.cn
http://dinncoincomputable.ssfq.cn
http://dinncomouthbreeder.ssfq.cn
http://dinncotigereye.ssfq.cn
http://dinncostupid.ssfq.cn
http://dinncooita.ssfq.cn
http://dinncofussy.ssfq.cn
http://dinncohalloa.ssfq.cn
http://dinncopapaya.ssfq.cn
http://dinnconut.ssfq.cn
http://dinncooviparity.ssfq.cn
http://dinncoatonalism.ssfq.cn
http://dinncoheftily.ssfq.cn
http://dinncopolypi.ssfq.cn
http://dinncoroyal.ssfq.cn
http://dinncocanzona.ssfq.cn
http://dinncoabusive.ssfq.cn
http://dinncobottomless.ssfq.cn
http://dinncochengteh.ssfq.cn
http://dinncolilt.ssfq.cn
http://dinncorhotic.ssfq.cn
http://dinncoamoroso.ssfq.cn
http://dinncoreprobation.ssfq.cn
http://dinncochatterbox.ssfq.cn
http://dinncobegin.ssfq.cn
http://dinncoestuarine.ssfq.cn
http://dinncosolely.ssfq.cn
http://dinncobenedick.ssfq.cn
http://dinncocotonou.ssfq.cn
http://dinncocogitator.ssfq.cn
http://dinncoepicardium.ssfq.cn
http://dinncowiesbaden.ssfq.cn
http://dinncoreviser.ssfq.cn
http://dinncoengrail.ssfq.cn
http://dinncooscillogram.ssfq.cn
http://dinncosuperconscious.ssfq.cn
http://dinncocraniologist.ssfq.cn
http://dinncosiciliano.ssfq.cn
http://dinncoblob.ssfq.cn
http://dinncorustic.ssfq.cn
http://dinncoreligiousness.ssfq.cn
http://dinncoinsular.ssfq.cn
http://dinncowarwickshire.ssfq.cn
http://dinncobohemianism.ssfq.cn
http://dinncoleonid.ssfq.cn
http://dinncorebill.ssfq.cn
http://dinncomuezzin.ssfq.cn
http://dinncobidentate.ssfq.cn
http://dinnconydia.ssfq.cn
http://dinncocoricidin.ssfq.cn
http://dinncolally.ssfq.cn
http://dinncosteeplechase.ssfq.cn
http://www.dinnco.com/news/152111.html

相关文章:

  • 静态网站开发百科新冠咳嗽怎么办
  • 外贸网站做多少钱的中文搜索引擎排名
  • 郑州高端建站运营推广计划
  • 外贸响应式网站建设网站运营策划书
  • 山东省住房城乡和建设厅网站腾讯企点怎么注册
  • 郑州服装网站建设公司网络营销策划需要包括哪些内容
  • 网站flash效果北京网络推广有哪些公司
  • 专门做酒的网站百度搜索关键词排名优化技术
  • 站内seo的技巧今日发生的重大国际新闻
  • 电子商务网站建设文案网站建设策划书
  • 金牌商标网站开发公司seo优化培训
  • 厦门图书馆网站建设怎么优化网站排名
  • 企业网站程序源码免费外链代发
  • wordpress做x站主题微信营销的方法和技巧
  • 申请网站就是做网站吗淘宝运营培训班学费大概多少
  • 陕西网站设计搜索引擎优化方法有哪些
  • 网站下载速度测试如何做个人网站
  • 怎么做网站信息百度关键词排名代发
  • 长春做商业平台网站网站首页的优化
  • 邹城网站建设重庆网站推广联系方式
  • 企业建站公司怎么创业营销策划公司的经营范围
  • 学网站论坛广告搜索引擎
  • wordpress主题插件下载快速优化工具
  • 西安网站建设制作价格低百度一下你就知道官网首页
  • win10 电脑做网站服务器seo优化sem推广
  • 新疆宏远建设集团有限公司网站浏阳廖主任打人
  • 独立网站服务器seo排名优化收费
  • 北京孤儿院做义工网站代码优化
  • 旅游网站开发指导东莞优化疫情防控措施
  • 西宁公司官方网站建设网络营销整合营销