Website sẽ giúp bạn nhận được link xem phim trực tiếp tại Google Drive với dạng link (..........googlevideo.com/videoplayback?..) chống giới hạn lượt xem.

- Chỉ hỗ trợ cho video không hỗ trợ các file tải.
- Hỗ trợ WordPress Plugin.
Cách sử dụng
Lấy link trực tiếp: http://streamapi.net
Xem thử : http://streamapi.net/embed.php?id=352214
API Json:
http://streamapi.net/get.php?url=https://drive.google.com/file/d/[ID]/view&poster={url}&logo={url}
Đối với những website sử dụng Wordpress có thể tải Plugin bên dưới
Download :
Cách sử dụng:
- Tải và cài đặt plugin
- Plugin tải xong sẽ nằm ở Cài Đặt > StreamAPI
- Cách sử dụng
Dán đoạn mã đoạn mã vào nơi cần xuất hiện player:
[api link="your_video_link" poster="poster_link" logo="logo_link"]
Ví dụ #1:
[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:
[api link="https://drive.google.com/file/d/13bmEX-hj1vj1p03KdUb41Wc1gA4IXBoj/view"]
Đối với website sử dụng PHP
Cách sử dụng:
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 tệp tin Google Drive. Phải bật công khai trước khi lấy link.
- {poster-url} : Đường dẫn hình ảnh.
- {logo-url} : Đường dẫn logo.
- $streamAPISLUG : Lấy đường dẫn player.
- $statusVideo : Lấy trạng thái video 1 hoạt động 2 không hoạt động.