the download attribute works in IE correctly but in edge one file downloads but the other start playing instead of downloading.chrome just play both files
Related
Using the nativescript-videoplayer plugin with Angular I am able to view and play videos remotely and locally on IOS. However on Android I am only able to play remote videos. For local videos, the video player is displayed, but the time is at 0.00 and there is no picture, which usually means that the video source cannot be found.
I have tried specifying the source with these following paths:
src="res://videos/test.mp4"
src="~/videos/test.mp4"
And have tried placing the location of the video under:
App_Resources/videos/test.mp4
App_Resources/android/videos/test.mp4
App_Resources/android/src / main/videos.test.mp4
For a simplified example I added the local videos to this simple playground: https://play.nativescript.org/?template=play-ng&id=lCu2B5&v=50
You can put your video file in any folder under your app src. But to be able to play it, you need to get the full absolute path of the video to put it to the src property of video player.
Example that you have your app's src folder > videos > test.mp4. You can get the path to your mp4 file with Nativescript fileModule.
fileModule.path.normalize(fileModule.knownFolders.currentApp().path + "///videos///test.mp4");
i have one app installed which is using arbortext ptc isoview /creo plugin to show files, so i wanted to make app to take snapshot of it in my IE, but cant find the way to load pzv file, if you just drag and drop it, does not work, i also tryed loadin via html, but seems my params are wrong?
solved, by ripping 3 java scripts and displaying full screen pvz file in webbrowser and then taking snapshot
So I've read other posts and the supposed fixes for IE8 but none have seemed to work. The main player on the MediaElementjs.com site doesn't even work in IE8.
Can anyone point me to a site that they know uses mediaelement.js successfully in IE8?
The plan being to view source and repeat what they've done.
Thanks!
My site seems to work in IE8, here is a page with a video: http://www.theguitarlesson.com/guitar-lessons/white-christmas-guitar-lesson-bing-crosby/
I had to set enablePluginSmoothing to true as describe here, since the Flash playback quality was baaaaad out of the box, but didn't do anything else. That I found here: Video quality issues with MediaElement.JS and Flash
I found that I had to put the
<script>$('audio').mediaelementplayer();</script>
last in the body element for it to work in IE8 and other old IE versions. I'd put it in the head, since the instructions say the link to the script has to be in the head if you want to support old versions of IE so I assumed the call would have to go there too.
If you've copied the object tags from the full video example (Option B on the site) then IE will load the Flash player but won't add the mediaelement.js markup that's needed to load the media.
The best example to work from for audio is the demo/mediaelementplayer-audio.html page in the zipped download in the latest version (you'll need to download the media as well, not sure why that's separate but it's here: https://github.com/johndyer/mediaelement-files/ ). Copy the pieces of it into your page, in the same places, then replace with your own file paths. If that doesn't work, then the problem is likely with your MIME type or CSS visibility properties.
Issue calls after $(document).ready, or when media element has loaded.
I have a logo that shows up in Safari but in Chrome it appears as a broken link and simply does not show up at all in Firefox.
<img src="images/logo-01.png"/>
I have re-uploaded it many times and have even tried alternative paths and file names.
anyone know how i might be screwing this up?
I ran into this same problem. For me, it turns out the image was corrupt. If i tried to open the png file up in photoshop, i would get an error saying it could not parse the file.
For whatever reason, safari could display the corrupt file, but chrome could not. This is how i fixed my issue. I noticed "preview" on my macbook could open the file fine. If you are using windows, possibly try paint or gimp or some other program besides photoshop.
I downloaded the corrupt file onto my macbook, opened it with preview (open with > preview)
In the preview app, go to file > duplicate, which makes a copy of your image
Save that duplicated image
As a test, i tried opening that new copied image in photoshop and i was able to!
Upload new file to website. I was able to view the image in chrome now.
Hope that helps anyone who ran into the same problem.
It could be an issue with your file structure. Right now your links are using relative paths (e.g. href="index.html"). This is fine if the file you're referencing is in the same directory as the current page file. But if your current page is located elsewhere, like in a 'pages' directory or something, then you need to tell the links to start from the site root. That would look like href="/index.html" (note the slash). So for the image, you'd have:
<img src="/images/logo-01.png"/>
I am trying to build an HTML5 soundboard with Phonegap; I want users to tap on an image and hear a short audio clip. I have it working in the browser (Chrome and Safari), but it's not working in Xcode.
Here is a link to a working example:
http://jsfiddle.net/lamike/qHGqh/
Screencast:
http://screencast.com/t/TbXCilji
Thanks for any input!
Have you made sure that any external URLs in your app are listed in the WhiteList? I tried a quick cut and paste project with the code from the JSFiddle and I was able to click Obama and hear the beginning of the podcast.
See the PhoneGap for iOS FAQ: http://wiki.phonegap.com/w/page/41631150/PhoneGap%20for%20iOS%20FAQ
Q. Links to and imported files from external hosts don't load?
A. The latest code has the new white-list feature. If you are referencing external hosts, you will have to add the host in PhoneGap.plist under the "ExternalHosts" key. Wildcards are ok. So if you are connecting to "http://phonegap.com", you have to add "phonegap.com" to the list (or use the wildcard "*.phonegap.com" which will match subdomains as well).