Can I display a Google Docs Video in a webapp? - google-apps-script

I know how to embed a Google Docs Video in my Google site but what I'd really like to do is display some video tutorials via a GAS deployed as a web app - preferably in one tab of a TabPanel but I'm open to suggestions regarding other panel types. Is that supported?
I thought using Class Image might work but I haven't been successful.

Instead of writing a UI app, you might want to consider using HtmlService where you can embed Javascript subject to certain restriction and therefore will be able to embed a video as well
https://developers.google.com/apps-script/service_html

You cannot yet embed flash video in HtmlService, although such support is planned

Related

Youtube embeded video allowed to be changed by admin

I need to embed a youtube video into my site but I need to allow certain people to be able to change the video that is shown without them going into code, How would I do this?
Another thing that could help is how could I automatically embed someones latest video onto the site.
If anyone can answer any of these thank you.
For adding a YouTube video without going into the code you could look at Google Tag Manager or a similar service. For embedding the latest video you might need to look at a YouTube API or similar to pull in the latest videos url.

chrome app 'webview' alternative in HTML5

After getting the news that Google will drop the support for chrome packed app
More information here
I'm planning to convert my packed app with navtive HTML5.
The application uses webviews to host different websites,
And im looking for alternative to the webviews with HTML5
Is there any solid alternative to webviews in HTML?
Electron is a good alternative to chrome. Its built on the same underlying tech. You can have desktop apps using it.
An sandboxed iframe is a good alternative to iframes. Read more over here
The iframe tag is the corresponding equivalent in HTML.
The webview documentation compares iframes to webviews.
https://developer.chrome.com/apps/tags/webview
You can add more isolation by sandboxing the iframe.
https://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/

Does the YouTube Upload Widget uses Flash or HTML5

Reading its documentation one might think that it uses HTML5 especially if focusing on this text:
The widget uses HTML5's postMessage support to send messages back to
your website regarding videos uploaded via the widget.
In addition, when I read the "Note" where it says it loads the same JavaScript file as the IFrame Player API, I thought it really does use HTML5 as the IFrame player API do.
However, when I try the widget on a mobile device I was presented with a "You need to upgrade your Adobe Flash Player..." error. Unfortunately, both iPhone and Android devices do not support it.
So the question is, does the widget use a Adobe Flash or HTML5. If the latter, can it be controlled via settings that was not defined in the doc?
As mentioned in your question, the Youtube Upload Widget uses
HTML5's postMessage support to send messages back to your website regarding videos uploaded via the widget.
So yes it's using HTML5 for this task, but for the video capturing part, the widget uses flash and that's why in mobile or even in desktop browser with flash player disabled, you will get the message that invite you to install flash player.
For the widget parameters, there is nothing, in my knowledge at least, to force it to load a HTML5 version which, I think, didn't exist yet now.
Hope that can help.

AS3 Starling stagewebview cant access content

I have setup a starling project and added stagewebview to embed Google maps. I have tested the project using Facebook and it seems to load http://facebook.com correctly. The issue I am having is I am unable to access the page (click links, log in etc).
I don't know if I understand the use of stagewebview or if something else is stopping me from accessing the content. My understanding is you can load an external page into the project/device.
The project will be used in a mobile app that uses maps. If someone knows of a better way to using Google maps (or any other mapping software) in a mobile (iOS and Android) I am all ears.
Thanks
Loading Google maps into a stageWebView certainly is possible. Although I used StageWebViewBridge as I needed communication both ways between ActionScript and JavaScript.
StageWebViewBridge loading and communicating with online page
Be aware though that the stageWebView won't be on the Starling (Stage3D) display list. It will need to sit above on the Flash NativeStage.
For mobile you could look into using an ANE to access mapping APIs.
http://sleepydesign.blogspot.co.uk/2012/07/ane-free-air-native-extensions.html
http://code.google.com/p/air-maps-ane/
Or Distriqt sell a range of ANE's, mapping included.
http://labs.distriqt.com/native-extensions

Detect embedded videos in page

Given a URL is there any elegant way to find embedded videos in this page?
I was thinking about utilizing the video.google.com API for that but beside being deprecated I couldn't see how this can be done there.
Ideally I would like to extract the embedding code for any embedded video but if there is any solution that would extract embed codes only for popular services (youtube, vimeo, etc) that would also be great.
The server side technology I use is .Net but I am open for methods implemented in other technologies.
For popular services it shouldn't be a problem to write a bunch of regular expressions and match the site against them. You can also write them for the popular embeded players (JW Player, Flowplayer etc.) and the HTML5 "video" tag.