<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	$key = 'TikTok Video Downloader, Getlink Video Tiktok';
	$mkey = 'Tool tải video tik tok không có logo, download tik tok video without watermark, download mp3 audio video mp4 tiktok.com';
	require '../../template/header.php';
?>

	<div class="col-right-xs">
		<div class="mainblok">
			<div class="phdr">
					<div vocab="https://schema.org/" typeof="BreadcrumbList">
						<span property="itemListElement" typeof="ListItem">
							<a href="/"  property="item" typeof="WebPage">
								<i class="fa fa-home"></i> <span property="name">Home</span>
							</a>
							<meta property="position" content="1">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<a href="/getlink/"  property="item" typeof="WebPage">
								<i class="fa fa-chain-broken"></i> <span property="name">GetLink</span>
							</a>
							<meta property="position" content="2">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<span property="name">TikTok Video Downloader</span>
							<meta property="position" content="3">
						</span>
					</div>
			</div>
			<div class="newsx">Best TikTok Video Downloader, MusicallyDown is Tik Tok Videos Downloader with or without watermark and Downloading Tik Tok Videos in MP3 format.!</div>
			<div class="menu">
				<strong>Link hỗ trợ:</strong><br />
				https://vt.tiktok.com/88yY5q/<br />
				https://m.tiktok.com/v/6673684268570381570.html<br />
				https://www.tiktok.com/@chimua123/video/6643751245439831298<br />
				<form role="form" class="form-horizontal" id="form" method="post" onSubmit="return false;">
					<input type="text" name="link" id="link" placeholder="https://www.tiktok.com/@lanhhanthiendi15052006/video/6784313503009295617">
					<input type="submit" id="submit" value="Lấy link get" name="submit" />
				</form>
			</div>
			<div id="DownloadLink"></div>
		</div>
		
<?php require '../list.php'; ?>
	</div>
	<div class="col-left-xs">
<?php require '../../tools/toolslist.php'; ?>
	</div>
	<div class="clear"></div>

<script>
$(document).ready(function(){
	$("#submit").click(function(){
		$("#submit").addClass('disabled');
		$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><img src="/template/images/loading.svg" /></div>').slideDown('slow');
		var form = $('#form')[0];
		var formData = new FormData(form);
		$.ajax({
			url: "api.php",
			type: "POST",
			data:  formData,
			contentType: false,
			cache: false,
			processData:false,
			success: function(res)
			{
				if(res.success){
					$("#submit").removeClass('disabled');
					var html = '';
					var download = ' <a rel="noreferrer noopener" target="_blank" href="'+res.success['link']+'"><button type="button" class="btn btn-success"><i class="fa fa-cloud-download"></i> Download Video </button></a> ';
					if (res.success['audio']) {
						download += ' <a rel="noreferrer noopener" target="_blank" href="'+res.success['audio']+'"><button type="button" class="btn btn-success"><i class="fa fa-cloud-download"></i> Audio only </button></a> ';
					}
					var title = res.success['title'];
					var play = res.success['link'];
 
					$("head").append('<meta name="referrer" content="no-referrer" />');
					html = '<div class="menu"><div style="padding-bottom:15px;font-size: 16px;text-align:center;">'+title+'</div> <div id="video"><div id="myvideo"></div></div> <script> var playerInstance = jwplayer("myvideo"); jwDefaults.key = "9dOyFG96QFb9AWbR+FhhislXHfV1gIhrkaxLYfLydfiYyC0s"; playerInstance.setup({id: "player", title: "'+title+'", controls: true, playbackRateControls: true, abouttext: "VuiZ.Net", aboutlink: "https://m.vuiz.net/", logo: {file: "https://m.vuiz.net/template/images/logovideoplayer.png", logoBar: "https://m.vuiz.net/template/images/logovideoplayer.png", link: "https://m.vuiz.net/", position: "control-bar"}, file:"'+play+'",type:"mp4", image:"'+res.success['thumbnail']+'"}); playerInstance.on("error",function() {playerInstance.load("https://cdn.jwplayer.com/v2/media/7RtXk3vl"); playerInstance.setControls(false); playerInstance.play(); }); <\/script> <div style="text-align: center; padding-top:15px;"> '+download+' </div></div>';
					$("#DownloadLink").hide().html(html).slideDown('slow');
				}
				if(res.error){
					$("#submit").removeClass('disabled');
					$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">'+res.error+'</i></div>').slideDown('slow');
				}
			},
			error: function() 
			{
				$("#DownloadLink").hide().html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
			}
		});
		$("#link").attr("placeholder", $("#link").val()).val("");
	});
});

</script>
<script async src="https://cdn.jwplayer.com/libraries/rlx7bqvD.js"></script>
<?php
	require '../../template/footer.php';
?>