Solved

Batch file to open viedo file on webpage

Posted on 2011-09-28
12
331 Views
Last Modified: 2012-05-12
I am looking to open a news video every day at 3 pm in full mode without having to do it myself every day. I am looking to write a batch or script file that would do this for me but don't know the correct code. any help would be great. thank you.
0
Comment
Question by:jodyreid
  • 8
  • 4
12 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718721
If the url is the same every time, you could just launch that. If it changes, and for the full screen, you would need to work with the API for the website (if it has one) or use something like AutoHK instead of .bat to send the commands to the window.
0
 

Author Comment

by:jodyreid
ID: 36718765
How do you use theURL in a batch file? sorry it has been awhile since i used batch files.
Thank you.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718963
You would just call the browser's executable and send the url as a parameter. Something like:

"C:\Program Files\Internet Explorer\iexplore.exe" "http://www.experts-exchange.com"
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718982
Actually this should work too
start iexplore "http://www.experts-exchange.com"
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719067
If the url has any % characters, double them up. For example
http://www.somerandomurl/video%20watch
you would use
start iexplore "http://www.somerandomurl/video%%20watch"

It's possible that there are urls that will get you directly to the fullscreen version. For example, on youtube, instead of

start iexplore "http://www.youtube.com/watch?v=EIyixC9NsLI"

which takes you to the regular video, you could use

start iexplore "http://www.youtube.com/v/EIyixC9NsLI"

which will load it full in the browser. This trick will change depending on the site.

Then you can open Internet Exploerer in kiosk mode so it goes full screen like this

start iexplore -k "http://www.youtube.com/v/EIyixC9NsLI"
0
 

Author Comment

by:jodyreid
ID: 36719158
How do you find the link name for the video i need. The url only gives me the web page the video is located on but not the video link.
Thank you.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719362
Depends on the website. When you click to watch the video, what happens to the address bar? I'm guessing they use a new random url for the video each day so it may not be an easy task.

It will probably be easier if you just post the website you are working with.
0
 

Author Comment

by:jodyreid
ID: 36719414
http://www.rte.ie/live/ is the url and is is the second tab (News now)
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719489
Okay. The good news is that it's the same link every time. The bad news is that it's embedded in javascript so there is no direct url that I can find from looking at the page source.

You could probably get someone here in the Java zone to help you write a java script to start the video, but a batch script needs a direct URL (one may exist, but it isn't apparent).
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719494
Since it's available as a Windows Media stream you could also perhaps launch it in media player (or real player). Just start the news going in the player and save it as a playlist.
0
 

Author Comment

by:jodyreid
ID: 37006197
Any more help with this. Thank you.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 37047568
Adding "Java zone" as a tag doesn't actually do anything. You could hit "request attention" and ask that the Java zone be added or you could close this one out since "You can't do it with this video" is the correct answer to the original question and then open a new question in the Java zone.

The second option is the better one since new questions usually get more attention then moved ones and it follows EE's guidelines a bit better for asking questions.

Make sure to include the actual url of the video in question if you post a new question.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now