We noticed that if we run out test cases (which include a case where an html5 video player plays a video for a couple of seconds) the video player frame show up but no video is loaded and played, showing a black background instead of the video. But if we play it manually, it plays normally after loading the video. So we think it has something to do with the way Webdriver works. Hopefully someone has a clue for us.
The code we assume is correct, because the player opens, it waits for the ammount of seconds specified and then closed okay, so its not something wrong in the code we assume, the player is the www.dashif.org player in google chrome and a propietary flash-based player in firefox.
Chrome player:
http://dashif.org/reference/players/javascript/1.4.0/samples/dash-if-reference-player/index.html
Related
I am using Xamarin MediaManager plugin to play videos. Since there is no fullscreen option available in Android. I have created two screens A and B. When I play video in screen A and when user clicks on maximizing the same video I am trying to play it in screen B. Video is playing in screen B no issues, but when I go back from screen B to screen A then i can hear only the audio and the video is stuck. When i click the maximizing again Video is playing fine in Screen B without any issues. I am not getting where I am doing wrong here.
Any help, guidance is much appreciated
Say I open Youtube,and the video starts playing. How do I find out what in-browser and system plugins / resources are being used to play the music / video?
Asking because on my Firefox, about 50% of the time, when I open youtube, it starts playing the audio of the page in the background, even as the video loads. So when the video is playing, there's audio with it, but there's the same audio, with a small delay playing in the background.
I've tried disabling the extra flash plugin that most other guides about this recommend, and it hasn't helped. Now I want to find out what my browser is using to play the background music.
Simplest thing is probably to right-click on the video and check if the menu that appears is the typical Flash rc-menu or the browser native video right-click menu.
In my Windows Phone application I'm loading a html site into a view, really simple stuff with this method:
var itemView = view as NorwegianBrowserView;
var webBrowser = itemView.browserContainer;
webBrowser.Navigate(new Uri(_globalAccessObjects.ActiveNorwayLink,UriKind.RelativeOrAbsolute));
The site loads everything except a video clip. Or well it knows the video is there but it just shows a black square. And pressing that black square does nothing.
As i side note i can add that i got the same application for iOS and Android and they both got no problem in loading the very same website(+ they load the video). And here i can press the video clip and it will start playing.
Am i loading the website into my view the wrong way? or does microsoft.phone.controls.webbrowser not support a video clip?
Any help is much appreciated.
The ability to play video clips in line in a web page is dependent upon the version of Windows Phone you are running on and the format of the video.
Only Window Phone 8.1 supports playing video within a page. Unfortunately this isn't yet widely available.
Even then the video format may still be an issue and if not supported could lead to a placeholder image being displayed.
I have an app for WP7, using BackgroundAudioPlayer as we need to play in the background. The problem is, when there's already an app playing audio in the background, I can't get my AudioPlaybackAgent work, the previous music just keep playing.
The document introduced this way,
BackgroundAudioPlayer.Instance.Close();
by which I can only close the audio that is played by myself or Zune, but it doesn't work when the audio is played by other apps.
So is there a way to close all the playing audio?
OK I fixed it.
What I did to get it play is like this, first I set a track to the player:
BackgroundAudioPlayer.Instance.Track = ...;
Then an OnPlayStateChanged event will fire in the background agent, where I call the BackgroundAudioPlayer.Instance.Play() method. This seems to work great.
But if the background player is already being used by another app, the PlayState won't change to TrackReady when I set the track, and consequently the event won't fire.
To fix this, I simply call the .Play() method in the main UI thread, right after setting the track. And it works.
I am using MediaPlayerLauncher for playing video. How do we get some notification when the MediaPlayerLauncher is opened() and the video is finished it's playback or the MediaPlayerLauncher is closed.
You can't explicit know if it's from a video or another navigation, but the OnNavigatedTo event will tell you when the user returns to your page.
By using the built in MediaPlayer you are giving up a lot of control to playback. If you really must* know when a video has finished playing you should use the MediaElement and detect the MediaEnded event.
* The end of a movie is typically a grey area. Does it include any ending credits? Is it when the user has watched "enough"? Is a certain percentage through the video sufficient ?