Is there any way to open a window and playing a youtube video inside my hololens app?
I did search about opening youtube video page, but it will open outside of my, i want player to be inside of my app.
For HoloLens 1, the suggestions provided by Hernando in the comments are good.
I wanted to also share that it is possible to do this on HoloLens 2 and Windows Mixed Reality simply by launching a URI. This will launch a flat application window directly in your unity app. For example, have a look at "the Launch External Apps pull request" which shows the behavior in the HandInteractionExamples scene (available in MRTK RC2 release, or latest mrtk_development branch).
The code to launch an external URI within your app is as follows:
#if WINDOWS_UWP
UnityEngine.WSA.Application.InvokeOnUIThread(async () =>
{
bool result = await global::Windows.System.Launcher.LaunchUriAsync(new System.Uri("https://youtu.be/SB-qEYVdvXA"));
}, false);
#else
Application.OpenURL("https://youtu.be/SB-qEYVdvXA");
#endif
This code was taken from LaunchUri.cs, modified to just launch a YouTube video.
Related
I have website that redirect user to do eKYC through Jumio. It was working fine on Desktop browser, Mobile Browser, Android App(webview).
However, when come to iOS app(wkwebview), my user keeps getting error as in cant complete the eKYC process. Once the user click on start eKYC process, it straight away return failed result. The error code from Jumio is "9822 (Browser does not support camera.)".
I have already enable camera usage in plist and enable camera permission in iOS for the APP. Not sure where went wrong.
As far as i know webrtc is not available in webwiew (UIWebView or WKWebwiew). So you can't have camera access directly from the webview. You will need to open safari or bridge the webrtc call to a native implementation.
I'm building a Meteor app that will be deployed to both iOS and Android. Some of the pages have an embedded YouTube player.
Locally and when deployed to Galaxy, the YouTube videos play without a hitch. When built for iOS, the videos do not play. When built for Android, the videos do play.
On iOS, nothing shows, though the iFrame that's supposed to hold the video is rendered. That is, an empty space is shown.
In mobile-config.js I have tried
App.accessRule('*://*.youtube.com/*');
App.accessRule('*://*.googlevideo.com/*');
and
App.accessRule('https://*.googlevideo.com/*', { type: 'navigation' } );
App.accessRule('https://*.youtube.com/*', { type: 'navigation' } );
But, for iOS, this makes no difference.
How to get YouTube videos playing in a Meteor app, built on Cordova, on iOS?
Try to edit your mobile-config.js from
App.accessRule('https://*.youtube.com/*', { type: 'navigation' } );
to
App.accessRule('*://*youtube.com', 'navigation');
The crux to solving this was using a particular Cordova package.enter link description here, installing it with:
meteor add cordova:com.bunkerpalace.cordova.youtubevideoplayer#https://github.com/Glitchbone/CordovaYoutubeVideoPlayer.git#765b5954e78ecf7950099c10bfe5f81133f8f396
I did not test if the access rules were necessary.
I'm hoping to open a deep link to a show or movie in the Netflix app on the new 4th gen Apple TV.
I'm able to make deep linking work on iOS. The link below will open the Netflix app to a specific show or movie.
nflx://title/{showID}
for house of cards it's: nflx://title/70178217
When I try the same format on Apple TV, all that happens is the Netflix app opens without opening a specific show or movie. Siri search can open the app directly to a media item, so it seems like there should be a way for this to work.
Figured this out. Turns out you can use the regular netflix url structure, but replace http with nflx.
nflx://www.netflix.com/title/70291117 - Will open a show page
nflx://www.netflix.com/watch/70291117 - Will begin playing the video
How do I launch the Youtube app in Windows Phone 8 without going to the browser. Basically I am currently using the following code and it takes me to the default browser instead of opening up the Youtube app:
Dim webBrowserTask As New WebBrowserTask()
webBrowserTask.Uri = New Uri("http://www.youtube.com/embed/3aP3KBsh3Y8",UriKind.Absolute)
webBrowserTask.Show()
I want to be able to launch the Youtube app directly. So far I haven't been able to come up with a solution.
There is a slightly better way. Use WebBrowserTask but give it URL in this format
String.Format("vnd.youtube:{0}?vndapp=youtube",youTubeId)
where youTubeId is the ID of the youtube video (3aP3KBsh3Y8 in your case)
I'm writing a video encoder/server to serve video to a web application intended to run on an iPad. The iPad uses an HTML5 video tag to retrieve and decode the video, and I'm running into issues where the encoded video isn't being decoded correctly.
Is there anything like a system log on the iPad where I can find any information about what the video decoder finds objectionable in my bitstream, or any other way of getting some visibility into the decoding process?
Older versions of IOS allowed you to turn on the Safari debug console (settings ->safari->advanced -> debug console). This was handy for logging errors etc. If you are a mac user apparently there is a nice interface for doing so.
If you have desktop Safari you can also fake the user agent see: http://www.dummies.com/how-to/content/how-to-activate-user-agent-switcher-in-safari.html this will allow you to use web debug tools to see whats going on.
Alternatively you can create a 'Debug' panel in your webapp and hijack the console.log function so you can see errors etc.
Example:
<div id="debug-info"></div>
<script>
(function(){
var oldLog = console.log;
console.log = function (message) {
// DO MESSAGE HERE.
oldLog.apply(console, arguments);
$('#debug-info').prepend('<p>'+message+'</p>')
};
})();
</script>