how to get a source url in jw player withe javascript command - Stack Overflow

admin2025-04-20  0

im new in javascript and i try to get a video url from a site using java script without looking for it in the page source the page source is like this

<html>
<body>
<script type="text/javascript">
jwplayer("myJwVideo").setup({
    playlist: [{
        image: ".jpg",
        sources: [{ 
            file: "http:www.videourl.mp4"   
        }]
    }],
});
</script>
</body>
</html>

is there is a way to get the http:www.videourl.mp4 url using javascript in firefox or google chrome console

im new in javascript and i try to get a video url from a site using java script without looking for it in the page source the page source is like this

<html>
<body>
<script type="text/javascript">
jwplayer("myJwVideo").setup({
    playlist: [{
        image: "http://www.blabla./back.jpg",
        sources: [{ 
            file: "http:www.videourl.mp4"   
        }]
    }],
});
</script>
</body>
</html>

is there is a way to get the http:www.videourl.mp4 url using javascript in firefox or google chrome console

Share Improve this question edited Nov 21, 2015 at 21:13 Snoopy Ohoo asked Nov 21, 2015 at 21:07 Snoopy OhooSnoopy Ohoo 1091 silver badge12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

jwplayer("myJwVideo").getPlaylist().

Documentation at http://support.jwplayer./customer/en/portal/articles/1413089-javascript-api-reference#all

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745105957a285291.html

最新回复(0)