wp7 player freezes if html5 <video> and isolated storage - windows-phone-7

I have video file located in my application isolated storage and would like to play it from html using video tag. Video player runs and then hangs on "loading..". Can someone manage to get video played using html5 video tag and isolated storage?
My observations and tests (HTC HD7, Mango Beta 2 - 7.10.7712.60).
I can play this video file using MediaElement or MediaPlayerLauncher. So the file is correct.
If I publish this file in internet and change reference to absolute (src="http://absoluteUri.mp4") video file is opened correctly. So it seems there is a problem with relative path and isolated storage.
If i specify incorrect relative path I see another message so relative path in my experiments is correct.
audio html5 tag works with isolated storage files very well; video - doesn't (freezes) but works correct if I reference to audio file in internet
For "/folder/video.mp4" and "\folder\video.mp4" device opens different playback screens, but both freeze with 'loading' and 'opening' messages.
There is MediaPlayerLauncher C# class that works with "folder/video.mp4" name (doesn't freeze)and does not work with leading slash in path - "/folder/video.mp4" - throws file not found; contrariwise tag can't find file w/o leading slash, even in root folder.
Playback screens triggered by MediaPlayerLauncher and html tag look identical but in first case it works and in second it freezes.
EDIT:
Application overview: the app is general Windows Phone Silverlight app with embedded WebBrowser control where html is hosted. Why I need this? - I'm working on cross-mobile platform where application is defined as html + js.

Erick Fleck covers this pretty good at the MSDN forums in this blog post - http://social.msdn.microsoft.com/forums/en-us/wpdevelop/thread/190abd75-3b45-4454-96ab-c32fb19c4664 . Looks like it comes down to 'where you store your content', so the other apps would have to adapt their structure if you want it to be truly xplat. Or you could do some 'adaptive urls'.

Related

Webview webpage + Video or Youtube

I recently found a digital billboard project called DisplayMonkey, which shows me digital content such as: images, videos, html, etc. The problem is that when you show a YouTube video or any other media this does not automatically reproduce.
To which I refer, the project that I use that would be the Display, shows me in html file all the content that I have and does it in a random way, when it comes to the video it does not reproduce it.
Need autoplay youtube or alternative server videos
The web page that the display shows me is the following:
http://display-dev.cclcloud.co
user: test
password: 2019**
Any opinion on how you should do this? html + js code pure?
I have tried several alternatives and it has not worked for me, need help, thanks

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.

Microsoft Player Framework not playing local files

I am developing a windows 8 app in winjs and one of its features is to be able to play local video files. So far I am using:
Windows.System.Launcher.launchFileAsync
Which works fine but obviously suspends the app and opens the video with their default video program. I would rather keep the user in the app so I tried to implement it using the Microsoft Player Framework(http://playerframework.codeplex.com/). I know the framework is referenced correctly etc because it can play video files both in the 'app data' directory and online.
However when I try to play files within a folder that the user has picked (with the folder picker) or the videos library that the app has declared access to, the video fails to play. The app can however change the name, create new files in the directory and delete files so I struggle to see a permissions problem.
To get the path of the file I am using getFileAsync( and using the path property and simply using that to set the src property of the MediaPlayer control.
Do any windows 8 app gurus have any suggestions as to why it is not working?
Thanks in advance
p.s. let me know if any further info is required

Loading local .png and .mp3 files in Actionscript 3.0

I am writing a program in Actionscript using FlashDevelop. Using URLRequest, I am loading image and sound files perfectly fine when the program is run through FlashDevelop. The files are located in bin with my HTML and swf files. However, when I run it using the browser (Chrome), the sound files works fine but the image does not load. I would think that it is a problem with the path, but the mp3 plays just fine, so I know that it can't be that.
Any ideas about what it could be?
If you are using Ad Blocker Extension in Chrome, then you need to turn of it or give images names which are not blockable in Ad Blocker.

Window Phone 8 - Default Media player file url scheme

Is it possible to open the default Media Player in Windows Phone 8, from a browser's url, using some kind of scheme?
I would also like to know If there are other ways to open the media player from the browser.
Thanks!
There's nothing documented on MSDN as a registered URI scheme for the launching default media player.
As per this MSDN page about file type associations if you try and link to a .MP3 or .AAC file or other audio or video file it will launch the media player and play the file you point to.
Also it states:
Sometimes Internet Explorer overrides file associations: it launches the built-in media player to handle all music and video file types. Specifically, any file that has an audio/ or video/ content type. For example, your app can handle a (non-reserved) music and video file when it is launched from an email attachment. But if the same file is launched from Internet Explorer, the built-in media player will handle the file.

Resources