Liberty BASIC Community Forum
« HTML5 CHROME VIDEO PLAYER VERSION ( WORKS :)) »

Welcome Guest. Please Login or Register.
Nov 22nd, 2017, 01:31am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: HTML5 CHROME VIDEO PLAYER VERSION ( WORKS :))  (Read 317 times)
michael
Guest
xx HTML5 CHROME VIDEO PLAYER VERSION ( WORKS :))
« Thread started on: May 29th, 2015, 01:52am »

Make sure you type filename.mp4 when you name a file. This is just an example.

I have marked where the directory locations are in this program.. Make sure your video is with the HTML file
^^^^^^^
If you don't have D:\ for a writeable directory change it to a drive that you know you can write to
^^^^^^
This program will generate the HTML file and play the video AUTOMATICALLY--- HANDY ( I think)

Code:
print "This program requires a HTML5 compatible browser ( This one uses Google CHROME )"
print "Type the full name of the video that you put with the HTML file we are using"
print "Just the filename and extension: eg myvideo.mp4 (make sure its a MP4 video)"
print " "
print "The HTML file will be  D:\Myvideo.html"
print " "
print "You do not have to put the path to the file as long as it has been copied to"
print " where the HTML file will be."
Input Name$
file$="D:\Myvideo.html" ''<<<<<<<<<<<<<  If you dont have D:\ directory rename to a writable location
open file$ for output as #1
#1 "<!DOCTYPE html>"
#1 "<html lang="+chr$(34)+"en"+chr$(34)+">"
#1 "<head>"
#1 "<meta charset="+chr$(34)+"UTF-8"+chr$(34)+">"
#1 "<title>VIDEO PLAYER</title>"
#1 "</head>"
#1 "  <body>"
#1 "  <video controls autoplay>"
#1 "  <source src="+chr$(34)+Name$+chr$(34)+" type="+chr$(34)+"video/mp4"+chr$(34)+">"
#1 "  Video element not supported by your browser."
#1 " </video>"
#1 "  </body>"
#1 "  </html>"
close #1
navigator$ ="C:\Program Files (x86)\google\chrome\application\chrome.exe"
db$ = navigator$+" "+"D:\Myvideo.html" '<<<<<<<<<<<<<  If you dont have D:\ directory rename to a writable location
run db$  ' to actually launch this ( enable this line to see what it does
end 


« Last Edit: May 29th, 2015, 02:16am by michael » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls