Ticket #712 (closed bug: fixed)
RTMP not handling JavaScript load correctly
| Reported by: | zach | Owned by: | pablo |
|---|---|---|---|
| Priority: | Milestone: | Flash 5.1 | |
| Component: | Keywords: | ||
| Cc: | zach | Forum thread: |
Description
RTMP, called via JavaScript load with a playlist may display a black screen.
See e-mail from Stuart Baker and Kevin Freitas
Change History
comment:2 Changed 3 years ago by zach
Replicate the issue:
- Use Charles to map remote from remote player to local / trunk 5.X player
- Go to troubled page
- Add a clip
- Attempt to play the new clip
Attempted solutions:
- Fixed an issue where the player wasn't correctly determining the file extension (see new Strings.extension)
- Used a playlist to handle the token / URL encoding issue
Playlist: <pre> <object id="vidplayer" name="vidplayer" type="application/x-shockwave-flash" data="/fpss/swf/player.swf" width="480" height="360">
<param name="movie" value="/fpss/swf/player.swf"> <param name="allowscriptaccess" value="always"> <param name="allowfullscreen" value="True"> <param name="flashvars" value="playlistfile=playlist.php%3Fv%3Danatomyofamurder1959.f4v&type=rtmp&width=480&height=360&autostart=false">
</object> <pre>
JavaScript call: player.sendEvent("LOAD", "playlist.php%3Fv%3Danatomyofamurder1959.f4v%26type%3Dvid")
Result: First play works; upon first trying to load a new video the screen is black; Subsequent loads lag one behind each LOAD (calling getPlaylist shows that the file both before and after calling my "LOAD" above is the same video as when the page loads -- doesn't change)
- Tried different load call:
player.sendEvent('LOAD', {file:file.mp4?token=6798sdjf09, streamer:rtmp://myserver.com/rtmpd/}); or player.sendEvent('LOAD', '{file:file.mp4?token=6798sdjf09, streamer:rtmp://myserver.com/rtmpd/}');
- Tried URL encoding token and leaving token unencoded
comment:3 Changed 3 years ago by pablo
- Status changed from assigned to closed
- Resolution set to fixed
The LOAD call needed provider:"rtmp". A related bug in the player ignored the player-level provider flashvar, which would result in incorrect behavior for LOAD events and playlist items that did not include a provider setting. Fixed in 818.
