In webbrowser control detect video url on iframe - windows-phone-8

in my webbrower control i navigate to a site with video inside. In a Windows phone 8.1 silverlight it is possibile capture the video source (MP4) of an iframe WITH Javascript?

Enable Scripting in your BrowserControl: https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.controls.webbrowser.isscriptenabled(v=vs.105).aspx
Inject your custom JavaScript to alter / read the DOM of the website containing the iframe: https://msdn.microsoft.com/en-us/library/windows/apps/ff402855(v=vs.105).aspx
you find great samples on each step, regarding your needs

Related

Whitelisting app to render html with private vimeo links

I have native app that gets html from the database, and renders it. I can embed a vimeo link with no problem. I need to be able to get access to a private vimeo account that whitelists domains. What domain should I whitelist since this is a native app?
When using the Player with a webview or in-app browser, there's no HTTP referer passed back to the Player iframe. Without an HTTP referer, the Player cannot determine if the domain where its embedded is allowed to serve and play the video.
The only workaround is to embed the video on a web page you control, and then open or embed that page in your webview. It's not an elegant solution, but it will allow usage of a domain-restricted Vimeo Player in a webview.
Alternatively, if you're writing a native app use the direct video file links with the app platform's native media player; this feature is only available to PRO and Business users: https://help.vimeo.com/hc/en-us/articles/224823567-Direct-links

Audio not playing using HTML5 audio tag in Phonegap app

I've an audio file on my phone's SD card and I want to play it using my PhoneGap and HTML5 based hybrid mobile app. I am using the HTML5 audio tag as following:
<audio src="cdvfile://localhost/myfolder/subfolder/audio.mp3"><audio>
However unfortunately it doesn't play.
I want this to work on iOS, android and windows.
Please advice.
You should put the sound file in the www folder, or one of its subfolders.
I have successfully used audio tags in Cordova applications.
I have found two cases where audio will not play:
1) use of the new WKUIWebview plugin (does not allow the file protocol in thw www folder)
2) the head is missing a content security policy, which can happen creating an app with Phonegap instead of Cordova

How to use Chrome Frame ActiveX control

Is there any sample about using Chrome Frame ActiveX control instead of Iframe?
i need this because i can not use HTML5 canvas element in IE8 so that i tried chrome frame but it's not supported inside iframe.
I saw a post where it tells that Chrome Frame ActiveX control can be used instead of iframe.
https://groups.google.com/forum/?fromgroups=#!topic/google-chrome-frame/2Jq-isAdi1k
Try serving up this code from a web server http://src.chromium.org/viewvc/chrome/trunk/src/chrome_frame/host.html

HTML5 embedded in Silverlight Application

I am quite new to silverlight and I am seeking advise on embedding external html pages inside silverlight applications.
Can the contents of an external html page be integrated inside a silverlight application ?
How about features like SVG support or Socket.IO which exist in modern browsers ? If the external page is using HTML5 features, can silverlight render/process it correctly ?
Thanks,
There is no native support for rendering HTML pages in Silverlight. You can however access and manipulate DOM elements from within Silverlight. This allows you to place HTML elemnts on top of a silverlight application and by appropriately adjusting the size and position of these elements you can create the illusion of embedded HTML in simple applications.

How to add a webview in html5 hybrid app like we add webview in native apps?

How to add a webview in html5 hybrid app like we add webview in native apps
Pls dont get confused with the wrapping of html5 app within a webview and adding it as a native app.
What i need is a web view to be added in my html5 app where a url content is displayed.
If you want to display the content of another url within your page, just use an iframe:
<body>
<p>My stuff</p>
<iframe src="url_to_load"></iframe>
</body>
Have in account that WebView is a class of the Cocoa framework, which is written in objective-c and allows you to build Mac applications. You can't use this with Html