I want make like this http://www.jredtna.com/read/?hash=cGxheWVyIDEgPT4gaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvZmgwUUQtV1dyY2MKcGxheWVyIDIgPT4gaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvMk1wVWotQXVhNDg=
(You can't see iframe because website using cookies to check if you coming from another website).
So please join here http://halqat.online/video/watch.php?vid=6f673f4c5 and click red play button to see what I mean.
When decode hash= by base64:
cGxheWVyIDEgPT4gaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvZmgwUUQtV1dyY2MKcGxheWVyIDIgPT4gaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvMk1wVWotQXVhNDg=
will give us like this:
player 1 => https://www.youtube.com/embed/fh0QD-WWrcc
player 2 => https://www.youtube.com/embed/2MpUj-Aua48
My question is how I can do like that:
Get hash=Base64URL
Decode it and split "player 1" and "youtube url" by =>
Put data inside html like this
<div class="embeding">
<ul>
<li><a data-src="https://www.youtube.com/embed/fh0QD-WWrcc">player 1</a></li>
<li><a data-src="https://www.youtube.com/embed/2MpUj-Aua48">player 2</a></li>
</ul>
</div>
and auto add li a if find another players