15,901,284 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13929183 (Top 5 by date)
Member 13929183
5-Aug-18 15:40pm
View
Please help me on this issue with your complete script using URL
Member 13929183
1-Aug-18 8:26am
View
Please help me in looking into this thread and let me know the URL path that I can add and play online
https://www.codeproject.com/Answers/697622/protecting-videos-from-being-stolen-in-browser?cmt=995289#cmt995289
Member 13929183
1-Aug-18 8:22am
View
<?php
/**
* access.php - The main serving file which will server the video
**/
session_start();
// Decrypt the Token to get back the video file name
$token = openssl_decrypt($_GET['vid'], "aes128", $_GET['id'].session_id());
// Check if file exists
if(@fopen("https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4","r")==true)
{
// Another important point here is a session id regeneration
session_regenerate_id(true);
$file = $token;
$file_size = filesize($file);
$file_pointer = fopen($file, "rb");
$data = fread($file_pointer, $file_size);
header("Content-type: video/mp4");
echo $data;
}
else {
echo "Error: File Does not exists";
}
?>;
Do I missing anything.. Still the video wont play..
I need your help on this.
Thank you
Member 13929183
31-Jul-18 13:30pm
View
Tushar Srivastava,
I am newbie to php. Can you please tell me how I do add my video file to your script.
For explame if I want to play this url : https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4
On which .php I need to add it??
I tired my best to understand but I end up with error "Error: File Does not exists"
Any help appreciated.
Thank you
Member 13929183
28-Jul-18 10:57am
View
Deleted
Tushar Srivastava,
I am newbie to php. Can you please tell me how I do add my video file to your script.
For explame if I want to play this url : https://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4
On which .php I need to add it??
I tired my best to understand but I end up with error "Error: File Does not exists"
Any help appreciated.
Thank you