I'm trying to setup a video skill for alexa, however I don't know how to play a video using the video api.
I've tried searching "alexa skill python video api" but I just get links to alexa skills kit. I've also tried reading the python sdk documentation but that didn't help. It seems like you have to send a directive or something.
Currently I have
class PlayHandler(AbstractRequestHandler):
def can_handle(self, handler_input):
return is_intent_name("PlayVidIntent")(handler_input)
def handle(self, handler_input):
speech_text = "Playing video"
# Get the video url
handler_input.response_builder.speak(speech_text).set_card(SimpleCard("Video started", speech_text)).set_should_end_session(True)
return handler_input.response_builder.response
Note: When I checked the documentation it said you had to have the video url so just assume the video url is in a variable called video_url.
More details:
Custom Skill(No video app template or Interaction model template for video skill)
Python 3.4(For server) and Python 3.5(For testing)
You will need to import modules from ask_sdk_model.interfaces.videoapp
From there you will create a LaunchDirective and create VideoItem object to be passed as the video_item argument. The VideoItem object has 2 arguments(that are optional according to the SDK), source which is a string of the URL and a metadata argument which is created with Metadata(title="Title", subtitle="Subtitle"). Finally use response_builder.add_directive to add the directive to the response.
Related
My goal is to get an mp4 video i placed in dropbox to work within my Alexa Skill in which I am using an ALP document to include multimedia support. I am not interested in using Amazon S3 storage.
I was following a tutorial by dabbelab.
I could get their video to work: https://player.vimeo.com/external/373749691.hd.mp4?s=e43554c91fc796a20f051dcb8b45a74d035a6daa&profile_id=174
I could not get an mp4 video in my drop box to work:
https://www.dropbox.com/s/i8g0j8ghzprqyp3/Baby%20Cats%20-%20Cute%20and%20Funny%20Baby%20Cat%20Videos%20Compilation.mp4?dl=0
From what I can determine through Amazon's doc, I should be able to use any mp4 as long as I am using https. It is unclear to me what it is I am missing. Any advice greatly appreciated. Thank you.
First thing I'm seeing is the link. It ends with "dl=0." That link opens a dropbox page for playing the video, not the video itself.
Change that to "raw=1" and you should get the video itself like APL needs, not an HTML page.
I am new to podcasting, so this might be newbie question.
I have a Podcast which I have hosted on pinecast.com. I have the RSS feed of the podcast which I want to incorporate in my Website.
Is there any RSS Feed Reader in Angular/Bootstrap which will take each of the episodes and render with the episode title, bio and the audio to play it.
My website is built on angular2/bootstrap.
Thanks,
I used FeedMe npm module along with angular2 to write my own component. I used the tutorial from https://github.com/becompany/angular2-rss-reader-tutorial which is a very good starting point
I am building a website where video sermons are located on a Vimeo channel ... hundreds of them. I would like to scrape the videos in this channel an get from the the title of the video and the URL.
Any ideas?
Thank you very much!
You should use the Vimeo API instead of scraping for content. Scraping may result in getting banned from Vimeo, especially if you want metadata on hundreds of videos.
More information about the Vimeo API can be found on the developer site below, but as another user mentioned you should provide more information about what your intent is, what you've tried, and the programming languages you're comfortable using.
https://developer.vimeo.com/api/start
is there any directive in angularjs to implement the link preview in angularjs. I need to show the link preview while sharing a link in my web site similar to google plus.
There is some directive https://github.com/LeonardoCardoso/Link-Preview. But it uses php. I need without php.
If you are using Angular with material design you can use the following:
https://github.com/angular-material-extensions/link-preview
Else you can always do it manually using: Free link preview service
http://linkpreview.net is a Free REST API service which takes any URL as input and sends back JSON response with title, description and thumbnail.
All you need to do is send a request to their API with the URL for which link preview has to be generated.
Here’s an example request (GET)
http://api.linkpreview.net/?key=123456&q=https://www.google.com
Response:
{
"title": "Google",
"description": "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.",
"image": "http://www.google.com/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png",
"url": "https://www.google.com/"
}
You can parse the response and style it.
I'm currently trying to patch the Totem Youtube plug-in and I'd like to determine the best quality available for the current played video (&fmt parameter). It's possible in JavaScript but the plug-in is developped in C.
Is that possible?
Are you playing the videos in the YouTube video player?
If so, you can query the quality levels through the ActionScript or JavaScript API,
see http://code.google.com/apis/youtube/js_api_reference.html#Playback_quality.
I found the solution thanks to youtube-dl python script.
The test is to form the final url and try to open it (with curl for example), if the format is available it will return HTTP code 303 (See other location) with the real url into the headers.
If it's not available, it will return 404 (Not found).