How to add audio which will play Continue through out the site with out Stoping - playback

Is there any possibility to add audio files on website which will play continue through out the website even when the user navigate between pages?

Maybe you could open a new separate window for audio player, or use iframe?
http://www.boutell.com/newfaq/creating/keepplaying.html

Related

Can I Use Google Home To Automatically Chromecast My Own Content

I have a working "Action On Google" that we programmed.
I separately created a website that Chromecasts video (based on Google's sample code).
However, what I would REALLY like to have is speak to my Google Home, then automatically have content (ideally an image + audio, then a video right after) cast to the Chromecast.
Is this technically possible exclusively through the Google Home interaction?
Alternately, is there a way to cast image + audio at the same time through a website (and what code do I need to do so)?
Right there is no API for third-party developers to programmatically send content to a Chromecast.

Share videos camera roll wp 8

I tired to googling that how share videos form camera roll in windows phone 8 like in Nokia video upload and facebook app. I used to try this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563(v=vs.105).aspx
Only share picture but I want to share only videos for my app e.g. when my app show in list when share a video by camera roll of windows phone in sharing
To quote the link you included in your question:
Note that this extensibility is only available when the photo is a JPG
file.
And from my experience, I can confirm that it is not possible to register your app as a share target for a video file.
In other words, if a user tries to share a video from the camera roll or another app, there is no way to make your app appear as one of the options in that list.
Did you try using the share media task function?
Check this article out from the msdn :
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207027(v=vs.105).aspx
You can use MediaLibrary and there is already an answer for your question in this link. As said, there is no way to select existing sound media and video files through default choosers. Thank you.

How to play uploaded videos in an iframe on a Mac system

I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up.
Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe.
This issue is on all browsers on my Mac, but on a windows machine it plays well.
I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual/qtscripting_html/QTScripting_HTML_Document/ScriptingHTML.html#//apple_ref/doc/uid/TP40001525-2-GettingaBrowsertoLoadQuickTime
I simply had to use the embed tag properly as they have explained.

How to play mp3 file in loop in WP7

I'm implementing a game for WP7, and I need that a mp3 file plays in background, while I navigate through some screens. How can I do this? Thanks in advance.
Use background Audio agent for this purpose to play , even when user navigate between pages.
Also you can achieve the continuous playback by 2 ways
1. set the repeat option to play continuously
or
2. start play back again upon receiving the stop message, this can be achieved by putting code for starting playback again in Application Background player state handler upon receiving "PlayState.Stopped" message.
Please refer this link "How to: Play Background Audio for Windows Phone" for more details.
Hm.. what about global MediaPLayer instance?
See this link

How to launch a YouTube URL on Windows Phone 7

I would like to launch directly to the YouTube player on Windows Phone 7.
I tried using WebBrowserTask and giving a YouTube URL, it opens up the browser and brings me to a page with a thumbnail of the YouTube video, I need to click on the thumbnail before the video plays.
I like to skip the extra click. I like the user to click a button in my app, and it should play the video directly. Is there a way to do it?
Once you have the Youtube app installed, from within you application you can start the WebBrowserTask and do the follwing:
Regex Youtube = new Regex("youtu(?:\\.be|be\\.com)/(?:.*v(?:/|=)|(?:.*/)?)([a-zA-Z0-9-_]+)");
Match youtubeMatch = Youtube.Match(YOUTUBE_VIDEO_URL);
string id = string.Empty;
if (youtubeMatch.Success)
id = youtubeMatch.Groups[1].Value;
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.URL = "vnd.youtube:"+ id +"?vndapp=youtube_mobile";
webBrowserTask.Show();
That should launch the browser, then automatically launch the Youtube App. Cheers!
Finally I've worked out a clean solution (without browser task, and no "double back key pressing"):
http://mytoolkit.codeplex.com/wikipage?title=YouTube
Try to use following sample;
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.Uri = new Uri("http://www.youtube.com/embed/V3oJR5IAMxM?autoplay=1");
webBrowserTask.Show();
this should open video directly, but I think you will have to still double click to go back.
There is a solution for that now. You can use vnd.youtube protocol to launch the YouTube application from Microsoft and play.
C#
Windows.System.Launcher.LaunchUriAsync(
new System.Uri("vnd.youtube:9bZkp7q19f0")
);
Unfortunately Launcher.LaunchUriAsync method only works with Windows Phone 8 devices and beyond.
No. Mabe in next version of OS will be custom choosers and lunchers.
To display a video from YouTube, you will need the Video Player for YouTube. Otherwise, you will need to write a custom decoder that will receive the YouTube stream and display it in a MediaElement.
As you've discovered this isn't currently possible.
There is currently no way to launch another application, other than by using a Launcher or Chooser.
On the YouTube site, individual videos can be configured to autoplay or not. I'm not aware of a way to override this.
However, on the phone this is different. YouTube uses flash to play videos but Flash is not currently supported on the phone. YouTube videos can only be played if the YouTube application is installed. When you open the youtube site with the webbrowsertask the user must click on the image to launch the player.
If web pages were able to launch applications without first requiring user action this could be a huge security issue.
N.B. The YouTube app has special elevated privileges, not generally available, to be able to be launched in the way it is.

Resources