September 16, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

[Solved] I want to run youtube video or embed code in my qml application.

Page  
1

I am developing Qt html5 application i put following embed code:

  1. <iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
  2. </iframe>

but it is not working on my N950 device. when i am open youtube on default browser , youtube video also not running on browser.

17 replies

September 16, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

Try embedding first somethings that you are sure that works with the browser. Thus you reduce the problem complexity and focus the attention to the real problem.

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

September 16, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

My basic Question is why N950’s default browser not running youtube videos?

September 16, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

Hi, I have opened just now for test (I was already sure) http://www.youtube.com and I see any video with the N950 browser. It is possible that you have some problem or some component not installed correctly on your device. As is, it is also possible that your program works but the device not due to this problem. The advice I can give to you is to reset the device and if it already has problems reflast the N950.

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

September 16, 2011

marcoB marcoB
Ant Farmer
167 posts

Hi, AFAIK N950 web browser can’t handle yet video. When you try to play a video from YouTube, an external player is raised. Web browser is still in a early stage… I read somewhere.

@Alicemirror: OT: hey ! You look different with your new avatar :-)

September 16, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

@deimos: the last image was with in a windy day on the reef in Ibiza and the shoot was done by myself. This other is of a couple of days ago, quite in studio at home. And the shoot was done by my wife. Always happy the same :)

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

September 29, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

I want to run youtube video or embed code in my qml application, i am developing Qt qml application for N950 meego device.

September 29, 2011

Eddy Eddy
Gene Splicer
1296 posts

merged the 2 topics since it’s the same question.

 Signature 

Qt Certified Specialist
Qt Ambassador

September 29, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

any one :( youtube embed code using qt qml for meego N950 device.I wan to develop an application for N950 device will play lots of videos from youtube ,any idea , any suggestion.

September 29, 2011

marcoB marcoB
Ant Farmer
167 posts

I would like to suggest you to use QtMultimediaKit to play videos. Also take a look at youtube API [code.google.com]

Another thing to take care for youtube, are cookies. Since some time, to get streams to play, youtube wants cookies that are retrieved when a search is made (I don’t know, but maybe if you use a developer key, cookies are not needed).

September 30, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

Can QtMultimediaKit (Video or Audio) control play videos from youtube ? or some websource like “http://abc.com/abc.wav” ?

September 30, 2011

marcoB marcoB
Ant Farmer
167 posts

yes. Look at here [doc.qt.nokia.com]

October 4, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

Thanks deimos,plz show me the code which play any youtube video using Qt qml or qml Html5 code.

October 6, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

anyone:(

October 6, 2011

marcoB marcoB
Ant Farmer
167 posts

Hi,

sorry for the late, my site get down. I made a software that maybe you will be find interesting for your purpose. The new address is here [marcobavagnoli.wordpress.com]
but there is not yet the page with N950 port made with c++/QML even if it wont be usefull because the youtube query and video player is made in c++. If you want to try it its available only .deb file for now, here [my-meego.com]

But, playing youtube video, is not so simple like assign to “Video::source” the url of the video. You must first query youtube API for infos about the video you are willing to play (look at my previous post to get the youtube API page). The query will be returned in xml/json format containing all the video infos. Next step will be to assign the right video url address to Video component. That’s something all :)

In my previous post I told you about cookies. In QML isn’t possible yet to pass cookies to Video element. In my app I made my own component subclassing QDeclarativeItem to play video with QMediaPlayer. But I think that with a YouTube developer key it is not needed.

hope this helps

October 6, 2011

marcoB marcoB
Ant Farmer
167 posts

you can take a look also at cuteTube-QML [my-meego.com]

Page  
1

  ‹‹ Unable to install new apps      [Moved] API for signIn to Ovi services ››

You must log in to post a reply. Not a member yet? Register here!