Warning for og:audio although secure_url is given - audio

When I check in the Facebook og debugger https://developers.facebook.com/tools/debug/og/object/
this page (as an example)
https://www.bodalgo.com/en/voice-talents/joel-vasquez
I get this error:
Share has playable media but will not play inline because it would cause a >mixed content warning if embedded. Add a secure_src or make the video src >secure to fix this.
But as you can check in the source, I provide a secure_url for the audio. Why does it not work?

Related

What is the exoplayer2 equivalent for Hls.Events.FRAG_LOADED event present in hlsJs library

We have used hlsJs library (ref: https://github.com/video-dev/hls.js) in Chrome browser to play HLS files.
There we have an event called Hls.Events.FRAG_LOADED which provides information about the hls fragment loaded like sequence number, start and end PTS and any custom tag attached to the fragment (ref: https://github.com/video-dev/hls.js/blob/master/docs/API.md#FRAG_LOADED)
Is there an equivalent event or api which we can listen to in ExoPlayerv2 for Android which can provide me same information about the media segment loaded?
Why I need this?
In my streaming server I am putting some custom EXT tag for each media fragment & i want to read that data when a media fragment is loaded in my player.
This is what I get from hlsJs on chrome browser for FRAG_LOADED event.
Need similar data from exoplayer
Any pointer will be helpful.
Thanks in advance.
You could try looking into the AdaptiveMediaSourceEventListener onLoadComplete method and use the DataSpec object to get both URL and Format objects which can be used to extract some data like bitrate and position of the segments. I do not know if there is an equivalent API out there for what you are looking for.

How to make your own simple MPEG DASH player?

I was wondering if someone had already tried to make his own simple DASH player(and maybe has some examples/source codes) but without using dash.js repository on GITHUB , and if possible has any insights and tips on how to start with the creation/writing process?
Take a look at Building a simple MPEG-DASH streaming player:
Like described on this site following this steps should give you an idea:
Define an HTML5 video element in the HTML section of a page.
Create a MediaSource object in JavaScript.
Create a virtual URL using createObjectURL with the MediaSource object as the source.
Assign the virtual URL to the video element's src property.
Create a SourceBuffer using addSourceBuffer, with the mime type of the video you're adding.
Get the video initialization segment from the media file online and add it to the SourceBuffer with appendBuffer.
Get the segments of video data from the media file, append them to the SourceBuffer with appendBuffer.
Call the play method on the video element.
Repeat step 7 until done.
Clean up.

How do you get the Chrome cast extension to show the media title?

How do I get the media title to display in the cast extension menu? The extension is showing my application name instead of the cast.receiver.MediaManager.getMediaInformation().metadata.title value.
You need to use CastReceiverManager.setApplicationState() in your receiver and pass the title or whatever you see appropriate. Please read through the comments in this G+ post to get a bit more insight into that.

Play and download audio file on the same page in Drupal

First of all i work with Drupal 7.
I have a custom content type which allows me to upload an audio file.
I found a way to play the audio file when the user access a page of this content type.
Now i want to let the user download the audio file, but not remove the play capabilities. I want to add a download button on the same page (details page of the content type).
Can someone explain me how to do it ? I've got nowhere on this matter.
There are many ways to achieve this, depending on your drupal expertise. If you are using node templates, then you can print the same variable twice, once inside the music player plug in, and once with a download button. Something like this:
...... prints other fields .....
<my-audio-player src="<?php print $node->field_my_audio_field;?>"/>
Click to download
...... prints other fields .....
To force the download instead of opening, check this: Force browsers to download a file rather than open
To achieve this without writing any code or templates, you can do what Fleix Eve have suggested above. Set the display settings as direct download. Then create a block view which shows your audio file field, take the argument from URL. Then set tat block to display on node-view.

Lightbox2 and youtube videos

I'm looking for an example by which I can understand how to can I open a youtube video in lightbox2 in drupal.
Any type of help is appreciated.
Thanks
You can do it easily with these modules (for Druplal 7)
Media
Media Video Embed
Colorbox
Embedded Media Field
Media Colorbox
Maybe some more, such as requirements, but with those modules you can get the job done. You must install all of these module. The colorbox module needs the jquery.colorbox-min.js plugin.
What you do is this:
enable "colorbox load" of the colorbox config
create a new field for your content-type with an "embedded video" field
in the display setting for the field, choose "thumbnail with colorbox" of something to that effect
if it's not working then your missing a module or js plugin, or something is ill-configed, or you need to wait for the Media Internet field to fetch the thumbnail
Oh, here's an example: http://sunumusic.com/videos
You can achieve this by using the rel attribute.
<a href='http://path/to/your/youtube/vid' rel='lightframe'><img src='/path/to/video/thumbnail.jpg' /></a>

Resources