Hope someone will be able to help me,
I am currently working on a flash project and i have to play youtube and dailymotion video. (this application is full actionscript3 not in a flash app in a browser).
I am trying to make the actionscript youtube api and it does work i can load and play videos.
But when i am trying to use the dailymotion api in actionscript3 : http://www.dailymotion.com/fr/doc/api/player-deprecated/flash_api
I can display the api, load videos, but when it comes to play i get those message:
One is about Sandbox violation,
another message is : interruption of your connection something called l2 visiblemeasures.
Can someone help me?
Thanks
You probably use the Flash player content debugger.
When using the standard Flash Player (not the content debugger one) those messages should not be displayed and the video should play normally and smoothly.
Sandbox violation might occur in some cases when no crossdomain policy is setup.
Those messages are not critical as long as they don't crash the player and the streaming when using standard Flash Player.
Best.
Related
Reading its documentation one might think that it uses HTML5 especially if focusing on this text:
The widget uses HTML5's postMessage support to send messages back to
your website regarding videos uploaded via the widget.
In addition, when I read the "Note" where it says it loads the same JavaScript file as the IFrame Player API, I thought it really does use HTML5 as the IFrame player API do.
However, when I try the widget on a mobile device I was presented with a "You need to upgrade your Adobe Flash Player..." error. Unfortunately, both iPhone and Android devices do not support it.
So the question is, does the widget use a Adobe Flash or HTML5. If the latter, can it be controlled via settings that was not defined in the doc?
As mentioned in your question, the Youtube Upload Widget uses
HTML5's postMessage support to send messages back to your website regarding videos uploaded via the widget.
So yes it's using HTML5 for this task, but for the video capturing part, the widget uses flash and that's why in mobile or even in desktop browser with flash player disabled, you will get the message that invite you to install flash player.
For the widget parameters, there is nothing, in my knowledge at least, to force it to load a HTML5 version which, I think, didn't exist yet now.
Hope that can help.
I have a online courses with a lot of videos. These videos are in Vimeo for the app of this courses but I use flv loaded to the server in my flash version and the administrator wants to get off these flv.
Cause I don't know a bit of AS3, i can't use the vimeo api. So:
How can I display a webpage (where an html player will be running the video) in my swf? Like some kind of web object. The result, must be the video page inserted in the swf area
Please, be specific in your answer, my knowledge of coding is poor.
Thanks a lot! :)
The best way to approach this would be to setup an ExternalInterface in the Flash course that will communicate with the page. From there, Flash can call a method that is responsible for rendering an iframe embed of the Vimeo player. You'll probably have to pass both the video_id and the location where the video should be displayed (x/y in the event that it changes).
Once you have the javascript setup to render the iframe embed where you need it, you can interact with the player via the Javascript API (https://developer.vimeo.com/player/js-api). The player would essentially be rendered above the Flash (kind of like a lightbox), but will allow the control that you need.
You can also setup whatever playback controls that you need to pass from Flash to Javascript, and eventually to the iframe via the API.
Please let me know if you need any more clarification on how this can be setup.
Is it possible to load only the audio from YouTube into my AS3 flash custom player through youtube AS3 api?
I want to load it into a sound object and then assign it to a sound channel.
I would like to know if there is an "official" way to do this, I'd like to avoid improvising (like loading the whole stream and then use only the audio).
Thank you.
I suggest you read the YouTube terms of service carefully:
https://developers.google.com/youtube/terms
In particular, you may not "promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API".
Doing so in any way (such as moving the video off stage) is likely to have your site blocked for playbacks by YouTube for breach of terms of service.
NB: YouTube manages to provide the service it does through advertising on top of video content. Separating the content like this prevents YouTube from making any money from the service it is providing.
If you use it for private usage, its okay I guess.
After some research work with different APIs and libraries and researching source code, I just tried it by myself and wolla.
Just saying, audio only links are in the page source of each video.
You just have to know what you are looking for ;)
Open a youtube video, view page source and search for "mime%3Daudio". There should be 5 matches, full url for example:
"https%3A%2F%2Fr2---sn-35cxanpbo5a-8pxl.googlevideo.com%2Fvideoplayback%3Fsource%3Dyoutube%26signature%3D30EC556F55533FBFD9003767730D10556681F33A.B12E021CA54CCB9E225F58A4430E9BB528081FB5%26requiressl%3Dyes%26expire%3D1527306011%26clen%3D3064602%26initcwndbps%3D1152500%26ipbits%3D0%26mime%3Daudio%252Fmp4%26dur%3D192.911%26fvip%3D5%26lmt%3D1524946334873350%26key%3Dyt6%26sparams%3Dclen%252Cdur%252Cei%252Cgir%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Ckeepalive%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cpl%252Crequiressl%252Csource%252Cexpire%26itag%3D140%26gir%3Dyes%26ip%3D81.217.53.239%26id%3Do-ALNxMeQYw4LLc1FAjxt4h795wKTdqJnzc_SBgzEJVBxR%26c%3DWEB%26keepalive%3Dyes%26mm%3D31%252C29%26mn%3Dsn-35cxanpbo5a-8pxl%252Csn-2gb7sn7r%26ei%3Du4IIW7DfC46rgAfrrpnICw%26ms%3Dau%252Crdu%26mt%3D1527284230%26pl%3D16%26mv%3Dm"
Just decode URL and you got what you want.
This is a very strange bug! im using AS3 and CS5.
So i have a youtube video which plays on one frame, and on every other frame i have:
import flash.media.SoundMixer;
flash.media.SoundMixer.stopAll();
Which stops the video playing when you move to another page, this works fine when running it in flash, but when i publish it to a HTML file and upload it to my server it just never works! the sounds always play!
Is this to do with my publish settings or a strange flash bug?
Thanks,
Adam
When your SWF runs in the browser, it's subject to all the security restrictions that the browser imposes, as well as some additional Flash Player security restrictions. I imagine, that you're running into one of these restrictions.
Instead of trying to stop all sounds from playing, why don't you stop the Youtube player itself? It has an API you can use to do this, using either the pauseVideo() or stopVideo() methods.
I hope someone can help with this as I can't find an answer anywhere.
I've created an AS3 based UI slider that displays images and videos. The videos are added using a brightcove player. This is all working ok except when I click play on the video I get the following error.
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///D|/development/videoplayer/VideoBanner.swf cannot access rtmp://brightcove-76.fcod.llnwd.net:1935/a500/d12?videoId=696716426001&lineUpId=696887476001&pubId=1520968877&playerId=695954425001&affiliateId=. No policy files granted access.
I'm using a custom play/pause button, and this seems to work (ie, it plays the video) but then I see this error pop up, and my info panels stop working (these are just panels with titles and info copy on them. Animated in using TweenMax).
I gather from some searches that this might be a cross domain problem. I've tried to set up the brightcove player to accept the URL I'm testing it on but I still get the error. Looking at the support site for brightcove I can find nothing about a cross domain policy.
I realise that the error above is running locally but the same thing is happening on my test page.
Has anyone come across this problem before using brightcove and AS3? Let me know if you need any extra info.
Cheers
Barry.
Have you tried creating a crossdomain.xml file like below on your web root?