Your simplest solution would be to upload your video to youtube, maybe run your webpage in a window with a live link to the youtube address then follow my previously suggested workaround for displaying Youtube videos:
After hours of seeking solutions to play YOUTUBE videos, I have found the solution in the Epiphany Browser. Installs with the following 3 ...
I just wanted to note that I've been researching this topic as well and found some 'hacky' solutions. I've tested several methods to enable smooth playback in the browser using HTML5.
Browsers: Chromium-Browser (Version 45 and 50), Iceweasel, Midori, Minimal Kiosk Browser, Epiphany Web Browser.
For each browser I then navigate to ...
If the button is a website element, and the website using python, can
i control linux functions thru website on raspberry?
Yes, basically you can do this with these python functions : os.system("someapp.sh") (launch a task),commands.getstatus("someapp.sh") (launch & read exit status code) or commands.getstatusoutput("someapp.sh") (launch and read ...
npm install raspi-sensors
npm install node-dht-sensor
That first library was last updated three years ago, so as is typical with the Pi (and Linux) you may deal with some compatibility challenges, while node-dht-sensor was updated two months ago. You can search the npm repository for other modules ...
Not a great idea as security settings can get in a right mix as the web pages (and services) run under the user www-data and not the user pi.
If you determined to do this (and it's really not a good idea for security of the website) then Apache lets you do it with the alias module (mod_alias). Once enabled, you can set something like the following:
You can easily do it by a simple package named apache. It's a powerful web server, however, you can accomplish what you said by it.
1. Install Apache:
sudo apt-get install apache2
2. Start the service:
sudo service apache2 start
3. Open the browser of the Raspberry Pi and open http://localhost/ address by a browser. You'll something like the ...
I think the browser is getting thrown by the DOCTYPE's in the header and footer. It should not need to see them because it knows index.html is an HTML document.
I would remove <!DOCTYPE html> from both PHP include files and put the HTML5 <!DOCTYPE html> declaration at the start of your index.html instead.
This seems to behave properly. I think your expectation of what happens on the click is probably wrong.
What seems to happen (correctly) is that you click the button, and the browser attempts to load do.php. That file attempts to execute your Python and print the text it gives on standard output. Your Python script writes nothing to standard output, so ...
The great thing about programming is that you can do pretty much whatever you want to do if you have the right level of knowledge. What you're talking about has two primary components.
A python backend that accepts commands and then does things to ...
MPEG2 playback speed on the RPi can be increased by buying a license for the hardware codec. You will need to write down the serial number of your board from /proc/cpuinfo, which will be required at the time of purchase.
Disclamer: I have no means to know whether your particular video will be supported, or whether the performance boost will be significant ...
If one googles this phrase "raspberry pi gpio web interface" and switches to images mode, we can see that there appear to be quite a number of pre-existing solutions and samples. For example:
Epiphany can do it according to the Raspberry Pi foundation's blog:
They didn't mention any specific OS, so I'd go for Raspbian. Installation instructions are on the blog post.
After hours of seeking solutions to play YOUTUBE videos, I have found the solution in the Epiphany Browser. Installs with the following 3 commands:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install epiphany-browser
You must reboot, then (AGAIN!):
sudo apt-get ...
We manage an amount of Pi's as Digital Signage clients. We have plain picture and HTML based versions. For HTML we use Chromium.
While we don't have a direct need for HTML5 video at this very moment it was something to try out.