autostarting video in html

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm pretty sure this is a zero level question but I am not a media or html person, I'm just the guy who got tossed this potato so ...  I have an archived video I need to play from an embedded style url. The link works but requires a "click" to start playing, which is obviously not going to work with or non-interactive kiosk mode (chromebox) displays. I have tried autoplay=1 immediately after the data width statement but that was just a raw guess. Thanks.
Photo of Brian Dolge

Brian Dolge

  • 510 Points 500 badge 2x thumb
  • embarassed

Posted 3 years ago

  • 1
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Brian, can  you give us a link? It is hard to tell now for sure what is there you can do to make it play automatically without that link/video.
Photo of Ashleigh

Ashleigh

  • 3,740 Points 3k badge 2x thumb
Hi there,

Like Darius mentioned, if you could forward the code you are using that would be helpful.

&autoplay=1 should be at the end of your URL, not after width.
Photo of Brian Dolge

Brian Dolge

  • 510 Points 500 badge 2x thumb
<a class="neulion-video" href="mediaPortal/player.dbml?id=4725293&db_oem_id=14000" data-widget="clip" data-oem="14000" data-media-id="4725293" data-height="257" data-width="400" >Video</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://nmnathletics.com/oemjs/0/media/widget/widget.min.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","neulion-wjs-vc");</script>

I am just dropping that into the settings box in an html widget.
Thanks
Photo of Ashleigh

Ashleigh

  • 3,740 Points 3k badge 2x thumb
Thank you Brian.

That's some code you got going on there. Could you please forward the link to the actual video / page it is located on?

Thanks!
Photo of Brian Dolge

Brian Dolge

  • 510 Points 500 badge 2x thumb
Hi Ashleigh (and Darius),
I thought I replied to this, but I don't see it so here is the URL where I am getting this stuff:
http://www.americaeast.com/mediaPortal/player.dbml?id=4725293&db_oem_id=14000
that is the portal page for the provider and it runs a video of the sort we are interested in. if you click the "share button on the video you get a url (which I have not been able to get to work at all (gets a no playable content message) and an embeded code (which works but needs a click).
I have been using the video item in the placeholder box, but I see that is deprecated; I have looked at the video widget but I don't see a buy button or any other way to access it. Am I missing something?
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
Brian,

I looked at it and here is what I think, I may be wrong, though. You are not going to get it working the way you want using only HTML code. If it is even possible, you are gonna need to use some scripts here. But I would question stability of that approach; many things could go wrong here, too many variables. I also believe this is not the place to ask questions about scripting. Try http://stackoverflow.com/ . Furthermore, this sort of video are not really digital signage ready. What I  want to say, you simply cannot throw everything at RV platform, or any other digital signage platform for that matter,  and think it is going... must work. You also need to do your fair share of work getting the right stuff. For example, I stopped embedding videos from any source, even YouTube. It simply creates too many issues similar to the one you are having now with this video. What I do is I download, make... get videos and bring them to my presentations though Video Widget from our storage. It works 100%, it is stable... it is worry free :) See if you can get that video or at least direct link to the video file.
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Brian,
It looks like this is a UMBC video and you're part of UMBC.  Is there a way to locate to the video link itself (ie video.mp4).  And this is a long form video so you may need to externally link to this.

If you can locate to the actual video link you can try the following within the HTML Widget but replacing width, height and the source link to the longform video.

<video width="width" height="height" controls autoplay>
<source src="MP4LINK" type="video/mp4">