Skip to content

Instantly share code, notes, and snippets.

View Kassan424kh's full-sized avatar
🌍
LIFE

Khalil Khalil Kassan424kh

🌍
LIFE
View GitHub Profile
@raiever
raiever / index.html
Last active April 2, 2024 15:09
[OpenCV] Web Streaming from IP camera with Flask
/* Under directory 'templates' */
<html>
<head>
<title>RTSP web streaming</title>
</head>
<body>
<h1>RTSP web streaming</h1>
<h3>XND-6080RV (ip:192.168.2.196)</h3>
<h4>python webstreaming.py --ip <host ip> --port <host port></h4>
<img src="{{ url_for('video_feed') }}">
@kuccello
kuccello / MainActivity.java
Last active August 28, 2023 10:14
An example MusicPlayer class that demonstrates how to use AudioFocus and a BroadcastReceiver to play audio cleanly on Android.
/*
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software