Hi guys,
nice api! I'm a hobby Flex and AIR developer. I have build a Flex/AIR Youtube player. You can download it from http://fpdev.de/Tuber/install.html . When I found your API I saw that I can integrate MTVN in my Application. Everything was going fine, until I tried to play the video in my own Flex player. It gave me the following message:
"Die geladene Datei weist einen unbekannten Typ auf. URL: http://www.mtv.com/overdrive/?vid=148062"
Which is german for "http://www.mtv.com/overdrive/?vid=148062 ain't flv, niether swf". How can I convert that url to the real url of the swf or flv file? In youtube you just call http://www.youtube.com/get_video.php?video_id=myID. What can I do with MTVN to get it work?
Thanx,
George
Thanx Jt.,
it is really petty that it want work that way because your apis response is exact the same as the youtube response, for which my application is written. I understand that it can be a legal issue to let people have direct access to your movieclips. Anyway I like your API and I wait to see some nice applications using it soon. Keep on the good work!
The URL http://media.mtvnservices.com/mgid:uma:video:api.mtvnservices.com:65789 is a URL of a flash video player which is pretty nice and I'd like to use it in my Flex application for embedding the video player in my swf. I don't want to create my own video player like goro above, I'd like to use the video player provided by you, which again I think is pretty nice.
Problem is that I can embed the player in an HTML page but I wasn't able to embed it in my SWF.
Following the instructions here http://developer.mtvnservices.com/docs/Video_Player_Embed_Code works, but this assumes that I have an HTML page that I'd like to embed the video player into, which is not the case for me. I'd like the whole page to be only one large swf, no HTML around. (except for the necessary container HTML age of course)
I tried using SWFLoader and specify the video player URL and this only partially worked. I was able to load your player swf, but it didn't render correctly in my swf which means that the play button was way off, the controller bar wasn't visible at all and when playing the video I only got sound, not video.
I assume it's either me doing something wrong (I'm new to Flex) or that your swf video player misbehaves when loaded to another swf.
Help...
Thanks!
Hey - that was the 1st thing I asked about when using Flex for my app. The height & width of the videos is something I've had to build a workaround for. I've posted my test app below so you can check out the MXML to see what I've done in order to make it where you can actually SEE the video properly. Notice all the different widths & heights set for each different component. One other way to consider is displaying in a TextArea component using it's htmlText property and inserting an "<img src='videoURL' width='desiredWidth' height='desiredHeight'/>" to load the swf that way - I had good results with that as well. Hope this helps you out! :D
Hi guys,
nice api! I'm a hobby Flex and AIR developer. I have build a Flex/AIR Youtube player. You can download it from http://fpdev.de/Tuber/install.html . When I found your API I saw that I can integrate MTVN in my Application. Everything was going fine, until I tried to play the video in my own Flex player. It gave me the following message:
"Die geladene Datei weist einen unbekannten Typ auf. URL: http://www.mtv.com/overdrive/?vid=148062"
Which is german for "http://www.mtv.com/overdrive/?vid=148062 ain't flv, niether swf". How can I convert that url to the real url of the swf or flv file? In youtube you just call http://www.youtube.com/get_video.php?video_id=myID. What can I do with MTVN to get it work?
Thanx,
George
Tags
justintormey – 10 months ago
Hey George,
Glad to have you on board with the API.
For now we're only making our AS3 Flash Player available. So you can load the SWF, but not the direct FLV files.
If we allow that type of access in the future, we'll definitely post it here.
Thanks,
Jt.
goro – 10 months ago
Thanx Jt.,
it is really petty that it want work that way because your apis response is exact the same as the youtube response, for which my application is written. I understand that it can be a legal issue to let people have direct access to your movieclips. Anyway I like your API and I wait to see some nice applications using it soon. Keep on the good work!
funkytaco – 10 months ago
That's not petty, that's a business decision. Maybe they will change their minds.
goro – 10 months ago
I meant pity, sorry for my bad englisch
ran – 10 months ago
Hi, I have a similar question: I'm writing a Flex application for the web (swf)
Many of the API responses provide the <media:content> element for playing the video. Example:
<media:content url="http://media.mtvnservices.com/mgid:uma:video:api.mtvnservices.com:65789"
duration="0"
type="application/x-shockwave-flash"
medium="video"
isDefault="true"
expression="full"/>
The URL http://media.mtvnservices.com/mgid:uma:video:api.mtvnservices.com:65789 is a URL of a flash video player which is pretty nice and I'd like to use it in my Flex application for embedding the video player in my swf. I don't want to create my own video player like goro above, I'd like to use the video player provided by you, which again I think is pretty nice.
Problem is that I can embed the player in an HTML page but I wasn't able to embed it in my SWF.
Following the instructions here http://developer.mtvnservices.com/docs/Video_Player_Embed_Code works, but this assumes that I have an HTML page that I'd like to embed the video player into, which is not the case for me. I'd like the whole page to be only one large swf, no HTML around. (except for the necessary container HTML age of course)
I tried using SWFLoader and specify the video player URL and this only partially worked. I was able to load your player swf, but it didn't render correctly in my swf which means that the play button was way off, the controller bar wasn't visible at all and when playing the video I only got sound, not video.
I assume it's either me doing something wrong (I'm new to Flex) or that your swf video player misbehaves when loaded to another swf.
Help...
Thanks!
Nathan D – 9 months ago
Hey - that was the 1st thing I asked about when using Flex for my app. The height & width of the videos is something I've had to build a workaround for. I've posted my test app below so you can check out the MXML to see what I've done in order to make it where you can actually SEE the video properly. Notice all the different widths & heights set for each different component. One other way to consider is displaying in a TextArea component using it's htmlText property and inserting an "<img src='videoURL' width='desiredWidth' height='desiredHeight'/>" to load the swf that way - I had good results with that as well. Hope this helps you out! :D
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="430" height="450" creationComplete="init()" xmlns:display="com.display.*" xmlns:overdrive="com.mtvnet.overdrive.*" xmlns:local="*" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Style>
Application
{
backgroundColor:#000000;
}
</mx:Style>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
[Bindable]private var videoURL:String;
private function init():void
{
videoURL = "http://media.mtvnservices.com/mgid:uma:video:api.mtvnservices.com:" + Application.application.parameters.path;
Security.allowInsecureDomain(videoURL);
log.send();
}
private function onRes(event:ResultEvent):void
{
trace(event);
}
private function onfault(event:FaultEvent):void
{
trace(event);
}
]]>
</mx:Script>
<mx:HTTPService id="log" url="http://demos.bsi-scs.com/MTV/plays.php" method="POST" result="onRes(event)" fault="onfault(event)" />
<mx:Canvas width="500" height="420" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<display:LoadingPanel width="200" height="40" verticalCenter="0" horizontalCenter="0" />
<mx:SWFLoader id="myVideo" source="{videoURL}" width="500" maintainAspectRatio="true"/>
</mx:Canvas>
</mx:Application>
g10 – 8 months ago
…bump…
another vote for getting the flv's w/o the player, this would be much more interesting to use the content in a Flash/Flex environment!