Displaying 16 results from an estimated 16 matches for "video_id".
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All,
I''m a super newbie with Prototype and am trying to implement my first
solution using it.
This is my code:
var span = ''totalViews'' + video_id;
var params = ''video_id='' + video_id;
Ajax.Response(''trackVideo.php'',
{
method: ''post'',
parameters: params,
onSuccess: function(transport)
{
var count = transport.responseText;
$(''span'').i...
2007 May 21
4
Spec''ing redirect with arbitrary parameters
I''ve got the following expectation:
response.should redirect_to(:action => "new", :video_id => "1",
:process_id => "2", :origin_id => "3")
that fails with this error message:
expected redirect to {:video_id=>"1", :process_id=>"2",
:origin_id=>"3", :action=>"new"}, got redirect to
"http://test...
2012 Feb 07
2
save method (create action) saves twice
...3.1.3
I have changed a regular scaffold action a bit so that it can save using
ajax.
All I needed to do was adding ":remote => true" in
<div id="script_new">
<%= form_for script, :remote => true do |f| %> <!-- HERE!!! -->
<%= f.hidden_field :video_id %>
<%= f.text_field :text %>
<%= f.submit "save" %>
<% end %>
</div>
then even though the whole page does not change itself, I can see the
data saved by reloading the page. Namely, the data is in fact saved in
the database ( Eventually I will modify it s...
2012 Feb 22
3
Parent id for find_or_create method
Rails 3.1.3
I have tables, Video and Script having association,
Video 1 --- n Script
So, every Script needs the parent id, in this case, video_id.
If I simply create a new Script instance, the view renders as follows.
<%= render :partial => "new_script", :locals => { :script =>
Script.new(:video_id => @video.id)} %>
which works fine. Now I would like to develop further. The Script
objects may have already...
2007 Mar 28
7
Rails, REST and JSON
Hi everyone,
I''m writing a lightweight AJAX application using Rails on the server side as
a RESTful web service provider.
I need the web service to support both JSON and XML I/O. Outputting data in
XML and JSON is easy (using to_xml and to_json),
and it''s also easy to do XML input as Rails does it for you automatically.
Is it possible to somehow have the same
automatic parsing
2007 Nov 30
2
find_by_sql preformance problems when ordering data
...that the order by is adding a 26 second delay, which surprised me since
it was all done in sql. I revised the process to sort and publish on
the top 10 items in rails, which has gotten the delay down to about 5-8
seconds.
Video.find_by_sql("select videos.*, (select count(*) from votes where
video_id = videos.id and value = 1) - (select count(*) from votes where
video_id = videos.id and value = -1) AS total_votes from videos ORDER BY
total_votes DESC LIMIT 10")
Is there some better way to order these results that wouldn''t be more
resource intensive. I was looking around to see...
2007 Mar 30
0
Need help in running swfdec to watch youtube video
Hi,
I am trying to use swfdec to watch youtube video.
As an example, I want to watch this video from this page:
http://www.youtube.com/watch?v=ot5DtISEceU
>From the source of the above page, it has this link:
var fo = new SWFObject("/player2.swf?video_id=ot5DtISEceU&l=227&t=OEgsToPDskIAT_WivMUj76nGfdhAFBKN&sk=CdlGIc1WbGevkdd3KWQVRQC",
"movie_player", "450", "370", 7, "#FFFFFF");
So I start swfdec like this:
./player/swfplay ~/tmp/player2.swf
--variables=video_id=ot5DtISEceU&l=227&...
2007 Feb 23
4
How can I spec this? The method gets passed a block...
I''m using Jim Weirich''s Builder library. The code I want to spec is
xml.video do
xml.id @video_id
xml.views @views
xml.date(@date.to_s) if @date
end
I''d like to mock it, rather than asserting that the XML is the right
string. I can do one spec:
specify "should create a video tag" do
@mock_builder.should_receive(:video)
do_report
end
but I can...
2007 Feb 21
1
Rendering all the elements when calling Array#to_xml
When I call to_xml on an array, I want it to get the XML for all the
elements in it. I''ve defined to_xml in my class.
>> r.to_xml
=> "<video><id>1</id><views>2</views></video>"
>> a = [r]
=> [#<StatisticsReport:0x3259f38 @video_id=1, @views=2>]
>> a.to_xml
=> "<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n<statistics-reports>\n</statistics-reports>\n"
As you can see, I''ve got an array, with the lone element responding to
to_xml. But when I call to_xml on th...
2008 Aug 26
8
[Bug 17307] New: sfwdec-mozilla plugin stops playing sounds
...alue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
Unsupported movie property wmode with value "transparent"
unhandled event 19
Loading stream:
http://www.youtube.com/swf/l.swf?video_id=yGkWnz74zUk&rel=0&eurl=http%3A//gnomecoder.wordpress.com/2008/08/26/luz-at-play/&iurl=http%3A//i2.ytimg.com/vi/yGkWnz74zUk/default.jpg&t=OEgsToPDskJd96uAoMR-rcI8cnBL20Ky&use_get_video_info=1&load_modules=1&
Loading stream: http://www.youtube.com/swf/cps.swf
Loading strea...
2008 Jan 25
0
How to load YouTube video swf in swfdec
...I am trying to load YouTube's flash video player in swfdec.
So I
* go to a youtube page with a video
* find out the embed tag which is the flash video player
* saved the swf file locally
* copy the flashvar of the embed tag
And I input to swfplay like this
./swfplay player2.swf
--variables=video_id=ysIb89ETWWA&l=118&sk=hBFXQnDzm7k-X1HlXyntXgC&t=OEgsToPDskJIhF_zi-mo5Arya-uyXSOj&hl=en&plid=AAREkSUfMLn11hxiAAAAIAAYAAA&playnext=0
However, I end up getting error like this and no video was played.
Only a spinning circle:
SWFDEC: ERROR: swfdec_loader.c(335): swfdec_loader_e...
2009 Apr 14
6
About haml and ruby on rail
hi all,
I am converting my view into HAML format i have done it with
"Html2Haml" command, then I removed all the "- end" from haml code and
my indentation is also correct,but now it shows following errors
I have kept code of show.html.erb and show.html.haml in attachment.
please help me I am not getting what exactly the error is?
compile error
2007 Dec 11
9
[Bug 13604] New: Assertion failure when seeking on youtube with pulseaudio backend.
http://bugs.freedesktop.org/show_bug.cgi?id=13604
Summary: Assertion failure when seeking on youtube with
pulseaudio backend.
Product: swfdec
Version: unspecified
Platform: x86-64 (AMD64)
URL: http://www.youtube.com
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority:
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
...id=181477
+decode =
+img_id = 181477
+>>> xmlUrl=http://www.svenskfast.se/Pages/ObjectPicturesXML.aspx?ObjectID=3ELJF2R975UU6KB8
+decode =
+xmlUrl = http://www.svenskfast.se/Pages/ObjectPicturesXML.aspx?ObjectID=3ELJF2R975UU6KB8
+>>> v=1
+decode =
+v = 1
+>>> hl=en&video_id=Ra9tHf5oTGE&l=174&t=OEgsToPDskIiI57FokAGWDU_cVWkk0YQ&sk=jx4HbVzSeNwxQnLPSJ-AeQC&plid=AAQ-wZXLj0LXb-xH&playnext=0
+decode =
+hl = en
+l = 174
+playnext = 0
+plid = AAQ-wZXLj0LXb-xH
+sk = jx4HbVzSeNwxQnLPSJ-AeQC
+t = OEgsToPDskIiI57FokAGWDU_cVWkk0YQ
+video_id = Ra9tHf5oTGE
+>&...
2008 Apr 12
2
[Bug 15471] New: segmentation fault while seeking in youtube.com
...ec_flv_decoder_get_video: assertion
`SWFDEC_IS_FLV_DECODER (flv)' failed
SWFDEC: WARN : swfdec_codec_video.c(116): swfdec_video_decoder_new: no decoder
found for codec 0
[...]
SWFDEC: ERROR: swfdec_stream.c(373): swfdec_stream_errorv: error in stream for
http://sjc-v55.sjc.youtube.com/get_video?video_id=Sj1VauyjkI4&signature=02D9BE969612AD14D7EE15A28E694F9F3DC4CDF9.24BCA8A67DEBB24E58395F490ADCE7590FC9B42C&ip=84.222.72.72&ipbits=16&expire=1208048540&key=yt1&sver=2:
User interrupt
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7070720 (LWP 9091)...
2007 Sep 09
1
can't play youtube videos with latest git
...on
named on object unknown SWFDEC: ERROR: swfdec_as_interpret.c(683):
swfdec_action_call_method: no function named on object unknown SWFDEC:
ERROR: swfdec_as_interpret.c(683): swfdec_action_call_method: no
function named on object unknown Loading stream:
http://sjl-v123.sjl.youtube.com/get_video?video_id=fSo5r9NuhCY SWFDEC:
ERROR: swfdec_as_interpret.c(683): swfdec_action_call_method: no
function named onDisplayMovie on object SwfdecSpriteMovie SWFDEC:
ERROR: swfdec_as_interpret.c(683): swfdec_action_call_method: no
function named onDisplayMovie on object SwfdecSpriteMovie SWFDEC:
ERROR: swfdec_as_...