How to add .htaccess file to my html code - .htaccess

I cannot get a video to play in internet explorer 11 through my iis web page. The video player just displays, "INVALID SOURCE" It's a screen capture that I have encoded as .Mp4 I found this comment to fix it:
"Add this line (specific for IE) to your .htaccess file"
Can someone show me where I would add this line to my HTML code as I am just learning this. The screen capture video does play in Chrome and firefox.

Related

download href no longer work on the popover page

It seems that the download link on the popover page no longer work.
I had a chrome extension, if I click a download link on the popover page, for example:
<a download="test.txt" href="data:application/octet-stream;charset=utf-8,testtest1234567!##$%^&*()_+\00">Click me</a>
Chrome will download the text file to the default download folder.
But about two months ago, I found this approach no longer work, and Chrome does not give any error message either in the extension background page or the popover page itself.
If you open the extension popover page in a tab, then the download link works.
Firefox 59 works fine now
Edge never work (https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8477778/)
My current solution is opening a new tab to save the file, but it is not what I expected. Do you have any solutions on this?
Thank you very much

How to grab URL of a video hidden in code with python

I have a website that is playing videos.
But the videos are not visible from the web, but I can see them using Firefox develop tool, at the network tab.
Is there a way to grab the videos or the URL in order to download them??
The web is: https://acloud.guru/
We don't need an account to watch the promo video,
https://acloud.guru/learn/lpic-1
And how to scrap the video with python.
I can only see it with the developer tools, network tab in Firefox
Looked through the network tab on their website. I found that it loads a JSON list of videos at query?x.... I'd start there. Simply open up network tab, refresh the page, then click on the 'response tab.' From there CTRL+A, CTRL+C. And now you've scraped all the video urls. It should start with {"hits":[{"allowDownload":true....

html5: audio doesn't work with apache on my wamp server

I downloaded able player, an accessible cross browser audio and video player from https://ableplayer.github.io/ableplayer/
Before downloading, I played some examples from github pages to see it in action with my screen reader. It works very fine, with internet explorer 11, google chrome and firefox.
So, i downloaded it and copied it in my localhost server. I use wamp server, apache, php and mysql.
Before playing from my localhost, I added on my .htaccess in root folder, all AddType directives suggested by able player github page.
When I try to play examples in demo folder, with internet explorer, my screen reader doesn't see audio player region and I can't play anything.
With google chrome, I can play, but I can't see playlist elements managed by able player.
So, I tried to make my own audio player without using ableplayer, without css, simple html5.
Now, I tried to play it with and without apache.
By opening index.html with internet explore, it sees audio region and play mp3.
If I point to localhost, where I put index.html, I can't see anything.
So I believe apache is the problem, but in apache log I can't see any error.
Does Some one has a suggestion? Something to modify in my .htaccess?
Thanks!
I solved! Definitively was apache. I downloaded an .htaccess from github that works fine. Now I can play audio and video.

how can I play a game when I click the play button instead of download

I am developing sample web application(Game portal) for smart phones. In that application I have header, content and footer.
In content I have thumbnails with title, description and play button.
I have download a game(bubble game in the format of .exe. When I download any game for smart phone, that download in that format of .exe) through Google and save. After save I have copied and past in specific location in my application like layout/games/bubble.exe.
In play link just put that location in href. So the problem is when I click that link its goes to download.
Please any one say, how can I directly play without download when I click the play button.

How can I use a UIWebview to load content from a asp.net website dynamically loading .mp4 video and get the video to play?

I have a client that has a website. The website current allows users to login and search for and play .mp4 video. The list of playlist is created dynamically where values are stored in a sql server 2008 database. My client's site is already built for smartphone utilization and did not want to recreate an iphone app. Besides it would mean loading thousands of video. Instead I thought I would use the UIWebview to load the website. This seemed to work well. However, when you try to click on and play video within the UIWebview nothing happens. This is not the case if we launch the mobile website within the apple mobile safari browser. The vide plays by kicking off in the iPhone video player. Is there any way to accomplish this same functionality with a uiwebview? Any guidance or help is appreciated.
UIWebView will play video using <video> if everything is set up correctly, either remote files or local files will work (if they are the correct format).
What does your video tag look like? In particular your src.
If you want to, for example, play an inline video the html5 for that would be something like
<video id="theVideo" controls width="280" height="160" src="yourVideo.mp4" webkit-playsinline></video>
And it would be necessary in the UIWebView to set this line
self.webView.allowsInlineMediaPlayback = YES;
Or you can also explicitly load the media player, but doing everything in HTML5 is neat and tidy and easy.

Resources