Results 1 to 5 of 5
-
9th Aug 2012, 04:43 AM #1OPMember
JavaScript help
hi all,
i have plan to create streaming site. All is Ok but when I want load video link to player , i dont know how to do it (reason : i'm noob of javascript)
here is My Embed Player :
PHP Code:<div id="usplayer">
<object id="jwplayer786" classid="jwplayer0786" width="590" height="300" bgcolor="#000000">
<param name="movie" value="player.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="$link_will_load" />
<embed name="jwplayer786" src="player.swf" flashvars="$link_will_load" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="590" height="300" bgcolor="#000000" />
</object>
</div>
PHP Code:<div class="links">
<a href="">Link1</a>, <a href="">Link2</a>,<a href="">Link3</a>,...
<a href="">Linkn</a>
</div>
Hope anyone can help me.
Thanks All For Reading.Keosoft90 Reviewed by Keosoft90 on . JavaScript help hi all, i have plan to create streaming site. All is Ok but when I want load video link to player , i dont know how to do it (reason : i'm noob of javascript) here is My Embed Player : <div id="usplayer"> <object id="jwplayer786" classid="jwplayer0786" width="590" height="300" bgcolor="#000000"> <param name="movie" value="player.swf" /> <param name="allowFullScreen" value="true" /> <param name="allowScriptAccess" value="always" /> <param name="FlashVars" value="$link_will_load" Rating: 5
-
9th Aug 2012, 07:46 PM #2Respected Member
Try this example ..
http://www.longtailvideo.com/support...nto-the-player
-
1st Sep 2012, 07:43 AM #3Probation
You can use readymade players.Try searching on Google!
-
4th Sep 2012, 03:48 PM #4Probation
Or you can use the simple HTML5 code
Code:<video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Your browser does not support the video tag. </video>
-
4th Sep 2012, 04:23 PM #5MemberWebsite's:
HD-Streaming.orgYou can delete the div "usplayer" content and rewrite the embedding code with new link, with jQuery it's very easy:
PHP Code:$(".links a").click(function(){
embed = $('<object id="jwplayer786" class....>....<param name="FlashVars" value="'+$(this).href()+'" />'); //the same embedding code with just changin the FlashVars value with the clicked link...
$("#usplayer").html(embed);
return false; //to stop the a click event
});
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[WordPress] How to do this in javascript/php?
By thizzladen in forum Web Application/Script SupportReplies: 0Last Post: 16th Mar 2012, 12:05 AM -
JavaScript Kit
By Daniel in forum Useful SitesReplies: 0Last Post: 7th Mar 2011, 06:48 PM -
javascript help
By jokerhacker in forum Web Development AreaReplies: 4Last Post: 27th Dec 2010, 11:02 AM -
Help About JavaScript
By macypro in forum Technical Help Desk SupportReplies: 1Last Post: 7th Dec 2010, 12:23 AM -
help with some javascript
By bumilad20 in forum Web Application/Script SupportReplies: 2Last Post: 3rd Jun 2010, 05:01 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...