Changeset 2024


Ignore:
Timestamp:
Jan 9, 2011 10:14:38 PM (10 years ago)
Author:
dkearney
Message:

video fixes
stop playing old video when we load a new video

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/video/piv/piv.tcl

    r2023 r2024  
    9898
    9999set vc [Rappture::VideoChooser $chooser.vc -variable ::previewVar]
    100 $vc load [glob "/home/derrick/projects/piv/video/*.mp4"]
    101 # $vc load [glob "/apps/piv/video/*.mp4"]
     100#$vc load [glob "/home/derrick/projects/piv/video/*.mp4"]
     101$vc load [glob "/apps/piv/video/*.mp4"]
    102102
    103103pack $chooser.step1 -side top -anchor w -pady 8
  • trunk/gui/scripts/videopreview.tcl

    r2023 r2024  
    238238    }
    239239
     240    video stop
    240241
    241242    if {([info exists _movie]) && ("" != ${_movie})} {
     
    276277# ----------------------------------------------------------------------
    277278itcl::body Rappture::VideoPreview::loadcb {args} {
    278 
     279    video stop
    279280    Rappture::filexfer::upload {piv tool} {id label desc} [itcl::code $this Upload]
    280 
    281     #uplevel 1 [list $args]
    282281}
    283282
     
    287286itcl::body Rappture::VideoPreview::Upload {args} {
    288287    array set data $args
     288    video stop
    289289
    290290    if {[info exists data(error)]} {
  • trunk/gui/scripts/videoscreen.tcl

    r2023 r2024  
    428428    }
    429429
     430    video stop
     431
    430432    if {([info exists _movie]) && ("" != ${_movie})} {
    431433        ${_movie} release
     
    466468# ----------------------------------------------------------------------
    467469itcl::body Rappture::VideoScreen::loadcb {args} {
    468 
     470    video stop
    469471    Rappture::filexfer::upload {piv tool} {id label desc} [itcl::code $this Upload]
    470 
    471     #uplevel 1 [list $args]
    472472}
    473473
     
    477477itcl::body Rappture::VideoScreen::Upload {args} {
    478478    array set data $args
     479    video stop
    479480
    480481    if {[info exists data(error)]} {
Note: See TracChangeset for help on using the changeset viewer.