Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Batch file to open viedo file on webpage

Posted on 2011-09-28
12
Medium Priority
?
351 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Screencast - Getting to Know the Pipeline

772 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