I'm making a dictionary app with pyqt5. I have to solve a major issue to play audio from anchor like:
<audio-us><pron-g><xhtml_a href="help:phonetics"><phon-blk>/<phon>həˈloʊ</phon>/</phon-blk><audio eid="hello_audio_2" name="hello__us_1_rr"></audio></xhtml_a></pron-g></audio-us>
I have set the html in WebEngineView, the page looks as below:
hello.png
The question is how could I redirect to a func to play an audio when I click on the link?
Related
I was trying to clone a website so there was a video element in the page so I tried to find it and download via inspect but I it does'nt show a ref link .. it shows like it's stored in a folder or something can anyone suggest how can I download that video
this is the code embedded with video (WEBSITE: wolves (https://www.wolves.co.uk/)
CODE :
<div class="hero__video-wrapper" data-desktop-video="/media/27694/boubacar-leeds.mp4" data-desktop-video-type="video/mp4">
I tried by inspecting elements to find the video url but couldn't find any url all i found is a folder location . I was expecting to download the video for educational purposes.
"It shows like it's stored in a folder or something can anyone suggest how can I download that video"
Solution:
You're very close.
Just prepend https://wolves-cdn.azureedge.net/ to the URL shown in data-desktop-video=.
example link for your video:
https://wolves-cdn.azureedge.net/media/27694/boubacar-leeds.mp4
"I was expecting to download the video for educational purposes"
Oh shuddup and just steal the copyrighted online content already...!!!
Just joking. I'll help you cos I think that video is downloadable under "Fair Use" policy...
I've searched a bit here on SO to find a way to show instagram video using the public api ?__a=1 method. I've found a question that have pointed me into the right direction but not at all.
after I get the user media, I'm checking in my vue app if the resource is a video or an image and if is a video I show an html5 player where I'm binding the url that is obtained form the public json api. What I'm facing is that the player will not reproduce the video, but if I use the url into the browser, an html5 player is loaded with the related video that will start playing.
The video urls returned are something like this one:
"https://scontent-mxp1-1.cdninstagram.com/v/t50.2886-16/117420353_635186773777278_7723572524374891239_n.mp4?_nc_ht=scontent-mxp1-1.cdninstagram.com&_nc_cat=106&_nc_ohc=nI6tYDeag-0AX8MtmoL&oe=5F3C077B&oh=a47046b1aabf223f16c4c66526e20e57"
I've tried to remove all the part after the .mp4 file extension but this will not work, so I suspect that all the url is needed. Is there a way that I can use to reproduce video in my app?
After many tryes unfortunately I didn't figured out how to use my own HTML5 player so I've used a simple solution. An <iframe> with the url set will let the vido play into the app, this exclude me from the ability to remove the download button or controls from the player but at the moment it's the only way I can implement to achieve my scope.
(1) Your link works okay for me in a video tag:
<video width="640" height="480" >
<source src="https://scontent-mxp1-1.cdninstagram.com/v/t50.2886-16/117420353_635186773777278_7723572524374891239_n.mp4?_nc_ht=scontent-mxp1-1.cdninstagram.com&_nc_cat=106&_nc_ohc=nI6tYDeag-0AX8MtmoL&oe=5F3C077B&oh=a47046b1aabf223f16c4c66526e20e57"
type="video/mp4">
</video>
(2) It even works okay in this random demo that uses vue.js.
With no demo page of your problem the solution is a guess...
Make sure that your own site URL starts https:// or else change the video src to http://...etc.
Make sure your server (settings?) isn't somehow blocking you from loading the file.
If still failing, show us the problem via some link to your testing page.
I have an MP4 video (76MB) that I am playing from our server using the standard HTML5 tag. In Chrome, the video doesn't allow me to move forward or back by clicking on the timeline or moving the positional thumb.
I have reviewed other videos on our server and found the same issue. I can jump to specific spots in the video in both Firefox and Edge, but not in Chrome.
This is the video in question: https://www.primary-intel.com/demos/helping-sales-reps/
I want to be able to click anywhere in the timeline at any time in Chrome to move to a different part of the video.
Thank you in advance.
I access this link
https://api.soundcloud.com/i1/tracks/112591184/streams?client_id=b45b1aa10f1ac2941910a7f0d10f8e28&app_version=ff19f157
and can get mp3 link like:
https://soundcloud.hs.llnwd.net/dM7lqg9JGehn.128.mp3?AWSAccessKeyId=AKIAJ4IAZE5EOI7PA7VQ&Expires=1393349497&Signature=cNBZPQMGGmCjc1CvyXELy1edfVk%3D&e=1393349497&h=9807761d2092a0b8b13b06ebdba24a12
I can use this mp3 link for both playing and downloading
But when I use this link to play in BackgroundAudioPlayer of Windows Phone
It can't play, I don't know why.
I have an embedded HTML5 video which works fine in all browsers (or fails gracefully, if the browser is old or lacks video support). But since my site uses iDangerous Swiper (http://www.idangero.us/sliders/swiper/api.php), the custom video controls - the 'play/pause' button - does not work in Internet Explorer 10.
If I remove the swiper js code embed from the head area of my HTML, the embedded video plays fine in ie10. The problem seems to be that Swiper is intercepting the click on the play button in ie10 - and therefore the solution seems to be to disable Swiper for at least that small area of the page.
But it's not clear how to do it.
There seems to be a very scantly documented new feature in the June 2013 Swiper release which lets one create a 'noSwiping' class, but wrapping the video in a div with this class does not solve the ie10 problem.
Has anyone else needed to disable Swiper for an element and succeeded in doing so, particularly regarding ie...? I would be very glad to see a code example. My own project is still on localhost.
All you have to do is to add the html5=1 in the src attribute of the iframe :
The video will be displayed as HTML5 if available, or fallback into flash player.
you can read this:
Force HTML5 youtube video
I had a problem with a embed video of youtube inside a dangerous swiper, but the solution of TSL works for me!
I had added the html5=1 and solve my problem!
thanks!