Change rtmfp groupspec with javascript

hello
is it possible to change dynamically the groupspec and play the new rtmfp group?
test code
  var parameters =
                        {       src: "rtmfp://p2p.rtmfp.com/2924a8afa44eaff4aac318fe5b39248d277688d663c6dfb422e6e9663967d39b/"
                        ,       autoPlay: true
                        ,       groupspec: "G:0101010c040e6f747200"
                        ,       multicastStreamName: "stream"
                        ,       streamType: "live"
                        ,       streamName: "stream"
                        ,       controlBarAutoHide: false
                        ,   javascriptCallbackFunction: "onJavaScriptBridgeCreated"
                // Embed the player SWF:
                swfobject.embedSWF
                        ( "StrobeMediaPlayback.swf"
                        , "strobeMediaPlayback"
                        , 640
                        , 480
                        , "10.1.0"
                        , parameters
                        , { allowFullScreen: "true"}
                        , { name: "strobeMediaPlayback" }
var player = null;
                function onJavaScriptBridgeCreated(playerId)
                        if (player == null) {
                                player = document.getElementById(playerId);
                                document.getElementById("newchannelgroup").onclick = function(){
                                               //HERE SET NEW groupspec and play the rtmfp
                                                player.play2();

hello maybe other have same problem i found a simple solution for me
use the javascript bridge and juse the f4m manifest files
function changeSrc(playerdivId,src){
            var player = document.getElementById(playerdivId);
            player.setMediaResourceURL(src);
src multicast fm4 manifest like this
http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
best regards

Similar Messages

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Change page attribute with JavaScript

    Hi,
    hope someone can help.
    Is it possible to change a BSP page attribute with JavaScript??
    I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
    Some ideas?
    Regards Anton

    Hi,
    The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
    Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
    I didn't try that out yet though.
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • Change 3D views with JavaScript code?

    I am looking for a way to change 3D views using JavaScript. I want to obtain similar result as the predefine action (Go to a 3D view) but with code.
    More preciselly, I want to connect items within a list box to different 3D views.
    Any ideas or suggestion would be greatly appreciated.
    Thank you
    Tutorial on how to use the Go to a 3D view action:
    Connecting Document JavaScript to 3D Views (PDF: 2.3M)
    http://partners.adobe.com/public/developer/en/tips/topic_tip3.pdf
    Related topics:
    looking for a way to switch views using Javascript
    http://www.adobeforums.com/cgi-bin/webx/.3bbed722/0
    SMOOTH TRANSITION BETWEEN VIEWS?
    http://www.adobeforums.com/cgi-bin/webx/.3bc0ce56
    Cameras vs. views; views.xml
    http://www.adobeforums.com/cgi-bin/webx/.3bbf0748/3

    hello maybe other have same problem i found a simple solution for me
    use the javascript bridge and juse the f4m manifest files
    function changeSrc(playerdivId,src){
                var player = document.getElementById(playerdivId);
                player.setMediaResourceURL(src);
    src multicast fm4 manifest like this
    http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
    best regards

  • Change TextView value with Javascript

    Hello,
    I'm trying to find a way of changing the value of an HTMLB TextView on the client side with javascript.
    Do you know how to do that ? Cannot work it out...
    Many thanks
    Nicolas

    Hi,
    this can be a bit tricky, because you have to know, how to access the element. that means you need an unique id or an absolute position of the TextView-element
    if you can see, how to access the specific element in your client-pagesource, a possible javascript could be:
    document.getElementById("<id of element>").firstChild.nodeValue="My new Text"
    or access by name/count of the element:
    document.getElementsByName("<name of element>")[#position of occurance].firstChild.nodeValue="My new Text"
    kr, achim

  • Changing applet parameters with Javascript

    Is it possible to have an applet read a param value which has been changed with Javascript after the applet loads?
    I've tried changing the param value in this way, but the applet doesn't read the new value. It reads the default value in the HTML when the applet loads, and getParameter is in the main loop of the applet which runs and updates other (internal) values fine...

    Well that page says that param values can't be changed at run-time. Never mind though because I read some more and found out how to implement a method in the applet (which can be called from Javascript) that reads the host page's DOM, thereby achieving the same result.
    Thanks for the pointer.

  • Change php variable with javascript??

    Hey Guys
    I need to know how can i send the form to a different email address if someone selects an option from the "BSU(area)" on the HTML from.
    So basically if the are on the html form and they select NewCastle from the "BSU(area)" for example i want the script to change the email address to the address assigned to that option.
    How can i achieve this? If you guys need to see my PHP script let me know.
    Help please!!
    Here's the link: http://flyingant.co.za/invite.html
    yours
    Ashveer

    Yes i agree with you.
    Here's my script tell me where i am going wrong?
    <?php
    // Build message.
    $my_email = "";
    global $my_email;
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Form To Email Comments";
    $headers = "From: " . $_REQUEST['Email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <?php
    function getValue($Result){
    //$Item = form.BSUarea.selectedIndex;
    $Item = $_POST["BSUarea"];
    //$Result = form.BSUarea.options[Item].text;
    $Result = $_POST["BSUarea"];
    switch ($Result) {
    case ($Result = "Gauteng"):
    //$Gauteng = "[email protected]";
    $my_email = "[email protected]";
    //$my_email = $Gauteng;
    break;
    /*case ($Result = CapeTown):
    CapeTown = "[email protected]";
    $my_email = CapeTown;
    break;
    case ($Result = Richards_Bay):
    Richards_Bay = "[email protected]";
    $my_email = Richards_Bay;
    break;
    case ($Result = Pinetown):
    Pinetown = "[email protected]";
    $my_email = Pinetown;
    break;
    case ($Result = Pietermaritzburg):
    Pietermaritzburg = "[email protected]";
    $my_email = Pietermaritzburg;
    break;
    case ($Result = NewCastle):
    New Castle = "[email protected]";
    $my_email = NewCastle;
    break;
    case ($Result = George):
    George = "[email protected]";
    $my_email = George;
    break;*/
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>BSU - Evite</title>
    </head>
    <body>
    <div class="main">
    <div class="content"></div>
    <form id="form1" name="myform" method="post" action="#build_message">
    <table width="525" border="0">
    <tr>
    <td width="270"><label><strong>BSU(area)</strong></label></td>
    <td width="10"> </td>
    <td width="240" align="left">
    <select name="BSUarea" id="BSUarea" onchange="getValue($Result)">
    <option value="Durban">Durban</option>
    <option value="Richards_Bay">Richards Bay</option>
    <option value="Gauteng">Gauteng</option>
    <option value="CapeTown">Cape Town</option>
    <option value="George">George</option>
    <option value="NewCastle" >NewCastle</option>
    <option value="Pietermaritzburg" >Pietermaritzburg</option>
    <option value="Pinetown">Pinetown</option>
    <option value="Polokwane">Polokwane</option>
    </select></td>
    </tr>
    <td width="270"></td>
    <td width="10"> </td>
    <td width="240"><label>
    <input type="reset" name="Reset" id="Reset" value="Reset" />
    <input type="submit" id="Submit" value="Submit" />
    </label></td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>

  • Change Browser Language with Javascript

    Hey
    I need to change the language of the user in the portal , using two small links , EN | PT  if the user clicks EN the browser language will be EN_US else pt_PT how can i do something like this?
    i'm looking for javascript solution mainly or anything else related to sap. thanks

    Hi,
    String user = null;
         try {
          user =
           WDClientUser
            .getCurrentUser()
            .getSAPUser()
            .getUniqueName();
         } catch (WDUMException e) {
          // fpm.getMessageManager().raiseException(wdThis.wdGetAPI().getComponent(), e);
    try{
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("user"+user);
    IUserFactory userfact = UMFactory.getUserFactory();
    IUserMaint userMaint = userfact.getMutableUser(user);
    userMaint.setLocale(Locale.FRENCH);
    userMaint.commit();
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("success");
    }catch(Exception e){
    Hope this code helps you.
    Cheers-
    Pramod

  • Changing Global Spot with Javascript

    Hello,<br /><br />I'm trying to update a swatch (global, spot) that is linked to a path object, say, a rectangle.<br /><br />In Illustrator, if I double-click the swatch, change the CMYK values and click ok, the path object fill colour updates to the new swatch colour.<br /><br />I want to replicate this with script.<br /><br />So far I have written:<br /><br />if (app.documents.length > 0){<br />     var swatches = app.activeDocument.swatches;<br />     for(i=0;i<swatches.length;i++){<br />          var currSwatch = swatches[i];<br />          if(currSwatch.name == "Prim1"){<br />               var newColor = new CMYKColor();<br />               newColor.cyan = 35;<br />               newColor.magenta = 0;<br />               newColor.yellow = 50;<br />               newColor.black = 0;<br />               currSwatch.color = newColor;<br />          }<br />     }<br />}<br /><br />Which updates my swatch "Prim1" and changes the colour as it's supposed to.<br /><br />However.<br /><br />The link to the object is lost, and the swatch is no longer global. Basically, it updates the swatch, and not the object (that's bound to it by its original global setup).<br /><br />Am I missing a line that tells my swatch to keep its global property?

    Just in case you haven't gotten a reply<br /><br />Try<br /><br />if (app.documents.length > 0){<br />var swatches = app.activeDocument.spots;<br />for(i=0;i<swatches.length;i++){ var currSwatch = swatches[i]; if(currSwatch.name == "Prim1"){ var newColor = new CMYKColor(); newColor.cyan = 35; newColor.magenta = 0; newColor.yellow = 50; newColor.black = 0; currSwatch.color = newColor; } } }<br /><br />I would like to change the name also - Any ideas?<br /><br />Good Luck<br /><br />Nick

  • I need to change the sum of a column's total with javascript.

    Hi,
    The HTML output of a SUM column is as follows:
    <td align="center" headers="COST" class="t2data"><b> 827.49</b></td>
    I need to change the sum total with javascript.
    The initial loading of the page SUMs the DB values correctly. Then onchange JS for a couple of factors may change one items COST.
    When that one item's COST changes I need to reSUM the total with JS.
    I was trying the following.. I don't know JS to well.
         var tds = document.getElementsByTagName('td');
         for (var xtd in tds) {
         //alert('Here:'+xtd.headers);
         if (xtd.headers=="COST") {
         // you found the element, do what you need
         alert(xtd.innerHTML);
         After inserting the above code into my javascript is popups up
         my alert, "Here:undefined"
         and never hits the alert(xtd.innerHTML);

    Hi Ya'll,
    I got the following working. See any problems?
    headers=="COST" actually showed up in each row of the whole column, including the SUM. So it ended up being great so I could sum it in the JS.
    I had to change the column type to NUMBER from VARCHAR2 for the initial SUM to work, so adding any formating to the SQL was not good. It looks pretty much what Andy has though... I found a slight hesitation it it though.. I have to work out a bug that prints the old total instead of the first.
    var ltotal =0;
    var tds = document.getElementsByTagName('td');
    for (var k=0; k<tds.length; k++) {
    if (tds[k].headers=="COST") {
    var inputObjs= tds[k].getElementsByTagName('input');
    if(inputObjs.length>0) {
    for (var j=0;j<inputObjs.length;j++) {
    ltotal+= parseFloat(inputObjs[j].value);
    //alert(inputObjs[j].value);
    //alert(ltotal);
    }else{
    tds[k].innerHTML=ltotal;
    Message was edited by:
    changed i to k to avoid the italics
    Bill Carlisle

  • Change Tooltip with Javascript

    i want to change the tooltip-text with javascript.
    is there a way to do that?
    i have a lot of checkboxes and want to change the caption AND tooltip with javascript from an array. it works fine with the caption-text
    thanks
    herbert

    Hi,
    Try this.
    this.assist.toolTip.value = "Hi from Avoka";
    Regards
    Philip

  • Button with Javascript appearance changed.

    Hi,
    I created button with javascript from
    Re: Button and Function
    Everything works fine, But button looks different now
    No appearance of button is there & button label is displayed in orange color.
    Have i missed something or i will never like original.

    I have done some changes suggested by ATD for another thread.
    In your app, through Shared Components, Templates create a new button template based on a copy of an existing one (pick whichever existing template you prefer, the normal Button may be ok). When the new template is created, edit it. You should see something like the following in the "Template" setting:
    a href="#LINK#" class="t12Button" #BUTTON_ATTRIBUTES#>#LABEL#</a
    There may be other HTML around this, but this is the important part as it is the actual button itself. Change this to:
    a href="#" class="t12Button" #BUTTON_ATTRIBUTES#>#LABEL#</a
    Now, on your button on the page, change it to use your new button template. In the Button Attributes setting, add in:
    onclick="javascript:checkText();"
    everything works fine except appearance of button.
    Edited by: TEJU on Jun 4, 2009 10:21 AM
    Edited by: TEJU on Jun 4, 2009 10:22 AM
    Edited by: TEJU on Jun 4, 2009 10:24 AM

  • Opening document in frame with javascript

    Hello.
    I've got problem with javascript on Safari 4 (both and on Win and on MacOS), while trying to open html document in frame.
    Reproducing the problem is quite difficult, so I'll begin with html source.
    I have one frame in index.html file:
    +<iframe id="topframe" name="topframe" scrolling="no" frameborder="0" width="980" height="580" src="form1.html";></iframe>+
    form1.html looks like this:
    +<input type="button" id="action" name="action" value="Make action" onclick = "document.getElementById('actionframe').src='dir/action.html';">+
    +<input type="button" id="sel" name="sell" value="..." onclick = "top.frames[['topframe']].location.replace('form2.html');">+
    action.html source is:
    +<script type="text/javascript">parent.document.getElementById('sel').click();</script>+
    So, when you open index.html, you see two buttons: first opens form2.html in the same frame, second opens dir/action.html in other frame. While dir/action.html just "clicks" the first button.
    Basically both buttons does the same.
    The problem is, that Safari fails to open form2.html with first button. Somehow Safari thinks that form2.html is in /dir/, like action.html is. So you get this error:
    *Not Found*
    *The requested URL /safari_test/dir/form2.html was not found on this server.*
    This example works on all major browsers, except Safari 4. Even on Safari 3 it works fine.
    I made an example, so you can test it here:
    http://82.135.245.49/safari_test/
    Message was edited by: Elvinas

    Have you tried putting the full URL instead of just form2.html?
    Second option is to move the file to that directory and change it for the other browsers.
    Third option is to stop using frames altogether, they are generally considered bad practice and can cause issues with browsers that aren't IE.

  • How can i optimize my SEARCH ENGINE???I use godaddy.i contact them and they give me this conclusion:Search engines are not pulling up your other pages on your website because it is created with javascript. the content on the pages, (photo gallery.....

    conclusion from godaddy:
    Search engines are not pulling up your other pages on your website because it is created with javascript.
    the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
    See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
    I spend more then 1 hour on the phone with them but we didn't find the solution...
    please i need help because like this nobody can rich my website...
    www.chefdiego.com
    thank you

    The part of iWeb pages that give the search engines problem is the navbar.  That's javascript based.  One way to get around that is to create another blank page in the site that's not  included in the navbar. 
    Add a text based navbar in that page with just the other pages in the site. 
    Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
    Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
    OT

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

Maybe you are looking for

  • Having trouble with program (value return)

    getting this error msg when i compile could someone help me out, im lost, thanks a bunch Prog4.java:57: '.class' expected                     double prem_bill = premium_bill(int day, int night); ^ Prog4.java:57: ')' expected                     doubl

  • CF4.5 on Linux crashing

    In the last week or so the service has started crashing regularly. I'm new to CF so have looked into this like I would any other web app. There haven't been any changes made to code on the server since some time before this started happening. And the

  • Purchasing Delta Issue

    Hello, We were loading purchasing delta from the extractor 2LIS_02_SCL. 2 Days back there were support pack applied in R/3 and after that we are having failure of a job RMBWV302 and delta extraction to BW have stopped. RMBWV302  is no longer running

  • HT201272 Unable to download movies to IPad

    I can't download movies to new IPAD and also IPhone 4 from iTunes . What am I doing wrong

  • How to retest JSP immediately after modifying a javabean class?

    I am modifying and recompiling a javabean, but the changes don't seem to be reflected when I run the JSP which uses that bean? Do you always have to restart the java server to reload the classes used in JSP pages? Thanks, David Frankel