Xóa bài viết
Bạn có chắc chắn muốn xóa bài viết này không ?
Xóa bình luận
Bạn có chắc chắn muốn xóa bình luận này không ?
Google Drive Player API Generator + WordPress Plugin + Không giới hạn lượt xem
Công cụ website hỗ trợ get link player googledrive anti limit
Link được get ra có dạng (..............googlevideo.com/videoplayback?..)
Sử dụng đơn giản
Trực tiếp : http://streamapi.net/
API : http://streamapi.net/get.php?url=https://drive.google.com/file/d/[ID]/view&poster={url}&logo={url}
Bản xem thử (demo) : http://streamapi.net/embed.php?id=352214&poster=https://i.imgur.com/AYx7p2r.png&logo=http://streamapi.net/template/images/logo.png
Sử dụng plugin cho Wordpress (Hỗ trợ quảng cáo popup, banner)
Tải tệp này về để cài đặt : http://streamapi.net/wp_streamapi_v1.zip
Cách sử dụng:
- Tải và cài đặt plugin
- Cài xong plugin sẽ nằm ở: Cài đặt > StreamAPI
- Cách sử dụng
Dán đoạn mã dưới đây vào vùng cần xuất hiện video:
Mã:
[api link="your_video_link" poster="poster_link" logo="logo_link"]
Ví dụ #1:
Mã:
[api link="https://drive.google.com/file/d/13bmEX-hj1vj1p03KdUb41Wc1gA4IXBoj/view" poster="http://streamapi.net/poster/1.jpg" logo="http://streamapi.net/template/images/logo.png"]
Ví dụ #2:
Mã:
[api link="https://drive.google.com/file/d/13bmEX-hj1vj1p03KdUb41Wc1gA4IXBoj/view"]
Sử dụng code PHP
PHP Code :
$streamAPIContent = file_get_contents('http://streamapi.net/get.php?url={url-drive-google}&poster={poster-url}&logo={logo-url}');
$datastreamAPI = json_decode($streamAPIContent, TRUE);
if($datastreamAPI['status_video']=='Ready') {
$streamAPISLUG = $datastreamAPI['iframe'];
$statusVideo = 1;
}
Trong đó
- {url-drive-google} : Đường dẫn file google drive. Lưu ý phải mở chế độ công khai trước khi lấy link.
- {poster-url} : Đường dẫn hình ảnh.
- {logo-url} : Đường dẫn logo.
- echo $streamAPISLUG; : Dán vào phần cần iframe video.
- $statusVideo : Trạng thái video 1 hoạt động 2 không hoạt động.
Bình luận

{{ comment.user.name }}
Bỏ hay
Hay
