Difference between revisions of "IT-SDK-HTML"

From wiki.samerhijazi.net
Jump to navigation Jump to search
Line 1: Line 1:
 +
=.htaccess=
 +
* Allways use https
 +
<pre class="code">
 +
RewriteEngine On
 +
RewriteCond %{HTTPS} off
 +
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 +
</pre>
 
=Streaming=
 
=Streaming=
 
<pre class="code">
 
<pre class="code">

Revision as of 12:47, 26 March 2021

.htaccess

  • Allways use https
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Streaming

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
  <audio controls>
    <source src="./001.mp3" type="audio/mpeg">
  </audio>
  <p>
  <audio controls>
    <source src="./quran.m3u" type="audio/mpegurl"> # Works just in Mobil-Version
  </audio>
</body>
</html>