Can't change video via Javascript

Hi all,
I know this has been covered, but I've tried those solutions and things just aren't working.
I think the issue is that I can't obtain the Strobe playback object.  Here's the code I'm embedding:
<video width="460" height="260" class="video" controls="controls">
    <object class="swfvideoplayer" type="application/x-shockwave-flash" data="/etc/clientlibs/foundation/video/swf/StrobeMediaPlayback.swf" width="460" height="260">
        <param name="movie" value="/etc/clientlibs/foundation/video/swf/StrobeMediaPlayback.swf" />
        <param name="allowFullScreen" value="true" />
        <param name="wmode" value="opaque" />
        <param name="flashvars" value="src=../../../../../content/dam/HMI/bill_stumpf_710.flv/jcr:content/renditions/cq5d am.video.hq.m4v&javascriptCallbackFunction=onJavaScriptBridgeCreated&name=swfvideoplayback &autoPlay=false&loop=false" />
        No video available.
    </object>
</video>
jQuery code like this (below) will get me *something* I can use, but nothing changes on screen.  When I say "I can use it", I mean I'm not getting errors thrown.
var $swf = $module.find('object')[0];
That returns me an object I can call the following on without errors:
swf.Stop();
swf.StopPlay();
swf.Rewind();
swf.LoadMovie(1,"http://10.10.10.163:4502"+ newVid + '/jcr:content/renditions/cq5dam.video.hq.m4v');
These methods are outlined here: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html. 
My javascriptCallback function never gets called, either, so I can't get the player using the code in jsdemo:
function onJavaScriptBridgeCreated(playerId)
                function onJavaScriptBridgeCreated(playerId)
                        if (player == null) {
                                player = document.getElementById(playerId);
                                // Add event listeners that will update the
                                player.addEventListener("currentTimeChange", "onCurrentTimeChange");
                                player.addEventListener("durationChange", "onDurationChange");
                                // Pause/Resume the playback when we click the Play/Pause link
                                document.getElementById("play-pause").onclick = function(){
                                        var state = player.getState();
                                        if (state == "ready" || state == "paused") {
                                                player.play2();
                                        else
                                                if (state == "playing") {
                                                        player.pause();
                                        return false;
I can't get the player variable, so I have no access to "pause" or "play2" or "setMediaResourceURL".
What am I missing?  Any thoughts on how to obtain a handle to the Strobe swf player?  Given that the class of the swfobject is "swfvideoplayer", shouldn't this work?
document.getElementById("swfvideoplayer");
or, since I used a "name" parameter in my flashvars (see the embed statement, above), shouldn't this work?
document.getElementById("swfvideoplayback");
Neither work. :-(
Thanks,
Bret

Hi,
did you check http://osmf.org/dev/1.6-sprint-2/hello-world-jquery-plugin.html ?

Similar Messages

  • I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

    HI All
    I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .
    I used IMAQ AVI Read Frame VI
    for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

    Hi abdelhady,
    I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.
    There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.
    Thank you,
    Emily C
    Applications Engineer
    National Instruments

  • After having updated Ipad2 to IOS7 I can't change Video to Photo and viceversa on photocamera. Solutions?

    After having updated Ipad2 to IOS7 I can't change Video to Photo and viceversa on photocamera. Solutions?

    Have you tried swiping up or down on the screen in the photos app? When you swipe up or down, that cycles through the Photo, Video and Square modes in the app. The current mode appears in yellow type.
    The screen on the iPad in photos App is going to look different that what you see if you click on the link that was posted for you above - that link shows what the screen will look like on the iPhone, but they are similar.

  • How can I change video screen from landscape to portrait.  It is set to landscape since I updated to IOS 6.  TY

    How can I change video screen from landscape to portrait.  It is set to landscape since I updated to IOS 6.  TY

    Is the screen-rotation lock on? If it is then there is a padlock shown in the upper right by the battery icon. To turn off double click the Home button and fully swipe the bottom row fully right past the music controls and tap the padlock.
    Otherwise
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Can't share video via WhatApp or Facebook

    I can't shear video via what's app or facebook in my Lumia 520
    Moderator's Note: Subject was amended as it was moved to the most appropriate board.

    Hi, shahh479. Welcome to our community. Is there any error message when trying to share a video? How are you trying to upload it? Is it via Photos hub or via the app itself? Are you also not able to share media files via email? BTW, make sure that you have a stable internet connection to avoid such issue. To check its stability, you may try accessing any website using the phone's browser. We look forward to your reply.

  • HT1694 How can I send videos via email (hotmail) that are 55 seconds or more?

    Hotmail is supposed to have a 10MB limit and my videos are only coming to 5MB. But I can send a video that is 54 seconds long, but 55 seconds won't send. I also tried sending it through a gmail account and it wouldn't work either. Any advice? I'm using a iphone4. Thank you!

    When sending an email the largest size of any file or collection of files is 20MB. A 720p HD video recording from your iPhone 4 for 55 seconds probably hits about 20MB (or just under). There isn't a way to increase the email sizing limit, however there are other alternatives such as Microsoft SkyDrive (Free), DropBox (free) and Google Drive (free) which will let you upload and share your files (like you would with email, only slightly different).
    If you have a Hotmail/MSN account, you already have SkyDrive and it's easy to setup and use. Just visit: https://skydrive.live.com and sign in using your Hotmail/MSN account.
    If you have Gmail (or blogger, or other Google service including YouTube) you can enable and start using Google Drive easily also, just visit: https://drive.google.com/start
    If have neither a Google or Microsoft acount, and have no interest in creating an account with either of them, try DropBox. Found here: https://www.dropbox.com

  • I can not see video via a youtube link. i get sound. i downloaded latest real player. no change. i am running firefox 14.0.1. explorer works fine.

    I followed instructions to down load latest real player. it did not solve the problem. i can not see the video on youtube but can hear it.... Explorer works fine. Please help.

    You can check for problems caused by a recent Flash 11.3 update and possibly downgrade to Flash 11.2 or 10.3.
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
    *https://support.mozilla.org/kb/flash-113-crashes

  • Can't send videos via text message or email.  Why is this??

    It keeps telling me "Sorry, you cannot add this video to your message."   The videos I've attempted to send are only 3 seconds to 19 seconds.  Can't send via email either because they're "too large?" 

    Picture size can cause missed sends as well,  you might try if you haven't a different setting in your camera not sure what phone you have but if your using HD  try  Non  HD see if  it'll let it proceed and if your using 720P for Video try a different Video style and you may need to clean your cache for your messaging..  give that a look.

  • How can i capture video via webcam

    Hello All,
    I want to know the video capture via webcam,as well as how do i locate webcam can anybody send code to me .
    Regards
    Vijay

    Seriously, learn to use a search engine.
    [http://www.letmegooglethatforyou.com/?q=register+capture+devices+with+JMF&l=1]

  • How can i change video into pictures with labview

    hallo,i have video about 5 minutes and i want to change it into photos with labview,can you please help me?
    Solved!
    Go to Solution.

    Vision Assistant is part of the Vision Development Module and represents a Configuration Environment including Code Generation for Machine Vision Applications.
    Separeting Images in AVI files will lead into using some Low-Level VIs. However there are numerous examples for AVIs shipped with LabVIEW.
    Christian

  • Can't get video via Airplay Mirroring from iPad to TV

    I am trying to watch NFL Rewind using my iPad2 through Airplay Mirroring to Samsung Smart TV but, I am only getting an audio and not the video..  Can someone PLEASE help me how to get the video?

    Make sure the App you are trying to use supports Video mirroring some don't for copyright reasons.
    If You can mirror your iPads home screen, then mirroring works and its up to the actual App to allow the mirroring of their Video source.

  • Can I Stream Video via Bluetooth?

    Wondering if there is a way to stream video from my itouch to a video system for my car via bluetooth or other wireless method?

    What about trying to use appleTV in my vehicle? In theory I would be able to send video to the appleTV device that would then be hooked into my car video system. I basically want a wireless network setup in my vehicle minus any actual internet connection. Is this possible?

  • Can't transfer video via firewire

    I'm trying to import video onto my desktop via firewire and have tried several cables to no avail. I don't even see the connection on my desktop. Does anyone have any suggestions?

    You don't say from what you are trying to import the video, the software, etc. Since this is likely to be a third party device like a video camera it would also make sense to see what the manufacturer's technical assistance has to say.

  • I can't change video resolution on youtube. When I try to change it, it goes to 240p and the screen is black and the vid doesnt play.

    Hello, I have this problem.
    Recently I noticed, that when I try to change the quality of the video from the default 360p to whatever one, the quality will jump to 240p and the video wont run. There will be just black screen.
    I tried resetting the browser and it did not fix my problem.
    I tried the same video in internet explorer and the quality change worked normally.
    How could I fix this?
    Thanks

    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

  • Cover Flow: Can I Change Video Clips' First Frame?

    Hi,
    I've got a bunch of video files that I'm viewing in cover flow. However, seeing their first frames doesn't help much in giving me a clue about their contents.
    Is it possible to select an middle frame in the video clip and have that be the image that pops up in cover flow? How?
    Thanks,
    Duck

    Whenever I get a movie I always play it in QT Pro 7, select a typical frame, copy it and then paste it as the icon for the movie using GetInfo. Cover Flow respects these added icons, and that is what it displays.
    If you only have QT X the process is a bit more problematic, since I have not discovered a way to select and copy an individual frame. You can't even do a decent screen shot, since if you pause the movie to take a picture of the movie, the idiotic control bar is inside the movie frame. However, if you pause it, then move the mouse off the control bar and click once inside the frame, the control bar will disappear and you can then do a clean screenshot. Open the screenshot in Preview, select all and copy, then select the movie file in Finder, GetInfo, select the wee little icon at the top and paste. Your movie will now have your custom icon displayed in Cover Flow, Icon view, and so on.
    Francine
    Francine
    Schwieder

Maybe you are looking for

  • Data type of a parameter

    Hi In my procedure i declared the data type of "Value Date" Input parameter as Date where as in CR it is showing data type as "Date Time". Can any one please specify how to change to Date. Thanks in advance. Thanks, Sruthi

  • Looking for online web editor to test ColdFusion tags

    Is there any place that I can test basic ColdFusion tags online?  I don't want to install coldfusion, while I want to test and learn some basics. I found a web editor at the following link. However, it doesn't provide adequate instructions to use it.

  • Location Group / Assortment not achieve SAP ECC

    Hi, I'm trying to release assortment master data from transaction upari_rel. When I see the log with parameters Object: u201CWu201D and Subobject u201CMAP_RELEASEu201D, everything looks ok. Key of the selection criteria: LOCGRP104933 Please check lon

  • GEt deleted table -Oracle 9i

    How to get deleted table back in 9i? Does 9i has Recycle Bin like 10g?

  • Requirement for Leave Request.

    Hi All,            I have a requirement for leave request in Portal. Basically employee will have two managers. Now my scenario is, if there is no line manager then the Approver field must be defaulted with the next manager. Is there any BADI for thi