国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

vue2使用rtsp視頻流接入??低晹z像頭(純前端)

這篇具有很好參考價值的文章主要介紹了vue2使用rtsp視頻流接入??低晹z像頭(純前端)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一.獲取海康威視rtsp視頻流

??低暪俜降腞TSP最新取流格式如下:

rtsp://用戶名:密碼@IP:554/Streaming/Channels/101

用戶名和密碼

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chromeIP就是登陸攝像頭時候的IP(筆者這里IP是192.168.1.210)

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

所以筆者的rtsp流地址就是rtsp://用戶名:密碼@192.168.1.210:554/Streaming/Channels/101

二. 測試rtsp流是否可以播放

1.實現(xiàn)RTSP協(xié)議推流需要做的配置

1.1關(guān)閉螢石云的接入

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

1.2調(diào)整視頻編碼為H.264

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

2.安裝VLC播放器

在此下載 video mediaplay官網(wǎng) 即(VLC)

安裝完成之后 打開VLC播放器rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

在VLC播放器中打開網(wǎng)絡(luò)串流 輸入rtsp地址

成功的話我們可以看到我們所顯示的攝像頭rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

如果RTSP流地址正確且取流成功,VLC的界面會顯示監(jiān)控畫面。否則會報錯,報錯信息寫在了日志里,在[工具]>[消息]里可以看到

三.在vue2中引用rtsp視頻流形式的??禂z像頭

1.新建webrtcstreamer.js文件

在public文件夾下新建webrtcstreamer.js 代碼貼在下方,復(fù)制粘貼即可

var WebRtcStreamer = (function() {

/** 
 * Interface with WebRTC-streamer API
 * @constructor
 * @param {string} videoElement - id of the video element tag
 * @param {string} srvurl -  url of webrtc-streamer (default is current location)
*/
var WebRtcStreamer = function WebRtcStreamer (videoElement, srvurl) {
	if (typeof videoElement === "string") {
		this.videoElement = document.getElementById(videoElement);
	} else {
		this.videoElement = videoElement;
	}
	this.srvurl           = srvurl || location.protocol+"http://"+window.location.hostname+":"+window.location.port;
	this.pc               = null;    

	this.mediaConstraints = { offerToReceiveAudio: true, offerToReceiveVideo: true };

	this.iceServers = null;
	this.earlyCandidates = [];
}

WebRtcStreamer.prototype._handleHttpErrors = function (response) {
    if (!response.ok) {
        throw Error(response.statusText);
    }
    return response;
}

/** 
 * Connect a WebRTC Stream to videoElement 
 * @param {string} videourl - id of WebRTC video stream
 * @param {string} audiourl - id of WebRTC audio stream
 * @param {string} options -  options of WebRTC call
 * @param {string} stream  -  local stream to send
*/
WebRtcStreamer.prototype.connect = function(videourl, audiourl, options, localstream) {
	this.disconnect();
	
	// getIceServers is not already received
	if (!this.iceServers) {
		console.log("Get IceServers");
		
		fetch(this.srvurl + "/api/getIceServers")
			.then(this._handleHttpErrors)
			.then( (response) => (response.json()) )
			.then( (response) =>  this.onReceiveGetIceServers(response, videourl, audiourl, options, localstream))
			.catch( (error) => this.onError("getIceServers " + error ))
				
	} else {
		this.onReceiveGetIceServers(this.iceServers, videourl, audiourl, options, localstream);
	}
}

/** 
 * Disconnect a WebRTC Stream and clear videoElement source
*/
WebRtcStreamer.prototype.disconnect = function() {		
	if (this.videoElement?.srcObject) {
		this.videoElement.srcObject.getTracks().forEach(track => {
			track.stop()
			this.videoElement.srcObject.removeTrack(track);
		});
	}
	if (this.pc) {
		fetch(this.srvurl + "/api/hangup?peerid=" + this.pc.peerid)
			.then(this._handleHttpErrors)
			.catch( (error) => this.onError("hangup " + error ))

		
		try {
			this.pc.close();
		}
		catch (e) {
			console.log ("Failure close peer connection:" + e);
		}
		this.pc = null;
	}
}    

/*
* GetIceServers callback
*/
WebRtcStreamer.prototype.onReceiveGetIceServers = function(iceServers, videourl, audiourl, options, stream) {
	this.iceServers       = iceServers;
	this.pcConfig         = iceServers || {"iceServers": [] };
	try {            
		this.createPeerConnection();

		var callurl = this.srvurl + "/api/call?peerid=" + this.pc.peerid + "&url=" + encodeURIComponent(videourl);
		if (audiourl) {
			callurl += "&audiourl="+encodeURIComponent(audiourl);
		}
		if (options) {
			callurl += "&options="+encodeURIComponent(options);
		}
		
		if (stream) {
			this.pc.addStream(stream);
		}

                // clear early candidates
		this.earlyCandidates.length = 0;
		
		// create Offer
		this.pc.createOffer(this.mediaConstraints).then((sessionDescription) => {
			console.log("Create offer:" + JSON.stringify(sessionDescription));
			
			this.pc.setLocalDescription(sessionDescription)
				.then(() => {
					fetch(callurl, { method: "POST", body: JSON.stringify(sessionDescription) })
						.then(this._handleHttpErrors)
						.then( (response) => (response.json()) )
						.catch( (error) => this.onError("call " + error ))
						.then( (response) =>  this.onReceiveCall(response) )
						.catch( (error) => this.onError("call " + error ))
				
				}, (error) => {
					console.log ("setLocalDescription error:" + JSON.stringify(error)); 
				});
			
		}, (error) => { 
			alert("Create offer error:" + JSON.stringify(error));
		});

	} catch (e) {
		this.disconnect();
		alert("connect error: " + e);
	}	    
}


WebRtcStreamer.prototype.getIceCandidate = function() {
	fetch(this.srvurl + "/api/getIceCandidate?peerid=" + this.pc.peerid)
		.then(this._handleHttpErrors)
		.then( (response) => (response.json()) )
		.then( (response) =>  this.onReceiveCandidate(response))
		.catch( (error) => this.onError("getIceCandidate " + error ))
}
					
/*
* create RTCPeerConnection 
*/
WebRtcStreamer.prototype.createPeerConnection = function() {
	console.log("createPeerConnection  config: " + JSON.stringify(this.pcConfig));
	this.pc = new RTCPeerConnection(this.pcConfig);
	var pc = this.pc;
	pc.peerid = Math.random();		
	
	pc.onicecandidate = (evt) => this.onIceCandidate(evt);
	pc.onaddstream    = (evt) => this.onAddStream(evt);
	pc.oniceconnectionstatechange = (evt) => {  
		console.log("oniceconnectionstatechange  state: " + pc.iceConnectionState);
		if (this.videoElement) {
			if (pc.iceConnectionState === "connected") {
				this.videoElement.style.opacity = "1.0";
			}			
			else if (pc.iceConnectionState === "disconnected") {
				this.videoElement.style.opacity = "0.25";
			}			
			else if ( (pc.iceConnectionState === "failed") || (pc.iceConnectionState === "closed") )  {
				this.videoElement.style.opacity = "0.5";
			} else if (pc.iceConnectionState === "new") {
				this.getIceCandidate();
			}
		}
	}
	pc.ondatachannel = function(evt) {  
		console.log("remote datachannel created:"+JSON.stringify(evt));
		
		evt.channel.onopen = function () {
			console.log("remote datachannel open");
			this.send("remote channel openned");
		}
		evt.channel.onmessage = function (event) {
			console.log("remote datachannel recv:"+JSON.stringify(event.data));
		}
	}
	pc.onicegatheringstatechange = function() {
		if (pc.iceGatheringState === "complete") {
			const recvs = pc.getReceivers();
		
			recvs.forEach((recv) => {
			  if (recv.track && recv.track.kind === "video") {
				console.log("codecs:" + JSON.stringify(recv.getParameters().codecs))
			  }
			});
		  }
	}

	try {
		var dataChannel = pc.createDataChannel("ClientDataChannel");
		dataChannel.onopen = function() {
			console.log("local datachannel open");
			this.send("local channel openned");
		}
		dataChannel.onmessage = function(evt) {
			console.log("local datachannel recv:"+JSON.stringify(evt.data));
		}
	} catch (e) {
		console.log("Cannor create datachannel error: " + e);
	}	
	
	console.log("Created RTCPeerConnnection with config: " + JSON.stringify(this.pcConfig) );
	return pc;
}


/*
* RTCPeerConnection IceCandidate callback
*/
WebRtcStreamer.prototype.onIceCandidate = function (event) {
	if (event.candidate) {
		if (this.pc.currentRemoteDescription)  {
			this.addIceCandidate(this.pc.peerid, event.candidate);					
		} else {
			this.earlyCandidates.push(event.candidate);
		}
	} 
	else {
		console.log("End of candidates.");
	}
}


WebRtcStreamer.prototype.addIceCandidate = function(peerid, candidate) {
	fetch(this.srvurl + "/api/addIceCandidate?peerid="+peerid, { method: "POST", body: JSON.stringify(candidate) })
		.then(this._handleHttpErrors)
		.then( (response) => (response.json()) )
		.then( (response) =>  {console.log("addIceCandidate ok:" + response)})
		.catch( (error) => this.onError("addIceCandidate " + error ))
}
				
/*
* RTCPeerConnection AddTrack callback
*/
WebRtcStreamer.prototype.onAddStream = function(event) {
	console.log("Remote track added:" +  JSON.stringify(event));
	
	this.videoElement.srcObject = event.stream;
	var promise = this.videoElement.play();
	if (promise !== undefined) {
	  promise.catch((error) => {
		console.warn("error:"+error);
		this.videoElement.setAttribute("controls", true);
	  });
	}
}
		
/*
* AJAX /call callback
*/
WebRtcStreamer.prototype.onReceiveCall = function(dataJson) {

	console.log("offer: " + JSON.stringify(dataJson));
	var descr = new RTCSessionDescription(dataJson);
	this.pc.setRemoteDescription(descr).then(() =>  { 
			console.log ("setRemoteDescription ok");
			while (this.earlyCandidates.length) {
				var candidate = this.earlyCandidates.shift();
				this.addIceCandidate(this.pc.peerid, candidate);				
			}
		
			this.getIceCandidate()
		}
		, (error) => { 
			console.log ("setRemoteDescription error:" + JSON.stringify(error)); 
		});
}	

/*
* AJAX /getIceCandidate callback
*/
WebRtcStreamer.prototype.onReceiveCandidate = function(dataJson) {
	console.log("candidate: " + JSON.stringify(dataJson));
	if (dataJson) {
		for (var i=0; i<dataJson.length; i++) {
			var candidate = new RTCIceCandidate(dataJson[i]);
			
			console.log("Adding ICE candidate :" + JSON.stringify(candidate) );
			this.pc.addIceCandidate(candidate).then( () =>      { console.log ("addIceCandidate OK"); }
				, (error) => { console.log ("addIceCandidate error:" + JSON.stringify(error)); } );
		}
		this.pc.addIceCandidate();
	}
}


/*
* AJAX callback for Error
*/
WebRtcStreamer.prototype.onError = function(status) {
	console.log("onError:" + status);
}

return WebRtcStreamer;
})();

if (typeof window !== 'undefined' && typeof window.document !== 'undefined') {
	window.WebRtcStreamer = WebRtcStreamer;
}
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
	module.exports = WebRtcStreamer;
}

2.下載webrtc-streamer

資源在最上面
也可以去github上面下載:webrtc-streamer

下載完解壓,打開文件夾,啟動webrtc-streamer.exe

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome?

打開完會出現(xiàn)cmd一樣的黑框框如下

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome?

如果沒有啟動成功可以在瀏覽器中輸入http://127.0.0.1:8000/查看本地端口8000是否被其他應(yīng)用程序占用,如果沒有被占用打開窗口應(yīng)該如下圖所示(是可以看見自己的頁面的)

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome?

3.封裝組件video.vue(名字隨意)

代碼如下(但是有需要注意的地方,請看下方)

<template>
  <div id="video-contianer">
    <video
      class="video"
      ref="video"
      preload="auto"
      autoplay="autoplay"
      muted
      width="600"
      height="400"
    />
    <div
      class="mask"
      @click="handleClickVideo"
      :class="{ 'active-video-border': selectStatus }"
    ></div>
  </div>
</template>

<script>
import WebRtcStreamer from '../../public/hk/webrtcstreamer'

export default {
  name: 'videoCom',
  props: {
    rtsp: {
      type: String,
      required: true,
    },
    isOn: {
      type: Boolean,
      default: false,
    },
    spareId: {
      type: Number,
    },
    selectStatus: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      socket: null,
      result: null, // 返回值
      pic: null,
      webRtcServer: null,
      clickCount: 0, // 用來計數(shù)點擊次數(shù)
    }
  },
  watch: {
    rtsp() {
      // do something
      console.log(this.rtsp)
      this.webRtcServer.disconnect()
      this.initVideo()
    },
  },
  destroyed() {
    this.webRtcServer.disconnect()
  },
  beforeCreate() {
    window.onbeforeunload = () => {
      this.webRtcServer.disconnect()
    }
  },
  created() {},
  mounted() {
    this.initVideo()
  },
  methods: {
    initVideo() {
      try {
        //連接后端的IP地址和端口
        this.webRtcServer = new WebRtcStreamer(
          this.$refs.video,
          `http://192.168.1.102:8000`
        )
        //向后端發(fā)送rtsp地址
        this.webRtcServer.connect(this.rtsp)
      } catch (error) {
        console.log(error)
      }
    },
    /* 處理雙擊 單機 */
    dbClick() {
      this.clickCount++
      if (this.clickCount === 2) {
        this.btnFull() // 雙擊全屏
        this.clickCount = 0
      }
      setTimeout(() => {
        if (this.clickCount === 1) {
          this.clickCount = 0
        }
      }, 250)
    },
    /* 視頻全屏 */
    btnFull() {
      const elVideo = this.$refs.video
      if (elVideo.webkitRequestFullScreen) {
        elVideo.webkitRequestFullScreen()
      } else if (elVideo.mozRequestFullScreen) {
        elVideo.mozRequestFullScreen()
      } else if (elVideo.requestFullscreen) {
        elVideo.requestFullscreen()
      }
    },
    /* 
    ison用來判斷是否需要更換視頻流
    dbclick函數(shù)用來雙擊放大全屏方法
    */
    handleClickVideo() {
      if (this.isOn) {
        this.$emit('selectVideo', this.spareId)
        this.dbClick()
      } else {
        this.btnFull()
      }
    },
  },
}
</script>

<style scoped lang="scss">
.active-video-border {
  border: 2px salmon solid;
}
#video-contianer {
  position: relative;
  // width: 100%;
  // height: 100%;
  .video {
    // width: 100%;
    // height: 100%;
    // object-fit: cover;
  }
  .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
}
</style>

這里要注意兩個地方

第一個是rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

第二個是

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

不會查看本機端口的看這里(首先使用 Win + R打開運行 輸入cmd)

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

4.使用video封裝組件播放rtsp視頻流

首先我們在要使用video封裝組件的地方引入并且注冊video組件

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

之后在頁面中使用video組件 并且定義了兩個變量將rtsp流傳給封裝的video組件

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chromertsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

效果圖如下

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

5.使用此種方法播放的時候會默認帶聲音播放,如何取消(看這里)

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

之后聲明一個方法

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

然后在created里面調(diào)用就靜音了

rtsp播放器 海康 vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome

到此為止??禂z像頭引入vue的方法就完美完結(jié)了

如果同學(xué)們有什么好的意見或者有什么問題可以私信我

最后祝大家事業(yè)蒸蒸日上,心想事成!

rtsp播放器 ???vue,硬件接入,前端,javascript,vue.js,html,ajax,css,chrome文章來源地址http://www.zghlxwxcb.cn/news/detail-858811.html

到了這里,關(guān)于vue2使用rtsp視頻流接入??低晹z像頭(純前端)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 海康實時監(jiān)控預(yù)覽視頻流接入web

    ??祵崟r監(jiān)控預(yù)覽視頻流接入web

    ? ? ? ? 我們采取的方案是后端獲取視頻流返回給前端,然后前端播放 根據(jù)官方文檔傳輸對應(yīng)的參數(shù)? 官方接口限制:為保證數(shù)據(jù)的安全性,取流URL設(shè)有有效時間,有效時間為5分鐘。 注意不同協(xié)議的限制不同,rtsp沒得限制但前端播放麻煩,web端展示的話ws比較好 ??甸_放平

    2024年04月17日
    瀏覽(26)
  • web,h5??狄曨l接入監(jiān)控視頻流記錄一

    web,h5海康視頻接入監(jiān)控視頻流記錄一

    項目需求,web端實現(xiàn)??当O(jiān)控視頻對接接入,需實現(xiàn)實時預(yù)覽,云臺功能,回放功能。 web端要播放視頻,有三種方式,一種是裝瀏覽器裝插件,一種是裝客戶端exe,還有就是無插件了。瀏覽器裝插件很早前已經(jīng)行不通了,chrome42還是44之前的可以??蛻舳搜b軟件,一般接受度

    2024年02月15日
    瀏覽(24)
  • 安防視頻管理平臺GB設(shè)備接入EasyCVR, 如何獲取RTMP與RTSP視頻流

    安防視頻管理平臺GB設(shè)備接入EasyCVR, 如何獲取RTMP與RTSP視頻流

    安防視頻監(jiān)控平臺EasyCVR可拓展性強、視頻能力靈活、部署輕快,可支持的主流標準協(xié)議有國標GB28181、RTSP/Onvif、RTMP等,以及支持廠家私有協(xié)議與SDK接入,包括??礒home、海大宇等設(shè)備的SDK等。平臺既具備傳統(tǒng)安防視頻監(jiān)控的能力,比如:視頻監(jiān)控直播、云端錄像、云存儲、錄

    2024年02月15日
    瀏覽(24)
  • 記錄對接??低晹z像頭web端實時預(yù)覽:Linux+ffmpeg+nginx轉(zhuǎn)換RTSP視頻流(完整版實現(xiàn))

    ????????需求:web端實現(xiàn)??禂z像頭實時預(yù)覽效果 ????????由于市面上大部分網(wǎng)絡(luò)攝像頭都支持RTSP協(xié)議視頻流,web端一般無法直接使用RTSP實現(xiàn)視頻預(yù)覽,本篇使用ffmpeg對視頻流進行轉(zhuǎn)換,最終實現(xiàn)web端實時預(yù)覽。 ????????工具介紹:ffmpeg、nginx、vue ????????介

    2024年01月25日
    瀏覽(24)
  • VUE3 播放RTSP實時、回放(NVR錄像機)視頻流(使用WebRTC)

    VUE3 播放RTSP實時、回放(NVR錄像機)視頻流(使用WebRTC)

    1、下載webrtc-streamer,下載的最新window版本 Releases · mpromonet/webrtc-streamer · GitHub ?2、解壓下載包 ?3、webrtc-streamer.exe啟動服務(wù) (注意:這里可以通過當(dāng)前文件夾下用cmd命令webrtc-streamer.exe -o這樣占用cpu會很少,直接雙擊exe文件會占用cpu) cmd? webrtc-streamer.exe -o 啟動如下圖所示,

    2024年04月12日
    瀏覽(22)
  • 【Uni-app 引入海康h5player并接入ws視頻流】

    【Uni-app 引入??礹5player并接入ws視頻流】

    內(nèi)容簡介 采用uni-app中的renderjs 引入海康H5 SDK 后端接入??稻C合安防平臺的開放API獲取預(yù)覽流 ??礖5 SDK 下載地址 接入原因 因在移動端接入不管是hls flv rtsp rtmp流的播放穩(wěn)定性和速度均很慢,特采用ws直連流來播放,效率很穩(wěn)定性均顯著提高。因采用前者流可以直接使用原生

    2024年02月11日
    瀏覽(15)
  • electron+vue網(wǎng)頁直接播放RTSP視頻流?

    electron+vue網(wǎng)頁直接播放RTSP視頻流?

    目前大部分攝像頭都支持RTSP協(xié)議,但是在瀏覽器限制,最新版的瀏覽器都不能直接播放RTSP協(xié)議,Electron 桌面應(yīng)用是基于 Chromium 內(nèi)核的,所以也不能直接播放RTSP,但是我們又有這個需求怎么辦呢? 市場上的方案很多,有很多免費開源的,同時也有比較成熟的商業(yè)軟件,豐儉

    2024年02月02日
    瀏覽(23)
  • 前端VUE播放RTSP、RTMP、HLS、FLV視頻流的解決方案

    前端VUE播放RTSP、RTMP、HLS、FLV視頻流的解決方案

    最近有個需求是前端在瀏覽器顯示攝像頭傳回的RTSP視頻流,我和后端都沒做過視頻流的項目,所以一步步摸索過來,方法和經(jīng)驗供大家參考。前端采用的技術(shù)有VUE+video.js+flv.js 從上圖可以看出,RTSP流不能直接在瀏覽器播放,所以需要轉(zhuǎn)碼: RTMP的流需要在瀏覽器中用flash播放

    2024年02月06日
    瀏覽(25)
  • 視頻推流測試——使用ffmpeg進行推流生成rtsp視頻流

    視頻推流測試——使用ffmpeg進行推流生成rtsp視頻流

    在我們完成開發(fā)工作之后,需要通過推流的形式來驗證能否正確接收視頻流,并送入視頻檢測程序。筆者在這里使用的是業(yè)內(nèi)最為常用的ffmpeg。具體方法如下。 訪問ffmpeg的官網(wǎng),地址為https://ffmpeg.org/download.html,按照如下途中來選擇下載。 下載完成后,會得到一個zip格式的壓

    2024年02月09日
    瀏覽(39)
  • 【音視頻】如何播放rtsp視頻流

    【音視頻】如何播放rtsp視頻流

    現(xiàn)階段直播越來越流行,直播技術(shù)發(fā)展也越來越快。Webrtc和rtsp是比較火熱的技術(shù),而且應(yīng)用也比較廣泛。本文通過實踐來展開介紹關(guān)于rtsp、webrtc的使用過程。 本文重點介紹如何播放rtsp視頻流,通過ffplay方式以及VLC media player的方式來播放 可以參考上一篇博文:【音視頻】基于

    2024年01月19日
    瀏覽(103)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包