473,699 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where IS the URL for a JavaScript Linked-to Video?

When a page has a JavaScript "link" to a video, like
http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the
actual video? Isn't it in the source somewhere?
--
)|:__ Nehmo __:|(

Dec 17 '05 #1
8 3633
"Nehmo" <ne*****@hotmai l.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
When a page has a JavaScript "link" to a video, like
http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the
actual video? Isn't it in the source somewhere?
--
)|:__ Nehmo __:|(


That page has three hyperlinks that invoke a JavaScript function:

oMvsLink('00',' b42c8497-f0ae-4d59-808d-e00e035df600',' ','','','','',f alse,fa
lse,'Source_Nig htly News')

which is declared within the include file:

http://www.msnbc.msn.com/js/std.js

function oMvsLink(gPV,sG uid,bDck,sMenu, sSubM,sURL,sPL, bRP,bStatic,sLi st) {
var sLink="http://video.msn.com/v/us/msnbc.htm";
if(sPL) {
sGuid=sGuid+"," +sPL;
}
sLink+="?f="+gP V+"&g="+sGuid+" &t=m5";
if(sList){
sLink+="&p="+es cape(sList);
}
if(!bDck){
var
ovp=window.open (sLink,"ovp","w idth=788,height =598,status=1,s crollbars=yes,r e
sizable=yes");
if(sURL) {
location.href=s URL;
}
}else{
location.href=s Link;
}
}

Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...d59-808d-e00e0
35df600&t=m5&p= Source_Nightly% 20News

I think...

But then this gets "resolved" on the server to deliver an actual file.
Dec 17 '05 #2

McKirahan wrote:
Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...d59-808d-e00e0
35df600&t=m5&p= Source_Nightly% 20News

I think...

But then this gets "resolved" on the server to deliver an actual file.


Since this is a major news site with a huge number of hits, they most
likely are using a special streaming media server to manage traffic to
the video much better than on a regular html server. So the main site
likely links to the streaming server with special code used for this
sort of thing. On a streaming server, it often is not possible to get a
conventional URL for a video file. They also are likely using some
server side script, such as php, also which you do not see on the page
code.

The video link would not let me in on Firefox. They say you have to
"upgrade" to IE, etc. If you look at a bit of the site code, it is easy
to see why. They use all sorts of non-standard Microsoftese, VB
scripts, etc. This site has very poor code with apparently no effort
made to work well on anything other than IE. I think this site is a
very good example of how not to write code.

However, even with a site with good code that links to a streaming
server for media, you often can not capture the code for the actual
video or audio.

Dec 17 '05 #3
cw******@yahoo. com wrote on 17 dec 2005 in comp.lang.javas cript:

McKirahan wrote:
Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...f0ae-4d59-808d
-e00e0 35df600&t=m5&p= Source_Nightly% 20News
[..]

However, even with a site with good code that links to a streaming
server for media, you often can not capture the code for the actual
video or audio.


Don't believe this. What is downloaded can be captured:

mms://msnbc.wmod.llnw d.net/a275/e1/video/100/nn_thomp_baby_0 51215.asf

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Dec 17 '05 #4

Evertjan. wrote:
cw******@yahoo. com wrote on 17 dec 2005 in comp.lang.javas cript:

McKirahan wrote:
Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...f0ae-4d59-808d
-e00e0 35df600&t=m5&p= Source_Nightly% 20News

[..]

However, even with a site with good code that links to a streaming
server for media, you often can not capture the code for the actual
video or audio.


Don't believe this. What is downloaded can be captured:

mms://msnbc.wmod.llnw d.net/a275/e1/video/100/nn_thomp_baby_0 51215.asf


What you found is the mms:// redirector file which typically is a link
to a Microsoft streaming server(I think that mms means Microsoft Media
Server). To make certain, I went to the Opera browser, deleted the
cache, and played the mms file link you gave using the WMP 10. The
video played well(it is only 200 kbps which is easy on DSL). However,
as is typical of true streaming video, nothing is downloaded to the
Opera cache. Of course when I link to one of my video files with an
http url on my normal html server, the video is cached, and you can
save it from the cache if you wish. Or if you have the address of the
actual wmv, in addition to the wax redirector file, you can directly
download the wmv file stored on the HD where you wish.

There is a way to capture the video as it is playing, although this is
not capture of the actual digital file on the streaming server, and, at
lest in theory, will result in lower video quality. You can use the
free Microsoft media encoder to do a screen capture of the video as a
wmv file as the video is playing, if your computer is fast enough for
the extreme computing demands required. If the computer is too slow,
you can get extreme distortions of the video, or no capture at all.
Also you could feed the audio-video output of the computer, as the
video is playing, to a video capture dervice to capture in mpeg format
just as is done when you capture a VCR tape as mpeg and store it on the
HD.

Dec 17 '05 #5
cw******@yahoo. com wrote on 17 dec 2005 in comp.lang.javas cript:
> However, even with a site with good code that links to a streaming
> server for media, you often can not capture the code for the actual
> video or audio.


Don't believe this. What is downloaded can be captured:

mms://msnbc.wmod.llnw d.net/a275/e1/video/100/nn_thomp_baby_0 51215.asf


What you found is the mms:// redirector file which typically is a link
to a Microsoft streaming server(I think that mms means Microsoft Media
Server).


"the code for(!) the actual video or audio"
in my book is not the same as
"the content of(!) the actual video or audio".

An .ASX file is a redirector file,
an .ASF is the stream itself, I presume.

Not tried, but what about this, if you really want to download huge files:

<http://www.thefab.net/topics/computing_video/cv07_asf_record er.htm>

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Dec 17 '05 #6

Evertjan. wrote:
Not tried, but what about this, if you really want to download huge files:

<http://www.thefab.net/topics/computing_video/cv07_asf_record er.htm>


Thanks for the link. I downloaded the recorder - it is a fairly small
zip file. However I have not been able to record the video we have been
discussing. It may just be that I do not know enough about how to use
the recorder yet, or this may be one of those many streams that can not
be recorded with this recorder, as mentioned in the text file that
comes with the recorder. Perhaps I will play with the recorder on other
video streams when I have time. The recorder is supposed to work even
if you have a slow connection. However the video stream we were
discussing was only about 200 kbps and just a few minutes long. Since I
have an about 2.5 Mbps download connection, downlown time would be
short if the net is not congested, and the resulting file would be
small by video standards. When you are doing DVD format file work, you
often have files that run from 4 to 8 GB for a normal movie, so a
little, slow-speed streaming video is trivial on comparison

The same considerations apply to streaming audio on net radio stations,
etc. There are several recorders that will let you record streaming
audio including Real formats. In fact one of my media programs came
with one, but I have never used it. However for either streaming video
or audio, it appears that various tricks can be used to prevent
recording on some recorders. The hackers overcome the tricks, the media
providers find new tricks, and the cat and mouse game continues on and
on. Of course you can always connect the audio and video outputs of
your computer to an external CD or DVD recorder and get the media -
unless it is protected by analog Macrovision or something of the sort.
And, most likely, the hackers have a way around that sort of protection.

Dec 17 '05 #7
On 2005-12-17, cw******@yahoo. com <cw******@yahoo .com> wrote:

McKirahan wrote:
Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...d59-808d-e00e0
35df600&t=m5&p= Source_Nightly% 20News
The video link would not let me in on Firefox. They say you have to
"upgrade" to IE, etc. If you look at a bit of the site code, it is easy
to see why. They use all sorts of non-standard Microsoftese, VB
scripts, etc. This site has very poor code with apparently no effort
made to work well on anything other than IE. I think this site is a
very good example of how not to write code.


It's a marketing tool...
It's possibly an illegal abuse of a monopoly position

Bye.
Jasen
Dec 18 '05 #8

Jasen Betts wrote:
On 2005-12-17, cw******@yahoo. com <cw******@yahoo .com> wrote:

McKirahan wrote:
Thus, the URL is:

URL:http://video.msn.com/v/us/msnbc.htm?...d59-808d-e00e0
35df600&t=m5&p= Source_Nightly% 20News

The video link would not let me in on Firefox. They say you have to
"upgrade" to IE, etc. If you look at a bit of the site code, it is easy
to see why. They use all sorts of non-standard Microsoftese, VB
scripts, etc. This site has very poor code with apparently no effort
made to work well on anything other than IE. I think this site is a
very good example of how not to write code.


It's a marketing tool...
It's possibly an illegal abuse of a monopoly position


You could be right that the way the code is written is a marketing
tool. This is a web page from MSNBC. MSNBC is a US television cable
channel that is put up by two giants, one being Microsoft, hence the
MS, and the other being NBC, a very old company, which has changed
hands a few times, that carried national radio and then TV in the US.
The people who write the web pages could be from Microsoft or could
have been trained at Microsoft. I am not trained in corporate law, so I
have no comments on that issue. Opera had an issue with the way that
Microsoft wrote some of their web pages, claiming that they appeared to
be designed to look bad on the Opera browser. Of course Microsoft
claimed that was not their aim. There was a long story about this a few
years ago on the Opera site, and it may still be there. Anyway, this
issue may be a major reason why Opera developed code to allow their
browser to spoof other browsers, including IE6.

Although this thread is drifting a bit from script, the awful script,
at least by current international standards, is one of the main
problems with the page.

Dec 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7953
by: Jeffrey Silverman | last post by:
Hi, all. I have a linked list. I need an algorithm to create a tree structure from that list. Basically, I want to turn this: $list = array( array( 'id' => 'A', 'parent_id' => null, 'value' => 'aaa') , array( 'id' => 'B', 'parent_id' => 'A', 'value' => 'bbb') , array( 'id' => 'C', 'parent_id' => 'B', 'value' => 'ccc') , array( 'id' => 'D', 'parent_id' => 'A', 'value' => 'ddd')
3
11865
by: Marek Wierzbicki | last post by:
I have my own function, which I can use: declare @dt as datetime select @dt='20040121 12:22:33' select * from index_gold_iif(@dt) When I try do it from linked serwer: declare @dt as datetime select @dt='20040121 12:22:33'select * from
1
1774
by: mahajan.sanjeev | last post by:
Hi All, I am accessing a linked server (also a SQL Server) from a stored procedure. There is an insert statement that I run on a table in the linked server. This statement causes the Internal SQL Server error. But if I run the insert statement separately from Query Analyzer, it works fine! Also, I put the stored procedure directly into the database on the linked SQL Server and it ran fine on it. Has anybody come across something of this...
22
4630
by: VK | last post by:
A while ago I proposed to update info in the group FAQ section, but I dropped the discussion using the approach "No matter what color the cat is as long as it still hounts the mice". Over the last month I had enough of extra proof that the cat doesn't hount mice anymore in more and more situations. And the surrent sicretisme among array and hash is the base for it. I summarized all points in this article:...
3
4894
by: Zlatko Matiæ | last post by:
Hi! What happens with linked tables if they were linked using File DSN, when I copy the Access file on some other PC without File DSN ? What is the difference between DSN on linked tables and pass-through queries ? Why I can change DSN for pass-through query and can't change it for linked table, in Properties dialog box ? Zlatko
7
3424
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well - sorry for cross posting. Back ground: User at remote site has Access 2000 running on XP (don't know SP of either). Linked tables are DB2 v8 running on AIX. All of the linked tables are in the same database and schema.
3
3576
by: chellappa | last post by:
hi i create a c program ,which waas doing operation of linked list.......in single linked list it is working properly, but i want multiple linked list of same member... i am using array of memeber.. it give error? i tried all ways and also search in neet and google group.........i wasnt find it.........so if any other methods is know tell ... ex i have one struct ,i want crearte multiple object for struct ........each object is...
8
7095
by: shannon | last post by:
Hi there, Does anyone know if you can download a free javascript complier from the net. I need to check my code for a project. Thanks Shannon.
1
1682
by: kevinmpoulton | last post by:
Hi there I'm having a very strange problem with an OLE field in an Access database. The field in question contains a mixture of embedded and linked PowerPoint presentations. The embedded presentations work just as you'd expect - I can right click on a field in the table and choose edit, which will open the presentation in PowerPoint. However, the linked fields throw an error: '..can't open the file containing the OLE object'.
8
1488
by: asm_fool | last post by:
dear group, /*Linked list in C*/ #include<stdio.h> #include<stdlib.h> struct node {
0
8704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9187
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8936
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7776
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.